/* ==================================== */
/* 1. Reset e Estilos Globais */
/* ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary-color: #35b4c7;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --detail-color: #444444;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================================== */
/* 2. Header e Navegação */
/* ==================================== */
.main-header {
    background-color: var(--primary-color);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
    transition: .5s ease-in-out;
}

.menu-toggle .bar {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle .bar:nth-child(1) {
    top: 0px;
}

.menu-toggle .bar:nth-child(2) {
    top: 10px;
}

.menu-toggle .bar:nth-child(3) {
    top: 20px;
}

.menu-toggle.active .bar:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active .bar:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    .main-nav nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-nav nav.active {
        right: 0;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
}

/* Carrossel Hero (Final) */
.hero-carousel {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}
.welcome-content{

    margin-top: 80px;
    margin-bottom: -100px;
}

/* ==================================== */
/* 4. Seções de Conteúdo */
/* ==================================== */
.blog-section {
    padding: 12rem 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
.blog-section{ margin-top: 60px;}

    .blog-layout {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }
}

.main-content-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-post-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light-gray);
    transition: transform 0.3s ease;
}
.blog-post-card:hover {
    transform: translateY(-5px);
}
/*  */

/* Responsividade do card do post */
@media (max-width: 768px) {
    .blog-post-card {
        flex-direction: column; /* Muda para coluna em telas pequenas */
        gap: 0.5rem;
    }
    .post-media-container {
        width: 100%;
        /* Mantém a proporção 16:9 para a imagem/vídeo */
    }
    .post-content-wrapper {
        padding-top: 1rem;
    }
}


/*  */
.post-media-container {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.post-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-wrapper {
    flex-grow: 1;
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.post-category, .post-date {
    font-size: 0.9rem;
    color: var(--detail-color);
    margin-bottom: 0.5rem;
}

.post-excerpt {
    font-size: 1rem;
    color: var(--detail-color);
    line-height: 1.6;
    margin-top: 1rem;
}

/* ==================================== */
/* 5. Post Individual */
/* ==================================== */

.single-post-date{

    text-align: center;
}
.single-post-container {
    padding: 5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.single-post-media-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.single-post-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ==================================== */
/* 10. Novo Rodapé (Footer) - Duas Colunas e Centralizado */
/* ==================================== */

.main-footer {
    background-color: #35b4c7;
    color: var(--text-dark); /* Texto principal do rodapé em cor escura */
    padding: 3rem 0 1rem;
    font-family: 'Lato', sans-serif;
}

.main-footer .container {
    max-width: 1200px;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* Borda escura */
}

.footer-column {
    flex-basis: 300px;
    min-width: 250px;
    padding: 0 1rem;
    text-align: left;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--text-light); /* Cor clara no hover */
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--text-dark);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer-social a {
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

.main-footer .footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-dark); /* Texto de direitos autorais em cor escura */
    margin: 0;
}

/* ==================================== */
/* 7. Efeitos e Componentes */
/* ==================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--text-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cursor {
    display: none; /* Desativado para o novo design */
}

/* ==================================== */
/* 1. Estilos de Formulário (Final) */
/* ==================================== */
.form-container {
    max-width: 800px;
    margin-top: 60px;
    margin: 12rem auto;
    padding: 2rem;
    background-color: whitesmoke; /* Fundo mais escuro para o container */
    border-radius: 12px;
    /* box-shadow: 0 4px 20px ; */
    font-family: 'Lato', sans-serif;
}

.form-group label {
    color: black; /* Cor do texto das labels */
    font-weight: bold;
    display: block;
    margin-bottom: 0.9rem;
    margin-top: 0.9rem;;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 0px solid black; /* Borda escura */
    /* border-radius: 5px; */
    background-color: #cccccc; /* Fundo dos campos escuro */
    color: black; /* Cor do texto nos campos */
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color); /* Borda de destaque no foco */
}

.form-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background-color: #35b4c7; /* Botão com cor de destaque azul */
    color: var(--text-light);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #2e96a8; /* Um tom de azul um pouco mais escuro */
}

/* ==================================== */
/* 2. Estilos das Categorias Existentes */
/* ==================================== */
.existing-categories {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    color: black;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.category-list-admin {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-list-admin li {
    background-color: #35b4c7; /* Fundo azul para as tags */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.category-list-admin li:hover {
    background-color: #2e96a8;
}

/* ==================================== */
/* 3. Estilos do Editor de Texto (Quill.js) */
/* ==================================== */
.ql-toolbar {
    background-color: whitesmoke;
    border-color: #444;
    border-radius: 5px 5px 0 0;
}

.ql-editor {
    background-color: whitesmoke;
    color: black;
    min-height: 200px;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

/* ==================================== */
/* 13. Estilos da Página de Categorias */
/* ==================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background-color: #2e96a8; /* Fundo escuro do card */
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.category-card:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-5px); /* Efeito "pop" */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.category-list-admin {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-list-admin li {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.category-list-admin li:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

/* ==================================== */
/* 5. Post Individual (Corrigido) */
/* ==================================== */
.single-post-container {
    padding: 5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .single-post-container {
        padding: 3rem 16px;
    }
}

.single-post-header {
    text-align: left;
    margin-bottom: 3rem;
}

.single-post-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.single-post-media-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    /* border-radius: 8px; */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.single-post-media-container img, 
.single-post-media-container video, 
.single-post-media-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.single-post-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: left;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

/* ==================================== */
/* 18. Estilos da Área de Agendas */
/* ==================================== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    color: #1a1a1a;
    background-color: whitesmoke;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.2; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 1.5rem;
    color: black;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: black;
}

.event-date {
    font-size: 0.9rem;
    color: black;
    margin-bottom: 1rem;
    font-weight: bold;
}

.event-description {
    font-size: 1rem;
    color: black;
}

/* login */

/* ==================================== */
/* Estilos da Área Administrativa (Dashboard) */
/* ==================================== */
.dashboard-container {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-section {
    margin-bottom: 4rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dashboard-table thead {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.dashboard-table th, 
.dashboard-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-light-gray);
}

.dashboard-table tbody tr:nth-child(even) {
    background-color: var(--bg-light-gray);
}

.dashboard-table tbody tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.action-btn.edit {
    background-color: #28a745; /* Verde para Editar */
    color: var(--bg-white);
}

.action-btn.edit:hover {
    background-color: #218838;
}

.action-btn.delete {
    background-color: #dc3545; /* Vermelho para Excluir */
    color: var(--bg-white);
}

.action-btn.delete:hover {
    background-color: #c82333;
}

/* ==================================== */
/* Responsividade (Mobile) */
/* ==================================== */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 2rem 1rem; /* Diminui o padding em telas pequenas */
    }

    .dashboard-table,
    .dashboard-table thead,
    .dashboard-table tbody,
    .dashboard-table th,
    .dashboard-table td,
    .dashboard-table tr {
        display: block; /* Transforma todos os elementos em blocos */
    }

    .dashboard-table thead tr {
        position: absolute; /* Esconde a linha de cabeçalho da tabela */
        top: -9999px;
        left: -9999px;
    }

    .dashboard-table tr {
        border: 1px solid var(--bg-light-gray);
        margin-bottom: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .dashboard-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Adiciona espaço para o label */
        white-space: normal;
        text-align: left;
    }

    .dashboard-table td::before {
        content: attr(data-label); /* Usa o atributo data-label para exibir o cabeçalho */
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        padding: 1rem 1rem 1rem 0;
        font-weight: bold;
        text-align: right;
        color: var(--primary-color);
        white-space: nowrap;
    }
}

/* Estilos para a imagem do Logo */
.logo img {
    max-height: 50px; /* Ajuste a altura máxima conforme necessário */
    width: auto; /* Mantém a proporção da imagem */
    display: block; /* Garante que a imagem se comporte como um bloco */
}

@media (max-width: 768px) {
    .logo img {
        max-height: 40px; /* Altura menor para mobile */
    }
}

/* ==================================== */
/* 22. Estilo da Busca no Desktop */
/* ==================================== */
.search-form-desktop {
    display: flex;
    align-items: center;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-btn {
    background-color: transparent;
    border: none;
    /* color: var(--bg-dark); */
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: -40px;
}

/* ==================================== */
/* 23. Busca Responsiva (Mobile) */
/* ==================================== */

.search-form-mobile {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .main-nav .logo {
        margin-bottom: 1rem;
    }
    .search-form-desktop {
        display: inline-block;
    }
    .search-form-mobile {
        display: flex;
        width: 100%;
        max-width: 300px;
    }
    .search-form-mobile .search-input {
        width: 100%;
    }
}

/* ==================================== */
/* 21. Estilos do Formulário de Login */
/* ==================================== */

.form-container-login {
    max-width: 450px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-header-custom {
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.login-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--detail-color);
}

.form-group-custom {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group-custom label {
    font-weight: bold;
    color: var(--text-dark);
}

.form-group-custom input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bg-light-gray);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--text-dark);
    color: var(--text-light);
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
    background-color: var(--detail-color);
}

.forgot-password {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--detail-color);
    text-decoration: underline;
}

/* ==================================== */
/* 20. Estilos da Área Quem Somos (Alternado) */
/* ==================================== */
.about-section {
    padding-top: 6rem;
    padding-bottom: 5rem;
    background-color: var(--bg-white);
}

.about-layout-section {
    max-width: 1000px;
    margin: 0 auto;
}

.about-layout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-layout-row.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Inverte a ordem das colunas */
}

.about-content {
    direction: ltr; /* Garante que o texto volte ao normal */
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsividade do layout */
@media (max-width: 768px) {
    .about-layout-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-layout-row.reverse {
        direction: ltr; /* Desativa a inversão em telas pequenas */
        display: block;
    }
}

/* ==================================== */
/* 21. Seção de Texto no Hero */
/* ==================================== */
.hero-text-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.hero-text-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-text-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
}
/* ==================================== */
/* 22. Seção de Boas-Vindas com Números (Corrigido) */
/* ==================================== */
.welcome-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--primary-color); /* Mantém o fundo azul */
    color: var(--text-dark); /* Cor principal do texto agora é preta */
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.numbered-list-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.numbered-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark); /* Texto do item também fica preto */
}

.numbered-list-item span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--text-dark); /* Números agora são pretos */
    line-height: 1;
    flex-shrink: 0;
}

.section-title {
    color: var(--text-dark); /* Título da seção fica preto */
}
/* ==================================== */
/* 23. Estilos de Seção de Conteúdo */
/* ==================================== */
/* Responsividade do layout */
@media (max-width: 768px) {
    .about-section {
        margin-top: 2rem; /* Adiciona uma margem no topo apenas em mobile */
    }
    .section-title text-center{
        margin-top: 180px;
    }
}

.content-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4rem;
}

.mission-section {
    margin-bottom: 3rem;
}

.mission-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--detail-color);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    .mission-title {
        font-size: 1.5rem;
    }
}

/*  */

.scroll-to-top-btn {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, background-color 0.3s;
    z-index: 999;
}

.scroll-to-top-btn:hover {
    background-color: var(--accent-color);
}