/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1B2A6B;
  --navy-dark: #111D4E;
  --navy-light: #243580;
  --gold: #C9941A;
  --gold-light: #E8B84B;
  --gold-pale: #FDF3D9;
  --gold-dark: #9E7010;
  --white: #FFFFFF;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #07091A;
  --bg2: #0D1130;
  --bg3: #111840;
  --bg4: #161E4A;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(201,148,26,0.2);
  --border2: rgba(201,148,26,0.4);
  --text: #FFFFFF;
  --text2: rgba(255,255,255,0.7);
  --text3: rgba(255,255,255,0.4);
  --shadow: rgba(0,0,0,0.6);
  --navbar-bg: rgba(7,9,26,0.95);
  --card-bg: rgba(13,17,48,0.9);
  --hero-overlay: linear-gradient(135deg, rgba(7,9,26,0.85) 0%, rgba(27,42,107,0.7) 100%);
  --footer-bg: #04060F;
}

[data-theme="light"] {
  --bg: #F5F3EE;
  --bg2: #EDEAE2;
  --bg3: #E5E0D5;
  --bg4: #DDD8CA;
  --surface: rgba(27,42,107,0.05);
  --surface2: rgba(27,42,107,0.09);
  --border: rgba(27,42,107,0.15);
  --border2: rgba(201,148,26,0.5);
  --text: #0A0E24;
  --text2: rgba(10,14,36,0.7);
  --text3: rgba(10,14,36,0.45);
  --shadow: rgba(27,42,107,0.15);
  --navbar-bg: rgba(245,243,238,0.97);
  --card-bg: rgba(255,255,255,0.95);
  --hero-overlay: linear-gradient(135deg, rgba(10,14,36,0.75) 0%, rgba(27,42,107,0.6) 100%);
  --footer-bg: #0D1130;
}

/* ===== CUSTOM CURSOR ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.native-cursor *, .native-cursor *::before, .native-cursor *::after {
  cursor: auto !important;
}

.cursor {
  position: fixed; z-index: 99999; pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px; background: var(--gold-light);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  z-index: 99999; pointer-events: none;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
  z-index: 99998; pointer-events: none;
}
.cursor-dot.hovered { width: 12px; height: 12px; background: var(--gold); }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: var(--gold-light); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,148,26,0.25);
  padding: 8px 5%;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.topbar-item { display: flex; align-items: center; gap: 7px; }
.topbar-item i { color: var(--gold); font-size: 11px; }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.social-btn {
  width: 28px; height: 28px; border: 1px solid rgba(201,148,26,0.35);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 11px; text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
  transition: all var(--transition);
}
.nav-logo { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.nav-logo img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(201,148,26,0.3)); }
.logo-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 700;
  color: var(--gold-light); letter-spacing: 0.5px; line-height: 1.2;
}
.logo-text p { font-size: 11px; color: var(--text3); }

.nav-menu { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 22px 15px; font-size: 13px; font-weight: 500;
  color: var(--text2); text-decoration: none;
  border: none; background: none; font-family: 'DM Sans', sans-serif;
  transition: color var(--transition); white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 15px; right: 15px;
  height: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-item:hover .nav-link::after { transform: scaleX(1); }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--gold-light); }
.nav-link .arr { font-size: 9px; color: var(--gold); transition: transform var(--transition); }
.nav-item:hover .arr { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 12px 12px;
  min-width: 250px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all var(--transition);
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden; z-index: 200;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  padding: 12px 18px 8px; background: rgba(201,148,26,0.06);
  border-bottom: 1px solid var(--border);
}
.dropdown-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px; font-size: 13px; color: var(--text2);
  text-decoration: none; transition: all 0.2s;
  border-bottom: 1px solid var(--border);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(201,148,26,0.08); color: var(--gold-light); }
.dropdown-icon {
  width: 34px; height: 34px; background: rgba(201,148,26,0.1);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--gold);
  flex-shrink: 0; transition: all 0.2s;
}
.dropdown-item:hover .dropdown-icon { background: var(--gold); color: #000; }
.dd-main { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.dd-sub { font-size: 11px; color: var(--text3); }

/* THEME & LANG */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); }
.theme-btn {
  width: 36px; height: 36px; border: 1px solid var(--border2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: none; color: var(--gold); font-size: 14px;
  transition: all var(--transition);
}
.theme-btn:hover { background: var(--gold); color: #000; }
.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  font-size: 11px; font-weight: 700; padding: 5px 9px;
  border-radius: 6px; border: 1px solid rgba(201,148,26,0.3);
  background: none; color: var(--text3);
  transition: all var(--transition); letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
}
.lang-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }
.lang-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* MOBILE MENU */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; background: var(--card-bg);
  border-top: 1px solid var(--border); padding: 16px 5%;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px; font-size: 14px; color: var(--text2);
  text-decoration: none; border-radius: 8px;
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}
.mobile-link i { color: var(--gold); width: 16px; }
.mobile-link:hover { background: rgba(201,148,26,0.1); color: var(--gold-light); }

.footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(201,148,26,0.15);
  padding: 70px 5% 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; padding-bottom: 50px;
  border-bottom: 1px solid rgba(201,148,26,0.1);
  max-width: 1200px; margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: var(--gold-light); font-weight: 600;
}
.footer-brand-desc {
  font-size: 13px; color: rgba(255,255,255,0.35);
  line-height: 1.8; margin-bottom: 22px; font-weight: 300;
}
.footer-socs { display: flex; gap: 8px; }
.footer-soc {
  width: 34px; height: 34px; border: 1px solid rgba(201,148,26,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); border-radius: 2px; text-decoration: none;
}
.footer-soc:hover { background: var(--gold); border-color: var(--gold); }
.footer-soc i { font-size: 13px; color: var(--gold); transition: color var(--transition); }
.footer-soc:hover i { color: #000; }
.footer-col-title {
  font-size: 11px; font-weight: 700; color: var(--gold);
  margin-bottom: 22px; text-transform: uppercase; letter-spacing: 2px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-decoration: none; display: flex; align-items: flex-start; gap: 8px;
  transition: color var(--transition); font-weight: 300; line-height: 1.5;
}
.footer-links li a i { font-size: 9px; color: var(--gold); opacity: 0.7; margin-top: 3px; flex-shrink: 0; }
.footer-links li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.3px;
  max-width: 1200px; margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-title { font-size: 48px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { max-width: 460px; }
  .hero-stat-num { font-size: 32px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-card:nth-child(2) { border-right: none; }
  .achieve-card:nth-child(3) { border-right: 1px solid rgba(201,148,26,0.15); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
  .topbar { padding: 8px 4%; }
  .topbar-left, .topbar-right { width: 100%; }
  .topbar-left { justify-content: flex-start; gap: 16px; }
  .topbar-right { justify-content: flex-start; gap: 12px; }
  .topbar-item { font-size: 11px; }
  .nav-item { display: none; }
  .nav-actions {
    width: 100%; justify-content: flex-end;
    margin-left: 0; padding-left: 0;
    border-left: none; border-top: 1px solid var(--border);
    padding-top: 12px; margin-top: 12px;
  }
  .burger { display: flex; }
}

@media (max-width: 768px) {
  .topbar-left { gap: 12px; font-size: 11px; }
  .topbar-item:last-child { display: none; }
  .nav-actions { justify-content: flex-start; gap: 8px; }
  .nav-link { padding: 18px 12px; font-size: 12px; }
  .nav-logo img { width: 44px; height: 44px; }
  .logo-text h2 { font-size: 14px; }
  .logo-text p { font-size: 10px; }
  .burger { display: flex; }
  .hero-title { font-size: 38px; }
  .hero-title .sub { font-size: 30px; }
  .section-title { font-size: 32px; }
  .programs-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-sidebar { flex-direction: row; overflow-x: auto; }
  .video-mini { min-width: 200px; aspect-ratio: 16/9; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-card { padding: 36px 16px; }
  .achieve-card:nth-child(odd) { border-right: 1px solid rgba(201,148,26,0.15); }
  .achieve-card:nth-child(even) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-box { padding: 44px 20px; }
  .cta-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-main { grid-column: span 2; }
  .nav-actions { gap: 6px; }
}

/* ===== DYNAMIC CONTENT & LIGHT MODE FIXES ===== */
[data-theme="light"] {
  --hero-overlay: linear-gradient(135deg, rgba(245,243,238,0.72) 0%, rgba(229,224,213,0.6) 100%);
}

[data-theme="light"] .topbar {
  background: #e7dfcf;
  color: rgba(10,14,36,0.78);
  border-bottom-color: rgba(27,42,107,0.14);
}

[data-theme="light"] .topbar-item i,
[data-theme="light"] .logo-text h2 {
  color: var(--navy-dark);
}

[data-theme="light"] .hero-badge {
  background: rgba(255,255,255,0.75);
  color: var(--navy-dark);
  border-color: rgba(201,148,26,0.5);
}

[data-theme="light"] .hero-title {
  color: var(--navy-dark);
}

[data-theme="light"] .hero-title .sub {
  color: rgba(27,42,107,0.35);
}

[data-theme="light"] .hero-desc {
  color: rgba(10,14,36,0.82);
}

[data-theme="light"] .hero-stat {
  background: rgba(255,255,255,0.78);
}

[data-theme="light"] .hero-stat-num {
  color: var(--navy-dark);
}

[data-theme="light"] .hero-stat-label,
[data-theme="light"] .scroll-ind {
  color: rgba(10,14,36,0.72);
}

.video-embed-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.video-info-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 16px 18px;
  background: rgba(7,9,26,0.62);
  color: #fff;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.video-info-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.video-info-panel p {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

[data-theme="light"] .video-info-panel {
  background: rgba(255,255,255,0.82);
  color: var(--navy-dark);
}

[data-theme="light"] .video-info-panel p {
  color: rgba(10,14,36,0.72);
}

.video-switcher {
  border: none;
  width: 100%;
  text-align: left;
}

.active-video {
  background: rgba(201,148,26,0.14);
}

.gallery-item img,
.news-image-shell img,
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="light"] .team-badge {
  background: rgba(255,255,255,0.84);
  color: var(--navy-dark);
  border-color: rgba(201,148,26,0.52);
}

[data-theme="light"] .footer-brand-desc,
[data-theme="light"] .footer-links li a,
[data-theme="light"] .footer-bottom,
[data-theme="light"] .achieve-label {
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .video-embed-shell iframe {
    min-height: 260px;
  }
}
