/* --- Variáveis de Cor (Nature Inspired) --- */
:root {
    /* Cores principais */
    --color-primary: #2e4d38;          /* Verde escuro musgo */
    --color-button: #3e693f;           /* Verde médio vibrante */
    --color-button-hover: #6fa88e;     /* Hover dos botões */
    --color-background: #f2f0eb;       /* Fundo suave */
    --color-text: #1f1f1f;             /* Texto principal */
    --color-secondary: #a4896f;        /* Castanho rocha */
    --color-dark: rgba(0,0,0,0.85);    /* Fundo escuro translúcido */
    --color-white: #ffffff;            /* Branco */
    --color-border: #D3D3D3;           /* Bordas suaves */
    --color-secondary-brown: #a4896f;  /* Castanho rocha (alias) */
    --color-primary-dark-green: #1a2c21; /* Verde escuro */

    /* Tipografia e Layout */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --container-width: 1140px;
    --base-spacing: 1rem;
    --border-radius: 5px;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    --primary-color: #004A7F; /* Deep Blue - Adjust as per actual theme */
    --secondary-color: #007B5E; /* Teal Green - Adjust as per actual theme */
    --accent-color: #FFC107;    /* Yellow Accent - Adjust as per actual theme */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #333;
    --text-color-light: #fff;
}

/* --- Reset Básico & Globais --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    padding-top: 80px !important; /* Compensar altura da barra de navegação fixa */
}

/* Image Optimization Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimized image containers */
.arrabida-icon img,
.cave-lightbox-img,
.swipe-card img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Progressive image loading */
.image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

a {
    color: var(--color-secondary-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-primary-dark-green);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: calc(var(--base-spacing) * 0.75);
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 2.5rem; 
    margin-bottom: var(--base-spacing);
    font-weight: 700;
}

h2 { 
    font-size: 2rem; 
    margin-bottom: calc(var(--base-spacing)*0.8);
    font-weight: 600;
}

h3 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h4 { 
    font-size: 1.2rem; 
    color: var(--color-secondary);
    font-weight: 500;
}

p {
    margin-bottom: var(--base-spacing);
    font-size: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin-bottom: var(--base-spacing);
    padding-left: calc(var(--base-spacing) * 1.5);
}

/* --- Utilitários --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--base-spacing);
    padding-right: var(--base-spacing);
}

.section {
    padding: calc(var(--base-spacing) * 3) 0;
}

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

.section-highlight {
    background-color: #23140D;
    color: var(--color-white);
    padding-top: calc(var(--base-spacing) * 3);
    padding-bottom: calc(var(--base-spacing) * 3);
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: calc(var(--base-spacing) * 0.6) calc(var(--base-spacing) * 1.2);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Cabeçalho --- */
header {
    background: var(--color-dark);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.3s ease;
    height: 80px; /* Altura original */
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.logo-img {
    max-height: 48px; /* Reduced from 60px to 80% */
    width: auto;
    vertical-align: middle;
    margin-left: 1rem;
}

nav {
    flex: 1;
    margin-left: 20px;
}

nav ul {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav ul li {
    margin-right: 0;
    margin-left: calc(var(--base-spacing) * 1.08);
}

nav ul li:first-child {
    margin-left: calc(var(--base-spacing) * 1.08);
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: var(--font-primary);
    font-size: 1rem; /* Increased from 0.8rem to 125% */
    letter-spacing: 0.01em;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ccc; /* Cor Cinza Claro para Hover/Focus */
    /* border-bottom-color: transparent; Removido */
    text-decoration: none;
}

nav ul li a.active {
    color: #ccc; /* Cor Cinza Claro para Ativo */
     /* border-bottom-color: transparent; Removido */
    font-weight: 600; /* Dar um pouco mais de destaque ao ativo */
}

/* Language Switcher */
.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.lang-switch:hover {
    color: #ccc;
}

.lang-switch.active-lang {
    color: #ccc;
    font-weight: 600;
}

.lang-switch-separator {
    color: var(--color-white);
    margin: 0 5px;
    font-size: 1rem; /* Adjust size as needed */
    vertical-align: middle;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* --- Rodapé --- */
footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 2) 0;
    margin-top: calc(var(--base-spacing) * 3);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    line-height: 1.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--base-spacing) * 2);
    margin-bottom: var(--base-spacing);
}

.footer-info p,
.footer-social p {
    margin-bottom: calc(var(--base-spacing) * 0.5);
}

.footer-info a {
    color: var(--color-white);
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social a {
    color: var(--color-white);
    margin: 0 calc(var(--base-spacing) * 0.5);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-accent-stone);
}

.footer-rights {
    text-align: center;
    margin-top: calc(var(--base-spacing) * 2);
    padding-top: var(--base-spacing);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: var(--color-accent-stone);
}

/* --- Estilos Específicos --- */

/* Hero Section (index.html) */
.hero {
    background-color: var(--color-accent-stone); /* Fallback */
    background-image: url('../images/banner.png'); /* Usar banner.png */
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: calc(var(--base-spacing) * 5) var(--base-spacing);
    padding-top: 0; /* Removido padding-top pois o body já tem padding */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: calc(var(--base-spacing) * 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Key Services Grid (index.html) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--base-spacing) * 2);
    margin-top: calc(var(--base-spacing) * 2);
}

.service-item {
    background-color: var(--color-white);
    padding: calc(var(--base-spacing) * 1.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--base-spacing);
}

.service-item h4 {
    margin-bottom: calc(var(--base-spacing) * 0.5);
    color: var(--color-primary-dark-green);
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: var(--base-spacing);
}

/* Founder Highlight (index.html) */
.founder-highlight {
    text-align: center;
    margin-top: calc(var(--base-spacing) * 2);
}

/* Call to Action (index.html) */
.cta-section {
    background-color: var(--color-secondary-brown);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 3) var(--base-spacing);
    text-align: center;
    border-radius: var(--border-radius);
    margin-top: calc(var(--base-spacing) * 2);
}

.cta-section h3 {
    color: var(--color-white);
    margin-bottom: var(--base-spacing);
}

/* Reduce top space specifically for the services section on homepage */
.services.section-highlight {
    padding-top: 0.5rem;    /* Reduced from 1rem (50%) */
    padding-bottom: 1.5rem; /* Reduced from 3rem (50%) */
}

/* Page Title (páginas internas) */
.page-title-section {
    background-color: var(--color-primary-dark-green);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 2) 0;
    padding-top: calc(var(--base-spacing) * 3); /* Reduzido pois o body já tem padding */
    margin-bottom: calc(var(--base-spacing) * 3);
}

/* About Page Hero */
.about-page-hero {
    margin-top: -80px; /* Compensar o padding do body */
    padding-top: 80px; /* Adicionar padding para compensar */
}

.page-title-section h1 {
    color: var(--color-white);
    text-align: center;
    margin: 0;
}

/* Cave/Trail Profiles (Cards) */
.profile-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--base-spacing) * 2);
    padding: calc(var(--base-spacing) * 1.5);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--base-spacing) * 1.5);
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-card img {
    border-radius: var(--border-radius);
    max-height: 250px;
    object-fit: cover;
}

.profile-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: calc(var(--base-spacing)*0.5);
}

/* Section Specific Styles (experiences.html) */
.gastronomy-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.gastronomy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--base-spacing) * 3);
    align-items: start;
    margin-bottom: calc(var(--base-spacing) * 3);
}

.gastronomy-text {
    padding-right: calc(var(--base-spacing) * 2);
}

.gastronomy-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: calc(var(--base-spacing) * 2);
    color: var(--color-text);
}

.gastronomy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 2);
    margin-top: calc(var(--base-spacing) * 2);
}

.feature-item h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: calc(var(--base-spacing) * 1);
    font-weight: 600;
}

.feature-item ul {
    list-style: none;
    padding: 0;
}

.feature-item li {
    padding: calc(var(--base-spacing) * 0.5) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    padding-left: calc(var(--base-spacing) * 1.5);
}

.feature-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-button);
    font-weight: bold;
}

.feature-item li:last-child {
    border-bottom: none;
}

.gastronomy-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gastronomy-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.gastronomy-image:hover img {
    transform: scale(1.05);
}

.gastronomy-cta {
    text-align: center;
    padding: calc(var(--base-spacing) * 2);
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(46, 77, 56, 0.05) 100%);
    border-radius: var(--border-radius);
    margin-top: calc(var(--base-spacing) * 2);
}

.gastronomy-cta p {
    font-size: 1.2rem;
    margin-bottom: calc(var(--base-spacing) * 2);
    color: var(--color-text);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: calc(var(--base-spacing) * 1.5);
    justify-content: center;
    flex-wrap: wrap;
}

.gastronomy-section img {
    border-radius: var(--border-radius);
}

/* --- Responsividade --- */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .profile-card,
    .content-image-split,
    .gastronomy-section {
        flex-direction: column;
    }

    .gastronomy-content {
        grid-template-columns: 1fr;
        gap: calc(var(--base-spacing) * 2);
    }

    .gastronomy-text {
        padding-right: 0;
    }

    .gastronomy-features {
        grid-template-columns: 1fr;
        gap: calc(var(--base-spacing) * 1.5);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .profile-card img,
    .content-image-split img,
     .gastronomy-section img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .highlight-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .gastronomy-section {
        padding: calc(var(--base-spacing) * 2) 0;
    }

    .gastronomy-content {
        grid-template-columns: 1fr;
        gap: calc(var(--base-spacing) * 2);
    }

    .gastronomy-text {
        padding-right: 0;
    }

    .gastronomy-features {
        grid-template-columns: 1fr;
        gap: calc(var(--base-spacing) * 1.5);
    }

    .gastronomy-image img {
        height: 250px;
    }

    .gastronomy-cta {
        padding: calc(var(--base-spacing) * 1.5);
    }

    .gastronomy-cta p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: calc(var(--base-spacing) * 1);
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    header {
        padding: 0.5rem 0;
    }

    header .container {
        justify-content: space-between;
        padding: 0 1rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        flex-direction: column;
        padding: 0;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .hamburger-menu {
        display: block;
        margin-right: 1rem;
    }
    
    .language-switch {
        margin-left: auto;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    #hero-main { min-height: 40vh; }

    .swipe-card {
        min-width: 280px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .hiking-trail {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    #hero-main h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .swipe-container {
        padding: 1rem 0;
    }

    .swipe-card {
        min-width: 90%;
        box-shadow: none;
    }

    .membership-content {
        padding: 1.5rem;
    }
}

/* --- Estilos Landing Page NECAVE --- */

.landing-block {
    padding: 4rem 2rem; /* Espaçamento padrão dos blocos */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para o container dentro do landing block não ter padding extra */
.landing-block > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Hero Section - ajuste fino */
#hero-main h1 {
    font-size: 2.3rem; /* Reduzido para 66% de 3.5rem */
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
#hero-main p {
    font-size: 0.9rem; /* Reduzido para 66% de 1.4rem */
}

/* Removed fade effect styles below */
/* #hero-main {
    position: relative;
    overflow: hidden;
} */

/* #hero-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; 
    background: linear-gradient(to bottom, rgba(232, 229, 218, 0), #E8E5DA 100%);
    pointer-events: none; 
} */ /* REMOVED RULE */

/* Fundo alternado */
.landing-block:nth-child(even) {
    background-color: var(--color-background); /* Cor base já é bege/off-white */
}
.landing-block:nth-child(odd):not(#hero-main) {
    background-color: #f0f5f0; /* Verde muito claro como alternativa */
}
/* Manter cores específicas */
.section-highlight {
     background-color: #E8E5DA !important; /* Garante cor pedra/areia */
}
.social-section {
    background-color: var(--color-primary-dark-green) !important; /* Garante verde escuro */
    color: var(--color-white);
}
.social-section h2 {
    color: var(--color-white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--base-spacing) * 2);
    margin-top: 2rem;
}

.news-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden; /* Garante que a imagem não ultrapassa a borda arredondada */
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card h4 {
    margin: 1rem 1rem 0.5rem 1rem;
    color: var(--color-primary-dark-green);
}

.news-card p {
    margin: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    flex-grow: 1; /* Empurra o botão para baixo */
}

.news-card .btn {
    margin: 0 1rem 1rem 1rem;
    align-self: flex-start;
}

/* Membership CTA & Volunteer */
#membership-cta,
#volunteer {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
#membership-cta h2,
#volunteer h2 {
    margin-bottom: 1rem;
}

/* Highlight Section */
.highlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 3);
    align-items: center;
}

.highlight-content img {
     border-radius: var(--border-radius);
     max-height: 350px;
     object-fit: cover;
}

/* Content Image Split (Speleology) */
.content-image-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 3);
    align-items: center;
}

.content-image-split img {
     border-radius: var(--border-radius);
     order: 1; /* Coloca imagem à direita por defeito */
}

.content-image-split > div {
    order: 0;
}

/* Social Section */
.social-icons a {
    color: var(--color-white);
    font-size: 2.5rem; /* Ajustar tamanho dos icones/emojis */
    margin: 0 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* --- Responsividade (Adições/Ajustes) --- */
@media (max-width: 992px) {
    /* ... (Regras existentes) ... */
    .highlight-content,
    .content-image-split {
        grid-template-columns: 1fr;
    }
    .content-image-split img {
        order: 0; /* Imagem primeiro em mobile */
        margin-bottom: 1.5rem;
    }
     .content-image-split > div {
        order: 1;
        text-align: center;
    }
     .highlight-content img {
        margin-bottom: 1.5rem;
     }
     .highlight-content > div {
         text-align: center;
     }
}

@media (max-width: 768px) {
    /* ... (Regras existentes) ... */
     .landing-block {
        padding: 3rem 1rem;
    }
    #hero-main h1 {
        font-size: 2.8rem;
    }
    #hero-main p {
        font-size: 1.2rem;
    }
    .social-icons a {
        font-size: 2rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    /* ... (Regras existentes) ... */
     .landing-block {
        padding: 2rem 1rem;
    }
     #hero-main h1 {
        font-size: 2.2rem;
    }
    #hero-main p {
        font-size: 1rem;
    }
}

/* Hero Section specific styles (if any overrides or new styles needed) */
.hero-section h1 {
    font-size: 2.8rem; /* Example: Adjust for elegance and readability */
    font-weight: bold; /* Or a specific font-weight if a custom font is used */
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Example text shadow for readability */
}

/* Swipe Horizontal Section */
.carousel-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.swipe-container {
    overflow-x: auto !important;
    scroll-behavior: smooth;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.swipe-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    min-width: max-content !important;
    padding: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swipe-track::-webkit-scrollbar {
    display: none;
}

.swipe-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0;
    min-width: 300px;
    width: 300px;
    /* Remover margin, usar apenas gap do flex */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    flex: 0 0 auto;
}

.swipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swipe-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.swipe-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.swipe-card p {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.swipe-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    display: inline-block;
}

/* Responsive adjustments for swipe section */
@media (max-width: 768px) {
    .swipe-card {
        width: 280px;
        min-width: 280px;
        padding: 1.75rem;
    }

    .swipe-card h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .swipe-card {
        width: 260px;
        padding: 1.5rem;
    }

    .swipe-card h4 {
        font-size: 1.2rem;
    }

    .swipe-card p {
        font-size: 0.95rem;
    }
}

/* Keep existing Arrábida Section Styles below */
.arrabida-section {
    background-color: #eae4d9;
    padding: 4rem 2rem;
}

.arrabida-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.arrabida-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.arrabida-columns::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.sub-section-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background-color: var(--color-button);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 77, 56, 0.3);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

/* Responsive adjustments for Arrábida section */
@media (max-width: 992px) {
    .arrabida-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .arrabida-columns::after {
        display: none;
    }

    .carousel-container {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .arrabida-section {
        padding: 3rem 1rem;
    }

    .arrabida-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .sub-section-title {
        font-size: 1.5rem;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-image {
        height: 250px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* START 5. Volunteer Section Styles */
.volunteer-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.volunteer-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.volunteer-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #34495e;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.volunteer-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.4;
}

.volunteer-cta {
    margin-top: 2rem;
}

.volunteer-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.volunteer-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive adjustments for volunteer section */
@media (max-width: 768px) {
    .volunteer-section {
        padding: 3rem 0;
    }

    .volunteer-title {
        font-size: 2rem;
    }

    .volunteer-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .volunteer-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .benefit-item {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .volunteer-section {
        padding: 2rem 0;
    }

    .volunteer-title {
        font-size: 1.8rem;
    }

    .volunteer-intro {
        font-size: 1rem;
    }

    .benefit-item {
        padding: 1.2rem;
    }

    .benefit-icon {
        font-size: 2rem;
    }
}
/* END 5. Volunteer Section Styles */

/* START 3. Membership Invite Section */
.membership-invite {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 2.5rem 0;
    text-align: center;
}

.membership-invite h2 {
    background: none;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.3;
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.membership-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.benefit-icon {
    font-size: 1.2rem;
}

.cta-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cta-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 220px;
    text-align: center;
}
@media (max-width: 576px) {
    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .cta-button {
        min-width: 180px;
        width: 100%;
    }
}

/* Responsive adjustments for membership section */
@media (max-width: 768px) {
    .membership-invite {
        padding: 2rem 0;
    }

    .membership-content {
        padding: 1.5rem;
    }

    .membership-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .benefits-list li {
        font-size: 0.9rem;
    }

    .cta-container {
        margin-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .membership-invite {
        padding: 1.75rem 0;
    }

    .membership-content {
        padding: 1.25rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .benefits-list li {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.6rem 1.75rem;
        font-size: 1rem;
    }
}
/* END 3. Membership Invite Section */

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px; /* Compensar o padding do body */
    padding-top: 80px; /* Adicionar padding para compensar */
    box-sizing: border-box;
    /* Garantir que o hero section não seja cortado pela navbar */
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.3), rgba(61, 193, 211, 0.1));
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    /* Garantir que o container fique abaixo da navbar */
    padding-top: 20px;
}

.hero-content {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(10, 61, 98, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Garantir que o conteúdo fique abaixo da navbar */
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #3DC1D3);
    border-radius: 2px;
}

.hero-author {
    font-size: 1.2rem;
    color: #3DC1D3;
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    color: #ffffff;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 61, 98, 0.3);
}

/* Responsividade para Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        /* Garantir que o hero section seja sempre visível no mobile */
        margin-top: -70px;
        padding-top: 70px;
    }

    .hero-content {
        padding: 30px 25px;
        /* Garantir que o conteúdo fique abaixo da navbar no mobile */
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-author {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
        /* Garantir que o hero section seja sempre visível em telas pequenas */
        margin-top: -65px;
        padding-top: 65px;
    }

    .hero-content {
        padding: 25px 20px;
        /* Garantir que o conteúdo fique abaixo da navbar em telas pequenas */
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-author {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Image Gallery Styles */
.image-gallery {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--color-white);
}

.image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-gallery .caption {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .image-gallery {
        margin-bottom: 1.5rem;
    }
    
    .image-gallery .caption {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Carousel Styles for Por Dentro Section */
.carousel.por-dentro {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-dentro .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-dentro .carousel-item.active {
    display: block;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
}

.carousel.por-dentro img:hover,
.carousel.por-fora img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 15px rgba(255, 255, 255, 0.1);
}

/* Add a subtle glow effect on hover */
.carousel.por-dentro img::after,
.carousel.por-fora img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: box-shadow 0.4s ease;
}

.carousel.por-dentro img:hover::after,
.carousel.por-fora img:hover::after {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ensure the carousel container has proper spacing */
.carousel.por-dentro,
.carousel.por-fora {
    padding: 10px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-dentro img,
    .carousel.por-fora img {
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .carousel.por-dentro img:hover,
    .carousel.por-fora img:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.15),
                    0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Carousel Styles for Por Fora Section */
.carousel.por-fora {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-fora .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-fora .carousel-item.active {
    display: block;
}

.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel.por-fora img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.carousel.por-fora .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel.por-fora .carousel-btn:hover {
    background: rgba(46, 77, 56, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel.por-fora .carousel-btn.prev {
    left: 10px;
}

.carousel.por-fora .carousel-btn.next {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-fora {
        max-width: 100%;
    }
    
    .carousel.por-fora .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(46, 77, 56, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Responsive adjustments for arrows */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

/* Speleology Page Specific Styles */
body.speleology-page {
    background-color: #000000;
    color: #ffffff;
}

body.speleology-page h1,
body.speleology-page h2,
body.speleology-page h3,
body.speleology-page h4,
body.speleology-page h5,
body.speleology-page h6,
body.speleology-page p,
body.speleology-page li,
body.speleology-page a:not(.btn) {
    color: #ffffff;
}

body.speleology-page .section {
    background-color: #000000;
}

body.speleology-page .section-highlight {
    background-color: #1a1a1a;
}

body.speleology-page .profile-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.speleology-page .profile-card h3 {
    color: #ffffff;
}

body.speleology-page .profile-card p {
    color: #ffffff;
}

body.speleology-page .what-to-expect {
    background-color: #23140D !important;
    color: var(--color-white);
}

body.speleology-page .what-to-expect h4 {
    margin-top: 12.5rem;  /* Aumentado de 2.5rem para 12.5rem (500% mais) */
    margin-bottom: 1rem;
    color: var(--color-white);
}

body.speleology-page .what-to-expect p {
    margin-bottom: 2rem;
    color: var(--color-white);
    text-align: justify;
}

body.speleology-page .what-to-expect h4:first-of-type {
    margin-top: 1.5rem;  /* Mantém o primeiro título mais próximo do título principal */
}

body.speleology-page .booking-info {
    background-color: #000000;
}

body.speleology-page .booking-info h2,
body.speleology-page .booking-info p {
    color: #ffffff;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

.expect-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.expect-item:hover {
    transform: translateY(-5px);
}

.expect-item h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.expect-item p {
    color: var(--color-white);
    text-align: justify;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .expect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .expect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expect-item {
        padding: 1.5rem;
    }
}

.arrabida-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.arrabida-column h3 {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.carousel.por-dentro,
.carousel.por-fora {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
    margin: 0 auto;
    display: block;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 95%;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }
    
    .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 90%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.95rem;
    }
}

/* Ensure text remains readable on all devices */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Hiking Section Styles */
.hiking-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.hiking-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--base-spacing) * 3);
}

.hiking-intro h2 {
    color: var(--color-primary);
    margin-bottom: calc(var(--base-spacing) * 1.5);
}

.hiking-intro p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hiking-trails {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hiking-trail {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.trail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-image img:hover {
    transform: scale(1.05);
}

.trail-content {
    flex: 1;
}

.trail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 3) 0;
    }
    
    .hiking-intro {
        margin-bottom: calc(var(--base-spacing) * 2);
    }
    
    .hiking-intro h2 {
        font-size: 1.8rem;
    }
    
    .hiking-trails {
        gap: calc(var(--base-spacing) * 1.5);
    }
    
    .hiking-trail {
        flex-direction: column;
    }
    
    .trail-image {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 2) 0;
    }
    
    .hiking-intro h2 {
        font-size: 1.6rem;
    }
    
    .hiking-intro p {
        font-size: 1rem;
    }
    
    .trail-content h3 {
        font-size: 1.3rem;
    }
    
    .trail-image {
        height: 180px;
    }
}

/* Banner Verde */
.green-banner {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.green-banner h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

/* Seção Introdutória */
.intro-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color);
}

/* Seção de Caminhadas */
.hiking-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.hiking-trails {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hiking-trail {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.trail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-image img:hover {
    transform: scale(1.05);
}

.trail-content {
    flex: 1;
}

.trail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .green-banner h1 {
        font-size: 2.5rem;
    }

    .intro-section p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hiking-trail {
        flex-direction: column;
    }

    .trail-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .trail-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .green-banner h1 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
}

.mission-section {
    background-color: var(--color-background);
    padding: 4rem 2rem;
    text-align: right;
}

.mission-section h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: right;
}

.mission-section p {
    color: var(--color-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: 0;
    line-height: 1.6;
    text-align: right;
}

/* Modal do Flipbook */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#flipbook-container {
    width: 100%;
    height: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Estilos para o Flipbook */
.turn-page {
    background: #fff;
    background-size: 100% 100%;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #flipbook-container {
        height: 400px;
    }
}

/* Estilos específicos para o card da revista */
.magazine-card .card-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.magazine-card .card-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.swipe-card:hover .card-image img {
    transform: scale(1.05);
} 

/* Lightbox Modal Styles */
.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);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #bbb;
    text-decoration: none;
}

/* Add cursor pointer to poster images */
.poster-placeholder img {
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    user-select: none;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-arrow:hover {
    opacity: 1;
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}

/* --- Hiking Grid (Experiencias Page) --- */
.hiking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hiking-card {
    aspect-ratio: 3/4;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hiking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
}

@media (max-width: 1200px) {
    .hiking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hiking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hiking-grid {
        grid-template-columns: 1fr;
    }
    
    .hiking-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Setas laterais do carrossel homepage */
.swipe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    width: 54px;
    height: 54px;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}
.swipe-arrow.left {
    left: -38px;
}
.swipe-arrow.right {
    right: -38px;
}
.swipe-arrow:hover, .swipe-arrow:focus {
    background: var(--color-button-hover);
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
@media (max-width: 768px) {
    .swipe-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .swipe-arrow.left {
        left: -18px;
    }
    .swipe-arrow.right {
        right: -18px;
    }
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 15px;
    position: relative;
}

.testimonials-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0A3D62, #3DC1D3);
    border-radius: 2px;
}

.testimonials-header p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.overall-rating {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(10, 61, 98, 0.1);
    border: 2px solid rgba(61, 193, 211, 0.1);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 15px;
}

.rating-text {
    font-size: 1.1rem;
    color: #666666;
    font-weight: 500;
}

.testimonials-container {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px; */
    margin-bottom: 50px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(10, 61, 98, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 193, 211, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: rgba(61, 193, 211, 0.1);
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 61, 98, 0.15);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A3D62;
    margin-bottom: 5px;
}

.testimonial-date {
    font-size: 0.9rem;
    color: #666666;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    font-style: italic;
}

.testimonials-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonials-actions .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.testimonials-actions .btn-primary {
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    color: #ffffff;
}

.testimonials-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 61, 98, 0.3);
}

.testimonials-actions .btn-secondary {
    background: #ffffff;
    color: #0A3D62;
    border: 2px solid #0A3D62;
}

.testimonials-actions .btn-secondary:hover {
    background: #0A3D62;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Modal para nova avaliação */
.review-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.review-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666666;
    transition: color 0.3s ease;
}

.review-close:hover {
    color: #0A3D62;
}

.review-modal h3 {
    color: #0A3D62;
    margin-bottom: 30px;
    text-align: center;
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.review-form-group input,
.review-form-group textarea,
.review-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form-group input:focus,
.review-form-group textarea:focus,
.review-form-group select:focus {
    outline: none;
    border-color: #3DC1D3;
}

.rating-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #FFD700;
}

/* Responsividade para testimonials */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-header h2 {
        font-size: 2rem;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonials-actions {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-actions .btn {
    width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .review-modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-header h2 {
        font-size: 1.8rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 15px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

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

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

/* Carrossel de Testemunhos */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.testimonials-track .testimonial-card {
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    flex-shrink: 0;
    flex-grow: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0A3D62;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #3DC1D3;
}

/* Responsividade para o carrossel */
@media (max-width: 768px) {
    .testimonials-carousel {
        max-width: 100%;
    }
    
    .testimonials-track .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .testimonials-dots {
        margin-top: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Membership Section Styles */
.membership-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.membership-header {
    text-align: center;
    margin-bottom: 50px;
}

.membership-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 15px;
    position: relative;
}

.membership-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0A3D62, #3DC1D3);
    border-radius: 1px;
}

.membership-header p {
    font-size: 1rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
}

.membership-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 15px rgba(10, 61, 98, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 193, 211, 0.1);
    text-align: center;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(10, 61, 98, 0.12);
}

.benefit-card .benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A3D62;
    margin: 0;
}

.membership-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.membership-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.membership-actions .btn-primary {
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    color: #ffffff;
}

.membership-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.25);
}

.membership-actions .btn-secondary {
    background: #ffffff;
    color: #0A3D62;
    border: 2px solid #0A3D62;
}

.membership-actions .btn-secondary:hover {
    background: #0A3D62;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Volunteer Section Styles */
.volunteer-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.volunteer-header {
    text-align: center;
    margin-bottom: 60px;
}

.volunteer-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 15px;
    position: relative;
}

.volunteer-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0A3D62, #3DC1D3);
    border-radius: 2px;
}

.volunteer-header p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.volunteer-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.volunteer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.volunteer-actions .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.volunteer-actions .btn-primary {
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    color: #ffffff;
}

.volunteer-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 61, 98, 0.3);
}

/* Responsividade para membership e volunteer */
@media (max-width: 768px) {
    .membership-section,
    .volunteer-section {
        padding: 50px 0;
    }

    .membership-header h2,
    .volunteer-header h2 {
        font-size: 1.8rem;
    }

    .membership-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }

    .volunteer-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 20px 15px;
    }

    .membership-actions,
    .volunteer-actions {
        flex-direction: column;
        align-items: center;
    }

    .membership-actions .btn,
    .volunteer-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .membership-header h2,
    .volunteer-header h2 {
        font-size: 1.6rem;
    }

    .membership-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefit-card .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .benefit-card h3 {
        font-size: 1rem;
    }
}

/* Arrábida Section Styles */
.arrabida-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.arrabida-header {
    text-align: center;
    margin-bottom: 50px;
}

.arrabida-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 15px;
    position: relative;
}

.arrabida-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0A3D62, #3DC1D3);
    border-radius: 1px;
}

.arrabida-header p {
    font-size: 1rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
}

.arrabida-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.arrabida-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(10, 61, 98, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 193, 211, 0.1);
    overflow: hidden;
}

.arrabida-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 61, 98, 0.15);
}

.arrabida-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.arrabida-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.arrabida-card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0A3D62;
    margin: 0;
}

/* Carousel styles for Arrábida */
.arrabida-card .carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.arrabida-card .carousel-item {
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.arrabida-card .carousel-item.active {
    display: block;
}

.arrabida-card .carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.arrabida-card .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 61, 98, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.arrabida-card .carousel-btn:hover {
    background: rgba(10, 61, 98, 1);
    transform: translateY(-50%) scale(1.1);
}

.arrabida-card .carousel-btn.prev {
    left: 10px;
}

.arrabida-card .carousel-btn.next {
    right: 10px;
}

/* Responsividade para Arrábida */
@media (max-width: 768px) {
    .arrabida-section {
        padding: 50px 0;
    }

    .arrabida-header h2 {
        font-size: 1.8rem;
    }

    .arrabida-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .arrabida-card {
        padding: 25px;
    }

    .arrabida-card .carousel-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .arrabida-header h2 {
        font-size: 1.6rem;
    }

    .arrabida-card {
        padding: 20px;
    }

    .arrabida-card .carousel-item img {
        height: 200px;
    }

    .arrabida-card .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Recent Stories Section Styles */
.recent-stories-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f8ff 100%);
    position: relative;
}

.stories-header {
    text-align: center;
    margin-bottom: 30px;
}

.stories-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2e4d38;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stories-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2e4d38, #6fa88e);
    border-radius: 2px;
}

.stories-header p {
    font-size: 1rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 15px;
}

.video-story-container {
    max-width: 750px; /* Wider to fit both items */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.story-item {
    flex: 0 0 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio (1080 × 1920) */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Optimize rendering */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.video-wrapper:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full video without cropping */
    border-radius: 16px;
    /* Video optimization */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Smooth playback */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Performance optimization */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Revista Announcement */
.revista-announcement {
    background: linear-gradient(135deg, #2e4d38 0%, #3e693f 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(46, 77, 56, 0.3);
    margin-bottom: 15px;
    text-align: center;
    animation: slideInDown 0.6s ease-out;
}

.revista-announcement i {
    font-size: 1.2rem;
    color: #ffd700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Revista Button */
.revista-button {
    background: linear-gradient(135deg, #2e4d38 0%, #3e693f 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(46, 77, 56, 0.3);
    margin-top: 15px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: var(--font-primary);
}

.revista-button:hover {
    background: linear-gradient(135deg, #3e693f 0%, #4a7a4d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 77, 56, 0.4);
}

.revista-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 77, 56, 0.3);
}

.revista-button i {
    font-size: 1.1rem;
    color: #ffd700;
}

/* Revista Wrapper Styles */
.revista-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.revista-wrapper:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.revista-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.revista-wrapper:hover img {
    transform: scale(1.05);
}

.revista-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 16px;
}

.revista-wrapper:hover .revista-overlay {
    opacity: 1;
}

.revista-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2e4d38;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

.revista-badge i {
    font-size: 1.1rem;
    color: #6fa88e;
}

.revista-cta {
    background: linear-gradient(135deg, #2e4d38 0%, #6fa88e 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(46, 77, 56, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.revista-cta i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Video loading state */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #6fa88e;
    border-radius: 50%;
    animation: video-loading 1s linear infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper.loading::before {
    opacity: 1;
}

@keyframes video-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video controls styling */
.video-wrapper video::-webkit-media-controls-panel {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.video-wrapper video::-webkit-media-controls-play-button,
.video-wrapper video::-webkit-media-controls-pause-button {
    filter: brightness(1.2);
}

/* Prevent video text selection */
.video-wrapper video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Responsivo para video section */
@media (max-width: 768px) {
    .recent-stories-section {
        padding: 40px 0;
    }
    
    .stories-header {
        margin-bottom: 25px;
    }
    
    .stories-header h2 {
        font-size: 1.75rem;
    }
    
    .stories-header p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .video-story-container {
        flex-direction: column; /* Stack vertically on tablets/mobile */
        max-width: 300px;
        padding: 0 15px;
        gap: 20px;
    }
    
    .story-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .video-wrapper,
    .revista-wrapper {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .recent-stories-section {
        padding: 35px 0;
    }
    
    .stories-header h2 {
        font-size: 1.5rem;
    }
    
    .stories-header p {
        font-size: 0.9rem;
    }
    
    .video-story-container {
        max-width: 280px;
        gap: 15px;
    }
    
    .video-wrapper {
        border-radius: 12px;
        max-height: 70vh; /* Prevent items from being too tall on mobile */
    }
    
    .video-wrapper video {
        max-height: 70vh;
    }
    
    .revista-wrapper {
        border-radius: 12px;
    }
    
    .revista-wrapper img {
        max-height: 70vh; /* Prevent revista from being too tall on mobile */
        width: auto;
        margin: 0 auto;
    }
    
    .revista-overlay {
        padding: 15px;
    }
    
    .revista-badge {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .revista-cta {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .revista-announcement {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .revista-announcement i {
        font-size: 1rem;
    }
    
    .revista-button {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-top: 12px;
    }
    
    .revista-button i {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .video-story-container {
        max-width: 820px; /* Wider for two items side by side */
        gap: 40px;
    }
    
    .story-item {
        flex: 0 0 380px;
        max-width: 380px;
    }
}

/* Featured Cards Section Styles */
.featured-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 15px;
    position: relative;
}

.featured-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0A3D62, #3DC1D3);
    border-radius: 1px;
}

.featured-header p {
    font-size: 1rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
}

.featured-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(10, 61, 98, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 193, 211, 0.1);
    overflow: hidden;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 61, 98, 0.15);
}

.featured-card .card-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.featured-card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Mobile overrides para desktop */
@media (min-width: 769px) {
    .featured-card .card-image img {
        height: 200px;
    }
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.featured-card .card-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0A3D62;
    margin-bottom: 10px;
}

.featured-card .card-content p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.featured-card .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-card .btn-primary {
    background: linear-gradient(135deg, #0A3D62, #3DC1D3);
    color: #ffffff;
}

.featured-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.25);
}

/* Swipe container styles */
.featured-content .swipe-container {
    overflow: hidden;
    border-radius: 15px;
}

.featured-content .swipe-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.featured-content .swipe-track .featured-card {
    min-width: 320px;
    flex-shrink: 0;
}

/* Swipe arrows */
.featured-content .swipe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 61, 98, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.featured-content .swipe-arrow:hover {
    background: rgba(10, 61, 98, 1);
    transform: translateY(-50%) scale(1.1);
}

.featured-content .swipe-arrow.left {
    left: -25px;
}

.featured-content .swipe-arrow.right {
    right: -25px;
}

/* Responsividade para Featured Cards */
@media (max-width: 768px) {
    .featured-section {
        padding: 50px 0;
    }

    .featured-header h2 {
        font-size: 1.8rem;
    }

    .featured-content .swipe-track .featured-card {
        min-width: 280px;
    }

    .featured-card {
        padding: 20px;
        height: 300px !important;
        min-height: 300px !important;
    }

    .featured-card .card-image img {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

    .featured-content .swipe-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .featured-content .swipe-arrow.left {
        left: -20px;
    }

    .featured-content .swipe-arrow.right {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .featured-header h2 {
        font-size: 1.6rem;
    }

    .featured-content .swipe-track .featured-card {
        min-width: 260px;
    }

    .featured-card {
        padding: 15px;
        height: 260px !important;
        min-height: 260px !important;
    }

    .featured-card .card-image img {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }

    .featured-card .card-content h4 {
        font-size: 1.1rem;
    }

    .featured-card .card-content p {
        font-size: 0.9rem;
    }
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a3d62 0%, #1e5f8a 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #3DC1D3;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e8f4f8;
}

.cookie-link {
    color: #3DC1D3;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-actions .btn-primary {
    background: #3DC1D3;
    border: 2px solid #3DC1D3;
    color: white;
}

.cookie-actions .btn-primary:hover {
    background: #2ba8b8;
    border-color: #2ba8b8;
    transform: translateY(-1px);
}

.cookie-actions .btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: white;
}

.cookie-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #0a3d62;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #0a3d62;
    background: #f3f4f6;
}

.cookie-modal-body {
    padding: 20px 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #3DC1D3;
}

input:disabled + .slider {
    background-color: #3DC1D3;
    opacity: 0.7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider:before {
    transform: translateX(26px);
}

.cookie-category-info h4 {
    margin: 0 0 6px 0;
    color: #0a3d62;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.cookie-modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
}

/* Hide cookie banner when user has made a choice */
.cookie-banner.hidden {
    display: none;
}

/* --- Correções de compatibilidade Safari/Brave --- */
/* Safari and Brave compatibility fixes */
.featured-card {
    /* Garantir renderização consistente entre browsers */
    display: flex;
    flex-direction: column;
    min-height: 400px;
    /* Corrigir problemas de altura no Safari */
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    /* Forçar hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Corrigir problemas de overflow */
    overflow: visible;
}

/* Correções específicas para Safari - Cards Featured */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
    .featured-card {
        /* Forçar dimensões fixas no Safari */
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        /* Corrigir flexbox no Safari */
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        /* Forçar hardware acceleration */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Corrigir problemas de renderização */
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        /* Garantir que o card seja renderizado */
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
    }
    
    .featured-card .card-image {
        /* Dimensões fixas para Safari */
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        /* Corrigir flexbox no Safari */
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        /* Forçar reflow */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Garantir que o container funcione */
        position: relative !important;
        overflow: hidden !important;
        background-color: #f5f5f5 !important;
    }
    
    .featured-card .card-image img {
        /* Forçar carregamento no Safari */
        width: 100% !important;
        height: 100% !important;
        min-height: 200px !important;
        max-height: 200px !important;
        /* Corrigir object-fit no Safari */
        -webkit-object-fit: cover !important;
        object-fit: cover !important;
        -webkit-object-position: center !important;
        object-position: center !important;
        /* Forçar renderização */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Garantir que a imagem seja exibida */
        opacity: 1 !important;
        visibility: visible !important;
        /* Forçar carregamento */
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        /* Garantir que não haja problemas de layout */
        display: block !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .featured-card .card-content {
        /* Corrigir flexbox no Safari */
        -webkit-flex: 1 !important;
        flex: 1 !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-justify-content: flex-start !important;
        justify-content: flex-start !important;
        /* Garantir que o conteúdo seja visível */
        overflow: visible !important;
        /* Corrigir problemas de altura - espaço para botão */
        min-height: 200px !important;
        padding-bottom: 80px !important;
        /* Forçar reflow */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Padding elegante para o conteúdo */
        padding: 20px 16px 0 16px !important;
        /* Melhor espaçamento */
        gap: 12px !important;
        /* Garantir que o botão fique sempre no final */
        position: relative !important;
    }
    
    /* Correções específicas para botões no Safari */
    .featured-card .btn {
        /* Dimensões otimizadas para estética */
        width: calc(100% - 24px) !important;
        min-width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        /* Padding elegante */
        padding: 12px 24px !important;
        /* Corrigir flexbox no Safari */
        display: -webkit-inline-flex !important;
        display: inline-flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        /* Forçar renderização */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Garantir que o botão seja visível */
        opacity: 1 !important;
        visibility: visible !important;
        /* Corrigir problemas de texto */
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        /* Estilos de fonte elegantes */
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: 0.5px !important;
        /* Bordas e background elegantes */
        border-radius: 22px !important;
        border: none !important;
        background: linear-gradient(135deg, #0A3D62 0%, #2A5F8F 50%, #3DC1D3 100%) !important;
        color: #ffffff !important;
        /* Sombra elegante */
        box-shadow: 0 4px 15px rgba(10, 61, 98, 0.3) !important;
        /* Transições suaves */
        -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        /* Posicionamento elegante - sempre no final */
        position: absolute !important;
        bottom: 20px !important;
        left: 12px !important;
        right: 12px !important;
        z-index: 10 !important;
        margin: 0 !important;
        /* Efeito de brilho sutil */
        background-size: 200% 200% !important;
        -webkit-animation: gradientShift 3s ease infinite !important;
        animation: gradientShift 3s ease infinite !important;
    }
    
    .featured-card .btn:hover {
        -webkit-transform: translate3d(0, -3px, 0) scale(1.02) !important;
        transform: translate3d(0, -3px, 0) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(10, 61, 98, 0.4) !important;
        background: linear-gradient(135deg, #0A3D62 0%, #2A5F8F 30%, #3DC1D3 70%, #5DD3E8 100%) !important;
        -webkit-animation: none !important;
        animation: none !important;
    }
    
    .featured-card .btn:active {
        -webkit-transform: translate3d(0, -1px, 0) scale(0.98) !important;
        transform: translate3d(0, -1px, 0) scale(0.98) !important;
        box-shadow: 0 2px 10px rgba(10, 61, 98, 0.3) !important;
    }
    
    .featured-card .btn i {
        /* Ícones elegantes */
        font-size: 16px !important;
        margin-right: 10px !important;
        display: inline-block !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transition: all 0.3s ease !important;
        transition: all 0.3s ease !important;
        opacity: 0.9 !important;
    }
    
    .featured-card .btn:hover i {
        -webkit-transform: translate3d(2px, 0, 0) !important;
        transform: translate3d(2px, 0, 0) !important;
        opacity: 1 !important;
    }
    
    /* Garantir que botões com classe hidden sejam ocultos no Safari */
    .featured-card .btn.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        -webkit-transform: scale(0) !important;
        transform: scale(0) !important;
    }
    
    /* Correções para swipe container no Safari */
    .featured-content .swipe-container {
        /* Corrigir overflow no Safari */
        -webkit-overflow-scrolling: touch !important;
        overflow-x: auto !important;
        /* Garantir que o container funcione */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    .featured-content .swipe-track {
        /* Corrigir flexbox no Safari */
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: flex-start !important;
        align-items: flex-start !important;
        /* Corrigir problemas de gap no Safari */
        gap: 1rem !important;
        -webkit-gap: 1rem !important;
        /* Forçar reflow */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

.featured-card .card-image {
    /* Garantir que o container tenha dimensões definidas */
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #f5f5f5 !important;
    /* Corrigir flexbox no Safari */
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    /* Forçar reflow no Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Mobile overrides para corrigir altura dos cards */
@media (max-width: 768px) {
    .featured-card {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .featured-card .card-image {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .featured-card .card-content {
        min-height: 150px !important;
    }
}

@media (max-width: 576px) {
    .featured-card {
        height: 260px !important;
        min-height: 260px !important;
    }
    
    .featured-card .card-image {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }
    
    .featured-card .card-content {
        min-height: 140px !important;
    }
}

@media (max-width: 480px) {
    .featured-card {
        height: 240px !important;
        min-height: 240px !important;
    }
    
    .featured-card .card-image {
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }
    
    .featured-card .card-content {
        min-height: 130px !important;
    }
}

.featured-card .card-image img {
    /* Estilos base para todas as imagens */
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    /* Garantir que a imagem seja carregada */
    max-width: none !important;
    max-height: none !important;
    /* Melhorar performance */
    will-change: transform !important;
    /* Garantir que não haja problemas de layout */
    /* vertical-align: top !important; - Removido pois não é compatível com display: block */
    /* Corrigir object-fit no Safari */
    -webkit-object-fit: cover;
    /* Forçar carregamento no Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.featured-card .card-content {
    /* Corrigir flexbox no Safari */
    -webkit-flex: 1;
    flex: 1;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    /* Garantir que o conteúdo seja visível */
    overflow: visible;
    /* Corrigir problemas de altura */
    min-height: 150px;
}

/* Correções específicas para swipe container */
.featured-content .swipe-container {
    /* Corrigir overflow no Safari */
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    /* Garantir que o container funcione */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.featured-content .swipe-track {
    /* Corrigir flexbox no Safari */
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: stretch;
    align-items: stretch;
    /* Garantir que os cards tenham altura consistente */
    -webkit-align-items: flex-start;
    align-items: flex-start;
    /* Corrigir problemas de gap no Safari */
    gap: 1rem;
    -webkit-gap: 1rem;
}

/* Correções específicas para Brave */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
    .featured-card {
        /* Correções específicas para Brave */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Garantir que o card seja renderizado corretamente */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .featured-card .card-image img {
        /* Forçar carregamento no Brave */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Garantir que a imagem seja exibida */
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Animação do gradiente para botões */
@-webkit-keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}