/* Estilos gerais */
:root {
    /* --primary-color: #0d6efd; */ /* Azul Bootstrap Original */
    --primary-color: #2c6bac; /* Azul Educacional mais suave */
    --primary-hover-color: #23568a;
    /* --secondary-color: #6c757d; */ /* Cinza Bootstrap Original */
    --secondary-color: #6b7280; /* Cinza Neutro */
    /* --success-color: #198754; */ /* Verde Bootstrap Original */
    --success-color: #107451; /* Verde Educacional */
    --info-color: #0ea5e9; /* Azul claro */
    --warning-color: #f59e0b; /* Âmbar */
    --danger-color: #dc2626; /* Vermelho */
    --light-color: #f3f4f6; /* Cinza claro */
    --dark-color: #1f2937; /* Cinza escuro */
    --accent-color: #f59e0b; /* Âmbar como cor de destaque */

    /* Adicionando mais variáveis para consistência */
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafb; /* Fundo levemente mais claro */
    color: var(--dark-color);
    line-height: 1.7; /* Aumentando um pouco para melhor leitura */
    font-size: 16px; /* Definindo tamanho base */
}

/* Header & Navigation */
.main-header {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.95); /* Fundo branco com leve transparência */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0; /* Reduzindo padding vertical */
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem; /* Tamanho do logo/texto */
    display: flex;
    align-items: center;
}

/* .navbar-brand img {
    margin-right: 10px; 
} */ /* Se tiver um logo, pode usar isso */

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-color) !important;
    padding: 0.75rem 1rem !important; /* Ajustando padding dos links */
    border-radius: var(--border-radius);
    margin: 0 0.25rem; /* Espaço entre os links */
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
    background-color: rgba(44, 107, 172, 0.1); /* Fundo sutil no hover */
}

/* Hero Section */
.hero-section {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%); */ /* Gradiente original */
    background: linear-gradient(120deg, var(--primary-color) 0%, #1e40af 100%); /* Gradiente mais suave */
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem; /* Reduzido */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo sutil no hero */
.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800; /* Negrito mais forte */
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Sombra mais sutil */
    font-size: 2.5rem; /* Tamanho maior */
}

.hero-section p {
    font-size: 1.25rem; /* Tamanho maior */
    margin-bottom: 2rem;
    max-width: 700px; /* Limitando largura para melhor leitura */
    opacity: 0.95; /* Leve transparência */
}

/* Botões do Hero */
.hero-section .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.hero-section .btn-light {
    color: var(--primary-color);
    background-color: white;
}

.hero-section .btn-light:hover {
    background-color: #f0f0f0;
}

.hero-section .btn-outline-light {
    border-width: 2px;
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Refinando Feature Boxes para o Carousel */
.features-carousel .item {
    padding: 0 10px; /* Espaçamento interno para os itens do carousel */
}


/* Seção de Features */
section {
    padding: 3rem 0; /* Padding vertical consistente */
}

/* Features */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem; /* Ajustado */
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* Para alinhar itens dentro da box */
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(44, 107, 172, 0.2); /* Cor consistente */
}

.feature-box i {
    font-size: 2.5rem; /* Tamanho do ícone */
    color: var(--primary-color); /* Cor principal */
    margin-bottom: 1.25rem; /* Espaço maior abaixo do ícone */
    /* Estilo de fundo circular removido para um visual mais limpo */
    /* width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto; */
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-box p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem; /* Espaçamento ajustado */
    flex-grow: 1; /* Empurra o small para o final */
}

.feature-box small {
    color: #6b7280; /* Cor para detalhes menores */
    font-style: italic;
}

/* Refinando Cards de Cursos */
.curso-card {
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-top: 4px solid #e5e7eb; /* Borda sutil no topo */
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-top-color: #6b7280; /* Cor mais neutra no hover */
}

/* Badge e Preço - Cores Neutras */
.curso-card .badge.bg-secondary {
    background-color: #6b7280 !important; /* Cinza para carga horária */
}

.curso-card .h5.text-secondary {
    color: #6b7280 !important; /* Cinza para o preço */
    font-weight: 700; /* Negrito para o preço */
}


/* Carousel de Banners */
.carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.carousel-item {
    position: relative;
    height: 400px; /* Altura ajustada */
}

.carousel-item .bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e3a8a) !important; /* Gradiente consistente */
}

/* Carousel Caption - Melhor legibilidade */
.carousel-caption {
    background: rgba(0, 0, 0, 0.65); /* Fundo mais escuro */
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin: 20px;
    color: white; /* Texto branco */
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
}

.carousel-caption h5 {
    color: white; /* Título branco */
    font-weight: 700;
}

.carousel-caption a.btn-light {
    color: var(--primary-color); /* Cor do botão */
    font-weight: 600;
}

.carousel-indicators [data-bs-target] {
    background-color: white;
    opacity: 0.7;
}

.carousel-indicators .active {
    background-color: white;
    opacity: 1;
}

/* Seção de Cursos em Destaque */
#destaques-cursos h2 {
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Cards de Cursos */
.card {
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    background-color: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-top: 4px solid var(--primary-color); /* Detalhe sutil no topo */
}

.card-img-top {
    height: 180px; /* Altura ajustada */
    object-fit: cover;
    background-color: #e5e7eb; /* Fundo para quando não há imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.card-img-top i.fa-graduation-cap {
    font-size: 3rem;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--secondary-color);
    flex-grow: 1;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.card .d-flex.align-items-center {
    margin-top: auto; /* Empurra para o final do card-body */
}

.card .badge {
    font-size: 0.8rem;
    padding: 0.5em 0.75em;
}

.card .h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
}

.card .btn {
    margin-top: 1rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Seção "Por que escolher nossa escola?" */
.card.border-0.shadow {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card.border-0.shadow h2 {
    font-weight: 800;
    color: var(--primary-color);
}

.card.border-0.shadow .d-flex i.fa-check-circle {
    color: var(--success-color);
    flex-shrink: 0; /* Impede o ícone de encolher */
}

.card.border-0.shadow .d-flex h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card.border-0.shadow .d-flex p {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, var(--dark-color), #373589); /* Gradiente escuro */
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 2rem 0;
}

.main-footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.main-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.main-footer p, .main-footer a {
    color: #d1d5db; /* Cinza claro para texto */
    font-size: 0.95rem;
}

.main-footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
    padding-left: 5px;
}

.main-footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.main-footer .text-center p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Forms (Modals e Páginas) */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e5e7eb;
    padding: 0.85rem 1.1rem;
    transition: var(--transition);
    font-size: 1rem;
    background-color: #f9fafb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 107, 172, 0.2);
    background-color: white;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #0d6540;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
}

/* Pagination */
.pagination {
    margin: 2.5rem 0;
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border-color: #d1d5db;
    padding: 0.7rem 1.1rem;
    border-radius: var(--border-radius);
    margin: 0 0.2rem;
    transition: var(--transition);
    font-weight: 500;
}

.page-link:hover {
    color: var(--primary-hover-color);
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }

    .feature-box {
        margin-bottom: 1.5rem;
    }

    .carousel-item {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section .d-grid.d-sm-flex {
        justify-content: center !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .carousel-item {
        height: 280px;
    }

    .carousel-caption {
        display: none; /* Oculta caption em mobile para evitar sobreposição */
    }

    .card-img-top {
        height: 150px;
    }

    .main-content {
        padding: 15px;
    }

    .main-footer {
        text-align: center;
    }

    .main-footer .text-start {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-right: 0;
    }

    .feature-box {
        padding: 1.5rem 1rem;
    }

    .feature-box i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }

    .card .btn {
        width: 100%;
    }

    .navbar-nav {
        padding: 1rem 0;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.7s;
    animation-fill-mode: both;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal custom styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    box-shadow: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
}

/* Estilos específicos para páginas internas podem ser adicionados aqui */
/* Por exemplo, para a página de curso, contato, etc. */

