: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;
}

.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-sub-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 2px;
}

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

/* ---------- Resource cards ---------- */
.resource-card {
    border-radius: 16px;
    color: #fff;
    background-color: #9B79FF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    gap: 15px;
}

.resource-card .kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4%;
}

.resource-card h4 {
    color: #fff;
    font-size: 0.94rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ebook-blue-2);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 16px;
    border-radius: 100px;
}



.resource-card .resource-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6%;
    color: #fff;
}

.resource-card .dl-btn {
    padding: 10px 24px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.resource-card .dl-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.resource-card .dl-btn:active {
    transform: translateY(0);
}

.resource-card .dl-btn svg {
    flex-shrink: 0;
}

/* ---------- 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-two {
        background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/clinical-trials-tab-bg.png') !important;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: 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;
    }
}





/* Web / Desktop (> 980px) & Tab View (601px - 980px): show hero-banner background image and hide gradient */
@media (min-width: 601px) {
    #top-hero {
        background-image: url('/assets/images/pillarpage/hero-banner.png') !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
    }

    #top-hero-two {
        background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/clinical-banner.png');
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
    }

    #top-hero-three {
        background-image: url('/assets/images/pillarpage/kol-banner.png') !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
    }

    #top-hero .banner-art,
    #top-hero-two .banner-art,
    #top-hero-three .banner-art {
        display: none;
    }

    .pharma-banner-box {
        background-image: url('/assets/images/pillarpage/hero-banner-two.png') !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
        padding: 4% !important;
    }

    .pharma-banner-box-two {
        background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/clinic-trial-analytics.png') !important;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
        padding: 4% !important;
    }

    .pharma-banner-box-three {
        background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/key-metrics-bg.png') !important;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: unset;
        overflow: visible;
        box-sizing: border-box;
        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-text {
    flex: 1;
    min-width: 0;
}

.banner-art {
    flex-shrink: 0;
    opacity: 0.9;
}

.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;
}

.plain-item {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

.plain-item:first-of-type {
    padding-top: 0;
}

.plain-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.plain-item p {
    margin: 0;
    font-size: 0.94rem;
}

.related-read {
    display: flex;
    gap: 8px;
    background: #effaff;
    border: 1px solid #cfe9f7;
    border-radius: 100px;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--ink);
}

/* ---------- 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;
    }

    .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 (max-width: 600px) {
    .layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .discover-block {
        margin-top: 4%;
    }

    .mobile-block {
        display: block !important;
    }

    .mobile-block img {
        border-radius: 12px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    aside.sidebar {
        display: contents;
    }

    main.content {
        display: contents;
    }

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

    .resource-card {
        order: 4;
        width: 100%;
    }

    #top-hero,
    #top-hero-two,
    #top-hero-three,
    .pharma-banner-box-two,
    .pharma-banner-box-three,
    .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: 4% !important;
    }

    .panel {
        padding: 5% !important;
    }

    #top-hero .banner-art,
    #top-hero-two .banner-art,
    #top-hero-three .banner-art {
        display: block;
    }
}

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

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

    .related-read {
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .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-two,
.pharma-banner-box-three {
    padding: 32px 36px;
    border-radius: 16px;
    color: #fff;
}

.pharma-banner-box-two 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-two p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

.pharma-banner-box-three 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-three p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 980px) and (min-width: 601px) {
    .software-banner-box {
        padding: 28px 30px;
    }

    .demo-btn {
        padding: 3% !important;
    }

    .software-banner-content {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .software-banner-text {
        flex: 1 1 52%;
    }

    .software-banner-img-wrap {
        display: flex !important;
        flex: 1 1 48%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .software-banner-box {
        padding: 24px 20px;
        background: linear-gradient(120deg, #15609f 0%, #1a6cb3 55%, #4fa8de 100%);
    }

    .software-banner-content {
        flex-direction: column;
    }

    .software-banner-text {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .cta-banner-card {
        padding: 30px 28px;
    }
}

@media (max-width: 600px) {
    .cta-banner-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .cta-card-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .cta-card-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .cta-card-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

.button-block {
    height: 30px;
    width: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (min-width: 768px) and (max-width: 992px) {
    .subtitle p {
        font-size: 13px !important;
    }
}

.discuss_block {
    background-color: #ADE4FF;
    border-radius: 12px;
    border: 1px solid #B3B3B3;
    box-shadow: 0 1px 3px rgba(20, 30, 50, 0.04);
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.update-text {
    color: #00689B;
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 12px;
    margin-bottom: 8px;
}

.disc-btn {
    width: auto;
    min-width: 140px;
    height: 38px;
    padding: 6px 20px;
    background-color: #0099E6;
    color: #fff;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    margin: 16px auto 0 auto;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

.comp-link {
    color: #fff;
    text-decoration: underline;
}



.benefits-blocks {
    background: #ADE4FF;
    padding: 24px 20px;
    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: 930 / 582;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12% 10% 5% 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/SSOV/clinical-trial-analytics/prioritize-bg.png') !important;
}

.benefits-sub-block-two {
    background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/benchmark-bg.png') !important;
}

.benefits-sub-block-three {
    background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/spotwhite-bg.png') !important;
}

.benefits-sub-block-four {
    background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/strengthen-bg.png') !important;
}

.benefits-sub-block-five {
    background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/support-bg.png') !important;
}

.benefits-sub-block-six {
    background-image: url('/assets/images/pillarpage/SSOV/clinical-trial-analytics/reduce-bg.png') !important;
}


.discover-block {
    background-color: #07ADCB;
    border-radius: 12px;
    border: 1px solid #B3B3B3;
    color: #fff;
    padding: 4% 4%;
    font-size: 15px;
    font-weight: 600;
    height: auto;
    text-align: center;
}


.demo-btn {
    background-color: #FFFFFF;
    border-radius: 4px;
    color: #005C6D;
    padding: 5%;
    border: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
    align-content: center;
    text-align: center;
    border: 1px solid #E0E0E0;

}


.demo-btn-container {
    padding: 0 20%;
}