/* =========================
   DESKTOP – INSCRIÇÕES ABERTAS
   ========================= */

.course-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* proporção vertical padrão */
    overflow: hidden;
    background: #f8f9fa;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* nunca corta */
    display: block;
    border-radius: 8px 8px;
}

.course-img .badge.um{
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c52d22;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.course-img .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #22c55e;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.course-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-info h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    
    color: #001d3d;
}


.course-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #666;
}

.btn-course {
    display: block;
    text-align: center;
    background: #004aad;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: auto;
}

.enroll-section {
    background: linear-gradient(
        to bottom,
        #f9f6ef 0%,
        #f7f3e8 65%,
        #ffffff 100%
    );
    padding: 90px ;
}
.section-subtitle {
  margin-top: 14px;
  margin-bottom: 48px;
}
.enroll-container{
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}
.enroll-carousel {
    overflow: hidden;
}
.enroll-track {
    
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    align-items: stretch;
}
/* cards no desktop */
.enroll-card {
    min-width: 320px;
    background: var(--white);
    padding: 0px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.enroll-card {
    background: var(--white);
    padding: 0px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.enroll-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
}

.enroll-card:hover {border-color: var(--primary);}

/* imagem normal no desktop */
.enroll-card .course-img img {
    width: 100%;
    height: auto;
    display: block;
}
/* botões desktop */
.enroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #0052a3;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s;
}
.enroll-btn:hover {
    background: rgba(0,0,0,0.9);
}
.enroll-prev {
    left: -20px;
}
.enroll-next {
    right: -20px;
}
/* =========================
   MOBILE – INSCRIÇÕES ABERTAS
   ========================= */
@media (max-width: 768px) {

    .enroll-container {
        position: relative;
        padding: 0 12px;
    }

    .enroll-carousel {
        overflow: hidden;
    }

    .enroll-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .enroll-track::-webkit-scrollbar {
        display: none;
    }

    .enroll-card {
        max-width: 82%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .enroll-card .course-img {
    height: auto;
    overflow: visible;
    }

    /* imagem SEM cortar */
    .enroll-card .course-img img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* esconde as setas no mobile */
    .enroll-btn {
        display: none;
    }
}
@media (max-width: 480px) {
  .section-title {
    white-space: nowrap;
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .enroll-section {
    padding: 70px 0;
  }

  .section-subtitle {
    margin-bottom: 36px;
    padding: 0 14px;
  }
}