/* ═══════════════════════════════════════════════════════════════
   SCPWKS — MASTER STYLESHEET  (Bootstrap-compatible)
   ───────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   ─────────────────
   01. Design Tokens (CSS Variables)
   02. Reset & Base
   03. Typography Utilities
   04. Topbar
   05. Navbar — Desktop
   06. Navbar — Mobile Cluster & Toggler
   07. Mobile Drawer Menu
   08. Buttons  ← ทุกรูปแบบที่เลือกใช้ได้
   09. Hero Section
   10. Marquee Bar
   11. Section Labels (Eyebrow / Title / Desc)
   12. Activity Cards
   13. About Section
   14. Members Section
   15. FAQ Accordion
   16. Why Section (Dark Band)
   17. Reviews / Testimonials (Swiper)
   18. Swiper Global Overrides
   19. Bootstrap Tab Override
   20. Footer
   21. Scroll-Reveal Animations
   22. Utility Classes
   23. Responsive Breakpoints
   24. Reduced Motion
   25. Touch Improvements
═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   01  DESIGN TOKENS  (CSS Variables)
   ─────────────────────────────────────────
   แก้ที่นี่ที่เดียวเพื่อเปลี่ยนทั้งไซต์
   ───────────────────────────────────────── */
:root {
  /* ── Brand Palette ── */
  --mag:        #c84ed8;
  --mag-dark:   #a038b5;
  --mag-light:  #e07ef0;
  --mag-pale:   #f9eafd;
  --mag-pale2:  #f3d6fb;

  /* ── Surface Colours ── */
  --cream:  #fffaf8;
  --warm:   #fff5fe;
  --white:  #ffffff;

  /* ── Text ── */
  --text:      #1e0626;
  --text-mid:  #5a3566;
  --text-soft: #9b72aa;

  /* ── Accent Colours ── */
  --gold: #f0b429;
  --mint: #3dd6c0;
  --rose: #ff7eb3;
  --blue: #7e8fff;

  /* ── Fluid Spacing Scale ── */
  --sp-xs: clamp(.5rem,  1.5vw, .75rem);
  --sp-sm: clamp(.75rem, 2vw,   1rem);
  --sp-md: clamp(1rem,   3vw,   1.5rem);
  --sp-lg: clamp(2rem,   5vw,   3.5rem);
  --sp-xl: clamp(3rem,   7vw,   6rem);

  /* ── Fluid Type Scale ── */
  --fs-xs:   clamp(.72rem, 2vw,   .8rem);
  --fs-sm:   clamp(.82rem, 2.2vw, .95rem);
  --fs-md:   clamp(.8rem,  2.5vw, 1.05rem);
  --fs-lg:   clamp(1.5rem, 4vw,   2rem);
  --fs-xl:   clamp(2.2rem, 6vw,   4rem);
  --fs-hero: clamp(4.0rem, 8vw,   6.5rem);

  /* ── Border Radius ── */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ── Shadows ── */
  --shadow-sm:  0 2px 12px rgba(200,78,216,.06);
  --shadow-md:  0 8px 28px  rgba(200,78,216,.12);
  --shadow-lg:  0 20px 60px rgba(200,78,216,.18);
  --shadow-btn: 0 8px 28px  rgba(200,78,216,.35);

  /* ── Mobile Menu Animation ── */
  --mob-dur:  320ms;
  --mob-ease: cubic-bezier(.32, .72, 0, 1);
}


/* ─────────────────────────────────────────
   02  RESET & BASE
   ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  padding: env(safe-area-inset-top)
           env(safe-area-inset-right)
           env(safe-area-inset-bottom)
           env(safe-area-inset-left);
}

body {
  font-family: 'Kanit', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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


/* ─────────────────────────────────────────
   03  TYPOGRAPHY UTILITIES
   ───────────────────────────────────────── */
.text-mag      { color: var(--mag) !important; }
.text-mag-dark { color: var(--mag-dark) !important; }
.text-soft     { color: var(--text-soft) !important; }
.text-mid      { color: var(--text-mid) !important; }

.fw-black { font-weight: 900 !important; }
.fw-heavy { font-weight: 800 !important; }

.font-kanit  { font-family: 'Kanit', sans-serif !important; }
.font-sarabun{ font-family: 'Sarabun', sans-serif !important; }

.letter-wide { letter-spacing: 2px; }
.letter-tight{ letter-spacing: -1px; }


/* ─────────────────────────────────────────
   04  TOPBAR
   ───────────────────────────────────────── */
.topbar {
  background: var(--mag);
  padding: .45rem 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .3px;
}

.topbar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}

.topbar a:hover { color: #fff; }


/* ─────────────────────────────────────────
   05  NAVBAR — DESKTOP
   ───────────────────────────────────────── */
.site-nav {
  background: rgba(255,250,248,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--mag-pale2);
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 0;
  transition: box-shadow .3s;
}

.site-nav.scrolled {
  box-shadow: 0 4px 32px rgba(200,78,216,.14);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: .5rem;
}

/* Brand / Logo */
.nav-brand {
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
  padding: .3rem 0;
  display: inline-block;
}
.nav-brand span { color: var(--mag); font-style: italic; }

/* Desktop Link List */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mag-pale);
  color: var(--mag);
}

/* CTA button inside desktop nav */
.nav-links .btn-login {
  background: var(--mag);
  color: #fff !important;
  border-radius: var(--r-pill);
  padding: .4rem 1.1rem;
}

.nav-links .btn-login:hover { background: var(--mag-dark); }


/* ─────────────────────────────────────────
   06  NAVBAR — MOBILE CLUSTER & TOGGLER
   ───────────────────────────────────────── */
.nav-mobile-right {
  display: none;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}

/* Mini login pill (mobile) */
.nav-mobile-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mag);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  padding: .38rem .95rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  min-height: 38px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}

.nav-mobile-login:hover { background: var(--mag-dark); color: #fff; }

/* Hamburger toggler */
.nav-toggler {
  background: none;
  border: 2px solid var(--mag-pale2);
  border-radius: var(--r-sm);
  padding: 0;
  cursor: pointer;
  color: var(--mag);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.nav-toggler:hover,
.nav-toggler:active {
  background: var(--mag-pale);
  border-color: var(--mag-light);
}

/* Icon swap animation */
.nav-toggler .tog-list,
.nav-toggler .tog-x {
  position: absolute;
  font-size: 1.25rem;
  transition: transform var(--mob-dur) var(--mob-ease),
              opacity  var(--mob-dur) var(--mob-ease);
}

.nav-toggler .tog-list { transform: rotate(0deg)  scale(1);   opacity: 1; }
.nav-toggler .tog-x    { transform: rotate(-90deg) scale(.6); opacity: 0; }

.nav-toggler.is-open .tog-list { transform: rotate(90deg) scale(.6); opacity: 0; }
.nav-toggler.is-open .tog-x    { transform: rotate(0deg)  scale(1);  opacity: 1; }


/* ─────────────────────────────────────────
   07  MOBILE DRAWER MENU
   ───────────────────────────────────────── */

/* Backdrop */
.mob-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30,6,38,0);
  z-index: 998;
  pointer-events: none;
  transition: background var(--mob-dur) var(--mob-ease);
}

.mob-backdrop.open {
  pointer-events: auto;
  background: rgba(30,6,38,.45);
}

/* Drawer panel */
.mob-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  padding: max(1.5rem, env(safe-area-inset-top)) 0
           max(2rem,   env(safe-area-inset-bottom));
  padding-right: env(safe-area-inset-right);
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--mob-dur) var(--mob-ease),
              box-shadow var(--mob-dur) var(--mob-ease);
  box-shadow: none;
  will-change: transform;
}

.mob-menu.open {
  transform: translateX(0);
  box-shadow: -12px 0 60px rgba(200,78,216,.18);
}

/* Drawer header */
.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1.5px solid var(--mag-pale2);
  margin-bottom: .5rem;
  flex-shrink: 0;
}

.mob-menu-brand {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
}

.mob-menu-brand span { color: var(--mag); font-style: italic; }

/* Close button inside drawer */
.mob-cls {
  background: var(--mag-pale);
  border: 1.5px solid var(--mag-pale2);
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--mag);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, transform .15s;
  flex-shrink: 0;
}

.mob-cls:hover,
.mob-cls:active {
  background: var(--mag-pale2);
  border-color: var(--mag-light);
  transform: scale(.93);
}

/* Nav links inside drawer */
.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .25rem 0;
}

.mob-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  text-decoration: none;
  padding: .85rem 1.25rem;
  margin: 0 .75rem;
  border-radius: var(--r-md);
  min-height: 52px;
  opacity: 0;
  transform: translateX(18px);
  transition: background .15s, color .15s, transform .15s,
              opacity var(--mob-dur) var(--mob-ease),
              translate var(--mob-dur) var(--mob-ease);
}

.mob-menu.open .mob-nav a       { opacity: 1; transform: translateX(0); }
.mob-menu.open .mob-nav a:nth-child(1) { transition-delay:  60ms; }
.mob-menu.open .mob-nav a:nth-child(2) { transition-delay: 100ms; }
.mob-menu.open .mob-nav a:nth-child(3) { transition-delay: 140ms; }
.mob-menu.open .mob-nav a:nth-child(4) { transition-delay: 180ms; }
.mob-menu.open .mob-nav a:nth-child(5) { transition-delay: 220ms; }
.mob-menu.open .mob-nav a:nth-child(6) { transition-delay: 260ms; }
.mob-menu.open .mob-nav a:nth-child(7) { transition-delay: 300ms; }

.mob-nav a:hover,
.mob-nav a:active,
.mob-nav a.active { background: var(--mag-pale); color: var(--mag); }

.mob-nav a .mn-icon {
  width: 34px;
  height: 34px;
  background: var(--mag-pale);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--mag);
  flex-shrink: 0;
  transition: background .15s;
}

.mob-nav a:hover .mn-icon,
.mob-nav a:active .mn-icon { background: var(--mag-pale2); }

/* Divider */
.mob-divider {
  height: 1px;
  background: var(--mag-pale2);
  margin: .5rem 1.25rem;
  flex-shrink: 0;
}

/* Login CTA inside drawer */
.mob-nav .mob-login-btn {
  margin: .5rem .75rem 0;
  background: var(--mag);
  color: #fff !important;
  border-radius: var(--r-md);
  justify-content: center;
  padding: .9rem 1.25rem;
  gap: .5rem;
  opacity: 0;
  transform: translateX(18px);
}

.mob-menu.open .mob-nav .mob-login-btn {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 300ms;
}

.mob-nav .mob-login-btn:hover,
.mob-nav .mob-login-btn:active { background: var(--mag-dark) !important; color: #fff !important; }

.mob-nav .mob-login-btn .mn-icon { background: rgba(255,255,255,.2); color: #fff; }
.mob-nav .mob-login-btn:hover .mn-icon { background: rgba(255,255,255,.3); }

/* Drawer footer */
.mob-menu-footer {
  padding: 1rem 1.25rem 0;
  border-top: 1.5px solid var(--mag-pale2);
  margin-top: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--mob-dur) var(--mob-ease),
              transform var(--mob-dur) var(--mob-ease);
}

.mob-menu.open .mob-menu-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 320ms;
}

.mob-menu-footer p {
  font-size: .72rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.mob-menu-footer strong { color: var(--text-mid); font-weight: 700; }


/* ═══════════════════════════════════════════════════════════════
   08  BUTTONS  — ทุกรูปแบบ เลือกใช้ได้เลย
   ═══════════════════════════════════════════════════════════════
   ใช้งาน: เพิ่ม class เดียว เช่น
     <a class="btn-solid"      href="#">Primary</a>
     <a class="btn-outline"    href="#">Outline</a>
     <a class="btn-ghost"      href="#">Ghost</a>
     <a class="btn-soft"       href="#">Soft</a>
     <a class="btn-dark"       href="#">Dark</a>
     <a class="btn-glass"      href="#">Glass</a>
     <a class="btn-gold"       href="#">Gold</a>
     <a class="btn-mint"       href="#">Mint</a>
     <a class="btn-rose"       href="#">Rose</a>
     <a class="btn-white"      href="#">White</a>
     <a class="btn-gradient"   href="#">Gradient</a>
     <a class="btn-icon-only"  href="#"><i class="bi bi-heart"></i></a>
   ─────────────────────────────────────────────────────────────── */

/* ── Base (shared) ── */
.btn-solid,
.btn-outline,
.btn-ghost,
.btn-soft,
.btn-dark,
.btn-glass,
.btn-gold,
.btn-mint,
.btn-rose,
.btn-white,
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .8rem 1.6rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 48px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s, box-shadow .2s, background .2s,
              color .2s, border-color .2s, opacity .2s;
}

.btn-solid:hover,
.btn-outline:hover,
.btn-ghost:hover,
.btn-soft:hover,
.btn-dark:hover,
.btn-glass:hover,
.btn-gold:hover,
.btn-mint:hover,
.btn-rose:hover,
.btn-white:hover,
.btn-gradient:hover {
  transform: translateY(-2px);
}

/* 1. Solid — ปุ่มหลัก เดิม */
.btn-solid {
  background: var(--mag);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-solid:hover,
.btn-solid:active {
  background: var(--mag-dark);
  box-shadow: 0 14px 36px rgba(200,78,216,.45);
  color: #fff;
}

/* 2. Outline — เส้นขอบ เดิม */
.btn-outline {
  background: transparent;
  color: var(--mag);
  border-color: var(--mag-pale2);
}
.btn-outline:hover,
.btn-outline:active {
  border-color: var(--mag);
  background: var(--mag-pale);
  color: var(--mag);
}

/* 3. Ghost — โปร่งใส ไม่มี border */
.btn-ghost {
  background: transparent;
  color: var(--mag);
  border-color: transparent;
}
.btn-ghost:hover,
.btn-ghost:active {
  background: var(--mag-pale);
  color: var(--mag-dark);
}

/* 4. Soft — พาสเทล */
.btn-soft {
  background: var(--mag-pale);
  color: var(--mag-dark);
  border-color: var(--mag-pale2);
}
.btn-soft:hover,
.btn-soft:active {
  background: var(--mag-pale2);
  border-color: var(--mag-light);
  color: var(--mag-dark);
}

/* 5. Dark — พื้นหลังเข้ม */
.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 8px 24px rgba(30,6,38,.25);
}
.btn-dark:hover,
.btn-dark:active {
  background: #2d0a3e;
  color: #fff;
  box-shadow: 0 14px 36px rgba(30,6,38,.35);
}

/* 6. Glass — ฝ้าแก้ว (ใช้บนพื้นหลังมีสี/รูปภาพ) */
.btn-glass {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover,
.btn-glass:active {
  background: rgba(255,255,255,.3);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

/* 7. Gold — สีทอง */
.btn-gold {
  background: var(--gold);
  color: #1e0626;
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(240,180,41,.35);
}
.btn-gold:hover,
.btn-gold:active {
  background: #d9a020;
  color: #1e0626;
  box-shadow: 0 14px 32px rgba(240,180,41,.5);
}

/* 8. Mint — สีมิ้นต์ */
.btn-mint {
  background: var(--mint);
  color: #0f3630;
  border-color: var(--mint);
  box-shadow: 0 8px 24px rgba(61,214,192,.3);
}
.btn-mint:hover,
.btn-mint:active {
  background: #2cbca8;
  color: #0f3630;
  box-shadow: 0 14px 32px rgba(61,214,192,.45);
}

/* 9. Rose — สีชมพู */
.btn-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  box-shadow: 0 8px 24px rgba(255,126,179,.3);
}
.btn-rose:hover,
.btn-rose:active {
  background: #f05a9e;
  color: #fff;
  box-shadow: 0 14px 32px rgba(255,126,179,.45);
}

/* 10. White — สีขาว (ใช้บนพื้นเข้ม) */
.btn-white {
  background: #fff;
  color: var(--mag);
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(255,255,255,.25);
}
.btn-white:hover,
.btn-white:active {
  background: var(--mag-pale);
  color: var(--mag-dark);
  box-shadow: 0 14px 36px rgba(255,255,255,.4);
}

/* 11. Gradient — ไล่สี */
.btn-gradient {
  background: linear-gradient(135deg, var(--mag) 0%, #7e8fff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(200,78,216,.35);
}
.btn-gradient:hover,
.btn-gradient:active {
  background: linear-gradient(135deg, var(--mag-dark) 0%, #5b6fdf 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(200,78,216,.5);
}

/* ── Button Sizes ── */
.btn-sm {
  font-size: var(--fs-xs) !important;
  padding: .5rem 1.1rem !important;
  min-height: 36px !important;
}
.btn-lg {
  font-size: var(--fs-md) !important;
  padding: 1rem 2.2rem !important;
  min-height: 56px !important;
}

/* ── Rounded Square variant ── แทน pill ด้วย --r-md */
.btn-square {
  border-radius: var(--r-md) !important;
}

/* ── Full-width ── */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Icon-only pill ── */
.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--mag-pale);
  color: var(--mag);
  border: 2px solid var(--mag-pale2);
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, transform .2s;
  text-decoration: none;
}
.btn-icon-only:hover { background: var(--mag-pale2); border-color: var(--mag-light); transform: scale(1.07); color: var(--mag); }
.btn-icon-only.btn-sm { width: 36px; height: 36px; font-size: .9rem; }
.btn-icon-only.btn-lg { width: 60px; height: 60px; font-size: 1.35rem; }

/* ── Loading state (add .is-loading) ── */
.btn-solid.is-loading,
.btn-gradient.is-loading {
  opacity: .75;
  pointer-events: none;
  position: relative;
}
.btn-solid.is-loading::after,
.btn-gradient.is-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Disabled state ── */
.btn-solid:disabled,
.btn-outline:disabled,
.btn-ghost:disabled,
.btn-soft:disabled {
  opacity: .5;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}


/* ─────────────────────────────────────────
   09  HERO SECTION
   ───────────────────────────────────────── */
.hero {
  background: var(--white);
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: var(--sp-xl) 0 calc(var(--sp-xl) + 40px);
}

/* Watermark text */
.hero-wm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 900;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(200,78,216,.08);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -6px;
  user-select: none;
}

/* Decorative blobs */
.hblob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hb1 { width: 500px; height: 500px; background: rgba(200,78,216,.1);  top: -180px; right: -120px; animation: hbf 10s ease-in-out infinite; }
.hb2 { width: 350px; height: 350px; background: rgba(61,214,192,.08); bottom: -100px; left: -80px;  animation: hbf 14s ease-in-out infinite reverse; }
.hb3 { width: 250px; height: 250px; background: rgba(240,180,41,.07); top: 30%; left: 38%;          animation: hbf 9s ease-in-out infinite 2s; }

@keyframes hbf { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-18px)} }

/* Bottom wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
}

.hero-content { position: relative; z-index: 2; }

/* Pill badge */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mag-pale);
  border: 1.5px solid var(--mag-pale2);
  border-radius: var(--r-pill);
  padding: 6px 16px 6px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--mag-dark);
  margin-bottom: 1.3rem;
  opacity: 0;
  animation: fadeUp .6s .1s ease forwards;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mag);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}

/* Headline */
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .6s .22s ease forwards;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero h1 .hl {
  color: var(--mag);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero h1 .hl::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 5px;
  background: var(--mag-pale2);
  border-radius: 3px;
  z-index: -1;
}

.hero h1 .school {
  display: block;
  font-size: .32em;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--text-soft);
  font-style: normal;
  margin-top: .4em;
  overflow-wrap: break-word;
}

/* Subtitle */
.hero-desc {
  font-family: 'Kanit', sans-serif;
  font-size: var(--fs-md);
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp .6s .35s ease forwards;
}

/* Button row */
.hero-btns {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .48s ease forwards;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp .6s .6s ease forwards;
}

.hstat {
  background: var(--mag-pale);
  border: 1.5px solid var(--mag-pale2);
  border-radius: var(--r-lg);
  padding: .8rem 1.2rem;
  text-align: center;
  flex: 1 1 80px;
}

.hstat-n {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  color: var(--mag);
  line-height: 1;
}

.hstat-l {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-top: 3px;
  font-weight: 500;
}

/* Right image column */
.hero-img-col { position: relative; }

.hero-img-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(200,78,216,.22);
  opacity: 0;
}

.hero-img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* Mobile hero image */
.hero-img-mobile {
  display: none;
  margin-top: 2.2rem;
  position: relative;
}

.hero-img-mobile .him-wrap {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.hero-img-mobile .him-wrap img {
  width: 100%;
  height: clamp(220px, 55vw, 340px);
  object-fit: cover;
  display: block;
}

/* Floating badge on mobile image */
.him-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.him-badge .hb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mag);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

.him-badge span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Floating info card */
.float-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.3rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp .6s .8s ease forwards;
  z-index: 3;
}

.float-card-ico { font-size: 2rem; }
.float-card strong { display: block; font-weight: 800; font-size: .95rem; color: var(--text); }
.float-card span   { font-size: .75rem; color: var(--text-soft); font-weight: 400; }

/* Decorative dots */
.deco-dot { position: absolute; border-radius: 50%; opacity: .18; }
.dd1 { width: 180px; height: 180px; background: var(--mag);  top: -60px; right: -40px; }
.dd2 { width:  80px; height:  80px; background: var(--gold); bottom: 60px; right: -20px; }

@keyframes fadeUp    { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }


/* ─────────────────────────────────────────
   10  MARQUEE BAR
   ───────────────────────────────────────── */
.marquee-bar {
  background: var(--mag-pale);
  border-top: 2px solid var(--mag-pale2);
  border-bottom: 2px solid var(--mag-pale2);
  overflow: hidden;
  padding: .65rem 0;
  white-space: nowrap;
}

.marquee-in {
  display: inline-flex;
  gap: 1.5rem;
  animation: mq 22s linear infinite;
  will-change: transform;
}

.marquee-in span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mag);
}

.marquee-in .sep { color: var(--mag-light); }

@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Marquee pause on hover (optional — เพิ่ม class .marquee-pauseable) */
.marquee-pauseable:hover .marquee-in { animation-play-state: paused; }


/* ─────────────────────────────────────────
   11  SECTION LABELS
   ───────────────────────────────────────── */
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mag);
  margin-bottom: .8rem;
}

.sec-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mag);
  border-radius: 2px;
  flex-shrink: 0;
}

.sec-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 1rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.sec-desc {
  font-family: 'Kanit', sans-serif;
  color: var(--text-soft);
  font-size: var(--fs-md);
  line-height: 1.85;
}

/* Centred variant */
.sec-center { text-align: center; }
.sec-center .sec-eyebrow { justify-content: center; }


/* ─────────────────────────────────────────
   12  ACTIVITY CARDS
   ───────────────────────────────────────── */
.activities-section,
.reviews-section {
  background: var(--cream);
  padding: var(--sp-lg) 0;
}

.act-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  height: 100%;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

/* Top colour bar */
.act-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.act-card:hover {
  border-color: var(--mag-pale2);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(200,78,216,.15);
}

/* Colour variants — ใช้ class c1–c5 + เพิ่มได้เรื่อยๆ */
.act-card.c1::before { background: var(--mag); }
.act-card.c2::before { background: var(--gold); }
.act-card.c3::before { background: var(--rose); }
.act-card.c4::before { background: var(--mint); }
.act-card.c5::before { background: var(--blue); }
/* Extra: */
.act-card.c-teal::before  { background: #14b8a6; }
.act-card.c-red::before   { background: #ef4444; }
.act-card.c-orange::before{ background: #f97316; }

.act-num {
  font-size: 3rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(200,78,216,.1);
  line-height: 1;
  margin-bottom: -.5rem;
}

.act-emoji { font-size: 2rem; margin-bottom: .8rem; display: block; }
.act-card h4 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.act-card p  { font-family: 'Kanit', sans-serif; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.75; margin: 0; }


/* ─────────────────────────────────────────
   13  ABOUT SECTION
   ───────────────────────────────────────── */
.about-section {
  background: var(--warm);
  padding: var(--sp-md) 0;
}

/* Image stack */
.about-img-stack { position: relative; }

.ab-img1 {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(200,78,216,.15);
}

.ab-img1 img {
  width: 100%;
  height: clamp(240px, 40vw, 400px);
  object-fit: cover;
}

.ab-img2 {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 48%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.ab-img2 img { width: 100%; height: 140px; object-fit: cover; }

.ab-badge {
  position: absolute;
  top: 1rem;
  left: -1rem;
  background: var(--mag);
  color: #fff;
  border-radius: var(--r-md);
  padding: .85rem 1.2rem;
  box-shadow: 0 8px 28px rgba(200,78,216,.4);
}

.ab-badge .big { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.ab-badge .sm  { font-size: var(--fs-xs); opacity: .82; margin-top: 3px; }

/* Value rows */
.value-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: .7rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--mag-pale2);
  transition: box-shadow .2s, border-color .2s;
}

.value-row:hover { box-shadow: var(--shadow-md); border-color: var(--mag-pale); }
.val-ico { font-size: 1.4rem; line-height: 1; padding-top: 2px; flex-shrink: 0; }
.value-row h6 { font-weight: 700; color: var(--text); margin-bottom: 2px; font-size: var(--fs-sm); }
.value-row p  { font-family: 'Sarabun', sans-serif; color: var(--text-soft); font-size: var(--fs-xs); margin: 0; line-height: 1.65; }


/* ─────────────────────────────────────────
   14  MEMBERS SECTION
   ───────────────────────────────────────── */
.members-section {
  background: var(--cream);
  padding: var(--sp-xl) 0;
}

/* Simple member card — เดิม */
.mem-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--mag-pale2);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

@media (hover: hover) {
  .mem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(200,78,216,.16);
    border-color: var(--mag-light);
  }
}

.mem-photo { position: relative; overflow: hidden; }

.mem-photo img {
  width: 100%;
  height: clamp(180px, 30vw, 240px);
  object-fit: cover;
  transition: transform .4s;
}

@media (hover: hover) { .mem-card:hover .mem-photo img { transform: scale(1.05); } }

.mem-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(200,78,216,.45) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}

@media (hover: hover) { .mem-card:hover .mem-photo-overlay { opacity: 1; } }

.mem-body { padding: 1.1rem 1.2rem; }

.mem-role {
  display: inline-block;
  background: var(--mag-pale);
  color: var(--mag-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: .5rem;
}

.mem-body h5 { font-weight: 800; font-size: var(--fs-sm); color: var(--text); margin-bottom: .4rem; }
.mem-body p  {
  font-family: 'Sarabun', sans-serif;
  font-size: var(--fs-xs);
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tab member card — class .member (ใช้ใน section ปีการศึกษา) */
.member {
  overflow: hidden;
  border: none;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  background: #fff;
}

.member img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .3s ease;
  transform-origin: bottom;
  background: #eee;
  display: block;
}

.member .card-img-top:hover { transform: scale(1.05); }

.card-body {
  text-align: center;
  padding: 18px 14px;
}

.card-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.card-body p  { margin: 0; font-size: .95rem; color: #666; }


/* ─────────────────────────────────────────
   15  FAQ ACCORDION
   ───────────────────────────────────────── */
.faq-section {
  background: var(--warm);
  padding: var(--sp-xl) 0;
}

.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  margin-bottom: .8rem;
  border: 2px solid var(--mag-pale2);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item.active {
  border-color: var(--mag-light);
  box-shadow: 0 8px 28px rgba(200,78,216,.1);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: 'Kanit', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  padding: 1.1rem 1.3rem;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color .2s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}

.faq-btn:hover { color: var(--mag); }

.faq-ico {
  width: 28px;
  min-width: 28px;
  height: 28px;
  background: var(--mag-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--mag);
  transition: transform .3s, background .2s;
  flex-shrink: 0;
}

.faq-btn.open .faq-ico { transform: rotate(45deg); background: var(--mag); color: #fff; }

.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }

.faq-body-in {
  font-family: 'Sarabun', sans-serif;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.85;
  padding: 0 1.3rem 1.2rem;
}

.faq-body-in a { color: var(--mag); font-weight: 600; }


/* ─────────────────────────────────────────
   16  WHY SECTION  (Dark Purple Band)
   ───────────────────────────────────────── */
.why-section {
  background: var(--mag);
  padding: var(--sp-xl) 0;
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.why-section::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

.why-section .sec-eyebrow { color: rgba(255,255,255,.7); }
.why-section .sec-eyebrow::before { background: rgba(255,255,255,.5); }
.why-section .sec-title { color: #fff; }
.why-section .sec-desc  { color: rgba(255,255,255,.75); }

.why-card {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: background .3s, transform .3s;
  backdrop-filter: blur(4px);
}

@media (hover: hover) {
  .why-card:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); }
}

.why-card i  { font-size: 1.8rem; color: #fff; margin-bottom: .9rem; display: block; opacity: .9; }
.why-card h5 { font-weight: 800; color: #fff; margin-bottom: .45rem; font-size: var(--fs-sm); }
.why-card p  { font-family: 'Sarabun', sans-serif; color: rgba(255,255,255,.72); font-size: var(--fs-sm); line-height: 1.8; margin: 0; }


/* ─────────────────────────────────────────
   17  REVIEWS / TESTIMONIALS
   ───────────────────────────────────────── */
.testimonial-item {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: rgba(0,0,0,.16) 0 1px 4px;
  height: 100%;
  width: 100%;
}

.testimonial-img {
  object-position: top;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  border: 3px solid var(--mag-pale2);
}

.testimonial-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: #1f2937; }
.testimonial-item h4 { font-size: 14px; font-weight: 500; color: #6b7280; margin: 0 0 8px; }

.stars { color: #fbbf24; font-size: 14px; }

.testimonial-item p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  position: relative;
}

.quote-icon-left,
.quote-icon-right { color: var(--mag-light); font-size: 20px; }

.quote-icon-left  { margin-right: 8px; }
.quote-icon-right { margin-left:  8px; }


/* ─────────────────────────────────────────
   18  SWIPER GLOBAL OVERRIDES
   ───────────────────────────────────────── */
.slides-3.swiper {
  position: relative;
  overflow: hidden;
  padding: 10px 0 50px;
}

.swiper-wrapper  { align-items: stretch; }
.swiper-slide    { height: auto; display: flex; }

/* Generic slide card */
.slide-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(148,163,184,.12);
}

.slide-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,.14); }

.slide-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.slide-content { padding: 24px; }
.slide-content h3 { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.slide-content p  { font-size: 16px; color: #475569; }

/* Nav arrows — default */
.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: #111827;
  top: 45%;
}

.swiper-button-prev::after,
.swiper-button-next::after { font-size: 18px; font-weight: bold; }

/* Pagination */
.swiper-pagination              { bottom: 0 !important; }
.swiper-pagination-bullet       { width: 10px; height: 10px; opacity: 1; background: #cbd5e1; }
.swiper-pagination-bullet-active{ background: var(--mag); }

/* Reviews swiper overrides */
.reviews-section .swiper      { padding: 20px; overflow: hidden; }
.reviews-section .swiper-slide{ height: auto; display: flex; }

.reviews-section .swiper-button-prev,
.reviews-section .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: var(--mag);
}

.reviews-section .swiper-button-prev::after,
.reviews-section .swiper-button-next::after { font-size: 16px; font-weight: 700; }

.reviews-section .swiper-pagination-bullet        { background: var(--mag-light); opacity: 1; }
.reviews-section .swiper-pagination-bullet-active { background: var(--mag); }


/* ─────────────────────────────────────────
   19  BOOTSTRAP TAB OVERRIDE
   ───────────────────────────────────────── */
.nav-tabs {
  border-bottom: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  background: #fff;
  color: #444;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: all .25s ease;
}

.nav-tabs .nav-link:hover { background: var(--mag-pale); color: var(--mag); }

.nav-tabs .nav-link.active {
  background: var(--mag);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200,78,216,.25);
}

.year-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: right;
  margin: 10px 0 24px;
  color: #222;
}


/* ─────────────────────────────────────────
   20  FOOTER
   ───────────────────────────────────────── */
.site-footer {
  background: var(--mag-dark);
  padding: var(--sp-lg) 0 max(2rem, env(safe-area-inset-bottom));
}

.ft-brand {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.ft-brand span { color: var(--mag-light); font-style: italic; }

.ft-desc {
  font-family: 'Kanit', sans-serif;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.38);
  line-height: 1.85;
  margin-top: .7rem;
  max-width: 260px;
}

.ft-head {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.ft-link {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: .27rem 0;
  transition: color .2s;
  min-height: 36px;
  line-height: 36px;
}

.ft-link:hover { color: var(--mag-light); }

.ft-info { font-size: var(--fs-xs); color: rgba(255,255,255,.533); line-height: 2.1; }
.ft-info i { color: var(--mag-light); margin-right: 8px; }

/* Social icons */
.soc-row { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }

.soc-btn {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(200,78,216,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: 1rem;
  transition: border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.soc-btn:hover { border-color: var(--mag); background: rgba(200,78,216,.2); color: #fff; }

.ft-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }
.ft-copy    { font-size: var(--fs-xs); color: rgba(255,255,255,.533); }


/* ─────────────────────────────────────────
   21  SCROLL-REVEAL ANIMATIONS
   ───────────────────────────────────────── */
.rv   { opacity: 0; transform: translateY(26px);  transition: opacity .65s ease, transform .65s ease; }
.rv-l { opacity: 0; transform: translateX(-26px); transition: opacity .65s ease, transform .65s ease; }
.rv-r { opacity: 0; transform: translateX(26px);  transition: opacity .65s ease, transform .65s ease; }

.rv.in,
.rv-l.in,
.rv-r.in { opacity: 1; transform: translate(0); }

/* Delay helpers */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
/* Extra delays */
.d6 { transition-delay: .48s; }
.d7 { transition-delay: .56s; }
.d8 { transition-delay: .64s; }


/* ─────────────────────────────────────────
   22  UTILITY CLASSES
   ───────────────────────────────────────── */

/* Backgrounds */
.bg-mag      { background: var(--mag)      !important; }
.bg-mag-pale { background: var(--mag-pale) !important; }
.bg-cream    { background: var(--cream)    !important; }
.bg-warm     { background: var(--warm)     !important; }

/* Section padding shorthand */
.section-pad  { padding: var(--sp-xl) 0; }
.section-padm { padding: var(--sp-lg) 0; }

/* Pill badge (generic) */
.badge-mag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mag-pale);
  color: var(--mag-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: .3px;
}

.badge-gold { background: #fef3c7; color: #92400e; }
.badge-mint { background: #ccfbf1; color: #065f46; }
.badge-blue { background: #ede9fe; color: #4c1d95; }

/* Card surface */
.card-base {
  background: #fff;
  border-radius: var(--r-lg);
  border: 2px solid var(--mag-pale2);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* Divider */
.divider-mag { border: none; border-top: 2px solid var(--mag-pale2); margin: 2rem 0; }

/* Alert / notice bar */
.alert-mag {
  background: var(--mag-pale);
  border: 1.5px solid var(--mag-pale2);
  border-radius: var(--r-md);
  padding: .9rem 1.2rem;
  font-size: var(--fs-sm);
  color: var(--mag-dark);
  font-weight: 600;
}

/* Marquee tag (fixes Bootstrap's alert override) */
.alert marquee {
  display: block;
  max-width: 100%;
  overflow: hidden;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--mag) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Aspect ratio box */
.ratio-4x3 { aspect-ratio: 4/3; }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-1x1  { aspect-ratio: 1/1; }

/* Truncate helpers */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }


/* ─────────────────────────────────────────
   23  RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────── */

/* ≥992px Desktop */
@media (min-width: 992px) {
  .hero-img-col    { display: block; }
  .hero-img-mobile { display: none !important; }
  .nav-links       { display: flex; }
  .nav-mobile-right{ display: none !important; }
}

/* <992px Tablet / Mobile */
@media (max-width: 991.98px) {
  .hero-img-col    { display: none; }
  .hero-img-mobile { display: block; }
  .nav-links       { display: none; }
  .nav-mobile-right{ display: flex; }

  .hero {
    min-height: auto;
    padding: clamp(1.8rem, 5vw, 3rem) 0
             clamp(3rem,   7vw, 4.5rem);
  }

  .activities-section,
  .reviews-section,
  .about-section,
  .members-section,
  .faq-section,
  .why-section { padding: clamp(2.5rem, 7vw, 4rem) 0; }

  .faq-left-col { margin-bottom: 2rem; }
}

/* ≤767px Mobile */
@media (max-width: 767.98px) {
  .ab-img2, .ab-badge { display: none; }
  .hero-stats { gap: .75rem; }
  .hstat { flex: 1 1 calc(50% - .75rem); }
  .about-img-stack { margin-bottom: 1.5rem; }
  .mem-card { cursor: default; }
  [class*="offset-lg"] { margin-left: 0 !important; }
  .hero-img-mobile .him-wrap img { height: clamp(200px, 52vw, 300px); }
  .member img { height: 280px; }
  .year-title { text-align: center; }
  .slide-image { height: 220px; }
}

/* ≤575px Small phones */
@media (max-width: 575.98px) {
  .float-card { display: none; }
  .hero-btns { gap: .55rem; }
  .hero-btns .btn-solid,
  .hero-btns .btn-outline { flex: 1 1 100%; justify-content: center; font-size: .82rem; padding: .72rem 1.2rem; }
  .marquee-bar { padding: .5rem 0; }
  .act-num { font-size: 2.5rem; }
  .ft-info { word-break: break-word; }
  .ft-copy { font-size: .72rem; }
  .nav-mobile-login { font-size: .72rem; padding: .35rem .8rem; }
}

/* ≤360px Extra small phones */
@media (max-width: 360px) {
  .nav-brand { font-size: 1.05rem; }
  .hero h1 { letter-spacing: -1px; }
  .hstat { flex: 1 1 100%; }
  .nav-mobile-login { display: none; }
}


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

  .rv, .rv-l, .rv-r { opacity: 1 !important; transform: none !important; }
  .mob-menu          { transition: none !important; }
  .mob-backdrop      { transition: none !important; }

  .mob-nav a {
    transition: background .15s, color .15s !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-in { animation: none; }
}


/* ─────────────────────────────────────────
   25  TOUCH IMPROVEMENTS
   ───────────────────────────────────────── */
a,
button,
[role="button"]     { touch-action: manipulation; }

.btn-solid,
.btn-outline,
.btn-ghost,
.btn-soft,
.btn-dark,
.btn-glass,
.btn-gold,
.btn-mint,
.btn-rose,
.btn-white,
.btn-gradient,
.btn-icon-only,
.faq-btn,
.soc-btn,
.nav-toggler,
.mob-cls             { touch-action: manipulation; }