:root {
    --navy-dark: #12456f;
    --navy-mid: #1b5f95;
    --sky: #4fa8de;
    --ebook-blue-2: #1983ca;
    --teal-heading: #0c7a9c;
    --link-blue: #1aa8d6;
    --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;
}

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

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

.resource-thumb svg {
    height: 100%;
    width: 100%;
}

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

.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-thumb.image-thumb img {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
    width: 100%;
}

.resource-card .resource-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    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: 601px) {
    #top-hero {
        background-image: url('/assets/images/pillarpage/life-sciences-crm/medical-insights/med-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;
    }

    .pharma-banner-box {
        background-image: url('/assets/images/pillarpage/life-sciences-crm/medical-insights/why-med-bg.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;
        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;
}

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


/* ---------- Grids ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.info-card h3 {
    color: var(--link-blue);
    font-size: 1rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- 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: 980px) {
    .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;
        overflow: hidden;
    }

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

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





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



    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;
        justify-content: space-between;
    }

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






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


@media screen and (min-width: 1200px) and (max-width: 1400px) and (orientation: landscape) {

    .layout {
        align-items: normal;
    }
}



@media (min-width: 767px) and (max-width: 830px) {
    #top-hero {
        background-image: url('/assets/images/pillarpage/life-sciences-crm/medical-insights/med-insight-tab-banner.svg') !important;
        background-size: cover;
        background-position: right;
    }

    .pharma-banner-box {
        background-image: url('/assets/images/pillarpage/life-sciences-crm/medical-insights/med-insight-tab-banner-two.png') !important;
        background-size: cover;
        background-position: right !important;
    }

}






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


    .med-sub-block {
        padding: 5%;
    }

    .med-sub-innerblock {
        margin-top: 3%;
        padding: 2%;
    }

    .mobile-block {
        display: flex !important;
        justify-content: center;
    }

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

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

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

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

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

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

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

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

/* ---------- CTA Banner Card ---------- */
.cta-banner-card {
    background: #2b96ec !important;
    border-radius: 16px;
    padding: 36px 40px;
    color: #ffffff;
    border: none !important;
    box-shadow: 0 4px 16px rgba(43, 150, 236, 0.15);
}

.cta-card-title {
    color: #ffffff !important;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 14px;
}

.cta-card-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.92rem, 1.1vw, 1.02rem);
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 820px;
}

.cta-card-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #2b96ec;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cta-card-btn:hover {
    background-color: #f4f9ff;
    color: #1b84d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

@media (min-width: 768px) and (max-width: 992px) {

    .med-sub-innerblock,
    .med-sub-innerblock-two {
        padding: 4% !important;
    }
}

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

.inform-blocks li {
    font-size: 15px;
    margin: 1% 0;
}

.inform-blocks {
    padding-left: 1rem !important;
    color: #fff;
}

.med-sub-block {
    background-color: #1AA8D6;
    border-radius: 12px;
}


@media screen and (min-width: 1200px) and (max-width: 1400px) and (orientation: landscape) {

    .layout {
        align-items: normal;
    }
}


.med-sub-innerblock-two {
    padding: 0 4%;
}

.med-block-img {
    display: flex;
    justify-content: center;
}

.med-block-img {
    padding: 2%;
}