/* GLOBAL VARIABLES & RESET ================================ */
:root {
    --color-accent-green: #28a745;
    --color-bg-light: #f0f4f5;
    --color-bg-white: #ffffff;
    --color-border: #e0e0e0;
    --color-primary-blue: #2454a0;
    --color-primary-dark: #22498d;
    --color-promo-green: #00b359;
    --color-secondary-orange: #fb5909;
    --color-text-dark: #181818;
    --color-text-light: #808080;

    --font-primary: 'Montserrat', sans-serif;

    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
    --spacing-sm: 1rem;
    --spacing-xl: 3rem;
    --spacing-xs: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
li,
dt,
dd,
th,
td {
    color: var(--color-text-dark);
}

/* HEADER & NAVIGATION ==================================== */
.header-main {
    background: var(--color-bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;

    .header-top {
        background: var(--color-bg-white);
    }

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

    .header-actions {
        .fa-heart:before {
            color: var(--color-primary-blue);
        }

        .fa-shopping-cart:before {
            color: var(--color-primary-blue);
        }

        .fa-bars:before {
            color: var(--color-primary-blue);
        }
    }

    .hamburger {
        background: none;
        border: none;
        color: var(--color-primary-dark);
        cursor: pointer;
        font-size: 1.5rem;
    }

    .search-form {
        width: 75% !important;
        position: relative;
    }

    .search-bar {
        position: relative;
        display: flex !important;
        justify-content: center !important;

        .form-control {
            border: 2px solid color-mix(in srgb, var(--color-primary-dark), transparent 40%);
            border-radius: 8px 0 0 8px;
            font-size: 0.95rem;
            padding: 0.75rem 1rem;
        }

        .btn-outline-secondary {
            border: 2px solid color-mix(in srgb, var(--color-primary-dark), transparent 40%);

            &:hover {
                color: var(--color-primary-blue);
            }
        }

        .list-group {
            align-items: stretch;
            display: flex !important;
            flex-direction: column;
            position: absolute; /* Garante que flutue sobre o conteúdo */
            top: 100%;
            left: 0;
            z-index: 1000;
            max-height: 450px; /* Exibe aprox 10 itens */
            overflow-y: auto;
            width: 100%;
            background-color: var(--color-bg-white);
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);

            .list-group-item-action {
                color: var(--color-text-dark);
                width: 100%;
                text-transform: none !important;
                border-left: none;
                border-right: none;
                border-top: none;
                border-bottom: 1px solid var(--color-border);
                padding: 0.75rem 1.25rem;
                transition: background 0.2s, color 0.2s;
                display: block; /* Garante que o link ocupe toda a linha */

                &:last-child {
                    border-bottom: none;
                }

                &:hover {
                    background-color: #D2E9FC !important; /* Azul claro (alert-message color) */
                    color: var(--color-primary-dark) !important;
                    text-decoration: none;
                }
            }
        }
    }

    .btn-icon {
        background: none;
        border: none;
        color: var(--color-text-dark);
        cursor: pointer;
        font-size: 1.3rem;
        transition: color 0.3s;

        &:hover {
            color: var(--color-primary-blue);
        }
    }

    .navbar-main {
        background: var(--color-primary-dark);

        .nav-list {
            display: flex;
            gap: 2rem;
            justify-content: center;
            list-style: none;
            margin: 0;
            padding: 0;

            li a {
                color: white;
                display: block;
                font-size: 1rem;
                font-weight: bold;
                padding: 1rem 0;
                text-decoration: none;
                transition: opacity 0.3s;

                &:hover {
                    opacity: 0.8;
                }
            }
        }
    }
}

.btn-ver-cursos {
    align-items: center;
    background: var(--color-primary-blue);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;

    &:hover {
        background: var(--color-primary-dark);
        box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
        transform: translateY(-2px);
    }

    a {
        color: var(--color-bg-white);
        text-decoration: none;
    }
}

/* HERO SECTION =========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-blue) 100%);
    min-height: 500px;
    overflow: hidden;
    position: relative;

    &::before {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0 0 L1000 0 L1000 1000 L200 1000 Z" fill="%23ff6600" opacity="0.8"/></svg>') no-repeat center;
        background-size: cover;
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
        content: '';
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        width: 60%;
    }

    .hero-content {
        padding: 4rem 0;
        position: relative;
        z-index: 1;
    }

    .hero-title {
        color: white;
        font-size: 4rem;
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    .senai-brand {
        color: white;
        font-style: italic;
    }

    .sua-vez {
        color: var(--color-secondary-orange);
    }

    .hero-cta {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        max-width: 400px;
        padding: 1.5rem 2rem;
    }

    .hero-subtitle {
        color: var(--color-text-dark);
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-installment {
        color: var(--color-secondary-orange);
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
    }

    .hero-digital {
        color: var(--color-text-light);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-hero {
        background: var(--color-secondary-orange);
        border-radius: 8px;
        color: white;
        display: inline-block;
        font-weight: 600;
        padding: 1rem 2rem;
        text-decoration: none;
        transition: transform 0.3s;

        &:hover {
            transform: translateY(-2px);
        }
    }
}

/* SHARED COMPONENTS (TITLES, SLIDERS) ==================== */
.section-title {
    color: var(--color-primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cities-slider-wrapper,
.courses-slider-wrapper,
.categories-slider-wrapper,
.testimonials-slider-wrapper {
    padding: 0 3rem;
    position: relative;
}

.slider-nav {
    align-items: center;
    background: var(--color-primary-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
    width: 40px;
    z-index: 10;

    &:hover {
        background: var(--color-primary-dark);
    }

    &.slider-prev {
        left: 0;
    }

    &.slider-next {
        right: 0;
    }

    /* Estado desabilitado */
    &[style*="pointer-events: none"] {
        opacity: 0.3;
        cursor: not-allowed;
        background: var(--color-text-light);
    }
}

/* CITIES & CATEGORIES SLIDERS =========================== */
.cities-slider,
.categories-slider {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;

    &::-webkit-scrollbar {
        display: none;
    }
}

.city-item,
.category-item {
    text-align: center;
    scroll-snap-align: start;
}

/* Grid Inteligente Cidades: 6 Itens no Desktop */
.city-item {
    flex: 0 0 calc((100% - 7.5rem) / 6);
    max-width: calc((100% - 7.5rem) / 6);

    .city-image {
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        height: 120px;
        margin: 0 auto 0.75rem;
        overflow: hidden;
        width: 120px;

        img {
            height: 100%;
            object-fit: cover;
            width: 100%;
        }
    }

    .city-name {
        color: var(--color-text-dark);
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
    }
}

/* Grid Categorias */
.category-item {
    flex: 0 0 calc((100% - 7.5rem) / 6);
    max-width: calc((100% - 7.5rem) / 6);

    .category-image {
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        height: 120px;
        margin: 0 auto 0.75rem;
        overflow: hidden;
        width: 120px;

        img {
            height: 100%;
            object-fit: cover;
            width: 100%;
        }
    }

    .category-name {
        color: var(--color-text-dark);
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
    }
}

/* COURSES SLIDER (GRID 3 ITENS) ========================= */
.courses-slider,
.testimonials-slider {
    align-items: stretch;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;

    &::-webkit-scrollbar {
        display: none;
    }
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex: 0 0 calc((100% - 3rem) / 3);
    flex-direction: column;
    max-width: calc((100% - 3rem) / 3);
    min-height: 100%;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s, box-shadow 0.3s;

    &:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
        z-index: 2;
    }

    .badge {
        border-radius: 8px;
        display: inline-block;
        font-size: 0.75rem;
        font-weight: bold;
        padding: 0.4rem 0.8rem;

        &.badge-promo {
            background: var(--color-promo-green);
            color: white;
            font-size: 0.85rem;
            padding: 0.5rem 1rem;
        }

        &.badge-energy {
            background: var(--color-secondary-orange);
            color: white;
        }
    }

    .course-image {
        flex-shrink: 0;
        height: 180px;
        position: relative;
        width: 100%;

        img {
            height: 100%;
            object-fit: cover;
            width: 100%;
        }
    }

    .course-badges {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        left: 1rem;
        position: absolute;
        top: 1rem;
    }

    .course-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 1.25rem;

        /* Badge de categoria dentro do body */
        .badge {
            align-self: flex-start;
            border-radius: 8px;
            display: inline-block;
            font-size: 0.75rem;
            font-weight: bold;
            max-width: fit-content;
            padding: 0.4rem 0.8rem;
            width: auto;
        }

        .course-title {
            color: var(--color-primary-dark);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            margin-top: 0.5rem;
            min-height: 2.4em;
        }

        .course-info {
            display: flex;
            flex: 1;
            flex-direction: column;
            gap: 0.5rem;

            .info-item {
                align-items: center;
                color: var(--color-text-light);
                display: flex;
                font-size: 0.85rem;
                gap: 0.5rem;

                i {
                    color: var(--color-primary-blue);
                    width: 16px;
                }
            }
        }
    }

    .course-footer {
        align-items: center;
        border-top: 1px solid var(--color-border);
        display: flex;
        justify-content: space-between;
        padding: 1.25rem;

        .course-price {
            flex: 1;

            .price-installment {
                color: var(--color-primary-dark);
                font-size: 1.2rem;
                font-weight: 700;
                margin: 0;
            }

            .price-total {
                color: var(--color-text-light);
                font-size: 0.85rem;
                margin: 0;
            }
        }

        .btn-course {
            background: var(--color-accent-green);
            border: none;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            transition: background 0.3s;

            &:hover {
                background: #218838;
            }
        }
    }

    .btn-favorite {
        align-items: center;
        background: white;
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        height: 36px;
        justify-content: center;
        position: absolute;
        right: 1rem;
        top: 1rem;
        transition: transform 0.3s;
        width: 36px;

        &:hover {
            transform: scale(1.1);
        }

        i {
            color: var(--color-primary-blue);
            font-size: 1.1rem;
        }
    }
}

/* SIDEBAR ACTIONS ====================================== */
.btn-enroll,
.btn-interest {
    background-color: var(--color-accent-green);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;

    &:hover {
        background-color: #218838;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
        color: white;
    }
}

.courses-see-more {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* BANNER TEXT HOME ===================================== */
.banner-text-home {
    padding: 2rem 0;
    width: 100%;

    .banner-wrapper {
        align-items: center;
        background-color: #f5f7fa;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 16px;
        display: flex;
        justify-content: center;
        overflow: hidden;
        padding: 4rem 2rem;
        position: relative;
        width: 100%;
    }

    .banner-content {
        color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.5;
        max-width: 900px;
        text-align: center;
        z-index: 1;

        .highlight,
        span,
        strong {
            color: inherit;
        }

        .highlight {
            color: var(--color-primary-blue);
        }
    }
}

/* TRUST SECTION (LOGOS) ================================ */
.trust-logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;

    .trust-logo {
        flex: 0 0 auto;
        transition: all 0.3s;

        img {
            height: auto;
            max-width: 150px;
            object-fit: contain;
        }
    }
}

/* TESTIMONIALS ========================================= */
.testimonials-slider {
    align-items: stretch;
    /* Garante que todos os cards tenham a mesma altura */
}

.testimonial-card {
    align-items: center;
    background: var(--color-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex: 0 0 calc((100% - 3rem) / 3);
    flex-direction: column;
    height: auto;
    min-height: 100%;
    margin-bottom: 5px;
    /* Spacing for shadow */
    max-width: calc((100% - 3rem) / 3);
    padding: 2rem 1.5rem;
    scroll-snap-align: start;
    text-align: center;

    .testimonial-image {
        border: 4px solid white;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        height: 80px;
        /* left: 50%; removido pois está em flex column */
        width: 80px;
        margin-bottom: 1rem;
        /* Adicionado para espaçamento */

        img {
            border-radius: 50%;
            height: 100%;
            object-fit: cover;
            width: 100%;
        }
    }

    .testimonial-quote {
        margin: 1rem 0 1rem;
        /* Ajustado */
        text-align: center;

        i {
            color: var(--color-primary-blue);
            font-size: 2rem;
        }
    }

    .testimonial-text {
        margin-bottom: 1.5rem;
        flex-grow: 1;
        /* Faz o texto ocupar o espaço disponível, empurrando o resto para baixo */
        display: flex;
        align-items: center;
        /* Centraliza o texto verticalmente se quiser, ou remova para topo */
        justify-content: center;

        p {
            color: var(--color-text-dark);
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0;
            display: -webkit-box;

            /* Limita número de linhas se desejar */
            -webkit-box-orient: vertical;
            overflow: hidden;
            /* Se quiser mostrar todo o texto sem cortar, remova o line-clamp */
        }
    }

    .testimonial-rating {
        margin-bottom: 1rem;
        text-align: center;
        margin-top: auto;
        /* Garante que fique no final caso o texto não empurre */

        i {
            color: var(--color-secondary-orange);
            font-size: 0.9rem;
        }
    }

    .testimonial-author {
        text-align: center;

        .author-name {
            color: var(--color-primary-dark);
            font-weight: 700;
            margin: 0;
        }

        .author-role {
            color: var(--color-text-light);
            font-size: 0.85rem;
            margin: 0;
        }
    }
}

/* FAQ SECTION ========================================== */
.faq-container {
    margin: 0 auto;
    max-width: 800px;
}

.faq-item {
    background: var(--color-bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;

    .faq-question {
        align-items: center;
        background: transparent;
        border: none;
        color: var(--color-primary-dark);
        cursor: pointer;
        display: flex;
        font-size: 1rem;
        font-weight: 600;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        text-align: left;
        transition: background 0.3s;
        width: 100%;

        &:hover {
            background: rgba(0, 102, 204, 0.05);
        }

        &.active {
            background: rgba(0, 102, 204, 0.1);
        }

        i {
            color: var(--color-primary-blue);
            font-size: 1rem;
        }
    }

    .faq-answer {
        display: none;
        padding: 0 1.5rem 1.25rem;

        p {
            color: var(--color-text-light);
            margin: 0;
            padding-top: 0.8rem;
        }
    }
}

/* FOOTER =============================================== */
.footer {
    background: var(--color-bg-light);
    color: var(--color-text-dark);

    .footer-logo img {
        display: block;
        height: auto;
        max-width: 200px;
    }

    .footer-description {
        color: var(--color-text-light);
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-title {
        color: var(--color-primary-dark);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .footer-links,
    .footer-contact {
        list-style: none;
        padding: 0;

        li {
            margin-bottom: 0.5rem;
        }
    }

    .footer-links a {
        color: var(--color-text-light);
        font-size: 0.9rem;
        text-decoration: none;
        transition: color 0.3s;

        &:hover {
            color: var(--color-primary-blue);
        }
    }

    .footer-contact li {
        color: var(--color-text-light);
        font-size: 0.9rem;
    }

    .social-icons {
        display: flex;
        gap: 1rem;

        .social-icon {
            align-items: center;
            border-radius: 50%;
            display: flex;
            height: 40px;
            justify-content: center;
            text-decoration: none;
            transition: transform 0.3s;
            width: 40px;

            &:hover {
                transform: translateY(-3px);
            }

            &.facebook {
                background: #3b5998;
                color: white;
            }

            &.instagram {
                background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
                color: white;
            }

            &.youtube {
                background: #ff0000;
                color: white;
            }
        }
    }

    .footer-copyright {
        border-top: 1px solid var(--color-border);
        padding-top: 2rem;
        
        .copyright-text {
            color: var(--color-text-light);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .copyright-brand {
            color: var(--color-primary-blue);
            font-weight: 600;
        }
    }
}

/* BTN FILTROS CURSO ==================================== */
.btn-filters-course {
    background-color: var(--color-primary-blue);
    border: 1px solid var(--color-primary-blue);
    border-radius: 8px;
    box-shadow: none;
    color: var(--color-bg-white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;

    &:hover {
        background: var(--color-primary-dark);
        box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
        transform: translateY(-2px);
    }
}

.btn-clear-filters {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-primary-blue);
    border-radius: 8px;
    box-shadow: none;
    color: var(--color-primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;

    &:hover {
        background: var(--color-bg-white);
        box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
        transform: translateY(-2px);
    }
}

/* MSN DE ALERTA ======================================== */
.alert-message {
    background-color: #D2E9FC;
    border-radius: 8px;
    color: var(--color-primary-dark);
    display: inline-block;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    margin: 0;
}

/* MOBILE MENU ========================================== */
.mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9998;

    &.active {
        display: block;
    }
}

.mobile-menu-container {
    background: var(--color-bg-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    left: -280px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transition: left 0.3s ease;
    width: 280px;
    z-index: 9999;

    &.active {
        left: 0;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    }

    /* HEADER DO MENU MOBILE */
    .mobile-menu-header {
        align-items: center;
        display: flex;
        justify-content: space-between;
        padding: 1.5rem;
        background: var(--color-bg-white);
        /* border-bottom: removed for cleaner look */

        .mobile-logo img {
            display: block;
        }
    }

    /* LISTA DE LINKS */
    .mobile-menu-content {
        .menu {
            list-style: none;
            margin: 0;
            padding: 1rem 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .menu-item {
            border-bottom: none;

            a {
                color: var(--color-text-dark);
                display: block;
                font-weight: 600;
                font-size: 1rem;
                padding: 12px 20px;
                text-decoration: none;
                margin: 0 1rem;
                border-radius: 8px;
                transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

                &:hover, &:focus {
                    background-color: color-mix(in srgb, var(--color-primary-blue), transparent 92%);
                    color: var(--color-primary-blue);
                    padding-left: 28px; /* Slide effect */
                    transform: translateX(4px);
                }
            }
        }
    }
}

.btn-favorite.active i,
.btn-acao.active i,
.fa-heart.text-danger {
    color: #004587 !important;
}

.fas.fa-heart {
    color: #004587 !important;
}

/* Customização do Chatbot Boteria */
.gAecrb {
    background-color: #2454a0 !important;
}

/* MEDIA QUERIES ======================================== */
/* Notebook Grande (1400px) */
@media (max-width: 1400px) {

    .city-item,
    .category-item {
        flex: 0 0 calc((100% - 6rem) / 5);
        max-width: calc((100% - 6rem) / 5);
    }
}

/* Notebook (1200px) */
@media (max-width: 1200px) {

    .city-item,
    .category-item {
        flex: 0 0 calc((100% - 4.5rem) / 4);
        max-width: calc((100% - 4.5rem) / 4);
    }

    /* Exibir 2 itens para Cursos e Depoimentos abaixo de 1200px */
    .course-card,
    .testimonial-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
}

/* Tablet (991px) */
@media (max-width: 991px) {

    .header-main {
        .search-form {
            width: 100% !important;
        }
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .city-item,
    .category-item {
        flex: 0 0 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }

    /* Mantém 2 itens (herda de 1200px), mas garante caso haja especificidade */
    .course-card,
    .testimonial-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
}

/* Mobile Menor (768px) */
@media (max-width: 768px) {

    .cities-slider-wrapper,
    .courses-slider-wrapper,
    .categories-slider-wrapper {
        padding: 0 2.5rem;
    }

    .hero-installment {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .slider-nav {
        font-size: 0.9rem;
        height: 36px;
        width: 36px;
    }

    .banner-text-home {
        font-size: 1.1rem;
        padding: 2rem 1rem;
    }

    /* Exibir 1 item para Cursos e Depoimentos em Mobile (768px para baixo) */
    .course-card,
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile Pequeno (576px / 600px - Unificado) */
@media (max-width: 600px) {

    .city-item,
    .category-item {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }

    .city-item .city-image,
    .category-item .category-image {
        width: 90px;
        height: 90px;
    }

    /* Garante 1 item (já definido em 768px, mas reforça) */
    .course-card,
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .course-card .course-footer {
        flex-wrap: wrap;
        gap: 1rem;
        
        .course-price {
            width: 100%;
        }

        .btn-course {
            width: 100%;
            display: flex;
            justify-content: center;
        }
    }
}