/* RMS_HERO_PREMIUM_V1 */

.hero {
    position: relative;
    isolation: isolate;
    color: #f8f6ef;
    background:
        radial-gradient(
            ellipse at 17% 28%,
            rgba(71, 128, 103, .20) 0%,
            transparent 42%
        ),
        radial-gradient(
            ellipse at 82% 12%,
            rgba(220, 185, 118, .10) 0%,
            transparent 34%
        ),
        linear-gradient(
            125deg,
            #0b2824 0%,
            #123b32 53%,
            #0d3029 100%
        ) !important;
}

.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 4vw, 68px);
    padding-block: clamp(58px, 6.5vw, 92px);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-copy .overline {
    color: #e8c991 !important;
    font-size: 14px;
    font-weight: 800;
}

.hero .overline-line {
    width: 26px;
    height: 3px;
    border-radius: 99px;
    background: #d6b574 !important;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 24px 0 20px !important;
    color: #fffaf0 !important;
    font-size: clamp(38px, 4.35vw, 66px) !important;
    font-weight: 900;
    line-height: 1.48 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
}

.hero-copy h1 em {
    color: #f0d19a !important;
    font-style: normal;
    background: linear-gradient(
        to top,
        rgba(214, 181, 116, .28) 0 13%,
        transparent 13%
    ) !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-copy > p {
    max-width: 680px;
    margin-bottom: 27px;
    color: #d1dfd6 !important;
    font-size: clamp(16px, 1.2vw, 19px) !important;
    line-height: 2.1 !important;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn-main {
    border: 1px solid #f0d5a0 !important;
    background: #f0d5a0 !important;
    color: #14372f !important;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .13);
    transition: transform .2s ease, background .2s ease;
}

.hero-actions .btn-main:hover {
    background: #ffebc7 !important;
    transform: translateY(-2px);
}

.hero-actions .btn-white {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    background: #f8f7f1 !important;
    color: #173a31 !important;
    transition: transform .2s ease, background .2s ease;
}

.hero-actions .btn-white:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 21px;
    margin-top: 28px;
    color: #b8cec3 !important;
    font-size: 13px;
    line-height: 2;
    font-weight: 700;
}

/* The static course/book gallery */
.hero-gallery {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(223, 199, 148, .24);
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        #1b493d 0%,
        #12382f 56%,
        #0d2a25 100%
    );
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .24),
        inset 0 1px rgba(255, 255, 255, .04);
}

.gallery-top {
    margin-bottom: 19px;
}

.gallery-top span,
.gallery-foot {
    color: #c6d8cb !important;
}

.gallery-top b {
    color: #f7f4ec;
}

.gallery-course,
.gallery-book {
    border: 1px solid rgba(255, 255, 255, .07);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.gallery-course:hover,
.gallery-book:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 209, 154, .38);
}

.gallery-course strong,
.gallery-book strong {
    color: #fffaf0;
}

.gallery-course div > span,
.gallery-book div > span {
    color: #f0d19a;
}

.gallery-image {
    background: #f8f5ed;
}

/* CMS slides retain their existing content and controls */
.rms-slider {
    border: 1px solid rgba(220, 193, 139, .38) !important;
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        #183f35,
        #0d2b26
    ) !important;
    box-shadow: 0 28px 65px rgba(0, 0, 0, .23);
}

.rms-slider__visual {
    background: linear-gradient(
        145deg,
        #315f53,
        #173b33
    );
}

.rms-slider__controls {
    background: #102f2a;
}

/* Tablet */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-block: 46px 54px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-copy h1 {
        font-size: clamp(35px, 6vw, 49px) !important;
    }

    .hero-gallery,
    .rms-slider {
        width: 100%;
        max-width: 720px;
        justify-self: center;
    }

    .rms-slider__slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .rms-slider__visual {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .hero-grid {
        gap: 25px;
        padding-block: 35px 42px;
    }

    .hero-copy .overline {
        font-size: 12px;
    }

    .hero-copy h1 {
        margin-block: 16px !important;
        font-size: clamp(31px, 8.2vw, 41px) !important;
        line-height: 1.5 !important;
        letter-spacing: -.015em !important;
    }

    .hero-copy > p {
        margin-bottom: 20px;
        font-size: 15px !important;
        line-height: 2 !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn {
        box-sizing: border-box;
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        gap: 7px 13px;
        margin-top: 20px;
        font-size: 12px;
    }

    .hero-gallery {
        padding: 13px;
        border-radius: 22px;
    }

    .gallery-top {
        margin-bottom: 12px;
    }

    .gallery-top span,
    .gallery-foot {
        font-size: 11px;
        letter-spacing: .2px;
    }

    .gallery-course,
    .gallery-book {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        min-height: 100px;
        padding: 8px;
        border-radius: 13px;
    }

    .gallery-image {
        height: 88px;
    }

    .gallery-course strong,
    .gallery-book strong {
        font-size: 14px;
        line-height: 1.7;
    }

    .gallery-course small,
    .gallery-book small {
        font-size: 11px;
    }

    .gallery-course div > span,
    .gallery-book div > span {
        font-size: 11px;
    }

    .rms-slider {
        border-radius: 22px;
    }

    .rms-slider__content {
        padding: 22px 18px 18px;
    }

    .rms-slider__content h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .btn,
    .gallery-course,
    .gallery-book {
        transition: none !important;
    }

    .hero-actions .btn-main:hover,
    .hero-actions .btn-white:hover,
    .gallery-course:hover,
    .gallery-book:hover {
        transform: none;
    }
}
