/*---------------------------------------
   COURSES             
-----------------------------------------*/
.courses-container {
    padding: 40px 0;
    background: var(--section-bg-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.course-image {
    position: relative;
    width: 100%;
    height: 250px;
}

.course-image img[data-image-type="desktop"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image img[data-image-type="mobile"] {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
  
    padding: 8px 16px;
    border-radius: var(--border-radius-large);
    font-weight: var(--font-weight-bold);
    font-size: var(--copyright-font-size);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: var(--border-radius-large);
    font-size: var(--copyright-font-size);
    font-weight: var(--font-weight-bold);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-new {
    background: linear-gradient(45deg, var(--secondary-color), #6a75ca);
    color: var(--white-color);
}

.status-popular {
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    color: var(--white-color);
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
}

.course-content h3 {
    font-size: var(--h5-font-size);
    margin-bottom: 15px;
    color: var(--dark-color);
}

.course-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: var(--copyright-font-size);
    color: var(--p-color);
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-price {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: var(--p-color);
    margin-right: 10px;
}

.current-price {
    font-size: var(--h5-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

/* Estilo sofisticado para cursos em breve */
.coming-soon {
    position: relative;
    background: linear-gradient(45deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    backdrop-filter: blur(5px);
}

.coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color), 0.1) 0%,
        rgba(var(--secondary-color), 0.05) 100%);
    border-radius: var(--border-radius-medium);
    z-index: 1;
}

.coming-soon .course-status {
    background: linear-gradient(45deg, var(--dark-color), var(--primary-color));
    color: var(--white-color);
}

.coming-soon .course-content {
    opacity: 0.9;
}

.coming-soon .custom-btn {
    background: var(--dark-color);
    opacity: 0.9;
}

.coming-soon .course-image img {
    filter: grayscale(0.5) brightness(0.95);
}

/* Botão Ver Mais */
.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius-large);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more-btn:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Responsividade para cursos */
@media screen and (max-width: 991px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .course-content h3 {
        font-size: var(--h6-font-size);
    }
    
    .current-price {
        font-size: var(--h6-font-size);
    }
}

@media screen and (max-width: 480px) {
    /* Navbar transparente e fixa */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: transparent;
        box-shadow: none;
        height: 70px;
    }

    /* Área preta com gradiente na parte inferior */
    .mobile-black-area {
        display: block;
        height: 70px;
        background: #000000;
        width: 100%;
        position: relative;
    }

    /* Gradiente sobre o banner */
    .hero-carousel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(
            to bottom,
            #000000 0%,
            rgba(0, 0, 0, 0) 100%
        );
        z-index: 2;
    }

    /* Esconder em desktop */
    @media screen and (min-width: 481px) {
        .mobile-black-area {
            display: none;
        }
    }

    /* Carousel */
    .hero-carousel {
        height: 380px;
        position: relative;
        background: none;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .course-card {
        flex-direction: row;
        height: 140px;
        margin-bottom: 1px;
        border-radius: var(--border-radius-medium);
    }

    .course-image {
        width: 140px;
        height: 140px;
        flex-shrink: 0;
    }

    .course-status {
        top: 8px;
        left: 8px;
        padding: 4px 12px;
        font-size: 12px;
        border-radius: 15px;
    }

    .course-content {
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        height: 140px;
        overflow: hidden;
    }

    .course-content h3 {
        font-size: 16px;
        line-height: 1.1;
        margin: 0;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 24px;
    }

    .course-content p {
        font-size: 9px;
        line-height: 1.1;
        margin: 0;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 20px;
    }

    .course-details {
        margin: 15px 0px 0px 0px;
        display: flex;
        flex-direction: row;
        gap: 4px;
        flex-wrap: wrap;
    }

    .course-details span {
        font-size: 9px;
        line-height: 1;
        display: flex;
        align-items: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .course-details i {
        font-size: 9px;
        margin-right: 2px;
    }

    .course-price {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .original-price {
        font-size: 9px;
        margin-right: 4px;
        white-space: nowrap;
    }

    .current-price {
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
    }

    .enrollment-fee {
        font-size: 10px;
        color: var(--p-color);
        display: block;
        margin-top: 2px;
    }

    .course-overlay {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 11px;
        background: var(--primary-color);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .course-overlay .badge {
        padding: 0;
        background: none !important;
        color: var(--white-color);
        font-size: inherit;
        font-weight: 500;
    }

    .course-overlay .bg-primary {
        background: none !important;
    }

    .course-card .custom-btn,
    .course-card .btn {
        display: none;
    }

    .carousel-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0) 100%
        );
        z-index: 1;
    }

    .carousel-content {
        position: relative;
        z-index: 2;
    }

    .carousel-slide img {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        object-fit: cover;
        object-position: right center;
    }

    .hero-text {
        position: relative;
        z-index: 2;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .hero-text h2 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 6px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .hero-text p {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 15px;
        max-width: 90%;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .hero-carousel .carousel-content {
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .hero-carousel .hero-text {
        margin-top: 60px;
        text-align: left;
    }

    .hero-carousel .hero-title-wrap {
        margin-bottom: 15px !important;
    }

    .hero-carousel h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero-carousel h2 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 10px !important;
    }

    .hero-carousel p {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 15px !important;
    }

    .hero-carousel .feature-list,
    .hero-carousel .features-grid,
    .hero-carousel .promo-box {
        margin-bottom: 20px !important;
    }

    .carousel-indicators {
        bottom: 10px !important;
        margin-bottom: 0 !important;
    }

    .carousel-indicators .indicators-wrapper {
        margin-bottom: -20px;
    }

    .courses-section {
        padding: 0;
    }

    /* Esconde as setas de navegação no mobile */
    .carousel-nav .nav-button {
        display: none;
    }

    /* Garante que o carousel seja "touchable" */
    .carousel-container {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }

    .carousel-container:active {
        cursor: grabbing;
    }
}

/* Versão desktop mantém o padding original */
@media screen and (min-width: 481px) {
    .courses-section {
        background: var(--section-bg-color);
        position: relative;
        overflow: hidden;
        padding: 0px 0;
    }
}

/* Por padrão (desktop), mostra apenas a imagem desktop */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

/* Em mobile, inverte: esconde desktop e mostra mobile */
@media screen and (max-width: 480px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Configuração padrão para todas as imagens mobile */
.course-image .mobile-only {
    display: none;
}

.course-image .desktop-only {
    display: block;
}

/* Controle de visibilidade no mobile */
@media screen and (max-width: 480px) {
    .course-image img[data-image-type="desktop"] {
        display: none;
    }
    
    .course-image img[data-image-type="mobile"] {
        display: block;
    }
} 