/* =========================================
   VARIAVEIS TEMA INFANTIL (PASTEL)
========================================= */
:root {
    --color-pink: #FF6B81;
    --color-pink-light: #F48FB1;
    --color-blue: #4EA8DE;
    --color-blue-light: #B3E5FC;
    --color-yellow: #FED330;
    --color-yellow-light: #FFF59D;
    --color-orange: #FA8231;
    --color-green: #26DE81;
    --color-green-light: #A5D6A7;

    --bg-color: #FAFAFA;
    --text-dark: #2F3640;
    --text-light: #718093;
    --white: #FFFFFF;

    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --shadow-soft: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 25px rgba(0,0,0,0.1);
    --radius-bubbly: 30px;
}

/* =========================================
   RESET GENÉRICO
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-highlight { color: var(--color-pink); }
.text-blue { color: var(--color-blue); }
.text-orange { color: var(--color-orange); }
.text-green { color: var(--color-green); }

/* =========================================
   HEADER & NAVBAR
========================================= */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-pink);
    font-weight: 700;
}

.main-menu ul {
    display: flex;
    gap: 15px; /* Aproximei os itens porque a hitbox vai ser maior */
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
    padding: 10px 15px; /* hitbox em retangulo maior */
    border-radius: 12px;
}

.nav-link:hover {
    color: var(--color-blue);
    background-color: var(--color-blue-light); /* opcional para realçar a hitbox visivelmente */
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

/* Área que conecta o menu dropdown ao botão original com hitbox invisivel */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* Preenche o espaco entre o botao e o menu, evita que o rato fuja e feche */
}

.dropdown .arrow {
    font-size: 0.8rem;
    margin-left: 3px;
    display: inline-block;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-hover);
    border-radius: 15px;
    padding: 15px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--color-blue-light);
    color: var(--color-blue);
    padding-left: 25px; /* Efeito hover divertido */
}

.nav-btn {
    background-color: var(--color-yellow);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.nav-btn:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
}

/* Mobile Toggle Hidden by default */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    background-color: var(--color-blue-light);
    position: relative;
    padding: 80px 0 150px 0;
    text-align: center;
}

.hero-text-box {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-pink);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.4);
}
.btn-primary:hover {
    background-color: #ff4757;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--color-pink);
    border: 2px solid var(--color-pink);
}
.btn-secondary:hover {
    background-color: var(--color-pink-light);
    transform: translateY(-3px);
}

/* SVGs Waves */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-bottom svg { display: block; width: calc(100% + 1.3px); height: 80px; }
.wave-bottom .shape-fill { fill: var(--bg-color); }

/* =========================================
   SECTIONS GENERAL
========================================= */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   O COLÉGIO (Intro)
========================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.intro-images {
    position: relative;
    height: 400px;
}

.img-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    animation: morph 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--color-yellow-light);
    top: 10%;
    right: 10%;
    z-index: 2;
    /* Adicionar um placeholder bacano ou a sua imagem real por CSS se quiser*/
}

.blob-2 {
    width: 250px;
    height: 250px;
    background-color: var(--color-pink-light);
    bottom: 0;
    left: 0;
    z-index: 1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* =========================================
   CICLOS (Ensino)
========================================= */
.ciclos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ciclo-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-bubbly);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
}

.ciclo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-yellow:hover { border-color: var(--color-yellow); }
.card-pink:hover { border-color: var(--color-pink); }
.card-blue:hover { border-color: var(--color-blue); }
.card-green:hover { border-color: var(--color-green); }

.card-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-bubbly);
    margin-bottom: 20px;
    height: 250px;
    background-color: #eee; /* Fallback placeholder */
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ciclo-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.ciclo-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.ciclo-card p {
    color: var(--text-light);
}

/* =========================================
   ATIVIDADES
========================================= */
.atividades-section {
    background-color: var(--color-yellow-light);
    position: relative;
    padding-top: 120px; /* espaco pra onda */
}

.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-top svg { display: block; width: calc(100% + 1.3px); height: 60px; }
.wave-top .shape-fill { fill: var(--bg-color); }

.atividades-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.atividade-item {
    text-align: center;
    width: 150px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 0 auto 15px auto;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.atividade-item:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.icon-green { background-color: var(--color-green-light); color: var(--color-green); }
.icon-blue { background-color: var(--color-blue-light); color: var(--color-blue); }
.icon-pink { background-color: var(--color-pink-light); color: var(--color-pink); }
.icon-yellow { background-color: var(--white); color: var(--color-orange); }

.atividade-item h4 {
    font-size: 1.3rem;
}

/* =========================================
   VANTAGENS
========================================= */
.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vantagem-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--color-orange);
    transition: transform 0.3s;
}

.vantagem-card:hover {
    transform: translateY(-5px);
}

.v-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(0,0,0,0.05);
    font-weight: 800;
}

.vantagem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.vantagem-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* =========================================
   BANNER PREÇÁRIOS
========================================= */
.banner-precarios {
    background-color: var(--color-blue);
    padding: 60px 0;
    margin-top: 50px;
    z-index: 2;
    position: relative;
}

.text-white { color: var(--white) !important; }
.text-yellow { color: var(--color-yellow) !important; }

.precarios-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.d-inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    font-size: 1.2rem;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    position: relative;
    padding-top: 100px;
}

.wave-top-footer {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-top-footer svg { display: block; width: calc(100% + 1.3px); height: 50px; }
.wave-top-footer .shape-fill { fill: var(--bg-color); }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer h4 {
    color: var(--color-yellow);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin: 15px 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}
.footer-links ul li a:hover {
    color: var(--color-pink);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.contact-item p {
    color: rgba(255,255,255,0.7);
}

.footer-schedule p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* =========================================
   NOTÍCIAS (SOCIAL FEED ESTILO)
========================================= */
.noticias-section {
    background-color: var(--white);
    padding: 60px 0;
}
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.noticia-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.noticia-img-wrap {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust based on original image aspect ratio */
}
.noticia-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.noticia-overlay-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.noticia-overlay-logo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    padding: 3px;
    object-fit: contain;
}
.noticia-content {
    padding: 25px 25px;
}
.noticia-categoria {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #D85D83; /* Pink from screenshot */
    text-transform: uppercase;
    margin-bottom: 12px;
}
.noticia-categoria svg {
    color: #D85D83;
}
.noticia-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   RESPONSIVO
========================================= */
@media (max-width: 900px) {
    .intro-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 2.8rem; }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-dark);
        height: 3px;
        width: 30px;
        border-radius: 2px;
        position: relative;
    }
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        width: 100%;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 400ms ease-in-out;
        box-shadow: var(--shadow-soft);
    }
    
    .main-menu ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--color-blue-light);
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }

    .nav-toggle:checked ~ .main-menu {
        transform: scale(1, 1);
    }
}
