/* Paleta: esmeralda #0d5c63 | dourado #c9a84c */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@600;700&display=swap');

/* ---- Tokens ---- */
:root {
    /* --emerald: #0d5c63;
    --emerald-dark: #093f44;
    --emerald-light: #1a8a94; */
    --gold: #c9a84c;
    --gold-light: #f0d080;
    /* --cream: #ebe6dfff;
    --card-bg: #ffffff; */
    --text-primary: #1c1c1e;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-sm: 0 2px 12px rgba(13, 92, 99, .07);
    --shadow-hover: 0 22px 56px rgba(13, 92, 99, .22);
    --transition: all .38s cubic-bezier(.25, .8, .25, 1);
    --cream: #F2EBFF;
    --emerald: #6a4c8f;
    --emerald-dark: #402067;
    --emerald-light: #210d39;
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
}
body {
    background-color: var(--cream);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
/* navbar */
.course-navbar {
    width: 100%;
    background: var(--emerald-dark);
    border-bottom: 1px solid rgba(201, 168, 76, .18);
}

.course-navbar-container {
    max-width: 1400px;
    min-height: 80px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.course-logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

.back-platform {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem;
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, .35);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.back-platform:hover {
    color: #fff;
    background: rgba(201, 168, 76, .10);
    border-color: var(--gold-light);
    text-decoration: none;
}

.back-platform i {
    font-size: 1rem;
}

/* header */
.cursos-hero {
    position: relative;
    padding: 70px 0 52px;
    text-align: center;
    overflow: hidden;
    background-color: var(--cream);
}

/* Linha decorativa animada */
.cursos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald-light), var(--gold));
    background-size: 300% 100%;
    animation: hero-line 6s linear infinite;
}

.cursos-page{
    background-color: var(--cream);
}
@keyframes hero-line {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}


.cursos-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -.5px;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

/* Destaque dourado na última palavra */
.cursos-hero h1 em {
    font-style: normal;
    color: var(--emerald);
    position: relative;
}

.cursos-hero h1 em::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 2px;
}

.cursos-hero p.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* =============================================
       CONTADOR
       ============================================= */
.cursos-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0 2px;
}

.cursos-count::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 92, 99, .15));
}

.cursos-count::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(13, 92, 99, .15), transparent);
}

.cursos-grid {
    margin-top: 20px;
}

.cursos-grid .curso-col {
    margin-bottom: 30px;
}

.curso-card {
    width: 100%;
    height: 360px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Imagem */
.curso-card>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 68%;
    object-fit: cover;
    z-index: 1;
}

/* Área inferior normal */
.card-infos {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 15px;
    min-height: 32%;
}

.curso-card__num {
    font-size: 13px;
    font-weight: bold;
    color: var(--emerald-dark);
}

.card-infos h5 {
    margin: 5px 0 0;
    font-size: 1.15rem !important;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.97);
    padding: 25px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.curso-card:hover .card-hover-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Título */
.card-hover-overlay h6 {
    flex-shrink: 0;

    margin: 0 0 15px;

    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Descrição */
.card-hover-overlay .overlay-description {
    flex: 1;

    min-height: 0;

    font-size: 14px;
    line-height: 1.5;

    text-align: left;

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

/* Botão sempre no final */
.card-hover-overlay .overlay-button {
    flex-shrink: 0;

    margin-top: 20px;
}

.card-hover-overlay .overlay-button .btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--emerald);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;

    text-align: center;
}

.card-hover-overlay .overlay-button .btn:hover {
    background-color: var(--emerald-dark);
    color: #fff;
}

/* Animação do card */
.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Responsividade */

/* Desktop: 4 cards */
@media (min-width: 992px) {
    .curso-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet: 2 cards */
@media (min-width: 576px) and (max-width: 991px) {
    .curso-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    #logo-texto{
        display: none;
    }
}

/* Celular: 1 card */
@media (max-width: 575px) {
    .curso-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #logo-texto{
        display: none;
    }
}

/* =============================================
    EMPTY STATE
    ============================================= */
.cursos-empty {
    text-align: center;
    padding: 80px 24px;
    font-family: 'Inter', sans-serif;
}

.cursos-empty i {
    font-size: 3.5rem;
    color: var(--emerald);
    opacity: .2;
    margin-bottom: 18px;
    display: block;
}

.cursos-empty p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
       FOOTER
    ============================================= */
.site-footer {
    /* margin-top: 30px; */
    background: var(--emerald-dark);
    color: rgba(191, 211, 209, .85);
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 168, 76, .18);
    bottom: 0;
}

/* .footer-link {
    color: var(--gold-light);
    font-weight: 600;
    margin-left: 1.2rem;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #fff;
    text-decoration: none;
} */
.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 20px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover, .footer-link:focus, .footer-link:active {
    opacity: 0.7;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--gold);
}
#logo-texto{
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; 
    color: #fff
}

.swal2-styled.swal2-confirm{
    background-color: #210d39 !important;
}