/* Homepage Optimized CSS - Escola Gratuita v5.8 */

.site-mission {
    background-color: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.site-mission p {
    margin: 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Novo estilo para o campo de busca */
.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 300px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    padding-left: 35px;
    padding-right: 40px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: white;
}

.search-input:focus {
    border-color: #1a2035;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 32, 53, 0.3);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.search-input:focus + .search-icon {
    color: #1a2035;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1a2035;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background-color: #2c3e50;
}

/* Ajuste para o cabeçalho */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: nowrap;
}

/* Novo estilo para as categorias no cabeçalho */
.header-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.header-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.header-categories ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-categories ul li {
    margin: 0 5px;
}

.header-categories ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-categories ul li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para tornar os cards de cursos totalmente clicáveis */
.course-card-ecommerce {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.course-card-ecommerce:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.course-content-ecommerce h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease;
}

.course-card-ecommerce:hover .course-content-ecommerce h3 {
    color: #1a2035;
}

.btn-ecommerce {
    position: relative;
    z-index: 2; /* Garantir que o botão fique acima do link do card */
}

/* Estilos para tornar os cards de categorias totalmente clicáveis */
.category-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease;
}

.category-card:hover .category-content h3 {
    color: #1a2035;
}

.category-content .btn {
    position: relative;
    z-index: 2; /* Garantir que o botão fique acima do link do card */
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-categories {
        order: 3;
        margin: 5px 0;
        justify-content: flex-start;
        width: 100%;
    }
    
    .search-container {
        max-width: 100%;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
}

