/* ================================================================
   MAIN.CSS - Modern, Clean, Performance-optimized
   ================================================================ */

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lt: #3b82f6;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;

  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
  --transition: 150ms cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); line-height: 1.6; }
body.nav-open { overflow: hidden; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-light); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-primary-sm {
  padding: 8px 16px; font-size: 0.85rem;
}
.btn-secondary {
  background: white; color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--bg); }
.btn-outline {
  background: transparent; color: white;
  border: 2px solid white;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-large { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* Text utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-link {
  color: var(--primary-light); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.text-link:hover { gap: 8px; }

/* Section */
.section { padding: 64px 0; }
.section.bg-light { background: var(--bg); }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.section-header h2 { margin: 0; }

/* ================================================================
   HEADER — TWO TIER
   ================================================================ */

/* --- TOP BAR --- */
.top-bar {
  background: var(--primary);
  color: white;
  padding: 14px 0;
}

.top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}

.top-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: white; flex-shrink: 0;
}
.top-logo .logo-icon { font-size: 2.8rem; }
.top-logo .logo-main {
  display: block; font-size: 1.2rem; font-weight: 800; color: white;
}
.top-logo .logo-sub {
  display: block; font-size: 0.78rem; opacity: 0.8; margin-top: 2px; font-weight: 400;
}

.top-contact {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.top-contact-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.875rem; opacity: 0.9;
}
.top-contact-item a { color: white; text-decoration: none; }
.top-contact-item a:hover { opacity: 0.75; }

/* --- MAIN NAV --- */
.nav-sticky-outer {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg, white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.main-nav {
  background: var(--nav-bg, white);
  border-bottom: 3px solid var(--nav-border, var(--accent));
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: stretch; min-height: 54px; gap: 12px;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex; list-style: none; margin: 0; padding: 0;
  flex: 1; justify-content: center; gap: 0;
  overflow: visible;
  scrollbar-width: none;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 54px;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li {
  display: flex;
  align-items: stretch;
  transition: background var(--transition);
}
.nav-menu > li:hover,
.nav-menu > li:has(.nav-link.active) {
  background: var(--nav-hover-bg, var(--primary));
}
.nav-menu > li:hover .nav-link,
.nav-menu > li:has(.nav-link.active) .nav-link,
.nav-menu > li:hover .submenu-toggle-top,
.nav-menu > li:has(.nav-link.active) .submenu-toggle-top {
  color: var(--nav-hover-text, white);
}

.nav-link {
  display: flex; align-items: center; padding: 0 18px;
  color: var(--nav-text, var(--text)); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  height: 100%;
}
.nav-link::after { display: none; }

.nav-link-group,
.dropdown-link-group {
  display: flex;
  align-items: stretch;
}

.nav-link-group .nav-link {
  flex: 1;
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  border: none;
  background: transparent;
  color: var(--nav-text, var(--text));
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.submenu-toggle span {
  font-size: 0.85rem;
}

.btn-nav-cta {
  background: var(--primary); color: white;
  padding: 9px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-nav-cta:hover { background: var(--primary-light); color: white; }

/* Nav Search */
.nav-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--nav-text, var(--text));
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.nav-search-btn:hover,
.nav-search-btn.active {
  background: var(--nav-hover-bg, var(--primary));
  color: var(--nav-hover-text, white);
}

.nav-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width .25s ease, opacity .2s ease;
  pointer-events: none;
}

.nav-search-wrap.open .nav-search-form {
  width: 220px;
  opacity: 1;
  pointer-events: all;
}

.nav-search-form input[type="search"] {
  flex: 1;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: .88rem;
  outline: none;
  background: white;
  color: var(--text);
  min-width: 0;
}

.nav-search-form input[type="search"]:focus {
  border-color: var(--primary);
}

.nav-search-form button[type="submit"] {
  padding: 7px 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-search-form button[type="submit"]:hover {
  background: var(--primary-lt);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
  margin-right: 16px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
  display: block;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .top-bar {
    padding: 10px 0;
  }

  .top-bar-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .top-contact { display: none; }
  .top-logo .logo-sub { display: none; }
  .top-logo {
    gap: 10px;
    min-width: 0;
  }
  .top-logo .logo-icon {
    font-size: 2rem;
  }
  .top-logo .logo-main {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .nav-inner {
    padding: 0 14px;
    min-height: 50px;
  }

  .nav-toggle { display: flex; }
  .btn-nav-cta { display: none; }

  .nav-search-wrap.open .nav-search-form {
    width: 180px;
  }

  .nav-menu {
    display: none; flex-direction: column; justify-content: flex-start;
    position: absolute; top: 50px; left: 0; right: 0;
    background: var(--nav-bg, white); border-bottom: 3px solid var(--nav-border, var(--accent));
    padding: 8px 0; z-index: 999; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { display: block; background: none !important; }
  .nav-link {
    display: block; padding: 13px 20px;
    color: var(--nav-text, var(--text)) !important;
    border-bottom: 1px solid var(--border);
    height: auto;
    white-space: normal;
  }
  .nav-link.active {
    background: var(--nav-hover-bg, #f0f4ff) !important;
    color: var(--nav-hover-text, var(--primary)) !important;
  }

  /* Mobile dropdowns */
  .has-dropdown { perspective: none; }
  .nav-link-group {
    border-bottom: 1px solid var(--border);
  }
  .nav-link-group .nav-link {
    border-bottom: none;
  }
  .submenu-toggle {
    display: inline-flex;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
  }
  .dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    margin-left: 20px;
    min-width: unset;
    display: none;
    padding: 4px 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-link-group {
    border-bottom: 1px solid var(--border);
  }
  .dropdown li a {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.875rem;
    border-bottom: none;
    white-space: normal;
  }
  .dropdown li a:hover { padding-left: 20px; }
  .drop-arrow { pointer-events: none; }
  .dropdown-sublist {
    display: none;
    position: static;
    box-shadow: none;
    border-left: 2px solid var(--accent);
    margin-left: 18px;
    padding: 0;
    background: #f8fbff;
  }
  .dropdown-link-group.depth-1 > a,
  .dropdown-link-group.depth-2 > a,
  .dropdown-link-group.depth-3 > a,
  .dropdown-item .dropdown-sublist .dropdown-link-group > a {
    padding-left: 16px;
  }
  .has-submenu.open > .dropdown-sublist {
    display: block;
  }
  .has-submenu.open > .dropdown-link-group .submenu-toggle {
    transform: rotate(90deg);
  }

  .nav-menu .dropdown .dropdown-link-group > a {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .top-logo .logo-main {
    font-size: 0.9rem;
  }

  .nav-link,
  .dropdown li a {
    padding-left: 14px;
    padding-right: 14px;
  }

  .submenu-toggle {
    width: 40px;
  }

  .btn {
    white-space: normal;
  }

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

  .footer {
    padding: 36px 16px 18px;
  }

  .footer-bottom {
    padding-top: 16px;
    font-size: 0.8rem;
  }
}

/* ================================================================
   DROPDOWN MENUS
   ================================================================ */
.has-dropdown {
  position: relative;
  perspective: 800px;
}

.drop-arrow {
  font-size: 0.65rem;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.25s ease;
  vertical-align: middle;
}
.has-dropdown:hover .drop-arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  background: white;
  min-width: 220px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border-radius: 0 0 8px 8px;
  z-index: 2000;

  /* 3D flip effect */
  transform-origin: top center;
  transform: rotateX(-90deg);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
}

.has-dropdown:hover .dropdown {
  transform: rotateX(0deg);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s linear 0s;
}

.dropdown li {
  list-style: none;
}

.dropdown-item {
  border-bottom: 1px solid #d7deea;
}

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

.dropdown-link-group {
  width: 100%;
  background: white;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-link-group > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 11px 20px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  background: transparent;
}

.dropdown-item:hover > .dropdown-link-group,
.dropdown-item.active > .dropdown-link-group {
  background: var(--primary);
}

.dropdown-item:hover > .dropdown-link-group > a,
.dropdown-item.active > .dropdown-link-group > a,
.dropdown-item:hover > .dropdown-link-group > .submenu-toggle,
.dropdown-item.active > .dropdown-link-group > .submenu-toggle {
  color: white;
}

.dropdown-item:hover > .dropdown-link-group > a {
  padding-left: 26px;
}

.has-submenu {
  position: relative;
}

.has-submenu > .dropdown-sublist {
  position: absolute;
  top: -6px;
  left: calc(100% - 6px);
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: white;
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 2100;
}

.has-submenu:hover > .dropdown-sublist {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.dropdown-sublist {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: white;
}

.dropdown-item > .dropdown-link-group > a {
  font-weight: 700;
  color: var(--primary);
}

.dropdown-link-group.depth-1 > a {
  padding-left: 28px;
}

.dropdown-link-group.depth-2 > a {
  padding-left: 36px;
}

.dropdown-link-group.depth-3 > a {
  padding-left: 44px;
}

.dropdown-item .dropdown-sublist .dropdown-link-group > a {
  padding-left: 18px;
  font-size: 0.86rem;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  padding: 80px 20px 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-title { margin-bottom: 16px; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 24px; max-width: 500px; }
.hero-buttons { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-buttons .btn { color: white; }

.hero-stats {
  display: flex; gap: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; line-height: 1; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,.8); margin-top: 4px; }

.hero-graphic {
  position: relative; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.hero-decoration {
  width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px 80px; }
  .hero-graphic { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ================================================================
   INFO CARDS
   ================================================================ */
.quick-info { background: var(--bg); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info-card {
  background: white; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.info-icon { font-size: 2.5rem; margin-bottom: 12px; }
.info-card h3 { margin-bottom: 8px; font-size: 1rem; }
.info-card p { font-size: 0.9rem; line-height: 1.6; }

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

/* ================================================================
   NEWS GRID
   ================================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-image {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.news-body { padding: 16px; }
.news-date { font-size: 0.75rem; color: var(--text-light); margin-bottom: 8px; display: block; }
.news-card h3 { margin-bottom: 8px; font-size: 1rem; line-height: 1.4; }
.news-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; }
.news-link { color: var(--primary-light); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.news-link:hover { gap: 8px; }

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

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white; padding: 80px 20px;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.9); margin-bottom: 32px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #1a1a1a; color: #e5e5e5; padding: 48px 20px 20px;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #a1a1a1; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-col p { font-size: 0.9rem; margin-bottom: 12px; }
.footer-note {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.footer-social-link {
  opacity: 0.8;
}

.footer-socials { display: flex; gap: 8px; margin-top: 12px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  transition: background var(--transition);
}
.social-icon:hover { background: var(--primary-light); color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 0.85rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 28px;
}

.footer-bottom p {
  margin: 0;
  color: #bfc7d4;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col ul {
    gap: 6px;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }

  .footer-col {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-col h3,
  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 0.88rem;
  }

  .footer-social-links {
    gap: 8px;
  }
}

/* ================================================================
   GENERAL UTILITIES
   ================================================================ */
.light-theme { background: white; }
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox-open {
  overflow: hidden;
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.site-lightbox.is-open {
  display: block;
}

.site-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(14px);
}

.site-lightbox-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.site-lightbox-figure {
  position: relative;
  width: min(1100px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-lightbox-frame {
  position: relative;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.42);
}

.site-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  object-fit: contain;
}

.site-lightbox-caption {
  align-self: center;
  max-width: min(900px, 100%);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-lightbox-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  backdrop-filter: blur(10px);
}

.site-lightbox-button:hover {
  background: rgba(30, 58, 138, 0.88);
  transform: translateY(-1px);
}

.site-lightbox-close {
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
}

.site-lightbox-prev,
.site-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 2rem;
}

.site-lightbox-prev {
  left: 18px;
}

.site-lightbox-next {
  right: 18px;
}

.site-lightbox-button[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.site-lightbox-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

[data-lightbox],
.content-body img,
.news-article-body img,
.news-related-card-image,
.news-article-cover-image {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .site-lightbox-dialog {
    padding: 16px;
  }

  .site-lightbox-figure {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .site-lightbox-image {
    max-height: calc(100vh - 180px);
  }

  .site-lightbox-prev,
  .site-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .site-lightbox-prev {
    left: 12px;
  }

  .site-lightbox-next {
    right: 12px;
  }

  .site-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .site-lightbox-caption {
    font-size: 0.88rem;
    padding: 10px 12px;
  }
}

/* ================================================================
   COOKIE CONSENT
   ================================================================ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-cookie-link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: #ffffff;
}

.cookie-consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1900;
}

.cookie-consent-card {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(12, 19, 35, 0.94);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

.cookie-consent-copy h3,
.cookie-preferences-header h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #ffffff;
}

.cookie-consent-copy p,
.cookie-preferences-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.cookie-consent-link,
.cookie-preferences-note a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-consent-copy .cookie-consent-link {
  display: inline-flex;
  margin-top: 12px;
}

.cookie-consent-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent-btn {
  min-width: 160px;
}

.cookie-preferences-modal {
  position: fixed;
  inset: 0;
  z-index: 1950;
}

.cookie-preferences-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.cookie-preferences-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 5vh auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.cookie-preferences-header,
.cookie-preferences-body,
.cookie-preferences-actions {
  padding: 22px 24px;
}

.cookie-preferences-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff;
}

.cookie-preferences-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.cookie-preferences-body {
  display: grid;
  gap: 14px;
}

.cookie-preferences-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: #f8fafc;
}

.cookie-preferences-row strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.cookie-preferences-row small {
  display: block;
  color: #475569;
  line-height: 1.5;
}

.cookie-preferences-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.cookie-preferences-row.is-required {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
}

.cookie-preferences-note {
  margin: 2px 0 0;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent-card {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
  }

  .cookie-consent-actions,
  .cookie-preferences-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .btn,
  .cookie-preferences-actions .btn {
    width: 100%;
  }

  .cookie-preferences-dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
  }

  .cookie-preferences-body {
    overflow: auto;
  }

  .cookie-preferences-row {
    align-items: flex-start;
  }
}
