:root {
    --navy-dark: #12456f;
    --navy-mid: #1b5f95;
    --sky: #4fa8de;
    --ebook-blue: #2c9af2;
    --ebook-blue-2: #1983ca;
    --teal-heading: #0c7a9c;
    --link-blue: #1aa8d6;
    --orange: #e67042;
    --utility-blue: #5098ec;
    --page-bg: #f7f7f7;
    --border: #e6e6e6;
    --ink: #222222;
    --body-text: #595959;
    --muted: #8a8a8a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--link-blue);
    text-decoration: none;
}

/* ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
} */

.mobile-block {
    display: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* ---------- Layout ---------- */

.layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    padding: 28px 0 70px;
    align-items: start;
}

aside.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(20, 30, 50, 0.04);
}

main.content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

main.content .panel {
    padding: 2.5% 2.5%;
    scroll-margin-top: 96px;
}


/* ---------- TOC card ---------- */

.toc-card {
    padding: 22px 22px 16px;
    box-sizing: border-box;
}

@media (min-width: 981px) {
    .toc-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .toc-card ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }
}

.toc-card h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
}

.toc-card li {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eaeaea;
}

.toc-card li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toc-card a {
    display: flex;
    gap: 8px;
    padding: 6px 6px;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    align-items: flex-start;
}

/* Sub-list support for multi-level TOCs */

.toc-card .toc-sub-list {
    margin-top: 4px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: none;
}

.toc-card .toc-sub-list li {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toc-card .toc-sub-list a {
    font-size: 0.82rem;
    color: var(--body-text);
    font-weight: 400;
    padding: 3px 6px;
}

.toc-card .toc-sub-list a::before {
    content: none;
}

.toc-card a:hover {
    background: var(--page-bg);
    color: var(--link-blue);
}

/* ---------- Blue banners ---------- */

.banner {
    border-radius: 16px;
    padding: 2.5% 2.5%;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 32px;
}

.banner-standalone {
    background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy-mid) 55%, var(--sky) 130%);
}

@media (min-width: 767px) and (max-width: 830px) {
    #top-hero {
        background-image: url('/assets/images/pillarpage/conference-intelligence/pre-conf-tab-bg.png') !important;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

      .pharma-banner-box {
        background-image: url('/assets/images/pillarpage/conference-intelligence/pre-conf-tab-bg-one.png') !important;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
    }
}


@media screen and (min-width: 1024px) and (max-width: 1200px) and (orientation: landscape) {
    .layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        align-items: stretch;
    }

    aside.sidebar {
        display: contents;
    }

    main.content {
        display: contents;
    }

    .banner-standalone {
        grid-column: span 2;
        order: 1;
    }

    .toc-card {
        grid-column: span 2;
        order: 2;
        min-width: 0;
        padding: 16px 20px;
    }

    .toc-card h4 {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        user-select: none;
    }

    .toc-card h4::after {
        content: "\25BC";
        font-size: 0.65rem;
        color: var(--muted);
        transition: transform 0.25s ease;
    }

    .toc-card.open h4::after {
        transform: rotate(180deg);
    }

    .toc-card.open h4 {
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }

    .toc-card>ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
        margin: 0;
    }

    .toc-card.open>ul {
        max-height: 1200px;
        transition: max-height 0.35s ease-in-out;
        margin-top: 8px;
    }

    main.content>*:not(.banner-standalone) {
        grid-column: span 2;
        order: 3;
    }

    .resource-card {
        grid-column: span 1;
        order: 4;
        min-width: 0;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .banner-top {
        background: linear-gradient(135deg,
                var(--navy-dark) 0%,
                var(--navy-mid) 60%,
                var(--sky) 100%);
        padding: 4% !important;
    }

    .banner-art {
        align-self: center;
        margin-top: 8px;
    }
}


@media (min-width: 601px) {
    #top-hero {
        background-image: url('/assets/images/pillarpage/conference-intelligence/pre-conf-banner.png');
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

    .pharma-banner-box {
        background-image: url('/assets/images/pillarpage/conference-intelligence/pre-land-conf-bg.png');
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        padding: 4% !important;
    }
}

.banner-top {
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy-mid) 40%, var(--sky) 78%, #ffffff 100%);
}

.banner-top h2 {
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.banner-top h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.banner-top p {
    color: #e4effa;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.hero-rule {
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    margin: 16px 0;
}

.hero-date {
    font-size: 0.85rem;
    color: #e4effa;
    margin-bottom: 0;
}

/* ---------- Section basics ---------- */

h2.plain-heading {
    color: var(--teal-heading);
    font-size: 1.45rem;
}

h3.plain-heading {
    color: var(--teal-heading);
    font-size: 1.1rem;
}

/* ---------- FAQ ---------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
}

.faq-q .chev {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--ink);
}

.faq-item.open .chev {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.open .faq-a {
    max-height: 600px;
    transition: max-height 0.35s ease-in-out;
}

.faq-a p {
    padding: 0 22px 20px;
    font-size: 0.9rem;
    margin: 0;
    color: var(--body-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        align-items: stretch;
    }

    aside.sidebar {
        display: contents;
    }

    main.content {
        display: contents;
    }

    .banner-standalone {
        grid-column: span 2;
        order: 1;
    }

    .toc-card {
        grid-column: span 2;
        order: 2;
        min-width: 0;
        padding: 16px 20px;
    }

    .toc-card h4 {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        user-select: none;
    }

    .toc-card h4::after {
        content: "\25BC";
        font-size: 0.65rem;
        color: var(--muted);
        transition: transform 0.25s ease;
    }

    .toc-card.open h4::after {
        transform: rotate(180deg);
    }

    .toc-card.open h4 {
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }

    .toc-card>ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
        margin: 0;
    }

    .toc-card.open>ul {
        max-height: 1200px;
        transition: max-height 0.35s ease-in-out;
        margin-top: 8px;
    }

    main.content>*:not(.banner-standalone) {
        grid-column: span 2;
        order: 3;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .banner-top {
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, var(--sky) 100%);
        padding: 24px 24px !important;
    }

    main.content>section.panel {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-block {
        display: block !important;
        width: 100%;
    }

    .mobile-block img {
        border-radius: 12px;
        width: 100%;
        height: auto;
    }

    aside.sidebar {
        display: contents;
    }

    main.content {
        display: contents;
    }

    .toc-card {
        order: 2;
        width: 100%;
    }

    #top-hero,
    .pharma-banner-box {
        background-image: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy-mid) 55%, var(--sky) 130%) !important;
        background-size: auto !important;
        background-position: 0 0 !important;
        background-repeat: repeat !important;
        padding: 24px 20px !important;
    }

    main.content>section.panel {
        padding: 20px 16px !important;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .layout {
        padding: 16px 0 40px;
        gap: 16px;
    }

    .banner h1 {
        font-size: 1.45rem !important;
    }

    .faq-q {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .faq-a p {
        padding: 0 16px 16px;
        font-size: 0.85rem;
    }
}

.sub-paragraph {
    margin: 0;
    font-size: 0.94rem;
}

.title-desc {
    margin: 0;
    font-size: 0.94rem;
}

.banner h1 {
    font-size: clamp(1.6rem, 2.6vw, 1.8rem);
}

.pharma-banner-box {
    padding: 32px 36px;
    border-radius: 16px;
    color: #fff;
    height: auto;
}

.pharma-banner-box h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.pharma-banner-box p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

.benefits-blocks {
    background: #ADE4FF;
    padding: 24px 20px;
    border-radius: 14px;
    margin-top: 16px;
}

.benefits-blocks p {
    margin: 0;
}

.benefits-sub-block,
.benefits-sub-block-two,
.benefits-sub-block-three,
.benefits-sub-block-four,
.benefits-sub-block-five,
.benefits-sub-block-six {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1140 / 736;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12% 10% 10% 10%;
    color: #1a1a1a;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    line-height: 1.45;
    font-weight: 500;
    box-sizing: border-box;
}

.benefits-sub-block {
    background-image: url('/assets/images/pillarpage/conference-intelligence/sharper-strategy.png') !important;
}

.benefits-sub-block-two {
    background-image: url('/assets/images/pillarpage/conference-intelligence/resource-util.png') !important;
}

.benefits-sub-block-three {
    background-image: url('/assets/images/pillarpage/conference-intelligence/stronger-kol.png') !important;
}

.benefits-sub-block-four {
    background-image: url('/assets/images/pillarpage/conference-intelligence/comp-readiness.png') !important;
}

.benefits-sub-block-five {
    background-image: url('/assets/images/pillarpage/conference-intelligence/conf-decision.png') !important;
}

.benefits-sub-block-six {
    background-image: url('/assets/images/pillarpage/conference-intelligence/greater-sci.png') !important;
}

.med-text {

    font-size: 0.88rem;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E2E2E2;
}

.msl-text {

    font-size: 0.88rem;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E2E2E2;
}

.med-text-two {

    font-size: 0.88rem;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E2E2E2;
}

.led-text {

    font-size: 0.88rem;
    margin-bottom: 0;
}