/* ===================================
   Fórum do Mar dos Países da CPLP
   CSS Stylesheet
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Ocean Theme */
    --primary: #0a4d8c;
    --primary-light: #1a6fb5;
    --primary-dark: #073a6a;
    --primary-rgb: 10, 77, 140;

    /* Secondary Colors */
    --secondary: #00b4d8;
    --secondary-light: #48cae4;
    --secondary-dark: #0096c7;
    --secondary-rgb: 0, 180, 216;

    /* Accent Colors */
    --accent: #e67e22;
    --accent-light: #f39c12;
    --accent-rgb: 230, 126, 34;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #0d1117;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 60px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Background */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-400);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

/* ===================================
   Base Styles
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

ul {
    list-style: none;
}

/* ===================================
   Preloader
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.wave {
    width: 4px;
    height: 40px;
    background: var(--white);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

.preloader-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.8s ease both;
}

.loader-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-normal);
}

.navbar.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(10, 77, 140, 0.08);
}

.nav-link.active {
    color: var(--primary);
}

[data-theme="dark"] .nav-link {
    color: var(--gray-300);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--secondary-light);
    background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .nav-link.active {
    color: var(--secondary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255,255,255,0.1);
    color: var(--gray-300);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .bar {
    background: var(--gray-100);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero Section
   =================================== */
.hero-top {
    padding: 140px 0 80px;
    background: var(--white);
    text-align: center;
}

[data-theme="dark"] .hero-top {
    background: var(--gray-800);
}

.hero-top-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(10, 77, 140, 0.08);
    border: 1px solid rgba(10, 77, 140, 0.15);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease 0.3s both;
}

[data-theme="dark"] .hero-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: var(--gray-300);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease 0.5s both;
}

[data-theme="dark"] .hero-title {
    color: var(--gray-100);
}

.title-line {
    display: block;
}

.title-line.accent {
    font-style: italic;
}

/* Banner Section */
.hero-banner-section {
    width: 100%;
    line-height: 0;
    padding-top: 80px;
    background: var(--white);
}

[data-theme="dark"] .hero-banner-section {
    background: var(--gray-800);
}

.hero-banner-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Content Section */
.hero-content-section {
    padding: 90px 0;
    background: var(--white);
}

[data-theme="dark"] .hero-content-section {
    background: var(--gray-800);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

[data-theme="dark"] .hero-description {
    color: var(--gray-400);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

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

.btn-secondary-solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 77, 140, 0.35);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

[data-theme="dark"] .stat-number {
    color: var(--secondary-light);
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--secondary-dark);
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ===================================
   Sobre Page
   =================================== */
.page-hero {
    padding: 150px 0 60px;
    background: var(--white);
    text-align: center;
}

[data-theme="dark"] .page-hero {
    background: var(--gray-800);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

[data-theme="dark"] .page-title {
    color: var(--gray-100);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

[data-theme="dark"] .page-subtitle {
    color: var(--gray-400);
}

.page-content {
    padding: 60px 0 90px;
    background: var(--white);
}

[data-theme="dark"] .page-content {
    background: var(--gray-800);
}

.page-content-inner {
    max-width: 860px;
}

.text-block {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 16px;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.text-block-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.members-list {
    list-style: none;
    margin: 16px 0;
}

.members-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.members-list li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary);
    font-size: 0.95rem;
}

.page-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .text-block {
        padding: 28px 24px;
    }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    transition: background-color var(--transition-normal);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.1), rgba(0, 180, 216, 0.1));
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--bg-primary);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.1), rgba(0, 180, 216, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-list {
    margin-top: 24px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.about-list li i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ===================================
   Countries Section
   =================================== */
.countries {
    background: var(--bg-primary);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.country-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
    cursor: pointer;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.country-flag {
    flex-shrink: 0;
}

.flag-img {
    width: 72px;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: block;
}

.country-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.country-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.country-info p i {
    color: var(--secondary);
    margin-right: 4px;
}

.country-coast {
    color: var(--primary) !important;
    font-weight: 500;
}

/* ===================================
   Events Section
   =================================== */
.events {
    background: var(--bg-secondary);
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.event-card.featured {
    border-left: 4px solid var(--secondary);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    min-width: 90px;
}

.event-date .day {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-date .year {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.event-content {
    flex: 1;
}

.event-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 12px;
}

.event-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.event-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-meta span i {
    color: var(--secondary);
    margin-right: 4px;
}

.event-register {
    flex-shrink: 0;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.event-register:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===================================
   News Section
   =================================== */
.news {
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-meta span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.news-meta span i {
    margin-right: 4px;
    color: var(--secondary);
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap var(--transition-fast);
}

.news-link:hover {
    gap: 12px;
    color: var(--secondary);
}

/* ===================================
   Map Section
   =================================== */
.map-section {
    background: var(--bg-secondary);
}

.map-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.cplp-map {
    width: 100%;
    height: 500px;
    z-index: 1;
}

.cplp-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.cplp-map .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 1.1rem !important;
    color: var(--gray-700) !important;
    background: var(--bg-primary) !important;
}

.cplp-map .leaflet-control-zoom a:hover {
    background: var(--gray-100) !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .cplp-map .leaflet-control-zoom a {
    color: var(--gray-300) !important;
    background: var(--gray-800) !important;
}

[data-theme="dark"] .cplp-map .leaflet-control-zoom a:hover {
    background: var(--gray-700) !important;
    color: var(--secondary-light) !important;
}

.cplp-tooltip .map-tooltip {
    font-family: var(--font-primary);
    text-align: center;
    line-height: 1.5;
}

.cplp-tooltip .map-tooltip strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
}

.cplp-tooltip .map-tooltip span {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.cplp-tooltip.leaflet-tooltip-top::before {
    border-top-color: var(--white);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--gray-100);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.legend-line {
    width: 30px;
    height: 0;
    border-top: 2px dashed var(--secondary);
}

@media (max-width: 768px) {
    .cplp-map {
        height: 350px;
    }

    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-100);
}

.contact-card:hover {
    border-color: var(--secondary);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-social {
    margin-top: 24px;
}

.contact-social h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--secondary);
}

.newsletter-form button {
    padding: 14px 20px;
    background: var(--secondary);
    border: none;
    color: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--secondary-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.cplp-flags {
    display: flex;
    gap: 8px;
}

.cplp-flags span {
    width: 32px;
    height: 22px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    cursor: default;
}

.cplp-flags span:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid .about-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 100px 32px 32px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text-primary);
        padding: 12px 0;
        font-size: 1.05rem;
        width: 100%;
    }

    .nav-menu .nav-link:hover {
        background: transparent;
        color: var(--primary);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-top {
        padding: 120px 0 60px;
    }

    .hero-content-section {
        padding: 60px 0;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid .about-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-meta {
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .contact-form {
        padding: 24px;
    }

}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Form success message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 16px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
}

/* Print styles */
@media print {
    .navbar, .back-to-top, .scroll-indicator, #preloader {
        display: none !important;
    }

    .hero-top,
    .hero-content-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-banner-section {
        display: none;
    }
}
