/* Thematic pages */
.thematic-page {
    padding-top: 90px;
}

.thematic-page header #mainNav {
    padding-bottom: 0;
}

.thematic-page header.scrolled #mainNav {
    padding-bottom: 10px;
}

.thematic-page .thematic-banner .audio-player-wrapper {
    position: relative;
    margin-bottom: 0;
}

.thematic-banner {
    position: relative;
    padding-top: 20px;
    z-index: 2;
    overflow: hidden;
}

.thematic-banner .container {
    position: relative;
    padding-bottom: 290px;
    min-height: 760px;
}

.thematic-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: -1;
}

.thematic-banner.solutions-banner {
    padding: 0;
    min-height: unset;
}

.thematic-banner.solutions-banner .container {
    padding-bottom: 150px;
    min-height: unset;
}

.solutions-banner .thematic-banner-img {
    object-fit: contain;
    object-position: top right;
    left: 40px;
    top: 30px;
}

.thematic-banner-content {
    max-width: 544px;
}

.thematic-banner-desc {
    font-size: 18px;
    margin-top: 20px;
}

/* Thematic page: accordion follows j/accordion.js scroll effect; light design (white bg, red headings) */
.thematic-page .pin-spacer {
    width: 100% !important;
}

.scroll-accordion-sec {
    background-color: #fff;
    padding: 40px 0 30px;
    width: 100% !important;
}

.scroll-accordion-sec .accordion-item {
    padding: 30px 0;
}

.scroll-accordion-sec .accordion-item:not(:last-child) {
    border-bottom: 1px solid #dfdfdf;
}

/* Content hidden initially; open when scroll reaches (JS adds .open) */
.scroll-accordion-sec .accordion-item:not(.open) .accordion-content {
    height: 0;
    opacity: 0;
    visibility: hidden;
}

.accordion-content {
    overflow: hidden;
    transition: none;
}

.accordion-item.open .accordion-content {
    height: auto;
    opacity: 1;
    visibility: visible;
}

/* Red headings; override GSAP inline color so text is visible on white */
.acc-title {
    font-weight: 600;
    color: #c00;
    font-size: 21px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.acc-desc {
    color: #111;
    margin: 20px 0 0;
    padding: 0;
}

.fig-caption {
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-top: 10px;
}

.video-zoom-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    transform: scale(1.8) translateY(-4%);
}

.earth-zoom-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 10px;
}

.earth-zoom-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: scale(2);
}

/* pinned viewport for scroll-driven accordion (fixed height) – only >= 768px */
@media (min-width: 768px) {


    .scroll-accordion-sec {
        padding-top: 90px;
    }

    .scroll-accordion-sec .accordion-wrapper {
        position: relative !important;
        top: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* min-height: 80vh; */
    }

    .video-zoom-wrapper {
        overflow: hidden;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .video-zoom-wrapper video {
        transform: scale(1.6) translateY(-5%);
    }

    .earth-zoom-wrapper {
        margin-top: 40px;
        margin-bottom: 0;
    }

    .earth-zoom-wrapper video {
        object-position: 50% 15%;
        transform: scale(2);
    }
}

@media (max-width: 1024px) {

    .thematic-banner-content {
        max-width: 100%;
    }

    .thematic-banner .container {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        min-height: unset;
    }

    .thematic-banner.solutions-banner .container {
        padding-bottom: 0;
    }

    .thematic-banner-img {
        position: relative;
        top: unset !important;
        left: unset !important;
        object-position: center bottom;
        margin-top: -80px;
    }

    .thematic-banner-img.pc {
        display: none;
    }

    .thematic-banner-img.mb {
        display: block;
    }
}

/* Below 768px: no pin animation; wrapper flows with content */
@media (max-width: 767.9px) {

    .thematic-banner .thematic-banner-content-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

    .scroll-accordion-sec .accordion-wrapper {
        height: auto !important;
        min-height: unset !important;
    }

    .scroll-accordion-sec .accordion-item:not(.open) .accordion-content {
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    img[src*="placeholder-thumbnail.jpg"] {
        min-height: 290px;
    }
}