@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Arkina';
    src: url('../fonts/Arkina.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bagus';
    src: url('../fonts/Bagus.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Visual Identity Colors (MIV) */
    --primary-color: #345478;       /* Deep Navy Blue - Specialist, authority, safe harbor */
    --secondary-color: #9abde3;     /* Light Sky Blue - Welcoming, calm, Nossa Senhora's mantle */
    --accent-orange: #c05f2b;       /* Terracotta/Orange - Warmth, vitality, children */
    --accent-yellow: #f7d27f;       /* Golden Yellow - Joy, hope, energy */
    --accent-peach: #efc6a3;        /* Soft Peach/Gold - Mother's hug, cozy */
    
    /* Neutrals and Backgrounds */
    --primary-light: #f4f8fc;       /* Very soft blue for background cards */
    --accent-green: #f0fdf4;        /* Soft green fallback */
    --bg-light: #fff6df;            /* Soft brand off-white/beige - welcoming, non-sterile */
    --bg-white: #ffffff;
    --text-main: #3d444c;           /* Charcoal - highly legible */
    --text-muted: #838281;          /* Muted gray */
    
    /* Bordas e Sombras */
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 8px 30px rgba(52, 84, 120, 0.06);
    --shadow-hover: 0 16px 40px rgba(52, 84, 120, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Tamanhos de Título Responsivos */
h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 4vw, 1.6rem); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

ul {
    list-style: none;
}

/* Utilitários */
.text-center { text-align: center; }
.section { 
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    overflow: hidden;
    padding: 100px 0; /* More balanced padding */
}
.bg-light { background-color: var(--primary-light); }
.bg-white { background-color: var(--bg-white); }
.bg-doodle {
    background-image: url('../iDENTIDADE VISUAL/Identidade Visual/background_doodles.png');
    background-size: 1000px;
    background-attachment: fixed;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .section {
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 0 !important;
        display: block !important; /* Desprende do flex para evitar squashing */
    }
    .container {
        padding: 0 15px;
    }
}

/* Blobs de Fundo (Formas Orgânicas) */
.blob-bg {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}
.blob-1 {
    top: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
}
.blob-2 {
    bottom: 10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-green) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.3;
}
.blob-3 {
    top: 40%; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.15;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 8px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(52, 84, 120, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 84, 120, 0.3);
}
.btn-outline {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}
.btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Dots de Navegação Lateral */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.side-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    transition: var(--transition);
    border: 1px solid white;
}
.side-dot.active {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--primary-color);
}
@media (max-width: 991px) {
    .side-nav { display: none; }
    .section { height: auto; padding: 6rem 0; min-height: auto; scroll-snap-align: none; }
    html { scroll-snap-type: none; }
}

/* Header Navbar */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.header.scrolled {
    padding: 0.2rem 0;
    box-shadow: var(--shadow-soft);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    transition: var(--transition);
}
.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(52, 84, 120, 0.08);
}
.header.scrolled .logo-img {
    height: 40px;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: var(--transition);
}

/* Cursive Accent for Brand Touch (Arkina Font) */
.cursive-highlight {
    font-family: 'Caveat', cursive;
    color: var(--accent-orange);
    font-size: 1.5em;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-color); }

@media (max-width: 991px) {
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-white); flex-direction: column; justify-content: center;
        box-shadow: none; transition: 0.4s ease;
        z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .mobile-toggle { display: block; z-index: 1000; }
    .nav-link { font-size: 1.5rem; margin: 1rem 0; }
}

/* Animações Flúidas (Scroll Reveal) - Mais lentas e elegantes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Hero Section Refinada (Mais visual, Menos texto) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.hero-badge {
    background-color: var(--secondary-color);
    color: #854d0e;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-title span { color: var(--primary-color); }
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 80%;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; }

/* Hero Imagem com overlapping orgânico */
.hero-image-wrapper {
    position: relative;
    padding-bottom: 2rem;
}
.hero-img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    transform: rotate(2deg);
    transition: var(--transition);
}
.hero-img-main:hover { transform: rotate(0deg) scale(1.02); }
.hero-card-float {
    position: absolute;
    bottom: 0; left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Características / Cards (Grid assimétrica e leve) */
.features-section {
    position: relative; /* just in case */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* Leve assimetria nos cards */
.feature-card:nth-child(even) { transform: translateY(20px); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.feature-card:nth-child(even):hover { transform: translateY(10px); }

.feature-icon-wrapper {
    width: 70px; height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon-wrapper { transform: scale(1.1); }
.feature-title { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Paleta de Cores Customizada para os Cards */
.feat-academica .feature-icon-wrapper { color: var(--primary-color); background: rgba(52, 84, 120, 0.08); }
.feat-academica:hover .feature-icon-wrapper { background: var(--primary-color); color: white; }

.feat-atuacao .feature-icon-wrapper { color: var(--accent-orange); background: rgba(192, 95, 43, 0.08); }
.feat-atuacao:hover .feature-icon-wrapper { background: var(--accent-orange); color: white; }

.feat-orientacoes .feature-icon-wrapper { color: #b45309; background: rgba(247, 210, 127, 0.18); }
.feat-orientacoes:hover .feature-icon-wrapper { background: #b45309; color: white; }

.feat-infra .feature-icon-wrapper { color: var(--primary-color); background: rgba(154, 189, 227, 0.18); }
.feat-infra:hover .feature-icon-wrapper { background: var(--primary-color); color: white; }

/* Seção Visual em Blocos (Texto curto, muito visual) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 0;
}
@media (max-width: 991px) {
    .split-section {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .split-image { 
        width: 100%; 
        max-width: 400px; 
        margin: 0 auto 1rem; 
    }
    .split-content { 
        width: 100%; 
    }
    .bullet-list {
        display: inline-block;
        text-align: left;
    }
    .bullet-list li { justify-content: flex-start; }
}
.split-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.split-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.bullet-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.bullet-list li::before {
    content: '✓';
    background: var(--accent-green);
    color: #065f46;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
}

/* Footer Moderno e Azulado */
.footer {
    background-color: #23282e; /* Fundo escuro corporativo da marca */
    border-top: 4px solid var(--primary-color);
    margin-top: 0;
    color: #e2e8f0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-title { font-size: 1.3rem; margin-bottom: 1.8rem; color: #ffffff; font-weight: 700; position: relative; }
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 3px; background: var(--primary-color); border-radius: 2px;
}
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a { color: #94a3b8; font-size: 0.95rem; transition: all 0.3s ease; display: inline-block; }
.footer-links a::before { content: '›'; margin-right: 6px; color: var(--primary-color); font-weight: bold; }
.footer-links a:hover { color: var(--accent-yellow); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #838281; font-size: 0.9rem; }
.footer p, .footer p[style] { color: #94a3b8 !important; line-height: 1.6; }
.footer p strong[style] { color: var(--accent-yellow) !important; }

/* Responsividade */
@media (max-width: 992px) {
    .hero-container, .split-section { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3rem; }
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card:nth-child(even) { transform: none; }
    .feature-card:nth-child(even):hover { transform: translateY(-10px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--bg-white); flex-direction: column; justify-content: center;
        box-shadow: var(--shadow-soft); transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .mobile-toggle { display: block; z-index: 1000; position: relative; }
    .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

/* =========================================================
   ESTILOS DAS PÁGINAS INTERNAS (Sobre, Especialidade, etc)
========================================================= */

/* Cabeçalho de Páginas Internas */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 10rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grids de Conteúdo */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Área de Texto / Typografia Rica */
.content-area {
    font-size: 1.1rem;
    line-height: 1.8;
}
.content-area h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}
.content-area h3 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: #1e293b;
}
.content-area p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.content-area ul {
    margin-bottom: 2rem;
    padding-left: 0;
}
.content-area ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 28px;
}
.content-area ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}
.content-area strong {
    color: #1e293b;
}

/* Aside / Info Box */
.info-box {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
    border-top: 5px solid var(--primary-color);
}
.info-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.8rem;
    color: #1e293b;
    font-weight: bold;
}
.info-box ul {
    margin: 0;
    padding: 0;
}
.info-box ul li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    padding-left: 0;
}
.info-box ul li::before {
    display: none; /* remove content-area dot for info-box */
}
.info-box ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Blog / Artigos */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}
.blog-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.blog-title a {
    color: #1e293b;
    transition: color 0.2s;
}
.blog-title a:hover {
    color: var(--primary-color);
}
.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}
.read-more {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.2s;
}
.read-more:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* Grids de Orientações (Cards Verticais) */
.guideline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}
.guideline-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.guideline-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.guideline-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--primary-light);
}
.guideline-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.guideline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.guideline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: flex-start;
}

/* Accordion (Orientações) */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    overflow: hidden;
    transition: var(--transition);
}
.accordion-header {
    background: var(--bg-light);
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after {
    content: "▼";
    font-size: 0.9rem;
    color: var(--primary-color);
}
.accordion-content {
    padding: 1.5rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}
.accordion-item:hover {
    box-shadow: var(--shadow-soft);
    border-color: rgba(59,130,246,0.2);
}

/* Contato e Formulários */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

/* Mapa e Utilitários */
.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* Modal System for Orientações */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 28, 49, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-container {
    background: var(--bg-white);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}
.modal-overlay.active .modal-container {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary-light);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
}
.modal-content h2 { color: var(--primary-color); margin-bottom: 1.5rem; }
.modal-content p { margin-bottom: 1.2rem; line-height: 1.8; }

/* Styles for Cirurgia Pediátrica Redesign */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.specialty-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
}
.specialty-item h4 { margin-top: 0; color: var(--primary-color); }

/* Journey Steps (Sobre) */
.journey-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.journey-step {
    background: var(--primary-light); /* Soft blue background */
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: none;
    position: relative;
    transition: var(--transition);
}
.journey-step:hover {
    background: #e0f2fe; /* Slightly darker on hover */
}
.journey-step h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.journey-step p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
}
.journey-step ul {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}
.journey-step ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}
.journey-step ul li:last-child { border-bottom: none; }
.journey-step .step-number {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 3rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CARROSSEL HERO HOME
========================================================= */
/* =========================================================
   CARROSSEL HERO HOME
========================================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--bg-light);
    padding-top: 80px; /* Compensa o header fixo */
}
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Fundo da Imagem */
.carousel-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center right;
    z-index: -2;
}

/* Overlay com gradiente suave (Branco/Bege claro para Transparente) */
.carousel-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to right, rgba(255, 246, 223, 1) 0%, rgba(255, 246, 223, 0.95) 30%, rgba(255, 246, 223, 0.5) 60%, rgba(255, 246, 223, 0) 100%);
    z-index: -1;
}

/* O Conteúdo acompanhado do gradiente */
.carousel-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-left: 5%;
}

@media (max-width: 991px) {
    .hero-carousel {
        height: auto;
        min-height: 500px;
    }
    .carousel-content {
        margin: 0 auto;
        padding: 40px 20px;
        text-align: center;
        max-width: 100%;
    }
    .carousel-overlay {
        background: linear-gradient(to bottom, rgba(255, 246, 223, 0.9) 0%, rgba(255, 246, 223, 0.75) 100%);
    }
    .carousel-bg {
        background-position: center;
    }
}

/* Controles (Setas retangulares ancoradas) */
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, rgba(255,255,255,0.4), rgba(255,255,255,0));
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary-color);
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.carousel-control.next {
    background: linear-gradient(to left, rgba(255,255,255,0.4), rgba(255,255,255,0));
}
.carousel-control:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1e40af; /* Azul mais escuro no hover */
}
.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }
@media (max-width: 768px) {
    .carousel-control { display: none; /* No mobile pode poluir a imagem, indicadores bastam */ }
}

/* Indicadores de bolinhas ou traços */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}
.carousel-indicator {
    width: 35px;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicator.active {
    background-color: var(--primary-color);
    width: 50px;
}

/* Modo Ultrawide para a Imagem 1 do Carrossel */
.slide-1-bg {
    background-image: url('../iDENTIDADE VISUAL/Identidade Visual/Carrossel 1.jpg');
}
@media (min-width: 1400px) {
    .slide-1-bg {
        background-image: url('../iDENTIDADE VISUAL/Identidade Visual/Carrosel 1 ultrawide.png') !important;
    }
}
