/* =========================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================= */
:root {
    /* Cores Primárias (Indigo) */
    --primary-100: #e0e7ff;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Cores Secundárias (Amber) */
    --secondary-400: #fbbf24;
    --secondary-500: #f59e0b;
    --secondary-600: #d97706;

    /* Escala de Cinza */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaçamento e Layout */
    --container-padding: 1rem;
    --max-width-container: 1440px;
    --header-height: 80px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: var(--font-body);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 1.125rem;
    /* Aumentado de 1rem (16px) para 18px */
    transition: background-color 0.6s ease, color 0.6s ease;
    /* Transição suave do tema */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilitários de Layout Reutilizáveis */
.container {
    width: 100%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 4rem 0;
    /* Reduced from 6rem for standardized "correct" spacing */
}

.section-bg-white {
    background-color: var(--white);
}

.section-bg-gray {
    background-color: var(--gray-50);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Botões Globais */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--primary-700);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-800);
}

.btn-secondary {
    background-color: var(--secondary-500);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-600);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-700);
}

.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-outline {
    border: 2px solid var(--primary-700);
    color: var(--primary-700);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-700);
    color: var(--white);
}

.full-width {
    width: 100%;
}

/* =========================================
   HEADER E NAVEGAÇÃO
   ========================================= */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    /* h-12 equivalent */
    margin-right: 0.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    display: block;
    /* Always block, controlled by children */
    font-family: 'Montserrat', sans-serif;
}

/* Default state (Mobile/Tablet/Small Laptop): Show IBSI, Hide Full Name */
.logo-full {
    display: none;
}

.logo-short {
    display: block;
    font-size: 1.5rem;
}

/* Large Screens (> 1450px): Show Full Name */
@media (min-width: 1450px) {
    .logo-full {
        display: block;
    }

    .logo-short {
        display: none;
    }
}

/* Mobile Toggle Visibility */
.mobile-header-toggle {
    display: flex !important;
    /* Force flex to align items correctly */
    align-items: center;
    margin-left: auto;
    /* Push to right */
    margin-right: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 1200px) {
    .mobile-header-toggle {
        display: none !important;
    }
}

.nav-desktop {
    display: none;
}

@media (min-width: 1200px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 1rem;
        /* Reduced gap from 1.5rem default */
    }

    .nav-link {
        font-size: 1rem;
        /* Slightly reduced base size */
    }


    /* Estilo "btn-10" específico para o botão Doar do menu principal */
    .nav-desktop .btn-primary {
        background: #4338ca;
        background: linear-gradient(0deg, #4338ca 0%, #3730a3 100%);
        color: #fff;
        border: none;
        transition: all 0.3s ease;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .nav-desktop .btn-primary:after {
        position: absolute;
        content: " ";
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        transition: all 0.3s ease;
        -webkit-transform: scale(.1);
        transform: scale(.1);
    }

    .nav-desktop .btn-primary:hover {
        color: #fff;
        border: none;
        background: transparent;
    }

    .nav-desktop .btn-primary:hover:after {
        background: #3730a3;
        background: linear-gradient(0deg, #312e81 0%, #4338ca 100%);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.nav-link:hover {
    color: var(--primary-700);
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    padding: 1rem 0;
    /* Increase hit area */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 60;
}

/* Ponte transparente para manter o hover */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--primary-100);
    color: var(--primary-700);
}

.btn-menu-mobile {
    display: block;
    color: var(--gray-700);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1200px) {
    .btn-menu-mobile {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-container {
    padding: 1.5rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-text-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-900);
    font-family: 'Montserrat', sans-serif;
}

.btn-close-mobile {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.mobile-dropdown-list {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.5rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
}

.mobile-dropdown-list.active {
    display: flex;
}

.mobile-nav-link.sub-link {
    font-size: 1rem;
    color: var(--gray-600);
    border-bottom: none;
    padding: 0.5rem 1rem;
}

/* =========================================
   SEÇÃO HERO
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('_imagens/002.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: var(--white);
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 8rem 0;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* =========================================
   PAGE HEADER (PÁGINAS INTERNAS)
   ========================================= */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('_imagens/002.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-breadcrumb {
    font-size: 1rem;
    color: var(--primary-100);
}

.page-breadcrumb a {
    color: var(--white);
    font-weight: 600;
}

.page-breadcrumb a:hover {
    color: var(--secondary-400);
}

/* =========================================
   SEÇÃO INFORMAÇÕES RÁPIDAS
   ========================================= */
.quick-info-section {
    background-color: var(--primary-800);
    color: var(--white);
    padding: 2rem 0;
}

.quick-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .quick-info-grid {
        flex-direction: row;
        align-items: center;
    }
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .info-item {
        margin-bottom: 0;
    }

    /* Location item: allow it to shrink and wrap text */
    .info-item:nth-child(2) {
        flex-shrink: 1;
        min-width: 0;
    }

    /* Contact item: never shrink, keep phone number visible */
    .info-item:last-child {
        flex-shrink: 0;
    }
}

.info-icon {
    color: var(--secondary-400);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.info-content p.label {
    font-weight: 700;
}

/* =========================================
   SEÇÃO BOAS-VINDAS
   ========================================= */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .welcome-content {
        flex-direction: row;
    }
}

.welcome-text {
    flex: 1;
}

.welcome-image {
    flex: 1;
}

.welcome-title {
    font-family: var(--font-heading);
    color: var(--primary-900);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.welcome-image img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   COMPONENTES DE CARD (SERMÕES, EVENTOS, MINISTÉRIOS)
   ========================================= */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.section-heading-white h2 {
    color: var(--white);
}

.section-heading-white p {
    color: rgba(255, 255, 255, 0.8);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ccc;
    padding: 1px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    position: relative;
}

.card-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    /* A imagem é cortada para preencher o espaço mantendo proporção
       (não distorce, mas pode cortar partes da imagem) */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /* Arredonda apenas os cantos superiores da imagem (8px)
       para combinar com o border-radius do card */
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Específico para Sermões */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    background-color: var(--secondary-500);
    border-radius: 50%;
    padding: 1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--secondary-600);
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0.5rem 0 0.75rem 0;
}

.card-date {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.action-link {
    color: var(--primary-700);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-link:hover {
    color: var(--primary-900);
}

.action-link-gray {
    color: var(--gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-link-gray:hover {
    color: var(--gray-800);
}

/* Específico para Eventos */
.event-card {
    border: 1px solid #ccc;
    border-left: 4px solid var(--secondary-500);
    display: flex;
    flex-direction: column;
}

.event-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card .card-actions {
    margin-top: auto;
}

.event-date-box {
    background-color: var(--primary-100);
    color: var(--primary-800);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-right: 1rem;
    text-align: center;
    min-width: 4rem;
}

.date-day,
.event-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.date-month,
.event-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tag-category {
    font-size: 0.875rem;
    background-color: var(--primary-100);
    color: var(--primary-800);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* =========================================
   TESTEMUNHOS
   ========================================= */
.testimonials-section {
    background-color: var(--primary-900);
    color: var(--white);
    padding: 4rem 0;
}

.testimonial-card-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    padding: 2rem;
    color: var(--gray-800);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-weight: 700;
    display: block;
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: block;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary-500);
}

/* =========================================
   DOAÇÃO
   ========================================= */
.donation-box {
    background: linear-gradient(to right, var(--primary-700), var(--primary-900));
    border-radius: 0.75rem;
    padding: 2rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .donation-box {
        padding: 3rem;
        flex-direction: row;
        align-items: center;
    }
}

.donation-content {
    flex: 2;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .donation-content {
        margin-bottom: 0;
        padding-right: 2.5rem;
    }
}

.donation-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =========================================
   CONTATO
   ========================================= */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        flex-direction: row;
    }
}

.contact-form-wrapper,
.contact-info-wrapper {
    flex: 1;
}

.form-box,
.info-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-box {
    height: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--primary-700);
    margin-top: 0.25rem;
    margin-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-100);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-btn:hover {
    background-color: #c7d2fe;
    /* primary-200 aprox */
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter-section {
    background-color: var(--primary-800);
    color: var(--white);
    padding: 3rem 0;
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .newsletter-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.newsletter-form {
    display: flex;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-form {
        width: auto;
    }
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0 0 0.375rem;
    border: none;
    flex-grow: 1;
    color: var(--gray-800);
    outline: none;
}

.newsletter-btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Mobile: 2 colunas */
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Mobile Layout Controls (< 768px) */
@media (max-width: 767px) {
    .footer-col-logo {
        grid-column: 1 / -1;
        /* Ocupa tudo (linha 1) */
    }

    /* Links (auto) vai para linha 2, col 1 */
    /* Recursos (auto) vai para linha 2, col 2 */

    .footer-col-contact {
        grid-column: 1 / -1;
        /* Ocupa tudo (linha 3) */
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   BOTÃO VOLTAR AO TOPO
   ========================================= */
#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-700);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    z-index: 100;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   SEÇÃO LIDERANÇA (SOBRE NÓS)
   ========================================= */
.leadership-section {
    position: relative;
    background-image: url('_imagens/IBSI2.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 0;
    margin-top: 0;
    /* Adjust if needed */
}

/* Overlay suave para garantir leitura se a imagem for escura, 
   ou para dar o tom esbranquiçado da imagem de exemplo */
.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* Overlay branco com alta opacidade */
    z-index: 1;
}

.leadership-section .container {
    position: relative;
    z-index: 2;
}

.leadership-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-900);
    text-align: center;
    margin-bottom: 3rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.leadership-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.leadership-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leadership-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.leadership-role {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   MODAL PIX
   ========================================= */
.pix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Indica que é clicável para fechar */
}

.pix-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.pix-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pix-modal.active .pix-modal-content {
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   TIMELINE (NOSSA JORNADA) - Flexbox Style
   ========================================= */
.timeline-section {
    padding: 6rem 0;
    background-color: var(--gray-50);
}

.timeline-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--primary-800);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-700);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Linha Central */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #3b82f6;
    /* Blue-500 */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Linha / Row */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

/* Colunas (Esquerda e Direita) */
.timeline-col {
    width: 45%;
    position: relative;
}

.left-col {
    text-align: right;
    padding-right: 20px;
}

.right-col {
    text-align: left;
    padding-left: 20px;
}

/* Marcador Central */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #2563eb;
    /* Blue-600 */
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px #2563eb;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    background-color: var(--secondary-500);
    box-shadow: 0 0 0 2px var(--secondary-500);
}

/* Conteúdo */
.timeline-content {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid #000;
    /* Borda fina e preta solicitada */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.05);
    /* Aumenta e sobe mais */
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2), 0 15px 15px -5px rgba(0, 0, 0, 0.1);
    z-index: 20;
    /* Garante que fique sobrepondo se necessário */
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    display: inline-block;
    /* Required for transform */
    cursor: default;
}

.timeline-year:hover {
    transform: scale(1.1);
    color: var(--primary-700);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 600;
}

.timeline-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3rem;
    }

    .timeline-col {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        /* Space for line */
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .left-col {
        text-align: left;
        padding-right: 0;
    }

    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
        top: 0;
        /* Align with top of content roughly */
    }

    .timeline-title {
        font-size: 1.75rem;
    }
}

/* =========================================
   CONTRIBUIÇÃO (Botões)
   ========================================= */
.contribution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .contribution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contribution-card {
    /* Layout */
    padding: 2rem;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin: 0;

    /* Estilo Refinado: Animação + Bordas + Suspensão */
    background-color: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
    /* Bordas acentuadas */
    border-radius: 0.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;

    /* Sensação de suspensão (sombra mais difusa e distante) */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15), 0 5px 10px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contribution-card::after {
    /* Animação Sweep (Restaurada) */
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    direction: rtl;
    z-index: -1;
    box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9, 7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001;
    transition: all 0.3s ease;
    background-color: var(--gray-100);
}

.contribution-card:hover {
    color: var(--primary-800);
    border-color: var(--primary-700);
    /* Suspensão maior no hover */
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.contribution-card:hover::after {
    left: auto;
    right: 0;
    width: 100%;
}

.contribution-card:active {
    top: 0;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}


/* =========================================
   MODAL CONTRIBUIÇÃO (Refinado / Popover)
   ========================================= */
.contribution-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    /* Fundo claro e leve */
    backdrop-filter: blur(2px);
    /* Desfoque suave */
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.contribution-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.contribution-modal-box {
    background-color: var(--white);
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 2px solid var(--primary-700);
    border-radius: 0.75rem;
    /* Quinas arredondadas */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.contribution-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.5rem;
}

.contribution-modal-text {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.contribution-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contribution-modal-actions .btn {
    border-radius: 0.5rem;
    /* Botões internos arredondados */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =========================================
   PÁGINA DE EVENTOS (Refined)
   ========================================= */
:root {
    --accent-red: #ea1d2c;
    --accent-red-hover: #c01824;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-red);
    /* Restored */
    /* Removido uppercase para dar match exato com imagem */
    font-size: 1.125rem;
    /* Increased from 0.8125rem */
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Reduced from 3.5rem for better density */
    max-width: 1000px;
}

.events-list .event-card {
    display: flex;
    flex-direction: row;
    background-color: transparent;
    border: none;
    gap: 1.5rem;
    /* Tighter gap between image and content */
    align-items: flex-start;
}

.events-list .event-image {
    width: 360px;
    /* Increased from 280px */
    height: 240px;
    /* Increased from 180px */
    object-fit: cover;
    border-radius: 0;
    /* No radius in crop? Check image. Assuming square for now or small radius. Keeping 0 based on "recorte" usually implying sharpness. */
    flex-shrink: 0;
}

.events-list .event-content {
    flex: 1;
    padding-top: 0;
}

.event-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-shrink: 0;
    width: 85px;
    /* Increased width to fit longer month names */
    height: 90px;
    /* Slight height adjustment */
    background-color: #f3f4f6;
    /* Light gray background from image */
    border-radius: 8px;
    /* Rounded corners for the whole card */
    overflow: hidden;
    /* Ensures red box touches margins and clips to corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
    margin-top: 0;
    /* Align with top of card */
    padding: 0;
    /* Enhance safety against inherited padding */
}

.event-day {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Take up remaining space */
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: #000000;
    letter-spacing: -1px;
    padding-top: 4px;
    width: 100%;
    /* Ensure full width availability */
}

.event-month {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Forces filling the container width */
    background-color: var(--accent-red);
    color: var(--white);
    font-size: 0.65rem;
    /* Balanced size for "DEZEMBRO" */
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 0;
    /* Thicker red strip */
    border-radius: 0;
    /* Reset radius as container clips it */
    margin: 0;
    /* Remove margins to touch edges */
    line-height: 1;
}

.events-list .event-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    /* Adjusted down */
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    margin-top: -5px;
    margin-bottom: 0.25rem;
}

.events-list .event-meta {
    font-size: 0.8125rem;
    /* Smaller meta */
    color: var(--gray-600);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-style: italic;
    /* Kept italic */
}

.events-list .event-meta i {
    color: var(--accent-red);
    margin-right: 0.25rem;
    font-size: 0.85em;
}

.events-list .event-description {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    /* Smaller body text */
    line-height: 1.6;
    max-width: 95%;
    /* Prevent full width stretching */
}

.btn-outline-red {
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    background: transparent;
    border-radius: 0;
    padding: 0.6rem 1.75rem;
    /* Taller padding */
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-red:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.events-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically align them */
    margin-top: 4rem;
    flex-wrap: wrap;
    /* Good for mobile responsiveness */
    gap: 1rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    /* margin-top: 4rem; removed since wrapper has it */
}

.pagination-results {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
    /* Remove default margins for cleaner alignment */
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    /* Smaller squares */
    height: 36px;
    border: 1px solid #e5e7eb;
    /* Lighter border */
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.page-link:hover,
.page-link.active {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
}

.page-link-next {
    width: auto;
    padding: 0 0.75rem;
}

@media screen and (max-width: 768px) {
    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .event-header {
        flex-direction: row;
        /* Keep date next to title on mobile too? usually yes */
    }
}



/* =========================================
   MODO ESCURO (DARK MODE)
   ========================================= */
body.dark-mode {
    /* Inversão de Fundos */
    --white: #1f2937;
    /* Cinza escuro para cartões */
    --gray-50: #111827;
    /* Quase preto para fundo body */
    --gray-100: #374151;
    /* Cinza médio para detalhes */

    /* Inversão de Textos */
    --gray-600: #d1d5db;
    /* Texto secundário claro */
    --gray-700: #e5e7eb;
    /* Texto principal claro */
    --gray-800: #f3f4f6;
    /* Títulos claros */
    --gray-900: #ffffff;
    /* Títulos destaque branco */

    /* Ajuste de Contraste da Cor Primária */
    --primary-700: #818cf8;
    /* Azul mais claro/neon para legibilidade no escuro */
    --primary-800: #6366f1;
}

/* Ajustes específicos para elementos que somem no escuro */
body.dark-mode .logo-text,
body.dark-mode .nav-link {
    color: var(--gray-900);
}

body.dark-mode .card,
body.dark-mode .main-header,
body.dark-mode .main-footer {
    border-color: #374151;
    /* Borda sutil */
}

/* Botão Toggle */
.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

body.dark-mode .btn-theme-toggle {
    border-color: var(--gray-600);
    color: #fbbf24;
    /* Amarelo para o sol */
}

.btn-theme-toggle:hover {
    background-color: var(--gray-100);
}


/* =========================================
   AJUSTE FINO (PRESERVAÇÃO DE ÁREAS ESCURAS)
   ========================================= */

/* Rodapé e Seções de Destaque devem permanecer escuras */
body.dark-mode .main-footer {
    background-color: #111827 !important;
    /* Mantém fundo preto/escuro */
    color: #e5e7eb;
}

body.dark-mode .quick-info-section,
body.dark-mode .newsletter-section {
    background-color: #312e81 !important;
    /* Mantém azul escuro original */
    color: #ffffff;
}

body.dark-mode .testimonials-section {
    background-color: #312e81 !important;
    /* Fundo da seção azul escuro */
}

/* Donation Box (Gradiente) */
body.dark-mode .donation-box {
    background: linear-gradient(to right, #4338ca, #312e81) !important;
    color: #ffffff;
}

/* Correção de cores de texto dentro dessas seções escuras 
   (Pois a inversão global de var(--white) afeta textos que deveriam ser brancos)
*/
body.dark-mode .main-footer .footer-title,
body.dark-mode .main-footer .copyright,
body.dark-mode .quick-info-section p,
body.dark-mode .quick-info-section i,
body.dark-mode .newsletter-section h2,
body.dark-mode .newsletter-section p,
body.dark-mode .donation-box h3,
body.dark-mode .donation-box p,
body.dark-mode .donation-box i {
    color: #ffffff !important;
}

body.dark-mode .footer-link {
    color: #9ca3af !important;
    /* Cinza claro para links */
}

body.dark-mode .footer-link:hover {
    color: #ffffff !important;
}

/* Testemunhos: Cards devem ser escuros, não claros */
body.dark-mode .testimonial-card-item {
    background: #1f2937 !important;
    /* Card cinza escuro */
    border: 1px solid #374151;
}

body.dark-mode .testimonial-text {
    color: #d1d5db !important;
}

body.dark-mode .author-name {
    color: #ffffff !important;
}

body.dark-mode .author-role {
    color: #9ca3af !important;
}

/* Input da Newsletter */
body.dark-mode .newsletter-input {
    background-color: #f3f4f6;
    /* Mantém input claro para contraste */
    color: #1f2937;
}

/* Correção Títulos de Seção 'White' (que usam classe específica) */
body.dark-mode .section-heading-white h2 {
    color: #ffffff !important;
}

body.dark-mode .section-heading-white p {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Correção para Textos em Imagens de Cabeçalho (Hero e Page Header)
   Estas seções têm imagem de fundo escura, então o texto deve permanecer branco sempre.
*/
body.dark-mode .hero-section,
body.dark-mode .page-header {
    color: #ffffff !important;
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle,
body.dark-mode .page-title,
body.dark-mode .page-breadcrumb,
body.dark-mode .page-breadcrumb a {
    color: #ffffff !important;
}

body.dark-mode .page-breadcrumb a:hover {
    color: var(--secondary-400) !important;
    /* Mantém hover dourado */
}


/* Correção para Timeline (Nossa Jornada) 
   Manter caixas brancas e texto escuro para legibilidade, conforme solicitado.
*/
body.dark-mode .timeline-content {
    background-color: #ffffff !important;
    border-color: #e5e7eb;
}

body.dark-mode .timeline-text {
    color: #111827 !important;
    /* Texto escuro forçado */
}


/* =========================================
   BOTÃO TOGGLE ANIMADO (Pill Switch)
   ========================================= */

/* Container do Botão */
/* Botão Toggle */
.btn-theme-toggle {
    width: 64px;
    height: 32px;
    background: linear-gradient(to right, #60a5fa, #93c5fd);
    /* Céu Azul (Dia) */
    border-radius: 9999px;
    border: 2px solid #ffffff;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: all 0.5s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Fundo Preto/Noturno no Dark Mode */
body.dark-mode .btn-theme-toggle {
    background: linear-gradient(to right, #1e3a8a, #0f172a);
    /* Céu Noturno (Noite) */
    border-color: #374151;
}

/* Ocultar o ícone antigo se ele ainda existir no HTML original antes do JS rodar */
.btn-theme-toggle>i {
    display: none;
}

/* Ícones Internos (Sol e Lua) */
.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Lua (Visível quando Dark Mode) */
.toggle-icon.moon {
    right: 8px;
    color: #ffd700;
    opacity: 0;
    transform: translateX(10px);
}

body.dark-mode .toggle-icon.moon {
    opacity: 1;
    transform: translateX(0);
}

/* Sol (Visível quando Light Mode) */
.toggle-icon.sun {
    left: 8px;
    color: #ffffff;
    opacity: 1;
    transform: translateX(0);
}

body.dark-mode .toggle-icon.sun {
    opacity: 0;
    transform: translateX(-10px);
}

/* A Bola (Knob) */
.toggle-ball {
    width: 24px;
    height: 24px;
    background-color: #fefce8;
    /* Amarelo muito claro (Sol) */
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 4px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Bola no Modo Escuro (Move para a direita) */
body.dark-mode .toggle-ball {
    transform: translateX(30px);
    background-color: #ffffff;
}

/* Ajuste Fino: Hover */
.btn-theme-toggle:hover .toggle-ball {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Para o switch mobile, remover margens extras que conflitem */
.mobile-menu-header .btn-theme-toggle {
    margin: 0;
    margin-left: 1rem;
}

/* ======================================================
   TOGGLE ATUALIZADO (Lógica Invertida + Estrelas)
   ====================================================== */

/* 1. Reset da lógica antiga de opacidade para ícones simples */
body.dark-mode .toggle-icon.moon {
    display: none;
}

body.dark-mode .toggle-icon.sun {
    opacity: 0;
}

/* Reset padrão */

/* Container para agrupamento */
.toggle-icons-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Ícone Base */
.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    z-index: 1;
}

/* 
   LOGICA NOVA (CTA):
   - Modo Claro (Light): Mostra LUA (CTA para Dark) na direita.
   - Modo Escuro (Dark): Mostra SOL (CTA para Light) na esquerda.
*/

/* --- LUA + ESTRELAS (LIGHT MODE) --- */
.toggle-icon.moon-group {
    right: 8px;
    /* Lado direito livre */
    color: #fcd34d;
    /* Dourado */
    opacity: 1;
    transform: translateX(0) translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Tamanho da Lua */
.toggle-icon.moon-group i.fa-moon {
    font-size: 14px;
}

/* Estrelas */
.toggle-icon.moon-group .star-1,
.toggle-icon.moon-group .star-2 {
    position: absolute;
    font-size: 6px;
    color: #ffffff;
    animation: twinkle 3s infinite ease-in-out;
}

.toggle-icon.moon-group .star-1 {
    top: 0;
    right: 0;
}

.toggle-icon.moon-group .star-2 {
    bottom: 0;
    right: 12px;
    animation-delay: 1.5s;
}

/* Esconder Lua no Dark Mode */
body.dark-mode .toggle-icon.moon-group {
    opacity: 0;
    transform: translateX(20px) translateY(-50%);
}

/* --- SOL (DARK MODE) --- */
.toggle-icon.sun {
    left: 8px;
    /* Lado esquerdo livre */
    color: #ffffff;
    opacity: 0;
    /* Escondido no Light Mode */
    transform: translateX(-20px) translateY(-50%);
    font-size: 14px;
}

/* Mostrar Sol no Dark Mode */
body.dark-mode .toggle-icon.sun {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* ======================================================
   TOGGLE PRETO E BRANCO (Final Strict - Simétrico + Sol Animado)
   ====================================================== */

/* Reset de estilos anteriores */
.btn-theme-toggle {
    background: #e5e7eb !important;
    /* Cinza claro */
    border: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* .btn-theme-toggle styles commented out
body.dark-mode .btn-theme-toggle {
    background: #111827 !important;
    border: 1px solid #374151 !important;
} 
*/

/* Container de ícones */
.toggle-icons-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Ícone Base */
.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    /* Largura fixa para garantir centralização */
    height: 24px;
}

/* --- SOL (LIGHT MODE - Lado Esquerdo) --- */
.toggle-icon.sun {
    left: 4px !important;
    /* Centralizado no espaço vazio (32px / 2 - 12px = 4px) */
    color: #111827 !important;
    opacity: 1 !important;
}

/* Sol Animado (Rotação Suave) */
.toggle-icon.sun i {
    animation: sun-spin 10s linear infinite;
    /* Efeito no Sol */
    font-size: 16px;
}

/* No Dark Mode o Sol some */
body.dark-mode .toggle-icon.sun {
    opacity: 0 !important;
    transform: translateX(-10px) translateY(-50%) !important;
}

/* --- LUA (DARK MODE - Lado Direito) --- */
.toggle-icon.moon-group {
    right: 4px !important;
    /* Simetria perfeita com o Sol */
    color: #ffffff !important;
    opacity: 0 !important;
    transform: translateX(10px) translateY(-50%) !important;
}

/* No Dark Mode a Lua aparece */
body.dark-mode .toggle-icon.moon-group {
    opacity: 1 !important;
    transform: translateX(0) translateY(-50%) !important;
}

/* Estrelas da Lua */
.toggle-icon.moon-group .star-1,
.toggle-icon.moon-group .star-2 {
    color: #ffffff;
    animation: twinkle 3s infinite ease-in-out;
}

/* --- BOLA (TOGGLE BALL) --- */
/* Light Mode: Bola na Direita (Preta) */
.toggle-ball {
    width: 26px !important;
    height: 26px !important;
    background-color: #111827 !important;
    /* Preto */
    border-radius: 50% !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    transform: translateX(32px) !important;
    /* Move exatos 32px para a direita */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.3s !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Dark Mode: Bola na Esquerda (Branca) */
body.dark-mode .toggle-ball {
    background-color: #ffffff !important;
    /* Branco */
    transform: translateX(0) !important;
}

/* Animação do Sol */
@keyframes sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- BOTÃO CÁPSULA 3D (DESIGN FINAL) --- */

/* Container para ajuste de margem */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.theme-toggle-capsule {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

/* O Trilho (Fundo da cápsula) */
.toggle-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
    /* Reduzido, mas um pouco mais largo para acomodar a bola */
    height: 46px;
    /* Altura original restaurada */
    background-color: #e0e5ec;
    /* Cor base clara */
    border-radius: 50px;
    padding: 4px;
    /* Padding original restaurado */
    position: relative;
    /* Efeito de profundidade (afundado) */
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
    transition: all 0.6s ease;
    /* Aumentado para 0.6s para sincronia */
}

/* O Indicador (Botão deslizante) */
.toggle-indicator {
    width: 38px;
    /* Tamanho original restaurado */
    height: 38px;
    /* Tamanho original restaurado */
    background-color: #3730a3;
    /* Azul escuro (Lua) */
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Fonte original restaurada */
    position: relative;
    z-index: 2;
    /* Efeito 3D saltado */
    /* Efeito 3D saltado */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.6s;
    transform: translateX(0);
    /* Posição Esquerda */
}

/* O Texto */
.toggle-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0;
    /* Texto oculto devido ao tamanho reduzido */
    color: #64748b;
    position: absolute;
    right: 8px;
    /* Texto fixo na direita no modo claro */
    pointer-events: none;
    transition: opacity 0.3s;
}

/* --- ESTADOS DARK MODE ATIVO --- */
/* Atualizado para suportar a classe .capsule-active no botão independentemente do tema */
/* Atualizado para suportar a classe .capsule-active no botão independentemente do tema */
.theme-toggle-capsule.capsule-active .toggle-track {
    background-color: #1e293b;
    /* Fundo escuro */
    box-shadow: inset 4px 4px 10px #0f172a, inset -4px -4px 10px #2d3748;
}

/* Atualizado para suportar a classe .capsule-active no botão independentemente do tema */
/* Atualizado para suportar a classe .capsule-active no botão independentemente do tema */
.theme-toggle-capsule.capsule-active .toggle-indicator {
    transform: translateX(24px);
    /* Desliza para a direita (70px width - 38px ball - 8px total padding = 24px travel) */
    background-color: #fbbf24;
    /* Amarelo (Sol) */
    color: #1e293b;
}

body.dark-mode .toggle-text {
    color: #cbd5e1;
    right: auto;
    left: 16px;
    /* Texto muda para a esquerda */
}

/* Ajuste Mobile */
/* Ajuste Mobile */
@media (max-width: 991px) {
    .theme-switch-wrapper {
        margin: 10px 0 10px 15px;
    }

    /* Toggle específico do Header Mobile (fora do menu) */
    .mobile-header-toggle {
        display: flex !important;
        margin-right: 15px;
        margin-left: auto;
        /* Empurra para a direita, perto do hambúrguer */
    }
}

/* Hide mobile header toggle on desktop */
@media (min-width: 992px) {
    .mobile-header-toggle {
        display: none !important;
    }
}

/* =========================================
   LAYOUT COM SIDEBAR (ESTUDOS)
   ========================================= */
.page-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .page-with-sidebar {
        flex-direction: row;
        align-items: flex-start;
    }
}

.main-content {
    flex: 1;
    width: 100%;
}

.sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .sidebar {
        width: 350px;
        flex-shrink: 0;
        position: sticky;
        top: 100px;
    }
}

/* Intro Text */
.intro-text p {
    color: var(--gray-600);
}

/* Grids Específicos */
.cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Novo Estilo de Card: .study-card */
.study-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    /* Added border as requested */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.study-img-container {
    height: 180px;
    overflow: hidden;
}

.study-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.study-card:hover .study-img {
    transform: scale(1.05);
}

.study-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.study-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-500);
    /* Cor Ecap/Categoria */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.study-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: auto;
    /* Empurra o link para o rodapé do card */
    line-height: 1.4;
}

.study-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0ea5e9;
    /* Azul claro estilo referência */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.study-link:hover {
    color: #0284c7;
}

/* =========================================
   WIDGETS DA SIDEBAR
   ========================================= */
.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 1.5rem;
    border-bottom: 2px insert #e2e8f0;
    padding-bottom: 0.5rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-500);
}

/* Widget: Search */
.search-form {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary-500);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0ea5e9;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0.5rem;
}

/* Widget: Lists */
.widget-list li {
    margin-bottom: 1rem;
}

.widget-list a {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

.widget-list a:hover {
    color: var(--secondary-600);
}

.widget-link-all {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: underline;
}

/* Widget: Ad Banner */
.ad-banner {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    border-radius: 0.5rem;
    color: var(--white);
    text-align: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ad-content h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.cta-box {
    background-color: darken(#4c1d95, 10%);
    /* Fallback or simplified */
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
}

.cta-box h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-cta {
    display: inline-block;
    background-color: #be185d;
    /* Rosa/Vermelho estilo referência */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-cta:hover {
    background-color: #9d174d;
    color: white;
}

/* =========================================
   PÁGINA DE CÉLULAS
   ========================================= */

/* Why Participate Grid */
.why-participate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .why-participate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-500);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Cell Card Styles */
.cell-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cell-header {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

/* Color Variants for Cell Headers */
.bg-primary-100 {
    background-color: var(--primary-100);
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.cell-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cell-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.cell-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cell-slogan {
    font-style: italic;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cell-details {
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cell-details li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    color: var(--gray-700);
}

.cell-details li i {
    color: var(--primary-700);
    width: 20px;
    margin-right: 0.5rem;
    margin-top: 4px;
}

.cell-body .btn {
    margin-top: auto;
}

/* CTA Section Styles are inline in HTML for simplicity, 
   but basic typography inherits from global styles */
/* =========================================
   ESTILO GAMMA (DARK & GOLD)
   ========================================= */
:root {
    --bg-gamma-dark: #121212;
    --bg-gamma-section: #1a1a1a;
    --bg-gamma-card: #222222;
    --gamma-gold: #c5a059;
    /* Cor Dourada Principal */
    --gamma-gold-light: #e6c885;
    /* Dourado Claro para hover */
    --gamma-text-main: #f0f0f0;
    --gamma-text-muted: #a0a0a0;
    --font-gamma-serif: 'Lora', serif;
    --font-gamma-sans: 'Raleway', sans-serif;
}

/* Utilitário para o Tema Gamma */
.gamma-theme {
    background-color: var(--bg-gamma-dark);
    color: var(--gamma-text-main);
    font-family: var(--font-gamma-sans);
}

.gamma-theme h1,
.gamma-theme h2,
.gamma-theme h3,
.gamma-theme h4 {
    font-family: var(--font-gamma-serif);
    color: var(--gamma-gold);
}

.gamma-section {
    padding: 4rem 1rem;
    background-color: var(--bg-gamma-dark);
}

.gamma-section-alt {
    background-color: var(--bg-gamma-section);
}

.gamma-intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gamma-intro-text p {
    color: var(--gamma-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.gamma-highlight {
    color: var(--gamma-gold);
    font-weight: 700;
}

/* Feature Cards (Why Participate) - Gamma Style */
.gamma-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .gamma-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gamma-feature-card {
    background-color: var(--bg-gamma-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(197, 160, 89, 0.1);
    /* Sutil borda dourada */
}

.gamma-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3), 0 0 20px rgba(197, 160, 89, 0.2);
    /* Brilho dourado por baixo */
    border-color: rgba(197, 160, 89, 0.5);
}

.gamma-feature-icon {
    font-size: 2.5rem;
    color: var(--gamma-gold);
    margin-bottom: 1.5rem;
}

.gamma-feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gamma-text-main);
    /* Título branco/claro no card */
}

.gamma-feature-card p {
    color: var(--gamma-text-muted);
}

/* Cell Cards (Encontre sua Célula) - Gamma Style */
.gamma-cell-card {
    background-color: var(--bg-gamma-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gamma-cell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gamma-gold);
}

.gamma-cell-header {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, rgba(197, 160, 89, 0.05) 100%);
    padding: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gamma-cell-icon {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gamma-cell-title {
    /* color: var(--gamma-gold) !important; Removido para usar gradiente */
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: none;
    /* Text-shadow não funciona bem com gradiente de texto */
    font-size: 1.75rem;
    margin: 0;
    padding: 1rem 0;
}

.gamma-cell-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gamma-cell-slogan {
    color: var(--gamma-text-main);
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gamma-cell-details {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.gamma-cell-details li {
    margin-bottom: 1rem;
    color: var(--gamma-text-muted);
    display: flex;
    align-items: flex-start;
}

.gamma-cell-details li i {
    color: var(--gamma-gold);
    width: 24px;
    margin-right: 0.75rem;
    margin-top: 4px;
}

.gamma-cell-details li strong {
    color: var(--gamma-text-main);
    margin-right: 0.25rem;
}

/* Buttons Gamma */
.btn-gamma-gold {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    /* Gradiente Dourado Metálico Intenso */
    background-size: 200% auto;
    color: #121212;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    /* Quinas levemente laqueadas */
    border: 1px solid #996e1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-gamma-gold:hover {
    background-position: right center;
    /* Move o gradiente para dar efeito de brilho */
    background: linear-gradient(135deg, #d4af37 0%, #fff8db 25%, #d4af37 50%, #fff8db 75%, #b8860b 100%);
    /* Mais brilhante no hover */
    background-size: 200% auto;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.5);
    color: #000;
}

.btn-gamma-outline {
    background-color: transparent;
    border: 2px solid var(--gamma-gold);
    color: var(--gamma-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    /* Match btn-gamma-gold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.btn-gamma-outline:hover {
    background-color: var(--gamma-gold);
    color: #121212;
}

/* Ajuste Específico para o CTA no final */
.gamma-cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid var(--gamma-gold);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.1);
}

.gamma-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .gamma-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gamma-cta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .gamma-cta-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .gamma-cta-grid>div {
        /* (100% - (4 * 1.5rem gap)) / 5 items = (100% - 6rem) / 5 = 20% - 1.2rem */
        flex: 0 0 calc(20% - 1.2rem);
        max-width: calc(20% - 1.2rem);
    }
}

/* =========================================
   GALERIA FLUIDA E LIGHTBOX
   ========================================= */

.gallery-fluid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .gallery-fluid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-fluid-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid var(--white);
    /* Borda solicitada */
    background-color: var(--white);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-400);
}

.gallery-overlay span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    display: block;
    /* Ensure display is toggled */
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
}

.modal-content {
    margin: auto;
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-400);
    text-decoration: none;
    cursor: pointer;
}

.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--secondary-400);
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* =========================================
   VIDEO LIGHTBOX STYLES
   ========================================= */
.video-modal-content {
    width: 90%;
    max-width: 900px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    margin: auto;
}

/* 16:9 Responsive Ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-options-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-video-option {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-video-option:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    color: var(--white);
}

/* Ensure lightbox uses flex for centering */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.accordion {
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-300);
}

.accordion-item {
    border-bottom: 1px solid var(--gray-300);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--gray-100);
}

.accordion-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-800);
    padding-right: 1rem;
    line-height: 1.4;
}

.accordion-icon {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-700);
}

.accordion-header[aria-expanded="true"] {
    background-color: var(--gray-50);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 1rem;
    border-top: 1px solid transparent;
    /* Fix collapse jumping */
}

/* Dark Mode Overrides for Accordion */
body.dark-mode .accordion {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

body.dark-mode .accordion-item {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .accordion-header {
    background: var(--gray-800);
    color: var(--white);
}

body.dark-mode .accordion-header:hover {
    background-color: var(--gray-700);
}

body.dark-mode .accordion-title {
    color: var(--white);
    /* Or a lighter primary shade */
}

body.dark-mode .accordion-header[aria-expanded="true"] {
    background-color: var(--gray-700);
}

body.dark-mode .accordion-content {
    background-color: var(--gray-800);
}

body.dark-mode .accordion-body {
    color: var(--gray-50);
}

/* =========================================
   TIMELINE DARK MODE FIX
   ========================================= */
body.dark-mode .timeline-year {
    color: var(--secondary-400);
    /* Destaque em Dourado/Amber */
}

/* Mais específico para garantir a cor */
body.dark-mode .timeline .timeline-item .timeline-subtitle {
    color: #ffffff !important;
}

/* Location Icon Image */
.info-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* =========================================
   CALENDAR WIDGET
   ========================================= */
.calendar-widget {
    display: flex;
    flex-direction: column;
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-right: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}



.calendar-top {
    background-color: #2563eb;
    color: white;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    padding: 6px 8px;
    gap: 1px;
}

.cal-month {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 1px;
}

.cal-year {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1;
}

.calendar-bottom {
    background-color: #f8fafc;
    color: #1e293b;
    height: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cal-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

/* Dark Mode Support for Calendar */
body.dark-mode .calendar-widget {
    background: #1e293b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .calendar-top {
    background-color: #3b82f6;
}

body.dark-mode .calendar-bottom {
    background-color: #0f172a;
    color: #f8fafc;
}

body.dark-mode .cal-day {
    color: #f8fafc;
}