/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Utility Classes */
.hidden-sm {
    display: none;
}

.hidden-md {
    display: none;
}

.hidden-lg {
    display: none;
}

.lg-hidden {
    display: block;
}

@media (min-width: 640px) {
    .hidden-sm {
        display: block;
    }
}

@media (min-width: 768px) {
    .hidden-md {
        display: block;
    }

    .md-hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hidden-lg {
        display: block;
    }

    .lg-hidden {
        display: none;
    }
}

/* Background */
.bg-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-container {
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 2rem;
    }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    height: 4rem;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: #007fc9;
    border: none;
    margin-right: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: #9dbeff;
}

.brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 100%;
    max-width: 170px;
}

.brand-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


.brand-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.search-input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    width: 20rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    background-color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #004497 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #004497 100%);
}

/* Sidebar */
.main-container {
    display: flex;
}

.sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    z-index: 40;
    width: 20rem;
    background: white;
    box-shadow: 4px 0 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        position: static;
        transform: translateX(0);
        height: calc(100vh - 4rem);
    }
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #007fc9 0%, #004497 100%);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #eee;
}

.sidebar-close {
    background: none;
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-close:hover {
    background-color: #f3f4f6;
}

.mobile-search {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.categories-section {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.categories-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem;
    border-radius: 1.5rem;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    /* Transições suaves */
}

/* Fundo animado (inicialmente escondido à esquerda) */
.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Começa fora da view */
    width: 100%;
    height: 100%;
    background-color: #9fcfff;
    /* Cor do seu hover original */
    z-index: -1;
    border-radius: 1.5rem;
    transition: left 0.3s ease-in-out;
    /* Animação apenas do left */
}

/* Hover: animação da esquerda para direita */
.category-button:hover::before {
    left: 0;
}

/* Estado ativo (sem animação, fundo estático) */
.category-button.active {
    background-color: #b3d4ff;
    /* Cor do seu active original */
    border-color: #004497;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: inherit;
    /* Mantém a cor do texto */
}

.category-button.active::before {
    display: none;
    /* Remove o pseudo-elemento no active */
}

/* Garante que o texto fique acima do fundo animado */
.category-button>* {
    position: relative;
    z-index: 2;
}

/* Garante que o texto fique acima do fundo animado */
.category-button span,
.category-button i {
    position: relative;
    z-index: 1;
}

.category-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.category-button:hover .category-icon {
    transform: scale(1.05);
}

.category-button.active .category-icon {
    background-color: #3b82f6 !important;
}

.category-name {
    font-weight: 500;
    color: #374151;
}

.category-button.active .category-name {
    color: #1e40af;
}

.category-count {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-button.active .category-count {
    background-color: #3b82f6;
    color: white;
}

.stats-summary {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.stats-summary h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-label {
    color: #6b7280;
}

.stat-value {
    font-weight: 500;
    color: #111827;
}

.stat-value-green {
    font-weight: 500;
    color: #059669;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
}

.content-padding {
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .content-padding {
        padding: 2rem;
    }
}

.section-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #f7f7f7;
    margin-bottom: 0.5rem;
}

.main-subtitle {
    color: #eee;
    font-size: 1.125rem;
}

.results-badge {
    background-color: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.active-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-label {
    font-size: 0.875rem;
    color: #eee;
}

.filter-badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.clear-filter-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.clear-filter-btn:hover {
    color: #2563eb;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.course-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.category-badge {
    display: none;
/*     display: flex; */
    align-items: center;
    gap: 0.25rem;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.course-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.course-card:hover .course-title {
    color: #3b82f6;
}

.course-description {
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    --webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-filled {
    color: #fbbf24;
    fill: currentColor;
}

.course-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
}

.course-action {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #004497 100%);
    color: #f7f7f7;
    border: none;
    padding: 0.75rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.course-action:hover {
    background: linear-gradient(135deg, #2563eb 0%, #007fc9 100%);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 24rem;
    margin: 0 auto;
}

.no-results-icon {
    width: 4rem;
    height: 4rem;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.no-results-icon svg {
    width: 2rem;
    height: 2rem;
    color: #9ca3af;
}

.no-results h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.btn-outline {
    background: none;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Icons */
.icon,
.icon-white,
.icon-blue,
.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    color: #fff;
}

.icon-white {
    color: white;
}

.icon-blue {
    color: #3b82f6;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* Category Colors */
.bg-blue {
    background-color: #3b82f6;
}

.bg-green {
    background-color: #10b981;
}

.bg-red {
    background-color: #ef4444;
}

.bg-purple {
    background-color: #8b5cf6;
}

.bg-orange {
    background-color: #f97316;
}

.bg-teal {
    background-color: #14b8a6;
}

.bg-indigo {
    background-color: #6366f1;
}

.bg-yellow {
    background-color: #eab308;
}

.home-btn {
    position: relative;
    padding: 8px 0;
    color: #007fc9;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s linear;
}

.home-btn::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    height: 5px;
    border-radius: 10px;
    background-color: #00a5b1;
    transition: all 0.3s cubic-bezier(1, 1, 1, 1);
}

.section-header {
    background: linear-gradient(135deg, #007fc9 0%, #004497 100%);
    width: 100%;
    padding: 20px;
    border-radius: 2rem;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 12px;
    /* Largura da barra de rolagem */
}

/* Estilizando a parte interna da barra de rolagem */
::-webkit-scrollbar-track {
    background: #303030;
    /* Cor do fundo da barra de rolagem */
}

/* Estilizando o polegar da barra de rolagem */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to top, #003a92, #00a2ff);
    /* Cor do polegar da barra de rolagem */
    border-radius: 15px;
    /* Bordas arredondadas no polegar */
}

/* Cor do polegar ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: #00415f;
    /* Cor do polegar ao passar o mouse */
}

::selection {
    background-color: #001824;
    color: #fff;
}

/* Whatsapp Style */
#whats {
    position: fixed;
    bottom: 3rem;
    right: 2.5rem;
    z-index: 9999;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#whats:hover {
    filter: brightness(150%);
}

.whats-img {
    width: 55px;
    transition: all 0.3s ease;
}

.whats-api {
    position: fixed;
    bottom: 3rem;
    right: 2.5rem;
    z-index: 9999;
    border-radius: 50px;
    cursor: pointer;
}