/* ============================================================
   NCDL Premium Design System
   Noakhali Club Dhaka Ltd – Enterprise Website
   Author: RITBD Technology
   ============================================================ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* Brand */
  --ncdl-navy:         #0B1F3A;
  --ncdl-navy-light:   #132b52;
  --ncdl-navy-dark:    #060f1c;
  --ncdl-navy-alpha:   rgba(11,31,58,.85);
  --ncdl-gold:         #C9A84C;
  --ncdl-gold-light:   #e0c46a;
  --ncdl-gold-dark:    #a88530;
  --ncdl-gold-alpha:   rgba(201,168,76,.15);
  --ncdl-cream:        #FAF6EF;
  --ncdl-white:        #FFFFFF;
  --ncdl-text:         #1a1a2e;
  --ncdl-text-muted:   #6c757d;
  --ncdl-border:       rgba(0,0,0,.07);

  /* Glassmorphism */
  --glass-bg:          rgba(255,255,255,.08);
  --glass-bg-dark:     rgba(11,31,58,.55);
  --glass-border:      rgba(255,255,255,.15);
  --glass-blur:        blur(16px);

  /* Shadows */
  --shadow-sm:         0 2px 8px rgba(11,31,58,.08);
  --shadow-md:         0 4px 24px rgba(11,31,58,.12);
  --shadow-lg:         0 8px 40px rgba(11,31,58,.18);
  --shadow-xl:         0 16px 64px rgba(11,31,58,.24);
  --shadow-gold:       0 4px 20px rgba(201,168,76,.30);

  /* Spacing & Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Transitions */
  --transition:        all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast:   all .15s ease;
  --transition-slow:   all .6s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-serif:  'Playfair Display', 'Noto Serif Bengali', Georgia, serif;
  --font-sans:   'Inter', 'Noto Serif Bengali', system-ui, sans-serif;
  --font-bn:     'Noto Serif Bengali', serif;
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--ncdl-text);
  background: var(--ncdl-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.lang-bn, .lang-bn h1, .lang-bn h2, .lang-bn h3,
.lang-bn h4, .lang-bn h5, .lang-bn p, .lang-bn span,
.lang-bn a, .lang-bn li {
  font-family: var(--font-bn);
}

img { max-width: 100%; height: auto; }
a { color: var(--ncdl-gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--ncdl-gold-light); }

/* ── 3. PRELOADER ────────────────────────────────────────── */
/* Full implementation moved to: public/assets/css/ncdl-preloader.css */
/* Legacy .hide class kept for safety — new system uses .npl-exit / .npl-gone */
#ncdl-preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ── 4. TOP BAR ──────────────────────────────────────────── */
/* 2px gold crown at the very top — the luxury signal */
.ncdl-topbar {
  background: #040810;
  border-top: 2px solid var(--ncdl-gold);
  border-bottom: 1px solid rgba(201,168,76,.22);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  position: relative;
  z-index: 1029; /* below fixed navbar (1030) but above hero content */
}
.ncdl-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  height: 100%;
}
/* Each info item */
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.62);
  padding: 0 13px;
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.topbar-item:first-child { padding-left: 0; }
.topbar-item i {
  color: var(--ncdl-gold);
  font-size: .67rem;
  flex-shrink: 0;
}
.topbar-item:hover { color: rgba(255,255,255,.92); text-decoration: none; }
/* Hide location item on medium desktops to prevent overflow */
@media (max-width: 1200px) { .topbar-location { display: none !important; } }
/* Vertical separator */
.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}
/* Social icons cluster */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 10px;
}
.topbar-social-link {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.38);
  font-size: .63rem;
  transition: all .2s;
  text-decoration: none;
}
.topbar-social-link:hover {
  background: rgba(201,168,76,.18);
  color: var(--ncdl-gold);
}
/* Language switcher */
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}
.ncdl-topbar .lang-btn {
  background: none;
  border: 1px solid rgba(201,168,76,.3);
  color: rgba(255,255,255,.5);
  padding: .08rem .55rem;
  border-radius: 20px;
  font-size: .7rem;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1.9;
  display: inline-block;
}
.ncdl-topbar .lang-btn:hover,
.ncdl-topbar .lang-btn.active {
  background: var(--ncdl-gold);
  border-color: var(--ncdl-gold);
  color: var(--ncdl-navy);
  font-weight: 700;
}
/* Member portal quick link */
.topbar-member {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.6);
  font-size: .77rem;
  padding: 0 0 0 13px;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.topbar-member i { color: var(--ncdl-gold-light, #d4b468); font-size: .75rem; }
.topbar-member:hover { color: var(--ncdl-gold); }

/* ── 5. NAVIGATION ───────────────────────────────────────── */
#mainNav {
  /* Frosted glass — visible from the start, like Dhaka Boat Club */
  background: rgba(5, 12, 24, 0.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(201,168,76,.14);
  box-shadow: 0 2px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: .85rem 0;
}
#mainNav.scrolled {
  background: rgba(5, 12, 24, 0.93);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom-color: rgba(201,168,76,.22);
  padding: .5rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
#mainNav.solid {
  background: rgba(5, 12, 24, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: .5rem 0;
}
/* ── Navbar Brand — Luxury Medallion Style ── */
.navbar-brand { transition: opacity .2s ease; }
.navbar-brand:hover { opacity: .88; }

/* Circular crest container with gold ring */
.brand-medallion {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--ncdl-gold);
  box-shadow:
    0 0 0 3px rgba(201,168,76,.15),
    0 4px 18px rgba(0,0,0,.45);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.navbar-brand:hover .brand-medallion {
  border-color: #e8c46a;
  box-shadow:
    0 0 0 4px rgba(201,168,76,.25),
    0 6px 22px rgba(0,0,0,.5);
}
#mainNav.scrolled .brand-medallion { width: 46px; height: 46px; }

.navbar-logo-icon {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Thin gold vertical separator */
.brand-divider-line {
  width: 1px; height: 34px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201,168,76,.55) 25%,
    rgba(201,168,76,.55) 75%,
    transparent 100%
  );
  flex-shrink: 0;
}
#mainNav.scrolled .brand-divider-line { height: 28px; }

/* Text stack */
.brand-text { line-height: 1.25; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .025em;
  white-space: nowrap;
}
.brand-sub {
  font-size: .6rem;
  font-weight: 500;
  color: var(--ncdl-gold);
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .9;
  white-space: nowrap;
}

/* ── Nav Links — Luxury Club Style ── */
.nav-link {
  color: rgba(255,255,255,.82) !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .5rem .75rem !important;
  position: relative;
  white-space: nowrap;
  transition: color .22s ease;
}
/* Sliding gold underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 1.5px;
  background: var(--ncdl-gold);
  border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  left: .75rem;
  right: .75rem;
}
/* Active item gets gold dot accent above the underline */
.nav-link.active {
  color: var(--ncdl-gold) !important;
}
/* Hide Bootstrap's built-in caret entirely — we use FA icon in HTML */
.nav-link.dropdown-toggle::after { display: none !important; }

/* FA chevron icon inside dropdown toggles */
.nav-dropdown-icon {
  font-size: .58rem;
  margin-left: 5px;
  color: var(--ncdl-gold);
  opacity: .85;
  vertical-align: middle;
  transition: transform .22s ease, opacity .22s ease;
  display: inline-block;
}
.nav-link:hover .nav-dropdown-icon { opacity: 1; }
.dropdown.show > .nav-link .nav-dropdown-icon {
  transform: rotate(180deg);
}

/* Vertical separator before utility controls */
.nav-separator {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.15);
  margin: 0 .5rem;
  align-self: center;
}

/* ── Dropdown Menu — Premium Dark ── */
.dropdown-menu {
  background: #07111f;
  border: 1px solid rgba(201,168,76,.18);
  border-top: 2px solid var(--ncdl-gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,76,.06);
  padding: .6rem .4rem;
  min-width: 210px;
  animation: dropdownFade .18s ease;
  margin-top: 2px !important;
}
@keyframes dropdownFade {
  from { opacity:0; transform: translateY(-6px); }
  to   { opacity:1; transform: translateY(0); }
}
.dropdown-item {
  color: rgba(255,255,255,.78);
  padding: .55rem 1rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-left: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, padding-left .18s ease;
}
.dropdown-item:hover {
  background: rgba(201,168,76,.1);
  color: var(--ncdl-gold);
  border-left-color: var(--ncdl-gold);
  padding-left: 1.25rem;
}
.dropdown-item .text-gold,
.dropdown-item i { opacity: .75; transition: opacity .18s ease; }
.dropdown-item:hover i { opacity: 1; }
.dropdown-divider { border-color: rgba(255,255,255,.08); margin: .35rem .5rem; }

/* ── Nav CTA Button (Login / Portal) ── */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--ncdl-gold) 0%, #b8922a 100%);
  color: #0a0f1c !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .42rem 1.1rem !important;
  border-radius: var(--radius-pill) !important;
  border: none;
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
  transition: box-shadow .22s ease, transform .22s ease;
}
.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,168,76,.45);
  color: #0a0f1c !important;
}
.btn-nav-cta::after { display: none !important; }

/* Mobile Nav */
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ── 6. BUTTONS ──────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--ncdl-gold), var(--ncdl-gold-dark));
  color: var(--ncdl-navy);
  font-weight: 700; border: none;
  border-radius: var(--radius-pill);
  padding: .65rem 1.75rem;
  letter-spacing: .04em;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.5);
  color: var(--ncdl-navy);
  background: linear-gradient(135deg, var(--ncdl-gold-light), var(--ncdl-gold));
}
.btn-navy {
  background: var(--ncdl-navy); color: #fff;
  font-weight: 600; border: none;
  border-radius: var(--radius-pill);
  padding: .65rem 1.75rem;
  transition: var(--transition);
}
.btn-navy:hover { background: var(--ncdl-navy-light); color: #fff; transform: translateY(-2px); }

.btn-outline-gold {
  border: 2px solid var(--ncdl-gold); color: var(--ncdl-gold);
  background: transparent; font-weight: 600;
  border-radius: var(--radius-pill);
  padding: .6rem 1.7rem;
  transition: var(--transition);
}
.btn-outline-gold:hover {
  background: var(--ncdl-gold); color: var(--ncdl-navy);
  transform: translateY(-2px); box-shadow: var(--shadow-gold);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7); color: #fff;
  background: transparent; font-weight: 600;
  border-radius: var(--radius-pill); padding: .6rem 1.7rem;
  transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── 7. HERO SLIDER ──────────────────────────────────────── */
.hero-slider {
  height: 100vh; min-height: 600px; position: relative;
  overflow: hidden;
}
.hero-slide {
  height: 100vh; min-height: 600px;
  background-color: #060f1c;
  background-size: cover; background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start; /* content anchors at top, pushed by padding */
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(4,8,16,.88) 0%, rgba(6,15,28,.70) 45%, rgba(11,31,58,.45) 100%);
}
/* Push hero content BELOW the fixed topbar + navbar on desktop */
.hero-slide > .container {
  padding-top: calc(var(--topbar-h) + var(--navbar-h) + 2rem);
  padding-bottom: 2.5rem;
  position: relative; z-index: 2;
}
/* Row fills the visual viewport minus the header */
.hero-slide > .container > .row,
.hero-row {
  min-height: calc(100vh - var(--topbar-h) - var(--navbar-h) - 4.5rem);
  align-items: center;
}
/* Mobile: only navbar to clear, auto height so content never clips */
@media (max-width: 991px) {
  .hero-slider,
  .hero-slide {
    height: auto !important;
    min-height: 100svh;        /* svh = small viewport height, excludes browser chrome */
  }
  .hero-slide > .container {
    padding-top: calc(var(--navbar-h) + 2rem);
    padding-bottom: 5rem;      /* room for pagination dots */
  }
  .hero-slide > .container > .row {
    min-height: 0 !important;  /* let content dictate height */
    align-items: flex-start;
  }
  /* btn sizing & actions direction handled by section 29 */
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: var(--ncdl-gold-alpha);
  border: 1px solid var(--ncdl-gold);
  color: var(--ncdl-gold);
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: slideInUp .7s ease both;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  animation: slideInUp .8s .1s ease both;
}
.hero-title span { color: var(--ncdl-gold); }
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  animation: slideInUp .9s .2s ease both;
}
.hero-actions { animation: slideInUp 1s .35s ease both; }
/* Swiper custom controls — desktop only */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--ncdl-gold);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--glass-border);
}
/* Hide arrows on mobile so they don't overlap text */
@media (max-width: 991px) {
  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev { display: none !important; }
}
.hero-slider .swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.hero-slider .swiper-pagination-bullet-active { background: var(--ncdl-gold); width: 24px; border-radius: 4px; }
/* Pagination dots: push above bottom edge on mobile */
@media (max-width: 991px) {
  .hero-slider .swiper-pagination { bottom: 1.25rem !important; }
}

/* ── 8. SECTION SYSTEM ───────────────────────────────────── */
section { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }
.section-lg  { padding: 7rem 0; }
.section-cream { background: var(--ncdl-cream); }
.section-navy  { background: var(--ncdl-navy); }
.section-dark  { background: var(--ncdl-navy-dark); }

.section-heading { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  background: var(--ncdl-gold-alpha);
  color: var(--ncdl-gold-dark);
  border: 1px solid rgba(201,168,76,.3);
  padding: .25rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--ncdl-navy);
  line-height: 1.25;
}
.section-title.white { color: #fff; }
.section-divider {
  display: flex; align-items: center;
  gap: .75rem; margin: 1rem auto; width: fit-content;
}
.section-divider span { height: 2px; border-radius: 2px; }
.section-divider .d-line  { width: 48px; background: var(--ncdl-gold); }
.section-divider .d-dot   { width: 8px; height: 8px !important; border-radius: 50%; background: var(--ncdl-gold); }
.section-divider .d-short { width: 20px; background: var(--ncdl-gold-light); }
.section-lead { font-size: 1.05rem; color: var(--ncdl-text-muted); max-width: 620px; margin: .75rem auto 0; }
.section-lead.white { color: rgba(255,255,255,.75); }

/* ── 9. CARDS ────────────────────────────────────────────── */
.card-luxury {
  border: none; border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: #fff;
}
.card-luxury:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.card-luxury .card-img-wrap {
  overflow: hidden; height: 220px; position: relative;
}
.card-luxury .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.card-luxury:hover .card-img-wrap img { transform: scale(1.08); }
.card-luxury .card-body { padding: 1.5rem; }
.card-luxury .card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 600;
  color: var(--ncdl-navy); margin-bottom: .5rem;
}
.card-luxury .card-text { color: var(--ncdl-text-muted); font-size: .9rem; }
.card-luxury .card-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  background: transparent;
  padding: 1rem 1.5rem;
}

/* Glass Card */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card-glass:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Stat Card */
.stat-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.stat-card .stat-icon {
  width: 64px; height: 64px;
  background: var(--ncdl-gold-alpha);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem; color: var(--ncdl-gold);
}
.stat-card .stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 700; color: #fff;
  line-height: 1;
}
.stat-card .stat-num span { color: var(--ncdl-gold); }
.stat-card .stat-label { font-size: .875rem; color: rgba(255,255,255,.65); margin-top: .35rem; }

/* Facility Card */
.facility-card {
  display: flex; flex-direction: column;          /* equal-height layout */
  border: none; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative; background: #fff;
}
.facility-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.facility-card-img {
  height: 240px; flex-shrink: 0; position: relative; overflow: hidden;
}
.facility-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.facility-card:hover .facility-card-img img { transform: scale(1.1); }
.facility-card-img .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,15,28,.8) 0%, transparent 50%);
}
.facility-cat-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--ncdl-gold); color: var(--ncdl-navy);
  font-size: .7rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .08em;
}
.facility-icon {
  position: absolute; bottom: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.facility-card-body {
  display: flex; flex-direction: column; flex: 1;  /* grow to fill card height */
  padding: 1.25rem 1.5rem 1.5rem;
}
.facility-card-body .d-flex.gap-2.mt-3 { margin-top: auto !important; }  /* buttons always at bottom */
.facility-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--ncdl-navy); margin-bottom: .5rem;
}
.facility-card-category {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ncdl-gold); margin-bottom: .4rem;
}
.facility-card-desc {
  font-size: .875rem; color: var(--ncdl-text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .75rem;
}
.facility-card-meta { font-size: .8rem; color: var(--ncdl-text-muted); }
.facility-card-meta i { color: var(--ncdl-gold); margin-right: .35rem; }

/* Event Card */
.event-card {
  display: flex; gap: 0;
  border: none; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: var(--transition); background: #fff;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.event-date-col {
  flex-shrink: 0; width: 80px;
  background: var(--ncdl-navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem .5rem;
}
.event-date-col .ev-day {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700; color: var(--ncdl-gold); line-height: 1;
}
.event-date-col .ev-mon {
  font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em;
}
.event-date-col .ev-year {
  font-size: .65rem; color: rgba(255,255,255,.5); margin-top: .2rem;
}
.event-body { flex: 1; padding: 1.25rem 1.5rem; }
.event-cat { font-size: .7rem; color: var(--ncdl-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.event-title {
  font-family: var(--font-serif); font-size: 1rem;
  font-weight: 600; color: var(--ncdl-navy); margin: .35rem 0 .5rem;
}
.event-meta { font-size: .8rem; color: var(--ncdl-text-muted); }
.event-meta i { color: var(--ncdl-gold); width: 14px; }
.event-badge-seats {
  font-size: .7rem; padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  background: rgba(201,168,76,.12); color: var(--ncdl-gold-dark);
  border: 1px solid rgba(201,168,76,.25);
  font-weight: 600;
}

/* News Card */
.news-card {
  border: none; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 1.25rem; }
.news-type-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .65rem; border-radius: var(--radius-pill);
  margin-bottom: .6rem;
}
.badge-news     { background: rgba(11,31,58,.1);  color: var(--ncdl-navy); }
.badge-notice   { background: rgba(201,168,76,.15); color: var(--ncdl-gold-dark); }
.badge-circular { background: rgba(0,128,0,.1);   color: green; }
.news-card-title {
  font-family: var(--font-serif); font-size: 1rem;
  font-weight: 600; color: var(--ncdl-navy);
  margin-bottom: .5rem; line-height: 1.4;
}
.news-card-date { font-size: .78rem; color: var(--ncdl-text-muted); }

/* ── 10. GALLERY ─────────────────────────────────────────── */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius-md); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: var(--ncdl-navy-alpha);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: var(--ncdl-gold); }
@media (max-width: 768px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

/* ── 11. MEMBERSHIP CARD ─────────────────────────────────── */
.membership-card-display {
  background: linear-gradient(135deg, var(--ncdl-navy) 0%, var(--ncdl-navy-light) 60%, #1a3a6e 100%);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.membership-card-display::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
}
.membership-card-display::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 50%;
}
.mc-logo { height: 36px; opacity: .9; }
.mc-type-badge {
  background: linear-gradient(135deg, var(--ncdl-gold), var(--ncdl-gold-dark));
  color: var(--ncdl-navy); font-size: .65rem;
  font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .7rem;
  border-radius: var(--radius-pill);
}
.mc-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.mc-number { font-size: .85rem; letter-spacing: .15em; color: var(--ncdl-gold); font-weight: 600; }
.mc-meta   { font-size: .75rem; color: rgba(255,255,255,.65); }
.mc-qr { width: 80px; height: 80px; border-radius: var(--radius-md); border: 2px solid rgba(255,255,255,.2); padding: 6px; background: rgba(255,255,255,.05); }
.mc-validity { font-size: .7rem; color: rgba(255,255,255,.5); }

/* ── 12. PORTAL LAYOUT ───────────────────────────────────── */
.portal-wrap { display: flex; min-height: 100vh; background: var(--ncdl-cream); }
.portal-sidebar {
  width: 272px; flex-shrink: 0;
  background: var(--ncdl-navy);
  padding: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  transition: var(--transition);
}
.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.portal-sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.portal-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ncdl-gold), var(--ncdl-gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem;
  font-weight: 700; color: var(--ncdl-navy); flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.15);
}
.portal-member-name { font-weight: 700; color: #fff; font-size: .95rem; }
.portal-member-no   { font-size: .75rem; color: var(--ncdl-gold); letter-spacing: .05em; }
.portal-nav { padding: 1rem .75rem; }
.portal-nav-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem 1rem; margin-bottom: .25rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.75); font-size: .875rem;
  transition: var(--transition-fast); cursor: pointer;
  text-decoration: none;
}
.portal-nav-item i { width: 18px; color: var(--ncdl-gold); font-size: .9rem; flex-shrink: 0; }
.portal-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.portal-nav-item.active { background: var(--ncdl-gold-alpha); color: var(--ncdl-gold); border-left: 3px solid var(--ncdl-gold); }
.portal-main { flex: 1; padding: 2rem; max-width: calc(100% - 272px); }

/* ── 13. ADMIN PANEL ─────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; background: #f1f5f9; }

/* ── Sidebar ── */
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: #0b1829;                       /* rich dark navy */
  height: 100vh; position: sticky; top: 0;
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar::-webkit-scrollbar { width: 3px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

/* Brand */
.admin-sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}
.admin-sidebar-brand img { height: 34px; width: auto; }
.admin-sidebar-brand .brand-text {
  font-size: .92rem; font-weight: 700; color: #fff;
  letter-spacing: .01em; line-height: 1.2;
}
.admin-sidebar-brand .brand-sub {
  font-size: .68rem; font-weight: 500;
  color: var(--ncdl-gold); letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nav sections */
.admin-nav-section { padding: 1.25rem .75rem .25rem; }
.admin-nav-section-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.38);              /* subtle but clearly visible */
  padding: 0 .625rem; margin-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}
.admin-nav-section-label::after {            /* thin rule after label */
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.07);
}

/* Nav links */
.admin-nav-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .875rem; margin-bottom: 2px;
  border-radius: 8px; margin-inline: .25rem;
  color: rgba(255,255,255,.78);              /* clearly readable */
  font-size: .84rem; font-weight: 450;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.admin-nav-link i {
  width: 17px; font-size: .82rem;
  color: var(--ncdl-gold);                  /* full-opacity gold icons */
  flex-shrink: 0; text-align: center;
  opacity: .75;
  transition: opacity .15s ease;
}
.admin-nav-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.admin-nav-link:hover i { opacity: 1; }
.admin-nav-link.active {
  background: rgba(201,168,76,.15);
  color: var(--ncdl-gold);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ncdl-gold);
}
.admin-nav-link.active i { opacity: 1; }
.admin-nav-link .badge-count {
  margin-left: auto;
  background: var(--ncdl-gold); color: var(--ncdl-navy);
  font-size: .62rem; font-weight: 800;
  padding: .1rem .45rem; border-radius: 10px;
  min-width: 18px; text-align: center;
}
.admin-nav-link.text-danger { color: #f87171 !important; }
.admin-nav-link.text-danger i { color: #f87171; }

/* Sidebar user footer */
.admin-sidebar .mt-auto {
  border-top: 1px solid rgba(255,255,255,.07) !important;
  padding: .875rem 1rem !important;
  flex-shrink: 0;
}

/* ── Main area ── */
.admin-main { flex: 1; display: flex; flex-direction: column; max-width: calc(100% - 260px); min-width: 0; }

/* ── Topbar ── */
.admin-topbar {
  background: #fff;
  padding: .75rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 0 #e2e8f0;
  gap: 1rem;
}
.admin-page-title {
  font-family: var(--font-sans);             /* clean sans-serif, not serif */
  font-size: 1.1rem; font-weight: 700;
  color: #0f172a; letter-spacing: -.01em;
  line-height: 1.3;
}
.admin-breadcrumb {
  font-size: .78rem; color: #94a3b8;
  margin-top: .1rem;
}
.admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }
.admin-breadcrumb a { color: var(--ncdl-gold); text-decoration: none; }
.admin-breadcrumb a:hover { text-decoration: underline; }

/* ── Content ── */
.admin-content { padding: 1.5rem 1.75rem 2rem; flex: 1; }

/* ── Page header inside content (used in many views) ── */
.admin-content > .d-flex.justify-content-between:first-child h4,
.admin-content > .d-flex.justify-content-between:first-child h5 {
  font-family: var(--font-sans); font-size: 1.15rem;
  font-weight: 700; color: #0f172a; margin-bottom: .15rem;
}
.admin-content > .d-flex.justify-content-between:first-child .breadcrumb {
  font-size: .78rem; color: #94a3b8;
}
.admin-content > .d-flex.justify-content-between:first-child .breadcrumb a { color: var(--ncdl-gold); }

/* ── Stat Widgets ── */
.widget-stat {
  background: #fff; border-radius: 12px;
  padding: 1.25rem 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #e8edf2;
  display: flex; align-items: center; gap: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.widget-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.widget-stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.widget-stat-icon.gold   { background: rgba(201,168,76,.12); color: #a8852f; }
.widget-stat-icon.navy   { background: rgba(11,31,58,.08);   color: var(--ncdl-navy); }
.widget-stat-icon.green  { background: rgba(16,185,129,.1);  color: #059669; }
.widget-stat-icon.red    { background: rgba(239,68,68,.1);   color: #dc2626; }
.widget-stat-icon.blue   { background: rgba(59,130,246,.1);  color: #2563eb; }
.widget-stat-icon.purple { background: rgba(139,92,246,.1);  color: #7c3aed; }
.widget-stat-num   { font-size: 1.65rem; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -.02em; }
.widget-stat-label { font-size: .78rem; color: #64748b; margin-top: .25rem; font-weight: 500; }
.widget-stat-delta { font-size: .72rem; margin-top: .3rem; font-weight: 600; }
.delta-up   { color: #059669; }
.delta-down { color: #dc2626; }

/* ── Admin tables ── */
.table-admin {
  background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #e8edf2;
}
.table-admin .table { margin: 0; }
.table-admin .table thead th {
  background: #f8fafc; font-size: .72rem;
  font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding: .875rem 1.25rem; white-space: nowrap;
}
.table-admin .table td {
  padding: .8rem 1.25rem; vertical-align: middle;
  font-size: .85rem; color: #374151; border-color: #f1f5f9;
}
.table-admin .table tbody tr { transition: background .1s ease; }
.table-admin .table tbody tr:hover { background: #f8fafc; }
.table-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}

/* ── Card/Section containers ── */
.card-section {
  background: #fff; border-radius: 12px;
  border: 1px solid #e8edf2;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  padding: 1.5rem;
}
.card-section-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: .9rem; color: #374151;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
}
.admin-data-table { width: 100%; }

/* ── 14. FORMS ───────────────────────────────────────────── */
.form-luxury .form-control,
.form-luxury .form-select {
  border-radius: var(--radius-md);
  border: 1.5px solid #d1d9e0;
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: var(--transition-fast);
  background: #fff;
}
.form-luxury .form-control:focus,
.form-luxury .form-select:focus {
  border-color: var(--ncdl-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  outline: none;
}
.form-luxury label {
  font-size: .82rem; font-weight: 600;
  color: var(--ncdl-navy); margin-bottom: .35rem;
}
.form-luxury .input-group-text {
  background: #f8fafc; border-color: #d1d9e0;
  color: var(--ncdl-text-muted);
}

/* ── 15. PAGE HERO ───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--ncdl-navy-dark) 0%, var(--ncdl-navy) 100%);
  padding: 7rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  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='%23C9A84C' fill-opacity='0.04'%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") repeat;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fff; margin-bottom: .5rem;
}
.page-hero-breadcrumb .breadcrumb-item,
.page-hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: .875rem; }
.page-hero-breadcrumb .breadcrumb-item.active { color: var(--ncdl-gold); }
.page-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── 16. ALERTS / FLASH ──────────────────────────────────── */
.alert { border-radius: var(--radius-md); border: none; padding: .9rem 1.25rem; }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; }
.alert-danger   { background: rgba(239,68,68,.1);  color: #991b1b; }
.alert-warning  { background: rgba(245,158,11,.1); color: #92400e; }
.alert-info     { background: rgba(59,130,246,.1); color: #1e40af; }

/* ── 17. FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--ncdl-navy-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-brand-logo { height: 55px; margin-bottom: 1rem; }
.footer-brand-desc { font-size: .88rem; max-width: 280px; line-height: 1.7; }
.footer-heading {
  font-family: var(--font-serif); font-weight: 700;
  color: #fff; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: .75rem; margin-bottom: 1.25rem;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 36px; height: 2px; background: var(--ncdl-gold);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.65); font-size: .875rem;
  transition: var(--transition-fast);
  display: inline-flex; align-items: center; gap: .5rem;
}
.footer-links a::before { content: '›'; color: var(--ncdl-gold); font-size: 1rem; }
.footer-links a:hover { color: var(--ncdl-gold); padding-left: 4px; }
.footer-contact-item {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-bottom: .85rem; font-size: .875rem;
}
.footer-contact-item i { color: var(--ncdl-gold); margin-top: .2rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .65rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .95rem;
  transition: var(--transition-fast);
}
.footer-social a:hover { background: var(--ncdl-gold); color: var(--ncdl-navy); border-color: var(--ncdl-gold); transform: translateY(-3px); }
.footer-newsletter .input-group .form-control {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: var(--radius-pill) 0 0 var(--radius-pill) !important;
  padding: .6rem 1rem;
}
.footer-newsletter .input-group .form-control::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter .btn-gold { border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important; padding: .6rem 1.25rem; }
.footer-bottom {
  margin-top: 3rem; padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; color: rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--ncdl-gold); }

/* ── 18. BACK TO TOP / MISC ──────────────────────────────── */
#backToTop {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ncdl-gold), var(--ncdl-gold-dark));
  color: var(--ncdl-navy); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201,168,76,.5); }

.divider-wave {
  line-height: 0; overflow: hidden;
}
.divider-wave svg { width: 100%; }

/* ── 19. ANIMATIONS ──────────────────────────────────────── */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* AOS overrides */
[data-aos] { transition-duration: 600ms !important; }

/* ── 20. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
  .portal-sidebar { width: 100%; height: auto; position: relative; }
  .portal-wrap    { flex-direction: column; }
  .portal-main    { max-width: 100%; }
  .admin-sidebar  { display: none; }
  .admin-sidebar.show { display: block; position: fixed; z-index: 200; }
  .admin-main     { max-width: 100%; }
}
@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  /* Hero height handled by 991px breakpoint — don't override with fixed 80vh */
  .widget-stat { flex-direction: column; text-align: center; }
  .gallery-grid { column-count: 2; }
  .event-card { flex-direction: column; }
  .event-date-col { width: 100%; flex-direction: row; padding: .75rem 1rem; gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── 21. TOPBAR + NAVBAR POSITIONING ─────────────────────── */
/*
 * On desktop: topbar (~40px) sits in normal flow above the fixed navbar.
 * We offset the navbar so it starts below the topbar and transitions
 * to top:0 with a solid background once the user scrolls past the topbar.
 */
:root { --topbar-h: 40px; --navbar-h: 70px; }

@media (min-width: 992px) {
  #mainNav {
    top: var(--topbar-h);
  }
  #mainNav.scrolled,
  #mainNav.solid {
    top: 0;
  }
  /* Non-hero page content needs padding for topbar + navbar */
  body.has-page-hero main,
  body:not(.has-hero) main {
    padding-top: 0;
  }
  .page-hero {
    padding-top: calc(var(--topbar-h) + var(--navbar-h) + 2rem);
  }
}

/* ── 22. UTILITY CLASSES ─────────────────────────────────── */
/* Colors */
.text-gold        { color: var(--ncdl-gold) !important; }
.text-gold-light  { color: var(--ncdl-gold-light) !important; }
.text-gold-dark   { color: var(--ncdl-gold-dark) !important; }
.text-navy        { color: var(--ncdl-navy) !important; }
.text-navy-light  { color: var(--ncdl-navy-light) !important; }
.text-cream       { color: var(--ncdl-cream) !important; }
.text-white-50    { color: rgba(255,255,255,.5) !important; }
.text-white-65    { color: rgba(255,255,255,.65) !important; }
.text-white-75    { color: rgba(255,255,255,.75) !important; }
.text-white-85    { color: rgba(255,255,255,.85) !important; }

/* Backgrounds */
.bg-navy          { background-color: var(--ncdl-navy) !important; }
.bg-navy-dark     { background-color: var(--ncdl-navy-dark) !important; }
.bg-navy-light    { background-color: var(--ncdl-navy-light) !important; }
.bg-gold          { background-color: var(--ncdl-gold) !important; }
.bg-gold-alpha    { background-color: var(--ncdl-gold-alpha) !important; }
.bg-cream         { background-color: var(--ncdl-cream) !important; }

/* Borders */
.border-gold      { border-color: var(--ncdl-gold) !important; }
.border-white-10  { border-color: rgba(255,255,255,.1) !important; }
.border-white-15  { border-color: rgba(255,255,255,.15) !important; }
.border-white-20  { border-color: rgba(255,255,255,.2) !important; }
.border-gold-30   { border-color: rgba(201,168,76,.3) !important; }

/* Font weights */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Typography */
.font-serif       { font-family: var(--font-serif) !important; }
.font-sans        { font-family: var(--font-sans) !important; }
.ls-1             { letter-spacing: .05em !important; }
.ls-2             { letter-spacing: .1em !important; }
.ls-3             { letter-spacing: .15em !important; }

/* Sizing */
.rounded-xl       { border-radius: var(--radius-xl) !important; }
.rounded-lg       { border-radius: var(--radius-lg) !important; }
.rounded-md       { border-radius: var(--radius-md) !important; }
.rounded-pill     { border-radius: var(--radius-pill) !important; }

/* Shadows */
.shadow-gold      { box-shadow: var(--shadow-gold) !important; }
.shadow-ncdl-sm   { box-shadow: var(--shadow-sm) !important; }
.shadow-ncdl-md   { box-shadow: var(--shadow-md) !important; }
.shadow-ncdl-lg   { box-shadow: var(--shadow-lg) !important; }

/* Aspect ratios */
.ratio-hero       { aspect-ratio: 16/9; }
.ratio-card       { aspect-ratio: 4/3; }
.ratio-square     { aspect-ratio: 1/1; }

/* Object fit */
.obj-cover        { object-fit: cover; width: 100%; height: 100%; }
.obj-contain      { object-fit: contain; }

/* Hover lift */
.hover-lift       { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

/* Gold separator / divider */
.gold-line {
  display: block; height: 3px; width: 60px;
  background: linear-gradient(90deg, var(--ncdl-gold), var(--ncdl-gold-light));
  border-radius: var(--radius-pill);
}
.gold-line.center { margin: 0 auto; }

/* Overlays */
.overlay-navy     { background: var(--ncdl-navy-alpha); }
.overlay-dark     { background: rgba(6,15,28,.65); }

/* ── 23. NAVBAR INITIAL DARK BACKDROP ────────────────────── */
/*
 * Solid dark background always — prevents hero content from
 * bleeding through the navbar area.
 */
#mainNav:not(.scrolled):not(.solid) {
  background: rgba(6,15,28,.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero section pushes content below the floating navbar naturally */
.hero-slider { margin-top: calc(-1 * var(--topbar-h)); }

/* Non-hero pages: offset main content for topbar + navbar height.
   Add class="content-page" to <main> on pages without a hero. */
main.content-page {
  padding-top: calc(var(--topbar-h) + var(--navbar-h) + 1rem);
}

/* ── 24. PRINT / ACCESSIBILITY ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev { display: none; }
}

/* Focus rings — meet WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--ncdl-gold);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ncdl-gold);
  outline-offset: 3px;
}

/* ── HERO ENHANCEMENTS ──────────────────────────────────────────── */

/* Decorative dot-grid pattern overlay */
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(201,168,76,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Right panel facility grid */
.hero-right-panel {
  position: relative;
  width: 100%; max-width: 520px;
}

.hero-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 2rem;
}

.hero-fac-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.25rem .75rem;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: fadeInScale .6s ease both;
  transition: background .25s, transform .25s;
}
.hero-fac-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.hero-fac-icon {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  line-height: 1;
}
.hero-fac-name {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .03em;
}

/* Floating card (membership card teaser) */
.hero-float-card {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  background: #fff;
  border-radius: 14px;
  padding: .9rem 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: slideInUp .9s .5s ease both;
  z-index: 5;
}
.hero-float-card--linked {
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.hero-float-card--linked:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  transform: translateX(-50%) translateY(-2px);
}

/* ── Homepage Announcement Popup ─────────────────────────────────────── */
.ncdl-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.ncdl-popup-overlay.ncdl-popup-visible {
  display: flex;
  animation: popupFadeIn .3s ease forwards;
}
.ncdl-popup-overlay.ncdl-popup-hiding {
  animation: popupFadeOut .32s ease forwards;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.ncdl-popup-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  animation: popupSlideUp .35s .05s cubic-bezier(.22,1,.36,1) both;
}
@keyframes popupSlideUp {
  from { transform: translateY(28px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.ncdl-popup-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  z-index: 2;
}
.ncdl-popup-close:hover { background: rgba(255,255,255,.32); }
.ncdl-popup-img img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.ncdl-popup-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.ncdl-popup-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 .6rem;
  padding-right: 1.5rem;
}
.ncdl-popup-text {
  font-size: .88rem;
  line-height: 1.65;
  opacity: .88;
  margin: 0 0 1rem;
}
.ncdl-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1.1rem;
  border-radius: 25px;
  border: 1.5px solid;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.ncdl-popup-btn:hover {
  background: rgba(255,255,255,.18);
}
@media (max-width: 480px) {
  .ncdl-popup-card { border-radius: 12px; }
  .ncdl-popup-body { padding: 1.1rem 1.1rem 1.3rem; }
  .ncdl-popup-title { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ncdl-popup-card { animation: none; }
  .ncdl-popup-overlay { transition: none; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; color: rgba(255,255,255,.5);
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  z-index: 3;
  animation: fadeIn 1.5s 1s ease both;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px;
  position: relative;
}
.scroll-wheel {
  width: 3px; height: 6px;
  background: var(--ncdl-gold);
  border-radius: 2px;
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollWheel 1.5s ease infinite;
}
@keyframes scrollWheel {
  0%   { top: 5px; opacity: 1; }
  100% { top: 16px; opacity: 0; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Make hero trust-strip visible on mobile */
@media (max-width: 767px) {
  .hero-scroll-hint { display: none; }
  .hero-right-panel { display: none; }
}

/* ── NAV PHOTO GALLERY label ─────────────────────────────────── */
/* nav uses __('gallery') = "Photo Gallery" — that's fine, no fix needed */

/* ── SECTION FALLBACK CARDS (show even with no DB data) ─────── */
.facility-card-placeholder {
  background: var(--ncdl-cream);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--ncdl-text-muted);
  border: 2px dashed rgba(0,0,0,.1);
}

/* ── EVENT CARD ─────────────────────────────────────────────── */
.event-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ncdl-border);
  transition: box-shadow .25s, transform .25s;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.event-date-col {
  background: var(--ncdl-navy);
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  min-width: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ev-day  { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ncdl-gold); }
.ev-mon  { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.ev-year { font-size: .65rem; color: rgba(255,255,255,.5); margin-top: .1rem; }
.event-body { padding: 1.1rem 1.25rem; flex: 1; }
.event-cat  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ncdl-gold); margin-bottom: .35rem; }
.event-title { font-weight: 700; font-size: 1rem; color: var(--ncdl-navy); line-height: 1.3; margin-bottom: .5rem; }
.event-meta  { font-size: .78rem; color: var(--ncdl-text-muted); display: flex; flex-direction: column; gap: .2rem; }
.event-meta i { color: var(--ncdl-gold); margin-right: .4rem; }
.event-badge-seats { display: inline-block; background: rgba(39,174,96,.12); color: #1e8449; font-size: .68rem; font-weight: 700; padding: .15rem .6rem; border-radius: 20px; }

/* ── GALLERY OVERLAY fix ─────────────────────────────────────── */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(11,31,58,.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--ncdl-gold); font-size: 1.25rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── NEWS TYPE BADGES ────────────────────────────────────────── */
.news-type-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .2rem .65rem;
  border-radius: 20px; margin-bottom: .6rem;
}
.badge-news    { background: rgba(52,152,219,.15); color: #2980b9; }
.badge-notice  { background: rgba(231,76,60,.12);  color: #c0392b; }
.badge-circular{ background: rgba(39,174,96,.12);  color: #1e8449; }
.badge-event   { background: rgba(201,168,76,.15); color: #a07c1e; }

/* ── HERO CONTENT z-index (above pattern) ─────────────────────── */
.hero-content { position: relative; z-index: 2; }
.hero-slide .row { position: relative; z-index: 2; }

/* ── 25. MISSING UTILITY ADDITIONS ─────────────────────────── */

/* Logo white filter (replaces missing logo-white.png) */
.logo-filter-white {
  filter: brightness(0) invert(1);
}

/* Section py shorthand */
.section-py { padding: 5rem 0; }
@media (max-width: 767px) { .section-py { padding: 3.5rem 0; } }

/* Section tag (like section-label but inline) */
.section-tag {
  display: inline-block;
  background: var(--ncdl-gold-alpha);
  color: var(--ncdl-gold-dark);
  border: 1px solid rgba(201,168,76,.3);
  padding: .25rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .75rem;
}

/* Section title variants */
.section-title-sm {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700; color: var(--ncdl-navy);
  line-height: 1.3;
}

/* Btn variants */
.btn-outline-navy {
  border: 2px solid var(--ncdl-navy); color: var(--ncdl-navy);
  background: transparent; font-weight: 600;
  border-radius: var(--radius-pill); padding: .6rem 1.7rem;
  transition: var(--transition);
}
.btn-outline-navy:hover {
  background: var(--ncdl-navy); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.btn-xs { padding: .25rem .6rem !important; font-size: .75rem !important; }

/* Page hero lead text */
.page-hero-lead {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.8);
  margin-top: .75rem;
  max-width: 580px;
}

/* Page hero overlay */
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,15,28,.75) 0%, rgba(11,31,58,.5) 100%);
}
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }

/* Breadcrumb light (for dark hero backgrounds) */
.breadcrumb-light .breadcrumb-item,
.breadcrumb-light .breadcrumb-item a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}
.breadcrumb-light .breadcrumb-item.active { color: var(--ncdl-gold); }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Portal layout (alias and additions for portal-wrapper) */
.portal-wrapper {
  display: flex; min-height: calc(100vh - 110px);
  background: #f0f4f8;
}
.portal-main {
  flex: 1; display: flex; flex-direction: column;
  max-width: calc(100% - 272px);
  overflow: hidden;
}
.portal-topbar {
  background: #fff; padding: .85rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.portal-page-title {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 700; color: var(--ncdl-navy);
}
.portal-content { padding: 1.75rem; flex: 1; }
.portal-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ncdl-gold), var(--ncdl-gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.6rem;
  font-weight: 700; color: var(--ncdl-navy);
  border: 3px solid rgba(255,255,255,.3); flex-shrink: 0;
}

@media (max-width: 991px) {
  .portal-wrapper { flex-direction: column; }
  .portal-main { max-width: 100%; }
}

/* (lang-btn active handled in topbar section above) */

/* Hover gold utility */
.hover-gold:hover { color: var(--ncdl-gold) !important; }

/* Membership card status badge in portal sidebar */
.membership-status-badge {
  font-size: .7rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.membership-status-badge.active   { background: rgba(16,185,129,.15); color: #059669; }
.membership-status-badge.expired  { background: rgba(239,68,68,.12);  color: #dc2626; }
.membership-status-badge.pending  { background: rgba(245,158,11,.12); color: #b45309; }

/* Form elements outside .form-luxury */
.form-control:focus, .form-select:focus {
  border-color: var(--ncdl-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* Prose luxury content */
.prose-luxury { line-height: 1.85; }
.prose-luxury p { color: #4a5568; margin-bottom: 1.25rem; }
.prose-luxury h2, .prose-luxury h3 { color: var(--ncdl-navy); font-family: var(--font-serif); }

/* OTP input style */
.otp-input:focus {
  border-color: var(--ncdl-gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.2) !important;
  outline: none;
}

/* Admin detail view */
.btn-outline-secondary { border-radius: var(--radius-pill); }

/* Smooth scrolling anchor offset */
[id] { scroll-margin-top: calc(var(--topbar-h) + var(--navbar-h) + 1rem); }

/* ══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════════════════ */
.btn-theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
  font-size: .82rem;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.btn-theme-toggle:hover {
  border-color: var(--ncdl-gold);
  color: var(--ncdl-gold);
  background: rgba(201,168,76,.12);
  transform: rotate(15deg);
}
[data-theme="dark"] .btn-theme-toggle {
  border-color: rgba(201,168,76,.5);
  color: var(--ncdl-gold);
  background: rgba(201,168,76,.1);
}
[data-theme="dark"] .btn-theme-toggle:hover { transform: rotate(-15deg); }

/* Mobile compact lang buttons */
.lang-btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 7px;
  border: 1.5px solid rgba(255,255,255,.32);
  border-radius: 4px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: all .15s;
  line-height: 1.4;
}
.lang-btn-sm:hover { border-color: var(--ncdl-gold); color: var(--ncdl-gold); }
.lang-btn-sm.active {
  background: var(--ncdl-gold);
  border-color: var(--ncdl-gold);
  color: var(--ncdl-navy);
}
/* Make active lang button work in dark mode too */
[data-theme="dark"] .lang-btn-sm.active { color: var(--ncdl-navy); }

/* ══════════════════════════════════════════════════════════════
   DARK MODE  [data-theme="dark"]
   Strategy: override surface/text tokens, patch hardcoded colors
══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --ncdl-white:       #0f1318;
  --ncdl-cream:       #161d2b;
  --ncdl-text:        #dce7f5;
  --ncdl-text-muted:  #8b97a8;
  --glass-bg:         rgba(255,255,255,.05);
  --glass-border:     rgba(255,255,255,.10);
  --shadow-sm:        0 2px 8px  rgba(0,0,0,.45);
  --shadow-md:        0 4px 24px rgba(0,0,0,.55);
  --shadow-lg:        0 8px 40px rgba(0,0,0,.65);
  --shadow-xl:        0 16px 64px rgba(0,0,0,.75);
  color-scheme: dark;
}

/* Body */
[data-theme="dark"] body {
  background: #0f1318;
  color: #dce7f5;
}

/* Typography overrides */
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,
[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6 {
  color: #dce7f5;
}
[data-theme="dark"] .section-heading { color: #dce7f5; }
[data-theme="dark"] .text-dark  { color: #dce7f5 !important; }
[data-theme="dark"] .text-muted { color: #8b97a8 !important; }
[data-theme="dark"] .fw-700, [data-theme="dark"] .fw-600 { color: inherit; }

/* Backgrounds */
[data-theme="dark"] .bg-white  { background-color: #161d2b !important; }
[data-theme="dark"] .bg-light  { background-color: #1a2235 !important; }
[data-theme="dark"] .bg-cream  { background-color: #161d2b !important; }

/* Borders & dividers */
[data-theme="dark"] .border              { border-color: rgba(255,255,255,.1) !important; }
[data-theme="dark"] .border-top          { border-top-color:    rgba(255,255,255,.1) !important; }
[data-theme="dark"] .border-bottom       { border-bottom-color: rgba(255,255,255,.1) !important; }
[data-theme="dark"] hr                   { border-color: rgba(255,255,255,.08); opacity: 1; }
[data-theme="dark"] .dropdown-divider    { border-color: rgba(255,255,255,.1); }

/* Cards */
[data-theme="dark"] .card-luxury         { background: #161d2b; }
[data-theme="dark"] .card-luxury .card-title  { color: #dce7f5; }
[data-theme="dark"] .card-luxury .card-footer { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .card-glass          { background: rgba(22,29,43,.75); border-color: rgba(255,255,255,.12); }

/* Admin card-section (also used on frontend settings) */
[data-theme="dark"] .card-section        { background: #141e30; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .card-section-title  { color: #94a3b8; border-bottom-color: rgba(255,255,255,.07); }

/* Stat cards */
[data-theme="dark"] .stat-card { background: #161d2b; border-color: rgba(255,255,255,.08); }

/* Tables */
[data-theme="dark"] .table             { color: #dce7f5; --bs-table-bg: transparent; }
[data-theme="dark"] .table th,
[data-theme="dark"] .table-light th   { background: #1e2840 !important; color: #dce7f5; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .table td         { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .table-hover tbody tr:hover { background: rgba(255,255,255,.04) !important; color: #dce7f5; }
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(255,255,255,.025); }
[data-theme="dark"] .table-success    { background: rgba(25,135,84,.15) !important; }

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-luxury .form-control,
[data-theme="dark"] .form-luxury .form-select {
  background: #1a2235;
  border-color: rgba(255,255,255,.18);
  color: #dce7f5;
}
[data-theme="dark"] .form-control::placeholder   { color: #5a6a80; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-luxury .form-control:focus,
[data-theme="dark"] .form-luxury .form-select:focus {
  background: #1e2840;
  border-color: var(--ncdl-gold);
  color: #dce7f5;
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}
[data-theme="dark"] .form-label        { color: #c0cfe0; }
[data-theme="dark"] .form-text         { color: #8b97a8; }
[data-theme="dark"] .form-check-label  { color: #c0cfe0; }
[data-theme="dark"] .form-check-input  { background-color: #1a2235; border-color: rgba(255,255,255,.2); }
[data-theme="dark"] .form-check-input:checked { background-color: var(--ncdl-gold); border-color: var(--ncdl-gold); }
[data-theme="dark"] .input-group-text  { background: #1a2235; border-color: rgba(255,255,255,.18); color: #dce7f5; }
[data-theme="dark"] select option      { background: #1a2235; color: #dce7f5; }

/* Dropdowns */
[data-theme="dark"] .dropdown-menu     { background: #1e2840; border-color: rgba(255,255,255,.12); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .dropdown-item     { color: #c0cfe0; }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus { background: rgba(201,168,76,.15); color: var(--ncdl-gold); }

/* Alerts */
[data-theme="dark"] .alert            { background: #1e2840; border-color: rgba(255,255,255,.12); color: #dce7f5; }
[data-theme="dark"] .alert-success    { background: #0c1f15; border-color: rgba(25,135,84,.4);  color: #6fcf97; }
[data-theme="dark"] .alert-danger     { background: #1f0c0c; border-color: rgba(220,53,69,.4);  color: #eb5757; }
[data-theme="dark"] .alert-warning    { background: #1a1200; border-color: rgba(255,193,7,.4);  color: #f2c94c; }
[data-theme="dark"] .alert-info       { background: #091c2e; border-color: rgba(13,202,240,.4); color: #56ccf2; }

/* Badges */
[data-theme="dark"] .badge.bg-light    { background: #2a3550 !important; color: #dce7f5 !important; }
[data-theme="dark"] .badge.bg-secondary{ background: #2a3550 !important; }

/* Pagination */
[data-theme="dark"] .page-link        { background: #1a2235; border-color: rgba(255,255,255,.1); color: #dce7f5; }
[data-theme="dark"] .page-item.active .page-link  { background: var(--ncdl-gold); border-color: var(--ncdl-gold); color: #0B1F3A; }
[data-theme="dark"] .page-item.disabled .page-link{ background: #141c2e; color: #5a6a80; border-color: rgba(255,255,255,.06); }

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb-item a       { color: var(--ncdl-gold); }
[data-theme="dark"] .breadcrumb-item.active  { color: #8b97a8; }
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #5a6a80; }

/* Links */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.topbar-item):not(.topbar-social-link):not(.admin-nav-link):not(.lang-btn) {
  color: var(--ncdl-gold);
}
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.topbar-item):not(.topbar-social-link):not(.admin-nav-link):not(.lang-btn):hover {
  color: var(--ncdl-gold-light);
}

/* Preloader dark override — in ncdl-preloader.css */

/* Back to top */
[data-theme="dark"] #backToTop { background: var(--ncdl-gold); color: var(--ncdl-navy); }

/* Admin sidebar — already dark navy, keep it */

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL — INDEPENDENT DARK MODE
   Triggered by [data-admin-theme="dark"] on <html>.
   Completely separate from the frontend [data-theme="dark"].
   ════════════════════════════════════════════════════════════ */

/* Admin theme toggle button */
.admin-theme-btn {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #f8fafc; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; font-size: .82rem;
}
.admin-theme-btn:hover { border-color: var(--ncdl-gold); color: var(--ncdl-gold); background: rgba(201,168,76,.08); }

/* Admin light mode (default) — no rules needed, inherits base */

/* Admin dark mode */
[data-admin-theme="dark"] .admin-wrap     { background: #0d1117; }
[data-admin-theme="dark"] .admin-content  { background: #0d1117; }
[data-admin-theme="dark"] .admin-topbar   {
  background: #141e30;
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
[data-admin-theme="dark"] .admin-page-title  { color: #e2e8f0; }
[data-admin-theme="dark"] .admin-breadcrumb  { color: #64748b; }
[data-admin-theme="dark"] .admin-breadcrumb a { color: var(--ncdl-gold); }
[data-admin-theme="dark"] .admin-theme-btn   {
  border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #94a3b8;
}
[data-admin-theme="dark"] .admin-theme-btn:hover { border-color: var(--ncdl-gold); color: var(--ncdl-gold); }
[data-admin-theme="dark"] .card-section    { background: #141e30; border-color: rgba(255,255,255,.08); }
[data-admin-theme="dark"] .card-section-title { color: #94a3b8; border-bottom-color: rgba(255,255,255,.06); }
[data-admin-theme="dark"] .widget-stat     { background: #141e30; border-color: rgba(255,255,255,.08); }
[data-admin-theme="dark"] .widget-stat-num { color: #e2e8f0; }
[data-admin-theme="dark"] .widget-stat-label { color: #64748b; }
[data-admin-theme="dark"] .widget-stat-icon.navy  { background: rgba(255,255,255,.06); color: #7ca8d9; }
[data-admin-theme="dark"] .table-admin     { background: #141e30; border-color: rgba(255,255,255,.08); }
[data-admin-theme="dark"] .table-admin .table thead th {
  background: #1a2640; color: #64748b; border-color: rgba(255,255,255,.06);
}
[data-admin-theme="dark"] .table-admin .table td   { color: #cbd5e1; border-color: rgba(255,255,255,.05); }
[data-admin-theme="dark"] .table-admin .table tbody tr:hover { background: rgba(255,255,255,.03); }
[data-admin-theme="dark"] .table-header    { background: #141e30; border-color: rgba(255,255,255,.07); color: #e2e8f0; }
[data-admin-theme="dark"] .form-control,
[data-admin-theme="dark"] .form-select,
[data-admin-theme="dark"] .input-group-text {
  background: #1a2640; border-color: rgba(255,255,255,.12);
  color: #cbd5e1;
}
[data-admin-theme="dark"] .form-control:focus,
[data-admin-theme="dark"] .form-select:focus {
  background: #1e2d4a; border-color: var(--ncdl-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15); color: #e2e8f0;
}
[data-admin-theme="dark"] .form-control::placeholder { color: #475569; }
[data-admin-theme="dark"] label { color: #94a3b8; }
[data-admin-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: #cbd5e1; --bs-table-border-color: rgba(255,255,255,.06); }
[data-admin-theme="dark"] .table-light, [data-admin-theme="dark"] .table-light th { background: #1a2640 !important; color: #94a3b8; }
[data-admin-theme="dark"] .table-dark  { background: #0d1117; }
[data-admin-theme="dark"] .alert-dismissible { background: #1a2640; border-color: rgba(255,255,255,.1); color: #cbd5e1; }
[data-admin-theme="dark"] .alert-success { background: rgba(5,150,105,.15); border-color: rgba(5,150,105,.3); color: #6ee7b7; }
[data-admin-theme="dark"] .alert-danger  { background: rgba(220,38,38,.15);  border-color: rgba(220,38,38,.3);  color: #fca5a5; }
[data-admin-theme="dark"] .alert-warning { background: rgba(217,119,6,.15);  border-color: rgba(217,119,6,.3);  color: #fcd34d; }
[data-admin-theme="dark"] .badge.bg-light { background: #1e2d4a !important; color: #94a3b8 !important; }
[data-admin-theme="dark"] .btn-outline-secondary { border-color: rgba(255,255,255,.2); color: #94a3b8; }
[data-admin-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
[data-admin-theme="dark"] .btn-light { background: rgba(255,255,255,.07); border-color: transparent; color: #94a3b8; }
[data-admin-theme="dark"] .btn-light:hover { background: rgba(255,255,255,.12); color: #e2e8f0; }
[data-admin-theme="dark"] .text-muted { color: #64748b !important; }
[data-admin-theme="dark"] .text-navy  { color: #7ca8d9 !important; }
[data-admin-theme="dark"] h1,
[data-admin-theme="dark"] h2,
[data-admin-theme="dark"] h3,
[data-admin-theme="dark"] h4,
[data-admin-theme="dark"] h5,
[data-admin-theme="dark"] h6 { color: #e2e8f0; }
[data-admin-theme="dark"] .border-bottom { border-color: rgba(255,255,255,.07) !important; }
[data-admin-theme="dark"] .border { border-color: rgba(255,255,255,.1) !important; }
[data-admin-theme="dark"] .rounded-2, [data-admin-theme="dark"] .rounded-3 { border-color: rgba(255,255,255,.1); }
[data-admin-theme="dark"] .bg-white { background: #141e30 !important; }
[data-admin-theme="dark"] .bg-light, [data-admin-theme="dark"] .bg-cream { background: #0d1117 !important; }
[data-admin-theme="dark"] a:not(.btn):not(.admin-nav-link):not(.breadcrumb-item a) { color: var(--ncdl-gold); }
[data-admin-theme="dark"] .fw-700 { color: inherit; }

/* Flash messages */
[data-theme="dark"] .ncdl-popup-overlay { backdrop-filter: blur(5px); }

/* Announcement popup cards */
[data-theme="dark"] .ncdl-popup-card.auto-dark { background: #1e2840 !important; color: #dce7f5 !important; }

/* Announcement popup form preview */
[data-theme="dark"] #popupPreview { box-shadow: 0 8px 32px rgba(0,0,0,.55) !important; }

/* Scrollbar (webkit) */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f1318; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3550; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a4870; }

/* Smooth transition on theme change */
body, .card-luxury, .card-section, .form-control, .form-select,
.dropdown-menu, .table, .bg-white, .bg-light, .bg-cream {
  transition: background-color .25s ease, border-color .25s ease, color .2s ease;
}

/* ── 25. TESTIMONIAL SWIPER — EQUAL HEIGHT CARDS ─────────── */
.testimonial-swiper .swiper-wrapper { align-items: stretch; }
.testimonial-swiper .swiper-slide   { height: auto; display: flex; }
.testimonial-swiper .swiper-slide > .card { width: 100%; }

/* ── 26. PRESIDENT'S MESSAGE ──────────────────────────────── */
.president-photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.president-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--ncdl-gold);
  box-shadow: 0 8px 32px rgba(201,168,76,.25);
  display: block;
}
.president-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ncdl-navy), var(--ncdl-navy-light));
  border: 5px solid var(--ncdl-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,.5);
  font-size: 4rem;
}
.president-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(201,168,76,.35);
  pointer-events: none;
}
.president-quote-mark {
  font-size: 2rem;
  color: var(--ncdl-gold);
  opacity: .5;
  line-height: 1;
  margin-bottom: .5rem;
}
.president-message-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ncdl-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── 26. EXECUTIVE COMMITTEE ──────────────────────────────── */
.committee-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem 1.25rem;
  transition: var(--transition);
}
.committee-card:hover {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.45);
  transform: translateY(-4px);
}
.committee-photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid rgba(201,168,76,.4);
}
.committee-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.committee-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
  border: 3px solid rgba(201,168,76,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(201,168,76,.6);
  margin: 0 auto 1rem;
}
.committee-name {
  color: #fff;
  font-family: var(--font-serif);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.committee-pos {
  color: var(--ncdl-gold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 0;
}

/* ── 27. AFFILIATED CLUBS ─────────────────────────────────── */
.affiliate-card {
  padding: 1.75rem 1rem;
  border: 1px solid rgba(11,31,58,.1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}
.affiliate-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--ncdl-gold);
}
.affiliate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.affiliate-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ncdl-navy);
  font-size: .88rem;
  margin-bottom: .35rem;
  line-height: 1.3;
}
.affiliate-loc {
  font-size: .72rem;
  color: var(--ncdl-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── 28. APP STORE BADGES (FOOTER) ───────────────────────── */
.app-store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 9px 16px;
  min-height: 52px;
  width: 100%;
  text-decoration: none !important;
  transition: all .22s cubic-bezier(.4,0,.2,1);
}
.app-store-badge:hover {
  background: #111;
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.25);
}
.app-badge-icon {
  font-size: 1.85rem;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  width: 32px;
  justify-content: center;
}
.app-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.app-badge-sub {
  font-size: .6rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 400;
}
.app-badge-main {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: .01em;
  line-height: 1.25;
}

/* Dark mode overrides for new sections */
[data-theme="dark"] .affiliate-card {
  background: var(--ncdl-cream);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .affiliate-card:hover {
  border-color: var(--ncdl-gold);
}
[data-theme="dark"] .president-message-text { color: var(--ncdl-text-muted); }
[data-theme="dark"] .affiliate-name { color: var(--ncdl-text); }

/* ══════════════════════════════════════════════════════════════
   ── 29. MOBILE PROFESSIONAL POLISH ──────────────────────────
   UI/UX Pro Max: 44×44px touch targets · 16px min body text
   No horizontal scroll · Safe areas respected · svh viewport
══════════════════════════════════════════════════════════════ */

/* ── Hero slider: no desktop pull-up offset on mobile ──────── */
@media (max-width: 991px) {
  .hero-slider { margin-top: 0; }
}

/* ── PREVENT HORIZONTAL OVERFLOW on mobile ───────────────── */
/* Prevents Swiper, Bootstrap rows, or absolutely-positioned
   elements from creating a phantom right-side scroll zone.   */
@media (max-width: 991px) {
  body    { overflow-x: hidden; }
  .swiper { overflow: hidden; }
  .hero-slider, .hero-slide { overflow: hidden; }
}

/* ── HERO MOBILE — NATIVE APP FEEL ─────────────────────────
   Goal: full-width content, app-like CTA, clean centering.
   Root cause of blank right space: col-lg-6 without col-12
   defaults to flex: 0 1 auto (content-width only). Fixed in
   home.php by adding col-12. CSS reinforces it here.
────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {

  /* Hero container: remove desktop alignment so content
     flows naturally top → down, not side by side */
  .hero-slide > .container { max-width: 100%; }
  .hero-slide > .container > .row { flex-direction: column; }

  /* Ensure text column takes full mobile width */
  .hero-slide > .container > .row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Hero content block: fill full width */
  .hero-content { width: 100%; }

  /* BUTTONS: full-width stacked — iOS/Android native feel */
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .75rem !important;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    letter-spacing: .04em;
  }
  /* Primary CTA: solid gold pill */
  .hero-actions .btn-gold {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 6px 20px rgba(201,168,76,.35);
  }
  /* Secondary button: glass-border pill */
  .hero-actions .btn-outline-white {
    border-radius: var(--radius-md) !important;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
  }

  /* Hero badge: proper sizing */
  .hero-badge {
    font-size: .75rem;
    padding: .3rem .9rem;
    margin-bottom: 1rem;
  }

  /* Hero title: responsive without clamp min being too large */
  .hero-title { font-size: clamp(1.75rem, 6.5vw, 2.8rem) !important; }

  /* Hero subtitle: readable line length */
  .hero-subtitle {
    font-size: .9rem !important;
    max-width: 100%;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  /* TRUST STRIP (stats) — horizontal, even spacing */
  .hero-content > .d-flex.gap-4 {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
    gap: 0 !important;
    align-items: center;
    margin-top: 1.75rem !important;
    padding-top: .875rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  /* Stat number: slightly smaller */
  .hero-content > .d-flex.gap-4 > div > div:first-child {
    font-size: 1.35rem !important;
  }
}

/* Swiper pagination: always above bottom safe area on mobile */
@media (max-width: 991px) {
  .hero-slider .swiper-pagination {
    bottom: env(safe-area-inset-bottom, 1.25rem) !important;
    padding-bottom: .25rem;
  }
}

/* ── MOBILE NAVBAR COLLAPSE ─────────────────────────────────── */
@media (max-width: 991px) {

  /* Premium dark glass drawer panel */
  #navbarMain {
    background: rgba(4, 10, 20, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(201,168,76,.22);
    border-bottom: 1px solid rgba(201,168,76,.08);
    border-radius: 0 0 16px 16px;
    padding: .625rem .5rem 1.25rem;
    margin-top: .35rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
  }

  /* Vertical nav list — tight gap */
  #navbarMain .navbar-nav { gap: 2px; }

  /* Mobile nav link — 44px+ touch target */
  #navbarMain .nav-link {
    font-size: .84rem !important;
    padding: .75rem 1rem !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    border-radius: 8px;
    border-left: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: normal;
    line-height: 1.3;
  }
  #navbarMain .nav-link:hover {
    background: rgba(201,168,76,.07) !important;
    border-left-color: rgba(201,168,76,.45);
    color: rgba(255,255,255,.95) !important;
  }
  #navbarMain .nav-link.active {
    background: rgba(201,168,76,.1) !important;
    border-left-color: var(--ncdl-gold) !important;
    color: var(--ncdl-gold) !important;
  }

  /* Remove desktop sliding underline — left border takes over */
  #navbarMain .nav-link::after { display: none !important; }

  /* Dropdown toggle: push chevron to far right */
  #navbarMain .nav-link.dropdown-toggle { justify-content: space-between; }
  #navbarMain .nav-dropdown-icon        { font-size: .65rem; margin-left: auto; }

  /* Mobile dropdown: accordion inset, left gold border accent */
  #navbarMain .dropdown-menu {
    background: rgba(3, 8, 18, 0.92) !important;
    border: none !important;
    border-left: 2px solid rgba(201,168,76,.3) !important;
    border-radius: 0 0 8px 8px !important;
    margin: 1px 0 6px 1.5rem !important;
    padding: .25rem 0 .5rem !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    box-shadow: none !important;
    animation: none !important;
    min-width: 0;
    width: calc(100% - 1.5rem);
  }
  #navbarMain .dropdown-item {
    font-size: .8rem !important;
    padding: .58rem .875rem !important;
    border-radius: 0 6px 6px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    border-left: none !important;
  }
  #navbarMain .dropdown-item:hover {
    background: rgba(201,168,76,.1) !important;
    color: var(--ncdl-gold) !important;
    padding-left: 1.1rem !important;
  }
  #navbarMain .dropdown-divider { margin: .25rem .75rem; }

  /* CTA / Login: visual divider above, full-width block */
  #navbarMain .nav-item.ms-lg-2 {
    margin-top: .625rem;
    padding: .625rem .5rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  #navbarMain .btn-nav-cta {
    display: block !important;
    text-align: center;
    padding: .75rem 1rem !important;
    border-radius: 10px !important;
    font-size: .84rem !important;
    letter-spacing: .08em;
    min-height: 48px;
    line-height: 1.4;
  }
  /* Portal dropdown: full-width */
  #navbarMain .nav-item.ms-lg-2 .dropdown { width: 100%; }
  #navbarMain .nav-item.ms-lg-2 .dropdown-menu {
    margin-left: 0 !important;
    width: 100%;
    position: static !important;
    transform: none !important;
    float: none !important;
  }

  /* Toggler button: 44×44px touch target */
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201,168,76,.35);
    outline: none;
  }

  /* Gold hamburger icon when menu is open */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201%2c168%2c76%2c0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* ── BRAND: Tiny screen tweaks (<480px) ─────────────────────── */
@media (max-width: 479px) {
  .brand-medallion    { width: 42px; height: 42px; }
  .brand-divider-line { display: none; }
  .brand-name         { font-size: .95rem; }
  .brand-sub          { font-size: .55rem; letter-spacing: .1em; }
  #mainNav.scrolled .brand-medallion { width: 38px; height: 38px; }
}

/* ── CONTENT-PAGE: Mobile top padding (topbar hidden) ─────────
   Desktop:  calc(--topbar-h + --navbar-h + 1rem)
   Mobile:   calc(--navbar-h + 1.5rem) only
────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  main.content-page { padding-top: calc(var(--navbar-h) + 1.5rem); }
  [id]              { scroll-margin-top: calc(var(--navbar-h) + .5rem); }
}

/* ── PAGE HERO: Mobile sizing ────────────────────────────────── */
@media (max-width: 767px) {
  .page-hero       { padding: 4.5rem 0 2.5rem; }
  .page-hero-title { font-size: clamp(1.6rem, 6vw, 2rem); }
  .page-hero-lead  { font-size: .9rem; }
}

/* ── HERO TRUST STRIP: Compact on small screens ──────────────── */
@media (max-width: 575px) {
  .hero-content .d-flex.gap-4 {
    gap: .85rem !important;
    margin-top: 1.5rem !important;
    padding-top: .65rem;
  }
}

/* ── HERO BUTTONS: Min height on mobile ──────────────────────── */
@media (max-width: 991px) {
  .hero-actions .btn { min-height: 48px; }
}

/* ── SECTIONS: Tighter vertical rhythm on mobile ─────────────── */
@media (max-width: 767px) {
  .section-heading { margin-bottom: 2rem; }
  .section-title   { font-size: clamp(1.4rem, 5vw, 1.85rem); }
  .section-lead    { font-size: .9rem; }
}

/* ── FOOTER: Mobile layout ───────────────────────────────────── */
@media (max-width: 767px) {
  .site-footer       { padding: 2.5rem 0 0; }
  .footer-brand-desc { max-width: 100%; }
  .footer-bottom     { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── BACK TO TOP: Adjust for mobile safe area ────────────────── */
@media (max-width: 767px) {
  #backToTop { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; font-size: .95rem; }
}

/* ── CARDS: Mobile sizing ────────────────────────────────────── */
@media (max-width: 575px) {
  .card-luxury .card-img-wrap { height: 190px; }
  .facility-card-img          { height: 200px; }
}

/* ── MOBILE UTILITY ROW: Ensure lang btns & theme toggle fit ─── */
@media (max-width: 360px) {
  .lang-btn-sm { padding: 3px 5px; font-size: .65rem; }
  .btn-theme-toggle { width: 30px; height: 30px; font-size: .75rem; }
}

