/************************************************************
 * PHOENIX — PREMIUM MARKET REPORT TEMPLATE (FINAL BUILD) Desktop
 ************************************************************/

/* MAIN CONTAINER */
.single-market-report .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* ROW LAYOUT */
.single-market-report .row {
    display: flex;
    gap: 40px;
}

/* LEFT COLUMN */
.single-market-report .column.left {
    width: 70%;
}

/* FIXED FLOATING RIGHT SIDEBAR */
.single-market-report .column.right {
    position: fixed;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: 340px;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 16px;   /* perfect premium spacing */
}

/* Sidebar buttons */
.single-market-report .column.right .sidebar-button {
    width: 100% !important;
    margin: 0;                /* remove extra gap */
}

/* Contact box spacing: subtle, premium */
.single-market-report .column.right .sidebar-contact-box {
    margin-top: 6px;          /* NOT too large */
}

/* Mobile resets */
@media (max-width: 1100px) {
    .single-market-report .column.right {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 25px;
        gap: 18px;
    }
}


/************************************************************
 * SIDEBAR BUTTONS
 ************************************************************/
.single-market-report .sidebar-button {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all .25s ease;
}
.single-market-report .sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.single-market-report .sidebar-button a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/************************************************************
 * CONTACT BOX
 ************************************************************/
.single-market-report .sidebar-contact-header {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}
.single-market-report .sidebar-item {
    font-size: 15px;
    margin: 6px 0;
}
.single-market-report .sidebar-item i {
    color: #0073e6;
    margin-right: 8px;
}

/************************************************************
 * REPORT META (UNDER H1)
 ************************************************************/
.single-market-report .report-top-meta {
    margin: 10px 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: #555;
}
.single-market-report .report-top-meta span {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/************************************************************
 * TABS — PREMIUM CENTER STYLE
 ************************************************************/
.single-market-report .phoenix-tabs {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    overflow: hidden;
}

/* TAB NAVIGATION */
.single-market-report .phoenix-tab-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    margin: 0;
    list-style: none;
}
.single-market-report .phoenix-tab-nav li {
    list-style: none;
}
.single-market-report .phoenix-tab-btn {
    padding: 14px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    border-bottom: 3px solid transparent;
    transition: all .25s ease;
}
.single-market-report .phoenix-tab-btn.active {
    color: #0073e6;
    border-bottom: 3px solid #0073e6;
}

/* TAB PANELS */
.single-market-report .phoenix-tab-panels {
    padding: 26px;
}
.single-market-report .phoenix-tab-panel {
    display: none;
}
.single-market-report .phoenix-tab-panel.active {
    display: block;
}

/************************************************************
 * TYPOGRAPHY INSIDE CONTENT
 ************************************************************/
.single-market-report .phoenix-report-content p {
    font-size: 17px;
    line-height: 1.74;
    margin-bottom: 20px;
    color: #333;
}
.single-market-report .phoenix-report-content h2 {
    margin-top: 35px;
    margin-bottom: 14px;
    font-size: 24px;
    color: #0a3d62;
    border-left: 4px solid #0073e6;
    padding-left: 12px;
}

/* LISTS */
.single-market-report .phoenix-report-content ul {
    margin-left: 25px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/************************************************************
 * FAQ SECTION (NATIVE DETAILS + PREMIUM LOOK)
 ************************************************************/

.single-market-report .faqwide-wrapper {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}
.single-market-report .faqwide-inner {
    width: 100%;
    max-width: 900px;
}

/* FAQ HEADING */
.single-market-report .phoenix-faqs h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* FAQ ITEM */
.single-market-report .phoenix-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 18px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s ease;
}
.single-market-report .phoenix-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* FAQ QUESTION <summary> */
.single-market-report summary.faq-question {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.single-market-report summary.faq-question::-webkit-details-marker {
    display: none;
}

/* '+' and '−' */
.single-market-report .faq-toggle {
    font-size: 22px;
    font-weight: 600;
    color: #0073e6;
    margin-left: 12px;
}

/* FAQ ANSWER */
.single-market-report .faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}
.single-market-report .faq-answer p {
    margin-bottom: 10px;
}

/* Prevent summary text vanishing on open */
.single-market-report details[open] summary.faq-question {
    background: #eef3f8;
}

/************************************************************
 * RESPONSIVENESS
 ************************************************************/
@media (max-width: 900px) {
    .single-market-report .row {
        flex-wrap: wrap;
    }
    .single-market-report .column.left,
    .single-market-report .column.right {
        width: 100%;
    }

    .single-market-report .phoenix-tab-btn {
        flex: 1;
        text-align: center;
    }
}

/************************************************************
 * PHOENIX — MARKET REPORT (MOBILE VERSION)
 * CLEAN + FINAL (≤ 900px)
 ************************************************************/
@media (max-width: 900px) {

    /************ GLOBAL WRAPPER ************/
    .single-market-report .container {
        padding: 12px 14px;
    }

    .single-market-report h1.title-tag {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    /************ META ROW UNDER TITLE ************/
    .single-market-report .report-top-meta {
        gap: 8px;
        font-size: 12px;
    }
    .single-market-report .report-top-meta span {
        padding: 4px 8px;
    }

    /************ CTA BUTTONS MOVE TO TOP ************/
    .single-market-report .column.right {
        order: -1;
        width: 100%;
        position: relative !important;
        transform: none !important;
        top: auto !important;
        right: auto !important;
        margin: 0 0 20px 0;
        padding: 0;
        gap: 14px;
    }

    .single-market-report .sidebar-button {
        font-size: 15px;
        padding: 14px;
        width: 100% !important;
    }

    /************ TABS ************/
    .single-market-report .phoenix-tab-nav {
        flex-wrap: wrap;
        padding: 0;
    }

    .single-market-report .phoenix-tab-nav li {
        flex: 1 1 50%;
        text-align: center;
    }

    .single-market-report .phoenix-tab-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
        border-bottom-width: 2px;
    }

    /************ TAB PANEL CONTENT ************/
    .single-market-report .phoenix-tab-panels {
        padding: 18px;
    }

    .single-market-report .phoenix-report-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .single-market-report .phoenix-report-content h2 {
        font-size: 20px;
        padding-left: 10px;
        margin-top: 28px;
    }

    /************ FAQ ************/
    .single-market-report .phoenix-faq-item {
        margin-bottom: 14px;
    }

    .single-market-report summary.faq-question {
        padding: 14px;
        font-size: 16px;
    }

    .single-market-report .faq-answer {
        padding: 0 14px 14px 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    /************ CONTACT BOX ************/
    .single-market-report .sidebar-contact-box {
        padding: 14px;
    }

    .single-market-report .sidebar-item {
        font-size: 14px;
        margin: 4px 0;
    }

    /************ LAYOUT FIX ************/
    .single-market-report .row {
        flex-direction: column;
        gap: 20px;
    }

    .single-market-report .column.left {
        width: 100%;
    }
}


/************************************************************
 * PHOENIX — POPUP SYSTEM (GLOBAL DESKTOP + MOBILE)
 ************************************************************/

.phoenix-popup {
    display: none;              /* Hidden until JS shows it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;            /* Above everything */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.phoenix-popup-inner {
    background: #ffffff;
    width: 450px;
    max-width: 95%;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.phoenix-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
}

.phoenix-popup h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

/************ MOBILE POPUP SIZE ************/
@media (max-width: 900px) {
    .phoenix-popup-inner {
        width: 90% !important;
        max-width: 360px;
        padding: 18px !important;
    }

    .phoenix-popup h3 {
        font-size: 18px;
    }
}

/*******************************************************
 * GLOBAL PHOENIX POPUP (SAFE, RESPONSIVE, FIXED HEIGHT)
 *******************************************************/

/* FULL SCREEN OVERLAY */
.phoenix-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 99999;

    /* Center the inner box */
    justify-content: center;
    align-items: center;

    padding: 20px; /* keeps spacing on small screens */
}

/* POPUP INNER BOX */
.phoenix-popup-inner {
    background: #fff;
    width: 100%;
    max-width: 440px;         /* perfect desktop width */
    border-radius: 10px;
    padding: 25px 25px 30px;
    position: relative;

    /* <<< FIX FOR YOUR ISSUE >>> */
    max-height: 90vh;         /* popup NEVER exceeds screen */
    overflow-y: auto;         /* content scrolls inside */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* CLOSE BUTTON */
.phoenix-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    z-index: 100000;
}

/* POPUP HEADING */
.phoenix-popup-inner h3 {
    margin-top: 0;
    text-align: center;
    font-size: 22px;
    margin-bottom: 16px;
}

/* Prevent CF7 message box from stretching popup */
.phoenix-popup-inner textarea {
    max-height: 120px !important; /* stops HUGE textarea */
    resize: vertical !important;
}

/*******************************************************
 * MOBILE OPTIMIZATION (SUPER IMPORTANT)
 *******************************************************/
@media (max-width: 600px) {
    .phoenix-popup-inner {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
        max-height: 85vh !important;
    }

    .phoenix-popup-close {
        top: 10px;
        right: 12px;
        font-size: 24px;
    }
}











/************************************************************
 * PHOENIX — PRESS RELEASE (DESKTOP)
 ************************************************************/

/* MAIN CONTAINER */
.single-press-release .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* ROW LAYOUT */
.single-press-release .row {
    display: flex;
    gap: 40px;
}

/* LEFT COLUMN */
.single-press-release .column.left {
    width: 70%;
}

/* RIGHT FLOATING SIDEBAR */
.single-press-release .column.right {
    position: fixed;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: 340px;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* BUTTONS */
.single-press-release .sidebar-button {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all .25s ease;
}
.single-press-release .sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* CONTACT BOX */
.single-press-release .sidebar-contact-box {
    padding: 16px;
    background: #fff;
    border-radius: 10px;
}

.single-press-release .sidebar-contact-header {
    font-size: 18px;
    margin-bottom: 10px;
}

.single-press-release .sidebar-item {
    font-size: 15px;
    margin: 6px 0;
}
.single-press-release .sidebar-item i {
    color: #0073e6;
    margin-right: 8px;
}

/* PRESS TITLE */
.single-press-release .press-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* META */
.single-press-release .press-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* CONTENT */
.single-press-release .press-content p {
    font-size: 17px;
    line-height: 1.74;
    margin-bottom: 20px;
    color: #333;
}

.single-press-release .press-content h2,
.single-press-release .press-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0a3d62;
}


/************************************************************
 * PHOENIX — PRESS RELEASE (MOBILE)
 * Applies to screens ≤ 900px width
 ************************************************************/
@media (max-width: 900px) {

    /* WRAPPER */
    .single-press-release .container {
        padding: 12px 14px;
    }

    /* TITLE */
    .single-press-release .press-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* META */
    .single-press-release .press-meta {
        font-size: 12px;
        margin-bottom: 16px;
    }

    /* COLUMN BEHAVIOR */
    .single-press-release .row {
        flex-direction: column;
        gap: 20px;
    }

    .single-press-release .column.left {
        width: 100%;
    }

    /* SIDEBAR MOVES TO TOP */
    .single-press-release .column.right {
        order: -1; 
        position: relative !important;
        width: 100%;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 0 20px 0;
        gap: 14px;
    }

    /* BUTTONS FULL WIDTH */
    .single-press-release .sidebar-button {
        font-size: 16px;
        padding: 14px;
        width: 100% !important;
    }

    /* CONTACT BOX MOBILE STYLE */
    .single-press-release .sidebar-contact-box {
        padding: 14px;
    }
    .single-press-release .sidebar-item {
        font-size: 14px;
        margin: 4px 0;
    }

    /* CONTENT */
    .single-press-release .press-content p {
        font-size: 15px;
        line-height: 1.6;
    }
    .single-press-release .press-content h2 {
        font-size: 20px;
        margin-top: 25px;
    }
}


.single-market-report .row,
.single-press-release .row {
    position: relative;
}



