/* =============================================================
   CVPA — Chennai Video & Photographers' Association
   Premium Theme Stylesheet  |  Mobile-first, responsive
   Author: Revamp 2026
   Palette: Black #111 · White · Gold #D4AF37 · Accent Blue
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --black:        #211c50;
  --black-2:      #2a2461;
  --ink:          #322b72;
  --surface:      #393184;
  --surface-2:    #453d97;
  --line:         rgba(255, 255, 255, 0.08);
  --white:        #ffffff;
  --off-white:    #f6f6f8;
  --muted:        #a7a3bb;
  --muted-2:      #6f6a86;

  --gold:         #d4af37;
  --gold-soft:    #e7c96b;
  --gold-deep:    #96751a;   /* deep gold — legible on white/light backgrounds */
  --blue:         #2f80ff;
  --blue-deep:    #1b5fd6;

  --grad-gold:    linear-gradient(135deg, #f3d97a 0%, #d4af37 45%, #b8932b 100%);
  --grad-blue:    linear-gradient(135deg, #4f97ff 0%, #2f80ff 50%, #1b5fd6 100%);
  --grad-dark:    linear-gradient(180deg, rgba(33,28,80,0) 0%, rgba(33,28,80,.85) 70%, #211c50 100%);

  --glass:        rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(33, 28, 80, 0.80);
  --glass-line:   rgba(255, 255, 255, 0.12);

  --shadow-sm:    0 4px 14px rgba(0,0,0,.28);
  --shadow-md:    0 14px 40px rgba(0,0,0,.40);
  --shadow-gold:  0 12px 30px rgba(212,175,55,.28);

  --radius-sm:    12px;
  --radius:       18px;
  --radius-lg:    26px;
  --radius-xl:    34px;

  --ff-display:   'Playfair Display', Georgia, serif;
  --ff-sans:      'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --container:    1240px;
  --header-h:     78px;
  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset / Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--ff-sans);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
ul { list-style: none; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* gold-accent reusable text */
.text-gold { color: var(--gold); }
.text-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 3. Section scaffolding ---------- */
.section { padding: clamp(50px, 4vw, 70px) 0; }
.section--light { background: var(--off-white); color: var(--ink); }
.section--light h1, .section--light h2, .section--light h3 { color: var(--black); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-gold); }

/* Gold accents on light backgrounds — use the deep gold so they read cleanly on white */
.section--light .eyebrow,
.section--light .text-gold,
.section--light .mv-card i,
.section--light .benefit-card .ico,
.section--light .event-card__meta i,
.section--light .event-card__link,
.section--light .mag-feats i { color: var(--gold-deep); }
.section--light .eyebrow::before { background: linear-gradient(135deg, #b8862a, #7d5f12); }
.section--light .text-gradient { background: linear-gradient(135deg, #b8862a 0%, #96751a 55%, #7d5f12 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.section-title { font-size: clamp(1.9rem, 4.5vw, 3.3rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.section--light .section-lead { color: #555; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--ff-sans); font-weight: 700; font-size: .95rem;
  padding: 15px 30px; border-radius: 50px; border: none; cursor: pointer;
  letter-spacing: .01em; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: .9em; }
/* .btn sets display:inline-flex which otherwise beats [hidden] — keep hidden buttons hidden */
.btn[hidden] { display: none !important; }
.btn--gold { background: var(--grad-gold); color: #1a1408; box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(212,175,55,.42); }
.btn--blue { background: var(--grad-blue); color: #fff; box-shadow: 0 12px 30px rgba(47,128,255,.32); }
.btn--blue:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47,128,255,.45); }
.btn--ghost { background: var(--glass); color: var(--white); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);color: #ffd455; }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { transform: translateY(-3px); background: var(--gold); color: #1a1408; }
.btn--sm { padding: 11px 22px; font-size: .85rem; }
.btn--xs { padding: 8px 14px; font-size: .78rem; gap: 7px; }
.btn--icon { padding: 8px; width: 36px; height: 36px; }
/* ripple */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: ripple .6s linear; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--black);
  display: grid; place-items: center; transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { text-align: center; }
.preloader__ring {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid rgba(212,175,55,.18); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
.preloader__txt { font-family: var(--ff-display); letter-spacing: .4em; color: var(--gold); font-size: 1.1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: var(--gold); transform: translate(-50%, -50%); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid var(--gold); transform: translate(-50%, -50%); transition: width .25s, height .25s, background .25s; }
.cursor-ring.is-hover { width: 58px; height: 58px; background: rgba(212,175,55,.12); }
@media (hover: none), (max-width: 992px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- 7. Header (two-tier: top brand bar + sticky nav) ---------- */
.site-header { position: relative; z-index: 1000; background: var(--black); }

/* Top bar */
.topbar { background: linear-gradient(180deg, #5b53ad 0%, #1a144a 100%); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center;     justify-content: space-evenly; gap: 18px; padding: 15px 0; }
.brand-full { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-full__logo { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.brand-full__reg { font-family: var(--ff-sans); font-weight: 700; font-size: .72rem; letter-spacing: .08em; color: var(--gold); margin-bottom: 3px; white-space: nowrap;    margin-top: -5px; }
.brand-full img { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.brand-full__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-full__ta { font-family: 'Noto Sans Tamil', var(--ff-sans); font-weight: 700; font-size: 1.12rem; color: var(--white); }
.brand-full__en { font-family: var(--ff-display); font-weight: 700;    font-size: 1.5rem;    color: #fff;    letter-spacing: 0.127em; }
.brand-full__slogan {
      font-family: 'Noto Sans Tamil', var(--ff-sans);
    font-weight: 600;
    font-size: .82rem;
    line-height: 1.45;
    color: #5e4705;
    max-width: 78ch;
    align-self: flex-start;
    background: #e9cb64;
    padding: 7px 8px;
    border-top: 1px solid #e0282e;
    border-bottom: 1px solid #e0282e;
    margin-top: 8px;
    border-radius: 5px;
}
.topbar__actions { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.topbar__actions-row { display: flex; align-items: center; gap: 12px;    padding-top: 0px; }
.topbar__secretary { font-weight: 700; padding-bottom: 14px; }

/* Sticky nav */
.mainnav {
  position: relative; z-index: 1000;
  background: var(--glass-strong); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); transition: box-shadow .35s var(--ease);
}
/* fixed to top once the brand bar scrolls away */
.mainnav.is-fixed {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: navDown .4s var(--ease);
}
@keyframes navDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.mainnav__spacer { height: 0; }
.mainnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.mainnav__right { display: flex; align-items: center; gap: 10px; }

/* Brand (mini, used in nav + drawer) */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .02em; }
.brand__sub { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* Mini brand: hidden by default, revealed once the nav is fixed on scroll */
.brand--mini {
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
}
.mainnav.is-fixed .brand--mini {
  opacity: 1; visibility: visible; transform: none;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.86);
  border-radius: 10px;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

/* mega / dropdown */
.has-mega { position: relative; }
.has-mega > .nav__link i { font-size: .7rem; margin-left: 4px; transition: transform .3s; }
.has-mega:hover > .nav__link i { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 460px; background:rgb(33 28 80 / 96%); backdrop-filter: blur(20px);/* var(--glass-strong)*/
  border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); box-shadow: var(--shadow-md);
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 5px 13px; border-radius: 12px; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 600; }
.mega a i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--glass); color: var(--gold); font-size: .95rem; flex-shrink: 0; }
.mega a:hover { background: var(--glass); color: #fff; }
.mega a small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted-2); }
/* plain single-column dropdown (Gallery albums) */
.mega--list { min-width: 262px; grid-template-columns: 1fr; padding: 10px; }
/* the gap between the trigger and the panel must stay hoverable, or the panel
   closes while the pointer travels to it */
.has-mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.login-link { font-weight: 600; font-size: .9rem; color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.login-link:hover { color: var(--gold); }

/* hamburger */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--glass-line); background: var(--glass); border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; backdrop-filter: blur(8px); }
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none;
  overflow: hidden; /* clip off-canvas panel so it can't create horizontal overflow */
}
.drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .4s; backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px);
  background: var(--black-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; padding: 26px 22px; overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: #fff; font-size: 1.1rem; cursor: pointer; }
.drawer__nav a { display: block; padding: 14px 6px; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); }
.drawer__nav a:hover { color: var(--gold); padding-left: 12px; }
/* collapsible group in the drawer (Gallery albums) — <details>, no JS */
.drawer__grp > summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  padding: 14px 6px; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
.drawer__grp > summary::-webkit-details-marker { display: none; }
.drawer__grp > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--gold); transition: transform .3s var(--ease); }
.drawer__grp[open] > summary::after { transform: rotate(180deg); }
/* the albums sit in an indented rail so they read as children of Gallery.
   NB: don't name this .drawer__sub — that class already exists below for the
   older accordion and carries max-height:0, which clips the links to nothing. */
.drawer__grp[open] { padding-bottom: 6px; }
.drawer__albums { margin: 6px 0 0 8px; padding-left: 12px; border-left: 2px solid rgba(212,175,55,.35); }
.drawer__nav a.drawer__sublink {
  display: flex; align-items: center; padding: 11px 6px; font-size: .93rem; font-weight: 500;
  color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer__nav a.drawer__sublink:last-child { border-bottom: 0; }
.drawer__nav a.drawer__sublink:hover { padding-left: 12px; color: var(--gold); }
.drawer__sublink i { width: 22px; flex: none; margin-right: 8px; color: var(--gold); font-size: .9rem; }
/* flex children must not be squeezed when the drawer content is taller than
   the panel — the panel scrolls instead */
.drawer__nav, .drawer__cta { flex: none; }
.drawer__group > span { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; }
.drawer__sub { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.drawer__group.open .drawer__sub { max-height: 260px; }
.drawer__group.open > span i { transform: rotate(180deg); }
.drawer__sub a { padding-left: 22px; font-size: .95rem; font-weight: 500; }
.drawer__cta { margin-top: 26px; display: grid; gap: 12px; }

/* ---------- 8. Hero : clean slider + Flash News ---------- */
.hero { background: var(--white); padding: 26px 0 26px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }

/* slider — true 16:9 (1600x900), capped at 480px, scales equally everywhere */
.hero__slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.hero-swiper { width: 100%; aspect-ratio: 1600 / 900; max-height: 480px; }
.hero__slider .swiper, .hero__slider .swiper-slide { height: 100%; }
.hero__slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-slide-active .hero__slide-img { animation: kenburns 7s ease forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* slider controls */
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 13, 15, 0.22); border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85); opacity: 0.55;
  transition: opacity .3s, background .3s, color .3s, transform .3s var(--ease);
}
.hero-prev { left: 16px; } .hero-next { right: 16px; }
.hero__slider:hover .hero-prev, .hero__slider:hover .hero-next { opacity: 0.85; }
.hero-prev:hover, .hero-next:hover { opacity: 1; background: var(--grad-gold); color: #1a1408; border-color: transparent; }
.hero-swiper-pagination { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 5; display: flex; gap: 8px; justify-content: center; }
.hero-swiper-pagination .swiper-pagination-bullet { width: 9px; height: 9px; background: rgba(255,255,255,.5); opacity: 1; transition: width .3s, background .3s; border-radius: 6px; }
.hero-swiper-pagination .swiper-pagination-bullet-active { width: 26px; background: var(--gold); }

/* Flash News */
.flash-news { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.flash-news__head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; background: var(--grad-gold); color: #1a1408; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .92rem; }
.flash-news__head i { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.flash-news__body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.flash-news__track { position: absolute; top: 0; left: 0; width: 100%; display: flex; flex-direction: column; }
/* the duplicate items exist only to make a long list loop seamlessly —
   stay hidden until JS confirms the list is tall enough to need the loop */
.flash-news__item--clone { display: none; }
.flash-news__body.is-loop .flash-news__item--clone { display: block; }
.flash-news__body.is-loop .flash-news__track { animation: flashUp var(--fn-dur, 55s) linear infinite; }
@keyframes flashUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* short list: one copy only, ticking up through the box and round again */
.flash-news__body.is-cycle .flash-news__track { animation: flashCycle var(--fn-dur, 18s) linear infinite; }
/* hold the news still while it is being read — must sit after the animation
   shorthands above, which would otherwise reset the play state to running */
.flash-news__body.flash-news__body:hover .flash-news__track,
.flash-news__body.is-held .flash-news__track { animation-play-state: paused; }
@keyframes flashCycle {
  from { transform: translateY(var(--fn-from, 100%)); }
  to   { transform: translateY(calc(-1 * var(--fn-to, 100%))); }
}
.flash-news__item { padding: 16px 18px; border-bottom: 1px dashed var(--line); color: var(--off-white); font-size: .92rem; line-height: 1.6; }
.flash-news__item b { color: var(--gold); display: block; margin-bottom: 5px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.flash-news__item .ta { font-family: 'Noto Sans Tamil', var(--ff-sans); }
/* rich-text (Summernote) content: keep block tags flowing inside the ticker item */
.flash-news__item p { margin: 0; }
.flash-news__item a { color: inherit; text-decoration: underline; }
.flash-news__item ul, .flash-news__item ol { margin: 4px 0 0; padding-left: 18px; }

/* ---------- 8a2. Gallery albums (index.php #gallery) ----------
   Same cards and 3-per-row rhythm as .event-grid (owner's request); the 4th and
   5th albums wrap onto a second row. Breakpoints mirror .event-grid below. */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid .event-card__body h4 i { color: var(--gold); margin-right: 8px; font-size: .95rem; }

/* ---------- 8b. Intro + stats band ---------- */
.intro-band { position: relative; overflow: hidden; background: var(--black); padding: clamp(46px, 7vw, 80px) 0; text-align: center; }
.intro-band__inner { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 50px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.25); }
.intro-band h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: #fff; max-width: 20ch; margin: 0 auto 20px; }
.intro-band h1 .text-gradient { display: inline; }
.intro-band p { font-size: clamp(1rem, 2.1vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 0 auto 32px; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 50px; }
.intro-stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(24px, 5vw, 70px); justify-content: center; }
.stat__num { font-family: var(--ff-display); font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__num .suffix { color: var(--gold); }
.stat__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* floating shapes */
.shape { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .25; z-index: 1; pointer-events: none; }
.shape--gold { width: 320px; height: 320px; background: var(--gold); }
.shape--blue { width: 260px; height: 260px; background: var(--blue); }

/* ---------- 8e. Separator between hero and About ---------- */
#about { box-shadow: inset 0 34px 60px -42px rgba(0,0,0,.95); }
#about::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(88%, 1100px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: .65; box-shadow: 0 0 18px rgba(212,175,55,.45);
}
#about::after {
  content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--gold); border-radius: 2px;
  box-shadow: 0 0 16px rgba(212,175,55,.75);
}

/* ---------- 9. About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about__media .badge-card {
  position: absolute; bottom: -24px; left: -24px; background: var(--white); color: var(--ink);
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center;
}
.about__media .badge-card b { font-family: var(--ff-display); font-size: 2.1rem; display: block; color: var(--gold-deep); }
.about__media .badge-card span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.about__media .glow { position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; background: var(--grad-gold); filter: blur(80px); opacity: .3; z-index: -1; border-radius: 50%; }

.lead-quote { font-family: var(--ff-display); font-size: 1.3rem; line-height: 1.5; color: var(--white); margin: 22px 0 26px; padding-left: 20px; border-left: 3px solid var(--gold); }
.section--light .lead-quote { color: var(--ink); }
.about p { color: var(--muted); margin-bottom: 16px; }
.section--light.about p, .about.section--light p { color: #555; }

.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.mv-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .3s var(--ease), border-color .3s; }
.section--light .mv-card { background: #fff; border-color: #eee; box-shadow: var(--shadow-sm); }
.mv-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.mv-card i { font-size: 1.4rem; color: var(--gold); margin-bottom: 12px; }
.mv-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.mv-card p { font-size: .92rem; margin: 0; }

/* timeline */
.timeline { margin-top: 40px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(212,175,55,.2); }
.timeline__item b { color: var(--gold); font-family: var(--ff-sans); display: block; font-size: .9rem; letter-spacing: .05em; }
.timeline__item span { color: var(--muted); font-size: .95rem; }
.section--light .timeline__item span { color: #555; }

/* ---------- 10. Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.benefit-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-gold); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.benefit-card:hover { transform: translateY(-8px); background: var(--surface-2); }
.benefit-card:hover::after { opacity: 1; }
.benefit-card .ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--gold); background: rgba(212,175,55,.12); margin-bottom: 20px; transition: transform .4s var(--ease); }
.benefit-card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.benefit-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.benefit-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- 11. Membership / Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec;
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s; position: relative; overflow: hidden;
}
.plan:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.plan--featured { background: var(--ink); color: #fff; border: none; transform: scale(1.03); }
.plan--featured:hover { transform: scale(1.03) translateY(-10px); }
.plan--featured .plan__name, .plan--featured .plan__price b { color: #fff; }
.plan__tag { position: absolute; top: 56px; right: 18px; background: var(--grad-gold); color: #1a1408; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; }
.plan__name { font-family: var(--ff-sans); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.plan__price { /*font-family: var(--ff-display);*/ margin-bottom: 6px; }
.plan__price b { font-size: 2rem; color: var(--ink); }
.plan__price .cur { font-size: 1.2rem; vertical-align: super;    color: #322b72; }
.plan__price .per { font-family: var(--ff-sans); font-size: .85rem; color: #999; font-weight: 500; }
.plan--featured .plan__price .per { color: var(--muted); }
.plan__note {     font-size: 1.05rem;
    color: #9f1717;
    margin-bottom: 20px;
    font-weight: bold; }
	.nmr{color: #2f7812;
    margin-bottom: -10px;
    font-weight: 500;}
.plan--featured .plan__note { color: var(--muted); }
.plan__feats { display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan__feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: #555; }
.plan--featured .plan__feats li { color: rgba(255,255,255,.82); }
.plan__feats i { color: var(--gold-deep); margin-top: 4px; font-size: .85rem; }
.plan--featured .plan__feats i { color: var(--gold); }
.plan .btn { width: 100%; }

.membership-note { margin-top: 34px; text-align: center; color: var(--muted); font-size: .9rem; }
.section--light .membership-note { color: #666; }

/* ---------- 12. Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.event-card:hover { transform: translateY(-8px); border-color: var(--gold); }
.event-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.08); }
.event-card__date { position: absolute; top: 14px; left: 14px; background: var(--glass-strong); backdrop-filter: blur(8px); border: 1px solid var(--glass-line); border-radius: 12px; padding: 8px 12px; text-align: center; color: #fff; }
.event-card__date b { display: block; font-family: var(--ff-display); font-size: 1.4rem; line-height: 1; color: var(--gold); }
.event-card__date span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.event-card__body { padding: 22px; }
.event-card__meta { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.event-card__meta i { color: var(--gold); margin-right: 5px; }
.event-card__body h4 { font-size: 1.25rem; color: #fff; margin-bottom: 10px; }
.event-card__body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.event-card__link { color: var(--gold); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; }
.event-card__link:hover { gap: 12px; }

/* ---------- 13. Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.gallery-filter button { padding: 9px 20px; border-radius: 50px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font-weight: 600; font-size: .85rem; cursor: pointer; transition: .3s var(--ease); }
.gallery-filter button.active, .gallery-filter button:hover { background: var(--grad-gold); color: #1a1408; border-color: transparent; }
.masonry { columns: 3; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.masonry__item img { width: 100%; display: block; transform: translateY(var(--py, 0px)) scale(1.08); will-change: transform; }
.masonry__item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(13,13,15,.5); opacity: 0; transition: opacity .4s; }
.masonry__item:hover::after { opacity: 1; }

/* ---------- 14. Magazine ---------- */
.magazine__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.magazine__covers { display: flex; gap: 18px; justify-content: center; perspective: 1200px; }
.magazine__covers img { width: 46%; border-radius: 8px; box-shadow: var(--shadow-md); transition: transform .5s var(--ease); }
.magazine__covers img:first-child { transform: rotate(-5deg) translateY(10px); }
.magazine__covers img:last-child { transform: rotate(5deg); }
.magazine__covers:hover img:first-child { transform: rotate(-2deg) translateY(0); }
.magazine__covers:hover img:last-child { transform: rotate(2deg); }
.mag-feats { display: grid; gap: 14px; margin: 24px 0 30px; }
.mag-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.mag-feats i { width: 34px; height: 34px; border-radius: 10px; background: rgba(212,175,55,.12); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- 15. CTA Banner ---------- */
.cta-band { position: relative; padding: clamp(56px, 8vw, 100px) 0; overflow: hidden; background: linear-gradient(120deg, #322b72, #211c50); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.22), transparent 50%); }
.cta-band__inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin-bottom: 18px; }
.cta-band p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 16. Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 60px); }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .3s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--gold); transform: translateX(6px); }
.contact-card .ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: rgba(212,175,55,.12); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; }
.contact-card h5 { font-family: var(--ff-sans); font-weight: 700; margin-bottom: 4px; color: #fff; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .92rem; }
.contact-card a:hover { color: var(--gold); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--black-2); border: 1px solid var(--line);
  border-radius: 12px; color: #fff; font-family: var(--ff-sans); font-size: .95rem; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-wrap { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); filter: grayscale(.3) contrast(1.05); }
.map-wrap iframe { display: block; width: 100%; height: 240px; border: 0; }

/* ---------- 17. Footer ---------- */
.site-footer { background: #1c1745; border-top: 1px solid var(--line); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { width: 56px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .3s var(--ease); }
.footer-social a:hover { background: var(--grad-gold); color: #1a1408; transform: translateY(-4px); }
.footer-col h5 { font-family: var(--ff-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.newsletter p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: .9rem; }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter button { flex-shrink: 0; width: 50px; border-radius: 12px; border: none; background: var(--grad-gold); color: #1a1408; font-size: 1rem; cursor: pointer; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted-2); font-size: .85rem; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { color: var(--muted-2); font-size: .85rem; }
.footer-bottom .links a:hover { color: var(--gold); }

/* ---------- 18. Aperture scroll dial + WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 900; bottom: 26px; left: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md);
  background: #25d366; color: #fff; font-size: 1.5rem;
  transition: transform .3s var(--ease);
  display:none;
}
.wa-float:hover { transform: scale(1.1); }

/* Camera aperture that fills with scroll progress + back-to-top */
.aperture-dial {
  position: fixed; z-index: 900; bottom: 26px; right: 26px;
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8) translateY(12px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.aperture-dial.show { opacity: 0; transform: none; pointer-events: auto; }
.aperture-dial:hover { transform: scale(1.06); }
.aperture-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aperture-dial__ring .ring-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 4; }
.aperture-dial__ring .ring-fg {
  fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
}
.aperture-dial__iris { color: var(--gold); }
.aperture-dial__iris .iris-blades { transform-origin: 50% 50%; transition: transform .15s linear; }
.aperture-dial__iris use { fill: currentColor; opacity: .92; }
/* up-arrow appears on hover to signal back-to-top */
.aperture-dial__arrow {
  position: relative; z-index: 2; color: #fff; font-size: .95rem;
  opacity: 0; transition: opacity .25s;
}
.aperture-dial:hover .aperture-dial__iris { opacity: .25; }
.aperture-dial:hover .aperture-dial__arrow { opacity: 1; }

/* ---------- 18a2. Scroll-motion system (smooth + reveals + parallax) ---------- */
/* word-by-word headline rise */
.reveal-head .word { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.05; padding-bottom: .04em; }
.reveal-head .word__in { display: inline-block; transform: translateY(118%); transition: transform .85s var(--ease); will-change: transform; }
.reveal-head.in .word__in { transform: translateY(0); }
/* clip-path wipe reveal for framed images */
@media (prefers-reduced-motion: reduce) {
  .reveal-head .word__in { transform: none; }
  .masonry__item img { transform: none; }
}

/* ---------- 18b. Film-strip progress rail (left edge) ---------- */
.filmstrip {
  position: fixed; left: 0; top: 0; bottom: 0; width: 22px; z-index: 925; pointer-events: none;
  background: #211c50; border-right: 1px solid var(--line); overflow: hidden;
}
.filmstrip__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, rgba(212,175,55,.5), rgba(212,175,55,.06));
  transition: height .12s linear; }
/* sprocket holes drawn above the fill so they stay visible */
.filmstrip__holes { position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 6px, transparent 6px 16px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 6px, transparent 6px 16px);
  background-position: 4px 0, calc(100% - 4px) 0;
  background-size: 4px 16px, 4px 16px; background-repeat: repeat-y; }
.filmstrip__marker { position: absolute; left: 0; top: 0; width: 100%; height: 14px;
  background: var(--grad-gold); box-shadow: 0 0 12px rgba(212,175,55,.85); border-radius: 2px;
  transition: top .12s linear; }
@media (max-width: 640px) { .filmstrip { display: none; } }

/* ---------- 19. Mobile bottom tab bar (app feel) ---------- */
.tabbar { display: none; }

/* ---------- 20. Reveal animation hook ---------- */
[data-aos] { pointer-events: auto; }

/* =============================================================
   21. RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .benefit-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .mainnav-login { display: none; }
  .burger { display: flex; }
  .event-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .about__grid, .magazine__grid, .contact__grid { grid-template-columns: 1fr; }
  .magazine__grid { gap: 40px; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; row-gap: 30px; }
  /* stack hero slider + flash news (slider keeps 16:9, capped 480px) */
  .hero__grid { grid-template-columns: 1fr; }
  .flash-news { height: 320px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding-inline: 18px; }
  .benefit-grid, .plan-grid, .event-grid, .gallery-grid { grid-template-columns: 1fr; }
  .mv-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry__item { margin-bottom: 12px; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-10px); }
  .footer-grid { grid-template-columns: 1fr; }
  .intro-cta .btn { flex: 1; min-width: 0; }
  .intro-band h1 { font-size: clamp(2.1rem, 9vw, 3rem); }

  /* top bar: center brand, hide actions (Join is in the bottom tab bar) */
  .topbar__inner { justify-content: center; padding: 12px 15px; }
  .topbar__actions { display: none; }
  .brand-full { gap: 12px; }
  .brand-full__reg{display:none;}
  .brand-full img { width: 80px; height: 80px; }/*margin-top: -5px;*/
  .brand-full__ta { font-size: .82rem; }
  .brand-full__en { font-size: 1rem;letter-spacing: 0.02em; }
  .brand-full__slogan { display: none; }
  .hero { padding-top: 18px; }
  .flash-news { height: 300px; }

  /* App-like mobile bottom tab bar */
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--glass-strong); backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid var(--glass-line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; padding: 6px 2px; color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .02em; }
  /* all icons: same size, gold gradient circle */
  .tabbar a i { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-gold); color: #1a1408; display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-gold); flex: none; }
  /* uniform two-line label box so single- and two-line labels keep the icons aligned */
  .tabbar__lbl { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; min-height: 2.3em; width: 100%; }
  .tabbar a.active, .tabbar a:active { color: var(--gold); }
  /* lift floats above tab bar */
  .aperture-dial { bottom: 84px; right: 18px; width: 54px; height: 54px; }
  .wa-float { bottom: 84px; left: 18px; width: 48px; height: 48px; font-size: 1.35rem; }
  body { padding-bottom: 66px; }
  .site-footer { padding-bottom: 66px; }
}
@media (max-width: 400px) {
  .intro-stats { gap: 22px 14px; }
  .stat__num { font-size: 1.7rem; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =============================================================
   22. Member area — login modal, dashboard, profile
   ============================================================= */

/* ---- Login modal ---- */
.login-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.login-modal.is-open { display: block; }
.login-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.login-modal__box {
  position: relative; z-index: 1; width: min(92vw, 420px); margin: 12vh auto 0;
  background: var(--surface); border: 1px solid var(--glass-line); border-radius: var(--radius-lg);
  padding: 34px 30px 28px; box-shadow: var(--shadow-md); text-align: center;
  animation: lmIn .35s var(--ease);
}
@keyframes lmIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.login-modal__x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.login-modal__x:hover { color: var(--gold); }
.login-modal__brand { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,175,55,.12); color: var(--gold); font-size: 1.8rem; }
.login-modal__title { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.login-modal__sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.login-step { text-align: left; }
.login-step label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.login-step label span { color: var(--gold); text-transform: none; letter-spacing: 0; font-weight: 500; }
.login-step input {
  width: 100%; padding: 14px 16px; margin-bottom: 16px; background: var(--black-2);
  border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: 1.05rem; letter-spacing: .04em;
}
.login-step input:focus { outline: none; border-color: var(--gold); }
.login-hint { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 14px; }
.login-hint a { color: var(--gold); }
/* fingerprint one-tap block in the login modal */
.lm-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.lm-or::before, .lm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lm-fp .btn i { color: var(--gold); }
/* fingerprint enrolment block on My Account */
.acc-fp { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--black-2); }
.acc-fp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.acc-fp__title { font-weight: 700; color: #fff; min-width: 0; white-space: nowrap; }
.acc-fp__title i { color: var(--gold); margin-right: 6px; }
.acc-fp__state { flex: none; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted-2); }
.acc-fp__state.is-on { background: rgba(52,211,153,.14); color: #34d399; }
.acc-fp__state.is-off { background: rgba(255,255,255,.06); color: var(--muted-2); }
.acc-fp__desc { color: var(--muted); font-size: .88rem; margin-bottom: 12px; line-height: 1.5; }
.acc-fp__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Sub-page header (account pages) ---- */
.subhead {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.subhead__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.subhead .brand img { width: 38px; height: 38px; }
.subhead__actions { display: flex; align-items: center; gap: 10px; }
.subhead__welcome { font-size: .9rem; font-weight: 600; color: var(--gold-soft); white-space: nowrap; }
@media (max-width: 640px) { .subhead__welcome { display: none; } }

/* Member nav inside the sub-page top bar */
.subhead__nav { flex: 1; justify-content: center; }
.subhead__nav .nav__link i { margin-right: 6px; }
/* logo + nav visible by default; the bar stays pinned and gains a shadow on scroll */
.subhead .brand--mini {
  opacity: 1; visibility: visible; transform: none;
}
.subhead.is-scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* ---- Account page shell ---- */
.account { padding: calc(1px + clamp(28px, 5vw, 56px)) 0 90px; min-height: 70vh; }
.account__head { margin-bottom: 26px;}
.account__head .eyebrow { margin-bottom: 10px; }
.account__head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; }
.account__head p { color: var(--muted); margin-top: 6px; }

.acc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; align-items: start; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.acc-card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.acc-card h3 i { color: var(--gold); }

/* profile summary card */
.acc-photo { width: 110px; height: 110px; border-radius: 18px; object-fit: cover; border: 2px solid var(--gold); margin-bottom: 16px; background: #fff; padding: 6px; }
.acc-name { font-family: var(--ff-display); font-size: 1.5rem; color: #fff; }
.acc-type { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1a1408; background: var(--grad-gold); padding: 4px 12px; border-radius: 50px; }

/* detail rows */
.acc-rows { display: grid; gap: 0; }
.acc-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.acc-row:last-child { border-bottom: 0; }
.acc-row .k { color: var(--muted); }
.acc-row .v { color: #fff; font-weight: 600; text-align: right; }

/* subscription / status */
.sub-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 50px; }
.sub-status.ok { color: #34d399; background: rgba(52,211,153,.12); }
.sub-status.warn { color: #fbbf24; background: rgba(251,191,36,.14); }
.sub-status.exp { color: #f87171; background: rgba(248,113,113,.14); }
.renew-box { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.3); }
.renew-box p { color: var(--off-white); font-size: .92rem; margin-bottom: 14px; }
.renew-box p b { color: var(--gold); }
.acc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---- Profile edit form ---- */
.pf-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 34px); }
.pf-section-title { font-family: var(--ff-sans); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pf-section-title:first-child { margin-top: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf-field { display: flex; flex-direction: column; }
.pf-field.col-2 { grid-column: span 2; }
.pf-field.col-3 { grid-column: span 3; }
.pf-field label { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.pf-field input, .pf-field select {
  width: 100%; padding: 12px 14px; background: var(--black-2); border: 1px solid var(--line);
  border-radius: 10px; color: #fff; font-family: var(--ff-sans); font-size: .92rem;
}
.pf-field input:focus, .pf-field select:focus { outline: none; border-color: var(--gold); }

/* view-mode hint under the heading */
.pf-hint { color: var(--muted); margin-top: 8px; font-size: .92rem; }
.pf-hint i { color: var(--gold); margin-right: 6px; }
.pf-hint strong { color: var(--gold-soft); }

/* ---- View vs Edit affordance ----
   VIEW MODE (and any locked field, always): show the value as clean read-only
   text — no box — so it's obvious nothing is editable until you click Edit. */
.pf-form:not(.is-editing) .pf-field input,
.pf-form:not(.is-editing) .pf-field select,
.pf-field:has([data-lock]) input,
.pf-field:has([data-lock]) select {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  color: #fff; opacity: 1; cursor: default;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: none;          /* hide native select arrow in read-only view */
}
/* empty read-only value placeholder */
.pf-form:not(.is-editing) .pf-field input:placeholder-shown { color: var(--muted-2); }

/* EDIT MODE: editable fields become real, inviting input boxes */
.pf-form.is-editing .pf-field:not(:has([data-lock])) input,
.pf-form.is-editing .pf-field:not(:has([data-lock])) select {
  background: var(--black-2); border-color: var(--line);
  padding-left: 14px; color: #fff; cursor: text; opacity: 1;
}
.pf-form.is-editing .pf-field:not(:has([data-lock])) select { cursor: pointer; }
.pf-form.is-editing .pf-field:not(:has([data-lock])) input:hover,
.pf-form.is-editing .pf-field:not(:has([data-lock])) select:hover { border-color: var(--gold-deep); }

/* locked fields: clearly marked read-only with a lock icon */
.pf-field:has([data-lock]) label::after {
  content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-left: 7px; font-size: .82em; color: var(--muted-2);
}
.pf-form.is-editing .pf-field:has([data-lock]) { opacity: .7; }

/* toast notifications */
.pf-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  z-index: 9000; max-width: min(92vw, 460px);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 50px;
  background: var(--glass-strong); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line); color: var(--off-white);
  font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.pf-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pf-toast i { color: var(--gold); font-size: 1.05em; }
.pf-toast--ok { border-color: rgba(52,211,153,.5); }
.pf-toast--ok i { color: #34d399; }

/* ===== SweetAlert2 — brand theme (dark navy + gold) ===== */
.swal2-container { z-index: 99999; padding: 14px; }

/* modal dialogs */
.swal2-popup.cvpa-modal {
  background: #1b1740;
  color: var(--off-white, #eef0f4);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  width: min(92vw, 420px);
  padding: 22px 20px 20px;
}
.cvpa-modal .swal2-title { color: #fff; font-size: 1.2rem; font-weight: 800; }
.cvpa-modal .swal2-html-container,
.cvpa-modal .swal2-content { color: rgba(255,255,255,.82); font-size: .95rem; }
.cvpa-modal .swal2-actions { gap: 10px; margin-top: 18px; }
.cvpa-modal .swal2-confirm,
.cvpa-modal .swal2-cancel {
  border-radius: 11px; font-weight: 700; padding: 10px 20px; box-shadow: none !important;
}
.cvpa-modal .swal2-confirm {
  background: linear-gradient(135deg, #e6c65a, #d4af37) !important; color: #1a1408 !important;
}
.cvpa-modal .swal2-cancel {
  background: rgba(255,255,255,.10) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}
.cvpa-modal .swal2-icon { margin-top: 6px; }
.cvpa-modal .swal2-select,
.cvpa-modal .swal2-input {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
}
/* Native <option> list renders on an OS-white background — force dark text so it stays legible. */
.cvpa-modal .swal2-select option { background: #1b1740; color: #fff; }

/* New-registration "View Details" modal (area secretary + office bearers) */
.ad-wrap { text-align: left; max-height: 66vh; overflow-y: auto; padding-right: 4px; }
.ad-sub { color: rgba(255,255,255,.6); font-size: .82rem; margin-bottom: 12px; }
.ad-imgs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ad-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  color: rgba(255,255,255,.75); font-size: .72rem; }
.ad-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); }
.ad-group { margin-bottom: 16px; }
.ad-gt { font-weight: 800; color: #e6c65a; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 6px; margin-bottom: 8px; }
.ad-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.ad-row:last-child { border-bottom: 0; }
.ad-k { color: rgba(255,255,255,.6); font-size: .85rem; flex: 0 0 42%; }
.ad-v { color: #fff; font-size: .9rem; font-weight: 600; text-align: right; flex: 1 1 auto; word-break: break-word; }

/* toasts */
.swal2-popup.cvpa-toast {
  background: rgba(27,23,64,.96);
  color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  padding: 12px 14px;
}
.cvpa-toast .swal2-title { color: #fff; font-size: .9rem; font-weight: 600; margin: 0; }
.cvpa-toast .swal2-timer-progress-bar { background: var(--gold, #d4af37); }
/* edit-mode notice banner */
.pf-editbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 12px 18px;
  background: rgba(212,175,55,.10); border: 1px solid rgba(212,175,55,.35);
  border-radius: var(--radius-sm); color: var(--gold-soft);
  font-size: .9rem; font-weight: 600;
}
.pf-editbar[hidden] { display: none; }
.pf-editbar i { color: var(--gold); }

/* profile photo (view + edit) */
.pf-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pf-photo__img {
  width: 110px; height: 110px; border-radius: 12px; object-fit: cover;
  border: 2px solid rgba(212,175,55,.45); background: rgba(255,255,255,.04);
}
.pf-photo__edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pf-photo__edit[hidden] { display: none; }
.pf-photo__hint { font-size: .8rem; color: var(--gold-soft); opacity: .8; }

/* sticky action bar — stays in view while editing a long form */
.pf-footer {
  display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
  position: sticky; bottom: 0; z-index: 20;
  padding: 16px clamp(20px, 4vw, 34px);
  margin-inline: calc(-1 * clamp(20px, 4vw, 34px));
  margin-bottom: calc(-1 * clamp(20px, 4vw, 34px));
  background: var(--glass-strong); backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Save / Cancel are hidden until Edit Profile is clicked. The display:flex above
   overrides the browser's default [hidden] rule, so it must be restated here —
   same reason .pf-editbar and .pf-photo__edit each carry one. */
.pf-footer[hidden] { display: none; }

@media (max-width: 860px) {
  .acc-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-field.col-2, .pf-field.col-3 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-field.col-2, .pf-field.col-3 { grid-column: span 1; }
  .login-modal__box { margin-top: 8vh; }
}

/* ---------- People / Team directory (Office Bearers, Executive & Ex Members) ---------- */
.ppl-zone {
  display: flex; align-items: center; gap: 14px;
  margin: 40px 0 22px;
}
.ppl-zone:first-of-type { margin-top: 6px; }
.ppl-zone__line { flex: 1; height: 1px; background: var(--line); }
.ppl-zone h2 {
  font-family: var(--ff-sans); font-weight: 800; font-size: clamp(.9rem, 2.4vw, 1.05rem);
  letter-spacing: .1em; text-transform: uppercase; color: #f36046;
  white-space: nowrap; margin: 0;
}
.ppl-term {
  display: inline-block; margin-bottom: 6px; color: var(--muted);
  font-size: .9rem; font-weight: 600;
}

.ppl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.ppl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 16px 20px;
  text-align: center; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ppl-card:hover {
  transform: translateY(-5px); border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.ppl-card__photo {
  width: 115px; height: 140px; margin: 0 auto 15px;
  border-radius: 15%; padding: 3px;
  background: var(--grad-gold);
}
.ppl-card__photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 15%;
  background: var(--surface-2); display: block;
}
.ppl-card__name {
  font-family: var(--ff-sans); font-weight: 700; font-size: .98rem;
  color: #fff; line-height: 1.3; margin-bottom: 8px;
}
.ppl-card__role {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--gold);
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.28);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.ppl-card__phone {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  width: 100%; font-size: .86rem; font-weight: 600; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.ppl-card__phone:hover { color: var(--gold); }
.ppl-card__phone i { color: var(--gold); }

/* highlight the top designation (President etc.) */
.ppl-card--lead { border-color: rgba(212,175,55,.45); background: linear-gradient(180deg, rgba(212,175,55,.08), var(--surface)); }
.ppl-card--lead .ppl-card__photo { box-shadow: var(--shadow-gold); }

/* Leadership tier — a centred flex row so President / Secretary / Treasurer /
   P.R.O. stay balanced in the middle on desktop instead of left-aligning under
   the wider auto-fill grid. The Hony Vice President sits alone on the first line:
   the .ppl-break spacer forces a wrap after it. */
.ppl-lead-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 18px; }
.ppl-lead-row .ppl-card { flex: 0 1 220px; }
.ppl-lead-row .ppl-break { flex-basis: 100%; height: 0; margin: 0; padding: 0; }

@media (max-width: 560px) {
  .ppl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Leadership tier: two cards per row on mobile, matching the grid below.
     flex-grow is 0 so a lone card (e.g. the Hony VP row) stays half-width
     and centred rather than stretching to fill the row. */
  .ppl-lead-row { gap: 12px; }
  .ppl-lead-row .ppl-card { flex: 0 1 calc(50% - 6px); max-width: calc(50% - 6px); }
  .ppl-card { padding: 18px 5px 16px; }
  .ppl-card__photo { width: 115px; height: 140px; }
  .ppl-card__name { font-size: .70rem; }
}
