/* Shared layout fixes for integrated SEO case study exports */

/* Export CSS includes global link styles — keep site navbar/footer matching other pages */
body > .navbar .nav-link-item,
body > .navbar .nav-dropdown-trigger {
    color: #1e293b;
}
body > .navbar .nav-link-item:hover,
body > .navbar .nav-link-item.active,
body > .navbar .nav-dropdown-trigger:hover,
body > .navbar .nav-dropdown:hover .nav-dropdown-trigger,
body > .navbar .nav-dropdown.active .nav-dropdown-trigger {
    color: var(--orange-500, #f97316);
}
body > .navbar .navbar__cta .btn {
    color: inherit;
}

.cs-seo {
    --cs-seo-nav: var(--navbar-height, 72px);
    --orange: #e8701a;
    --orange-d: #c25a0c;
}
.cs-seo .hero {
    padding-top: calc(var(--cs-seo-nav) + 24px);
    color: #c8d2e6;
}
/* Left column: H1, intro, CTAs (match standalone export on site main) */
.cs-seo .hero h1 {
    color: #fff !important;
}
.cs-seo .hero h1 .hl {
    color: var(--orange, #e8701a) !important;
}
.cs-seo .hero h1 .nw {
    color: inherit !important;
}
.cs-seo .hero .sum {
    color: #c8d2e6 !important;
    font-size: 18px;
    line-height: 1.65;
    max-width: 54ch;
    margin-bottom: 28px;
}
.cs-seo .hero .wrap {
    max-width: 1240px;
}
.cs-seo .hero-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important;
    column-gap: clamp(64px, 7vw, 96px) !important;
    row-gap: 40px;
}
.cs-seo .hero-grid > div:first-child,
.cs-seo .hero-grid > .glance {
    min-width: 0;
}
.cs-seo .hero-grid > div:first-child {
    justify-self: start;
}
/* Quick Summary card — hug right column (export-style spread on site) */
.cs-seo .hero .glance {
    width: 100%;
    max-width: min(100%, 440px);
    margin-left: auto;
    justify-self: end;
}
@media (max-width: 920px) {
    /* Desktop two-column override uses !important — must collapse here for all case studies */
    .cs-seo .hero-grid {
        grid-template-columns: 1fr !important;
        column-gap: 24px !important;
        row-gap: 32px;
        align-items: stretch !important;
    }
    .cs-seo .hero .glance {
        max-width: 100%;
        margin-left: 0;
        justify-self: stretch;
    }
}

@media (max-width: 760px) {
    .cs-seo .hero {
        padding-bottom: 44px;
    }
    .cs-seo .hero .sum {
        max-width: none;
        font-size: 16.5px;
        margin-bottom: 22px;
    }
    .cs-seo .hero .btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .cs-seo .hero .btns .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding: 15px 20px;
    }
    .cs-seo .hero .wrap,
    .cs-seo .subnav .wrap,
    .cs-seo .sec .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .cs-seo .g-tx {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
/* Sticky section nav sits below site navbar (export assumed standalone header) */
.cs-seo .subnav {
    top: var(--cs-seo-nav);
}
.cs-seo .subnav.stuck {
    top: var(--cs-seo-nav);
}

/* Hero/CTA buttons (.btn-o / .btn-w) live in export "Header" CSS — preserve here for site */
.cs-seo .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    line-height: 1.2;
    box-shadow: none;
}
.cs-seo .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.cs-seo a.btn-o,
.cs-seo button.btn-o {
    background: var(--orange);
    color: #fff !important;
}
.cs-seo a.btn-o:hover,
.cs-seo button.btn-o:hover {
    background: var(--orange-d);
    color: #fff !important;
}
.cs-seo a.btn-w,
.cs-seo button.btn-w {
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
}
.cs-seo a.btn-w:hover,
.cs-seo button.btn-w:hover {
    border-color: #fff !important;
    color: #fff !important;
    background: transparent !important;
}
.cs-seo .hero .btns .btn {
    min-height: auto;
}

.cs-seo .cta-sub {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}
.cs-seo button.cta-sub:focus-visible {
    outline: 3px solid var(--orange, #e8701a);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Ekta export: hero columns vertically centered like standalone */
.cs-seo.cs-seo--ekta .hero-grid {
    align-items: center;
}

/* globals.css removes list markers — challenge cards need disc bullets */
.cs-seo .card ul {
    list-style: disc;
    list-style-position: outside;
}
.cs-seo .card ul li {
    display: list-item;
}

/* Bottom CTA block — export navy/orange/white card (override site heading/link defaults) */
.cs-seo .cta h2 {
    color: #fff !important;
}
.cs-seo .cta h2 span {
    color: #ffb37a !important;
}
.cs-seo .cta-copy > p {
    color: #c8d2e6 !important;
}
.cs-seo a.cta-main {
    background: var(--orange, #e8701a) !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
}
.cs-seo a.cta-main:hover {
    background: var(--orange-d, #c25a0c) !important;
    color: #fff !important;
}
.cs-seo button.cta-sub {
    color: var(--ink, #0f1b33) !important;
}

/* Bottom CTA card — center “Download case study” under primary button */
.cs-seo .cta-box {
    text-align: center;
}
.cs-seo .cta-box .cta-sub {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

/* At a Glance — vertically center value (dd) with multi-line labels (dt) */
.cs-seo .atg dl div {
    align-items: center;
}

/* More case studies — listing-card layout (full image on top, copy below) */
.cs-seo .mcard:has(.mc-vis > img) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
}

.cs-seo .mcard:has(.mc-vis > img) .mc-vis {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 0;
    background: #061840;
    overflow: hidden;
}

.cs-seo .mcard:has(.mc-vis > img) .mc-vis::after {
    display: none;
}

.cs-seo .mcard:has(.mc-vis > img) .mc-vis > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 1;
}

@media (max-width: 480px) {
    .cs-seo .mcard:has(.mc-vis > img) {
        grid-template-columns: 1fr;
    }
}
