/* ============================================================
   RENATA MOCELIN NAILS ACADEMY — CURSOS
============================================================ */

.cursos-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(212, 175, 55, .11),
            transparent 24%
        ),
        #050505;
    color: #f5f1e8;
}


.cursos-page .container {
    width: min(1400px, calc(100% - 60px));
    margin-inline: auto;
}


/* ============================================================
   HERO
============================================================ */

.cursos-hero {
    padding: 92px 0 68px;
    border-top: 1px solid rgba(212, 175, 55, .12);
    border-bottom: 1px solid rgba(212, 175, 55, .12);
}


.cursos-hero-content {
    max-width: 850px;
}


.section-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #d4af37;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}


.cursos-status-geral {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 20px 10px;
    padding: 0 13px;
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 999px;
    background: rgba(212, 175, 55, .07);
    color: #f5e6c8;
    font-size: .74rem;
    font-weight: 700;
}


.cursos-hero h1 {
    max-width: 820px;
    margin: 0 0 22px;
    color: #f5ead2;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.03;
}


.cursos-hero p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 1.06rem;
    line-height: 1.8;
}


.cursos-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}


/* ============================================================
   BOTÕES
============================================================ */

.btn-gold,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .96rem;
    font-weight: 800;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.btn-gold {
    border: 1px solid #d4af37;
    background: #d4af37;
    color: #090909;
}


.btn-outline {
    border: 1px solid rgba(212, 175, 55, .32);
    background: rgba(255, 255, 255, .02);
    color: #f5e6c8;
}


@media (hover: hover) {

    .btn-gold:hover,
    .btn-outline:hover {
        transform: translateY(-2px);
    }


    .btn-gold:hover {
        box-shadow: 0 12px 28px rgba(212, 175, 55, .18);
    }


    .btn-outline:hover {
        background: rgba(212, 175, 55, .07);
    }

}


/* ============================================================
   SEÇÕES
============================================================ */

.catalog-section {
    padding: 58px 0 16px;
}


.catalog-header {
    max-width: 760px;
    margin-bottom: 25px;
}


.catalog-header h2 {
    margin: 0 0 10px;
    color: #f5ead2;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
}


.catalog-header p {
    margin: 0;
    color: rgba(255, 255, 255, .67);
    line-height: 1.75;
}


/* ============================================================
   FILEIRA
============================================================ */

.poster-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(200px, 19vw, 260px);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 3px 24px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(212, 175, 55, .32)
        rgba(255, 255, 255, .03);
}


.poster-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .16);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 24, 24, .97),
            rgba(7, 7, 7, 1)
        );
    box-shadow: 0 20px 45px rgba(0, 0, 0, .3);
    scroll-snap-align: start;
}


.poster-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 24px 155px;
    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(212, 175, 55, .2),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #242017,
            #101010 48%,
            #060606
        );
}


.poster-art::before,
.poster-art::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(212, 175, 55, .16);
    border-radius: 50%;
}


.poster-art::before {
    width: 180px;
    height: 180px;
    top: 22px;
    right: -75px;
}


.poster-art::after {
    width: 110px;
    height: 110px;
    top: 64px;
    right: -20px;
}


.poster-art span {
    position: relative;
    z-index: 1;
    color: #d4af37;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
}


.poster-art strong {
    position: relative;
    z-index: 1;
    color: rgba(245, 230, 200, .18);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: .9;
    word-break: break-word;
}


.poster-art--ebook {
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(245, 230, 200, .14),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #201915,
            #0d0d0d 55%,
            #050505
        );
}


.poster-art--material {
    background:
        radial-gradient(
            circle at 76% 20%,
            rgba(212, 175, 55, .15),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #171717,
            #0a0a0a 55%,
            #050505
        );
}


.poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .98) 7%,
            rgba(0, 0, 0, .78) 38%,
            rgba(0, 0, 0, .08) 70%
        );
    pointer-events: none;
}


.poster-overlay {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 19px 20px;
}


.poster-tag {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: #d4af37;
    color: #0b0b0c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}


.poster-overlay h3 {
    margin: 0;
    color: #fff1cf;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.1;
}


.poster-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    line-height: 1.55;
}


.poster-meta {
    margin-top: 4px;
}


.poster-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(212, 175, 55, .26);
    border-radius: 999px;
    background: rgba(212, 175, 55, .08);
    color: #f5e6c8;
    font-size: .84rem;
    font-weight: 800;
}


/* ============================================================
   CTA FINAL
============================================================ */

.cursos-cta {
    padding: 72px 0 110px;
}


.cta-box {
    padding: 46px;
    border: 1px solid rgba(212, 175, 55, .17);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(212, 175, 55, .12),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            rgba(22, 22, 22, .98),
            rgba(8, 8, 8, .98)
        );
}


.cta-box h2 {
    max-width: 760px;
    margin: 0 0 13px;
    color: #f7ebcb;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
}


.cta-box p {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .71);
    line-height: 1.8;
}


/* ============================================================
   RESPONSIVO
============================================================ */

@media (max-width: 980px) {

    .cursos-page .container {
        width: min(100% - 34px, 1400px);
    }


    .cursos-hero {
        padding: 70px 0 50px;
    }


    .poster-row {
        grid-auto-columns: clamp(190px, 44vw, 240px);
        gap: 15px;
    }


    .poster-card {
        min-height: 370px;
    }

}


@media (max-width: 640px) {

    .cursos-page .container {
        width: calc(100% - 28px);
    }


    .cursos-hero {
        padding: 48px 0 42px;
    }


    .cursos-status-geral {
        margin-left: 0;
    }


    .cursos-hero h1 {
        font-size: 2.45rem;
    }


    .cursos-hero p {
        font-size: .98rem;
    }


    .cursos-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }


    .btn-gold,
    .btn-outline {
        width: 100%;
    }


    .catalog-section {
        padding-top: 46px;
    }


    .poster-row {
        grid-auto-columns: min(78vw, 265px);
        gap: 13px;
        margin-right: -14px;
        padding-right: 22px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }


    .poster-card {
        min-height: 390px;
    }


    .poster-overlay p {
        display: block;
    }


    .cursos-cta {
        padding: 58px 0 96px;
    }


    .cta-box {
        padding: 30px 22px;
        border-radius: 24px;
    }

}

/* ============================================================
   QA — CARROSSEL MOBILE EXPLÍCITO E ALINHADO
============================================================ */

.catalog-mobile-controls {
    display: none;
}

@media (max-width: 640px) {

    .catalog-mobile-controls {
        margin: -4px 0 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        color: rgba(245, 230, 200, .70);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .10em;
        text-transform: uppercase;
    }

    .catalog-next {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(212, 175, 55, .32);
        border-radius: 50%;
        background: rgba(212, 175, 55, .06);
        color: #d4af37;
        cursor: pointer;
        transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
    }

    .catalog-next:active {
        transform: scale(.96);
    }

    .catalog-next:disabled {
        opacity: .28;
        cursor: default;
    }

    .poster-row {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 6px 0 18px;

        grid-auto-columns: calc(100% - 42px);
        gap: 12px;

        justify-content: start;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .poster-row::-webkit-scrollbar {
        display: none;
    }

    .poster-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .poster-overlay,
    .poster-overlay h3,
    .poster-overlay p {
        min-width: 0;
        max-width: 100%;
    }

    .poster-overlay p {
        overflow-wrap: break-word;
    }
}


/* ============================================================
   CURSOS — CARDS FOTOGRÁFICOS V2
   Mais largos, mais baixos e com logo oficial.
============================================================ */

.poster-row--cursos .poster-card {
    isolation: isolate;

    /* Menos alto que a versão anterior */
    min-height: 405px;

    border-color: rgba(212, 175, 55, .28);

    background:
        linear-gradient(
            180deg,
            rgba(5, 5, 5, .04) 0%,
            rgba(5, 5, 5, .10) 30%,
            rgba(5, 5, 5, .58) 58%,
            rgba(5, 5, 5, .97) 100%
        ),
        var(--poster-image);

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}


.poster-row--cursos .poster-card::before {
    content: "";

    position: absolute;
    z-index: 0;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .26) 0%,
            rgba(0, 0, 0, .03) 58%,
            rgba(0, 0, 0, .06) 100%
        );

    pointer-events: none;
}


.poster-row--cursos .poster-card::after {
    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .99) 3%,
            rgba(0, 0, 0, .91) 28%,
            rgba(0, 0, 0, .48) 51%,
            rgba(0, 0, 0, .07) 74%,
            rgba(0, 0, 0, .15) 100%
        );
}


/* Logo oficial já existente no site */
.poster-row--cursos .poster-brand {
    position: absolute;
    z-index: 3;

    top: 18px;
    left: 18px;

    width: 92px;

    pointer-events: none;
}


.poster-row--cursos .poster-brand-logo {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 3px 10px
            rgba(0, 0, 0, .58)
        );
}


.poster-row--cursos .poster-overlay {
    z-index: 4;

    gap: 9px;

    padding:
        20px
        18px
        18px;
}


.poster-row--cursos .poster-tag {
    border:
        1px solid
        rgba(212, 175, 55, .72);

    background:
        rgba(8, 8, 8, .72);

    color: #f0c94e;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.poster-row--cursos .poster-overlay h3 {
    color: #fff5df;

    font-size: 1.42rem;

    text-shadow:
        0 2px 14px
        rgba(0, 0, 0, .85);
}


.poster-row--cursos .poster-overlay p {
    color:
        rgba(255, 255, 255, .78);

    font-size: .86rem;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, .75);
}


.poster-row--cursos .poster-status {
    gap: 8px;

    min-height: 36px;

    border-color:
        rgba(212, 175, 55, .56);

    background:
        rgba(5, 5, 5, .72);

    color: #f5e6c8;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.poster-row--cursos .poster-status i {
    color: #d4af37;

    font-size: .78rem;
}


@media (hover: hover) and (pointer: fine) {

    .poster-row--cursos .poster-card:hover {
        transform:
            translateY(-5px);

        border-color:
            rgba(212, 175, 55, .56);

        box-shadow:
            0 28px 58px
            rgba(0, 0, 0, .46),
            0 0 0 1px
            rgba(212, 175, 55, .06);
    }

}


/* ============================================================
   MOBILE — CARD MAIS LARGO + MENOS ALTO
============================================================ */

@media (max-width: 640px) {

    /*
     * Antes: calc(100% - 42px)
     * Agora: calc(100% - 18px)
     * Continua mostrando um pedaço do próximo card.
     */
    .poster-row--cursos {
        grid-auto-columns:
            calc(100% - 18px);

        gap: 12px;
    }


    .poster-row--cursos .poster-card {
        min-height: 395px;

        background-position:
            center top;
    }


    .poster-row--cursos .poster-brand {
        top: 16px;
        left: 18px;

        width: 88px;
    }


    .poster-row--cursos .poster-overlay {
        padding:
            18px
            18px
            17px;
    }


    .poster-row--cursos .poster-overlay h3 {
        font-size: 1.48rem;

        line-height: 1.08;
    }


    .poster-row--cursos .poster-overlay p {
        font-size: .84rem;

        line-height: 1.48;
    }


    .poster-row--cursos .poster-status {
        padding:
            0 15px;
    }

}


@media (max-width: 420px) {

    .poster-row--cursos {
        grid-auto-columns:
            calc(100% - 14px);
    }


    .poster-row--cursos .poster-card {
        min-height: 390px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .poster-row--cursos .poster-card {
        transition: none;
    }

}


/* ============================================================
   ACADEMY — CARROSSEL MOBILE FULL-BLEED + FADE
   Mantém backgrounds e logo dos cards.
============================================================ */

@media (max-width: 640px) {

    .catalog-section .container {
        overflow: visible;
    }

    .poster-row {
        width: 100vw;
        max-width: none;

        margin-left: calc((100vw - 100%) / -2);
        margin-right: calc((100vw - 100%) / -2);

        padding-left: max(14px, calc((100vw - 100%) / 2));
        padding-right: 18px;

        box-sizing: border-box;

        -webkit-mask-image:
            linear-gradient(
                90deg,
                transparent 0,
                #000 16px,
                #000 calc(100% - 34px),
                transparent 100%
            );

        mask-image:
            linear-gradient(
                90deg,
                transparent 0,
                #000 16px,
                #000 calc(100% - 34px),
                transparent 100%
            );

        scroll-padding-left:
            max(14px, calc((100vw - 100%) / 2));

        scroll-padding-right: 18px;
    }

    .poster-row--cursos {
        grid-auto-columns:
            min(84vw, 330px);

        gap: 14px;
    }

    .poster-row--cursos .poster-card {
        transform-origin: center center;

        opacity: var(--card-opacity, 1);

        transform:
            scale(var(--card-scale, 1));

        filter:
            saturate(var(--card-saturation, 1));

        transition:
            opacity .24s ease,
            transform .24s ease,
            filter .24s ease,
            border-color .24s ease;
    }

}

@media (max-width: 420px) {

    .poster-row--cursos {
        grid-auto-columns:
            min(86vw, 320px);
    }

}
