/* ==========================================================================
   FUNPORTO - Fundación Oportunidad para Todos
   Apple-Inspired Design System CSS (Liquid Glass & Modern Micro-Interactions)
   Website: funporto.org
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables (Preserving Brand Colors & Enhancing Taste)
   -------------------------------------------------------------------------- */
:root {
  /* Predominant Base & Liquid Glass Tone */
  --brand-sky: #96ddfe;               /* Predominant Light Sky Cyan */
  --brand-sky-dark: #6ed0fd;
  --brand-sky-light: #eef8fe;         /* Soft Ice Cyan Tint */
  --brand-sky-glass: rgba(150, 221, 254, 0.85);
  
  /* Contrast Titles & Headings Color */
  --brand-royal: #2157d8;             /* Contrast Royal Blue */
  --brand-royal-dark: #0c2b7a;        /* Deep Logo Navy for high contrast */
  --brand-royal-light: #dbe6ff;
  
  /* High-Impact Eye-Catching Buttons & CTA */
  --brand-coral: #F3334F;             /* Eye-Catching Coral Red */
  --brand-coral-dark: #d91e3a;
  --brand-coral-light: #ffebeb;
  
  /* Mapped tokens */
  --primary-cobalt: #2157d8;
  --primary-dark: #0c2b7a;
  --primary-light: #eef8fe;
  
  --accent-sea: #F3334F;
  --accent-sea-dark: #d91e3a;
  --accent-sea-light: #ffebeb;
  
  --accent-gold: #e69d00;
  --chartreuse: #73aa37;
  
  --neutral-bg: #f4faff;
  --surface-card: #ffffff;
  --surface-glass: rgba(150, 221, 254, 0.85);
  --surface-glass-white: rgba(255, 255, 255, 0.85);
  
  --text-main: #0c2b7a;
  --text-muted: #2d4c96;
  --text-light: #5d75b3;
  --text-inverse: #ffffff;
  
  --line-border: rgba(33, 87, 216, 0.12);
  --line-border-focus: rgba(33, 87, 216, 0.4);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  
  /* Spacing Scale */
  --sp-xs: 0.5rem;    /* 8px */
  --sp-sm: 1rem;      /* 16px */
  --sp-md: 1.5rem;    /* 24px */
  --sp-lg: 2.5rem;    /* 40px */
  --sp-xl: 4rem;      /* 64px */
  --sp-2xl: clamp(4rem, 8vw, 7rem);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(33, 87, 216, 0.05);
  --shadow-hover: 0 16px 36px rgba(33, 87, 216, 0.12);
  --shadow-glass: 0 10px 32px rgba(150, 221, 254, 0.35);
  --shadow-modal: 0 24px 60px rgba(12, 43, 122, 0.25);
  
  /* Transitions (Emil Kowalski spring ease) */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-normal: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-royal-dark);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. Typography & Modern Section Headers (No generic oval pill badges)
   -------------------------------------------------------------------------- */
/* Taste-Skill / Impeccable Clean Kicker Design */
.eyebrow, .eyebrow-sea, .eyebrow-red {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-royal);
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0.85rem;
  position: relative;
}

.eyebrow::before, .eyebrow-sea::before, .eyebrow-red::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2.5px;
  background: var(--brand-coral);
  border-radius: 2px;
}

.section-head.center .eyebrow,
.section-head.center .eyebrow-sea,
.section-head.center .eyebrow-red {
  justify-content: center;
}

.section-head.center .eyebrow::after,
.section-head.center .eyebrow-sea::after,
.section-head.center .eyebrow-red::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2.5px;
  background: var(--brand-coral);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-royal-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--brand-royal-dark);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

.section-head {
  margin-bottom: var(--sp-xl);
}

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

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background-color: var(--brand-royal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(33, 87, 216, 0.28);
}

.btn-primary:hover {
  background-color: var(--brand-royal-dark);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(33, 87, 216, 0.38);
}

.btn-sea, .btn-danger {
  background-color: var(--brand-coral);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(243, 51, 79, 0.35);
}

.btn-sea:hover, .btn-danger:hover {
  background-color: var(--brand-coral-dark);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(243, 51, 79, 0.45);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: var(--brand-royal);
  color: var(--brand-royal);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: var(--brand-royal);
  color: #ffffff;
}

.btn-secondary {
  background-color: rgba(33, 87, 216, 0.08);
  color: var(--brand-royal);
}

.btn-secondary:hover {
  background-color: rgba(33, 87, 216, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-royal-light);
  color: var(--brand-royal);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation (Liquid Glass Aesthetic)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(244, 250, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(150, 221, 254, 0.4);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(12, 43, 122, 0.08);
  border-bottom: 1px solid rgba(33, 87, 216, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-royal-dark);
}

.nav-brand img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-coral);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(33, 87, 216, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--brand-royal);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--brand-royal-dark);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(76px + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  background: linear-gradient(135deg, #96ddfe 0%, #bce9ff 45%, #eef8fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--brand-royal-dark);
}

.hero-content p.lead {
  margin-bottom: 2rem;
  color: #1a3d8f;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(33, 87, 216, 0.15);
  background: var(--surface-card);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-spring);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(12, 43, 122, 0.9) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--brand-coral);
  transform: scale(1.2);
}

.video-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background: rgba(12, 43, 122, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Impact Stats Band
   -------------------------------------------------------------------------- */
.stats-section {
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid rgba(150, 221, 254, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-card {
  padding: 1.5rem 1rem;
  background: var(--brand-sky-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 221, 254, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-royal-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--brand-royal);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. About & Strategic Lines Sections
   -------------------------------------------------------------------------- */
.section-padding {
  padding: var(--sp-2xl) 0;
}

.bg-light {
  background-color: var(--brand-sky-light);
}

.bg-surface {
  background-color: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(150, 221, 254, 0.4);
  box-shadow: 0 8px 30px rgba(33, 87, 216, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-sky-dark);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-sky);
  color: var(--brand-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-box.sea {
  background: var(--brand-coral-light);
  color: var(--brand-coral);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--brand-royal-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Timeline / History */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-sky);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-royal);
  border: 4px solid var(--brand-sky-light);
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.principle-item {
  background: var(--surface-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 221, 254, 0.4);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast);
}

.principle-item:hover {
  transform: translateY(-3px);
}

.principle-item h4 {
  color: var(--brand-royal);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.principle-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. IMPROVED 9:16 VERTICAL GALLERY (Mobile Stories & Non-Profit Format)
   -------------------------------------------------------------------------- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(33, 87, 216, 0.15);
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-royal);
  color: #ffffff;
  border-color: var(--brand-royal);
  box-shadow: 0 4px 12px rgba(33, 87, 216, 0.25);
}

.gallery-grid-9-16 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.gallery-card-9-16 {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12, 43, 122, 0.1);
  background: var(--brand-royal-dark);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-card-9-16:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 45px rgba(12, 43, 122, 0.2);
}

.gallery-card-9-16 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card-9-16:hover img {
  transform: scale(1.08);
}

.gallery-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 43, 122, 0) 30%, rgba(12, 43, 122, 0.75) 70%, rgba(6, 29, 84, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem;
  color: #ffffff;
  transition: background var(--transition-normal);
}

.gallery-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-coral);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.gallery-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.gallery-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-hover-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.gallery-card-9-16:hover .gallery-card-hover-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 29, 84, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-modal);
  animation: modalScaleIn 0.35s var(--ease-spring);
}

.lightbox-media-col {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
}

.lightbox-media-col img {
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
}

.lightbox-info-col {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   10. BLOG & NEWS SECTION (Noticias & Actualidad)
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(150, 221, 254, 0.5);
  box-shadow: 0 8px 24px rgba(33, 87, 216, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-sky-dark);
}

.blog-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-sky-light);
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-cover img {
  transform: scale(1.06);
}

.blog-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 43, 122, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-royal-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-coral);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: gap var(--transition-fast);
}

.blog-read-btn:hover {
  gap: 0.75rem;
  color: var(--brand-coral-dark);
}

/* Article Reader Modal */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 29, 84, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.article-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalScaleIn 0.35s var(--ease-spring);
}

.article-modal-header {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.article-modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 43, 122, 0.95) 0%, rgba(12, 43, 122, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
}

.article-modal-body {
  padding: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1a3d8f;
}

.article-modal-body p {
  margin-bottom: 1.5rem;
}

.article-modal-body blockquote {
  border-left: 4px solid var(--brand-coral);
  padding: 1rem 1.5rem;
  background: var(--brand-sky-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brand-royal-dark);
  margin: 2rem 0;
}

.article-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast);
}

.article-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   11. Team, Transparency & FAQs
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--surface-card);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 221, 254, 0.4);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--brand-royal-dark);
  font-size: 1.05rem;
}

.team-role {
  color: var(--brand-royal);
  font-weight: 600;
  font-size: 0.85rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 221, 254, 0.5);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-royal-dark);
  cursor: pointer;
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--brand-royal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Contact Form & Footer
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-xl);
}

.contact-info-box {
  background: var(--brand-sky-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 221, 254, 0.6);
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--brand-royal-dark);
}

.info-item i {
  font-size: 1.35rem;
  color: var(--brand-royal);
  margin-top: 0.2rem;
}

.form-card {
  background: var(--surface-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 221, 254, 0.4);
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-royal-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-border);
  background-color: var(--neutral-bg);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-royal);
  box-shadow: 0 0 0 3px rgba(33, 87, 216, 0.15);
  background-color: #ffffff;
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background: #e6f9ed;
  color: #1a7f37;
  border: 1px solid #abebb9;
}

.form-status.error {
  display: block;
  background: #ffebe9;
  color: #cf222e;
  border: 1px solid #ff8182;
}

/* Site Footer */
.site-footer {
  background-color: #061d54;
  color: #ffffff;
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Discreet CMS Admin Trigger in Footer */
.admin-footer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.admin-footer-trigger:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   13. CMS HIDDEN MODAL & ADMIN PANEL (Comprehensive & Protected)
   -------------------------------------------------------------------------- */
.cms-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(6, 29, 84, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cms-auth-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cms-auth-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalScaleIn 0.3s var(--ease-spring);
}

.cms-auth-dialog h3 {
  font-size: 1.4rem;
  color: var(--brand-royal-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cms-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
}

/* Fullscreen CMS Dashboard Overlay */
.cms-dashboard {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cms-dashboard.active {
  opacity: 1;
  pointer-events: auto;
}

.cms-header {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.cms-header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-royal-dark);
}

.cms-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cms-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cms-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.cms-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.cms-tab-btn:hover {
  background: var(--brand-sky-light);
  color: var(--brand-royal);
}

.cms-tab-btn.active {
  background: var(--brand-royal);
  color: #ffffff;
}

.cms-main {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  background: #f8fafc;
}

.cms-pane {
  display: none;
  max-width: 960px;
  margin: 0 auto;
}

.cms-pane.active {
  display: block;
}

.cms-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cms-card h3 {
  color: var(--brand-royal-dark);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cms-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* CMS Dynamic Item List (Blogs, Gallery, Team, FAQs) */
.cms-item-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all var(--transition-fast);
}

.cms-item-row:hover {
  border-color: var(--brand-sky-dark);
  background: #ffffff;
}

.cms-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cms-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all var(--transition-fast);
}

.cms-upload-dropzone:hover {
  border-color: var(--brand-royal);
  background: var(--brand-sky-light);
}

.cms-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 4000;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--brand-royal-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
}

.cms-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cms-toast.success {
  background: #0f766e;
}

.cms-toast.error {
  background: #b91c1c;
}

/* Animations */
@keyframes modalScaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p.lead {
    margin: 0 auto 2rem auto;
  }

  .hero-cta {
    justify-content: center;
  }

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

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

  .lightbox-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .lightbox-media-col {
    max-height: 45vh;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .gallery-grid-9-16 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .gallery-card-title {
    font-size: 1rem;
  }

  .cms-body {
    flex-direction: column;
  }

  .cms-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .cms-grid-2, .cms-grid-3 {
    grid-template-columns: 1fr;
  }

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

/* --------------------------------------------------------------------------
   15. Legal Policies Modal & Cookie Banner
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(6, 29, 84, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 2.25rem;
  position: relative;
  animation: modalScaleIn 0.35s var(--ease-spring);
}

.policy-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.policy-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(33, 87, 216, 0.15);
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.policy-tab-btn.active {
  background: var(--brand-royal);
  color: #ffffff;
  border-color: var(--brand-royal);
}

.policy-tab-pane {
  display: none;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy-tab-pane.active {
  display: block;
  animation: modalScaleIn 0.25s var(--ease-spring);
}

.policy-tab-pane h4 {
  color: var(--brand-royal-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.policy-tab-pane p {
  margin-bottom: 1rem;
}

.policy-tab-pane ul, .policy-tab-pane ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.policy-tab-pane li {
  margin-bottom: 0.5rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  z-index: 2900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(150, 221, 254, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 16px 40px rgba(12, 43, 122, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.5s var(--ease-spring);
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-content h4 {
  font-size: 1.05rem;
  color: var(--brand-royal-dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: var(--brand-royal);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-btn-accept:hover {
  background: var(--brand-royal-dark);
}

.cookie-btn-decl {
  background: rgba(33, 87, 216, 0.08);
  color: var(--brand-royal);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-btn-decl:hover {
  background: rgba(33, 87, 216, 0.15);
}
