/* ==========================================================================
   MSAK — Mind Sports Association of Kerala
   Stylesheet
   ========================================================================== */

/* -------------------- Design Tokens -------------------- */
:root {
  /* Colors */
  --bg: #0A0E1A;
  --bg-alt: #0E1424;
  --card: #121A2E;
  --card-hover: #141c30;
  --primary: #3B82F6;
  --blue: #3B82F6;
  --indigo: #6D6BFF;
  --cyan: #22D3EE;
  --white: #ffffff;
  --muted: #AEB9CC;
  --muted-dim: #74839A;
  --border: rgba(255, 255, 255, 0.10);
  --border-primary: rgba(56,189,248,0.35);
  --success: #4ade80;
  --error: #f87171;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-dark: linear-gradient(180deg, rgba(10, 14, 26, 0) 0%, rgba(10, 14, 26, 0.95) 100%);
  --grad-radial: radial-gradient(circle at 50% 0%, rgba(34,211,238,0.12) 0%, transparent 60%);

  /* Typography */
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 84px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 30px rgba(34,211,238,0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.4s;
  --dur-slow: 0.8s;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Visible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--grad-primary);
  display: inline-block;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

.text-gold { color: var(--cyan); }

/* -------------------- Layout Helpers -------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.grid { display: grid; gap: var(--space-md); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #121A2E;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34,211,238,0.3); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--primary); color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--cyan); background: rgba(34,211,238,0.08); }

/* Coordinate-mark signature motif: chess file/rank ticks used as a
   recurring structural device around key sections & cards. */
.coord {
  position: relative;
}
.coord::before,
.coord::after {
  content: attr(data-coord);
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.55;
}
.coord::before { top: -1.4rem; left: 0; }
.coord::after { content: attr(data-coord-end); bottom: -1.4rem; right: 0; }

/* -------------------- Header / Navbar -------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), height var(--dur-mid) var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0) 100%);
  opacity: 1;
  transition: opacity var(--dur-mid) var(--ease);
  z-index: -1;
}
.site-header.is-scrolled {
  height: 100px;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled::before { opacity: 0; }

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand img { height: 80px; width: 100%; margin-top:12px }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 2px;
}

.primary-nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-list { display: flex; align-items: center; gap: 2.1rem; }
.nav-list > li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width var(--dur-fast) var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--cyan); }
.nav-link .chev { transition: transform var(--dur-fast) var(--ease); }

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-link .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 50;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.dropdown a:hover { background: rgba(34,211,238,0.08); color: var(--cyan); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: all var(--dur-fast) var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------- Mobile Nav -------------------- */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1rem) var(--space-md) var(--space-md);
    transform: translateX(100%);
    transition: transform var(--dur-mid) var(--ease);
    z-index: 40;
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link { padding: 1rem 0; justify-content: space-between; width: 100%; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    margin-bottom: 0.5rem;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: var(--space-md); }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-mid) var(--ease);
    z-index: 35;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}


/* =========================================================
   HIMGIRI HERO
   Clean Blue / Cyan Design
   ========================================================= */

.hg-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;

  background: #0A0E1A;
  color: #ffffff;

  isolation: isolate;
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

.hg-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hg-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  filter: brightness(0.72) saturate(0.9);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.hg-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      #0A0E1A 0%,
      rgba(10, 14, 26, 0.94) 28%,
      rgba(10, 14, 26, 0.70) 58%,
      rgba(10, 14, 26, 0.78) 100%
    );
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.hg-hero-container {
  width: min(1280px, 92%);
  min-height: 720px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;
  gap: 40px;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.hg-hero-content {
  max-width: 680px;
}


/* =========================================================
   LABEL
   ========================================================= */

.hg-hero-label {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 16px;

  color: #22D3EE;

  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hg-hero-label span {
  width: 34px;
  height: 2px;

  display: block;

  background: #22D3EE;

  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.7);
}


/* =========================================================
   BRAND
   ========================================================= */

.hg-hero-brand {
  margin-bottom: 22px;

  color: #74839A;

  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.18em;
}


/* =========================================================
   HEADING
   ========================================================= */

.hg-hero-content h1 {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: clamp(72px, 9vw, 125px);

  line-height: 0.82;

  font-weight: 900;

  letter-spacing: -0.075em;

  text-transform: uppercase;

  color: #ffffff;
}

.hg-hero-content h1 strong {
  color: transparent;

  -webkit-text-stroke: 2px #3B82F6;

  font-weight: 900;

  text-shadow:
    0 0 35px rgba(59, 130, 246, 0.18);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hg-hero-content p {
  max-width: 530px;

  margin: 35px 0 30px;

  color: #AEB9CC;

  font-family: "Inter", sans-serif;

  font-size: 15px;
  line-height: 1.8;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hg-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;

  flex-wrap: wrap;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.hg-btn-primary {
  min-height: 52px;

  padding: 0 7px 0 22px;

  display: inline-flex;
  align-items: center;
  gap: 25px;

  background:
    linear-gradient(
      135deg,
      #3B82F6,
      #22D3EE
    );

  color: #ffffff;

  text-decoration: none;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;

  border-radius: 8px;

  box-shadow:
    0 10px 30px rgba(59, 130, 246, 0.22);

  transition: 0.3s ease;
}

.hg-btn-primary span {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 6px;

  background: #0A0E1A;

  color: #22D3EE;

  font-size: 18px;

  transition: 0.3s ease;
}

.hg-btn-primary:hover {
  color: #ffffff;

  transform: translateY(-3px);

  box-shadow:
    0 15px 40px rgba(59, 130, 246, 0.35);
}

.hg-btn-primary:hover span {
  transform: translateX(3px);
}


/* =========================================================
   OUTLINE BUTTON
   ========================================================= */

.hg-btn-outline {
  min-height: 52px;

  padding: 0 24px;

  display: inline-flex;
  align-items: center;

  border: 1px solid rgba(59, 130, 246, 0.35);

  border-radius: 8px;

  background: rgba(18, 26, 46, 0.35);

  color: #ffffff;

  text-decoration: none;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;

  transition: 0.3s ease;
}

.hg-btn-outline:hover {
  color: #ffffff;

  border-color: #22D3EE;

  background: rgba(34, 211, 238, 0.07);

  transform: translateY(-3px);
}


/* =========================================================
   RIGHT VISUAL
   ========================================================= */

.hg-hero-side {
  position: relative;

  height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   BIG NUMBER
   ========================================================= */

.hg-hero-number {
  position: absolute;

  top: 10px;
  right: 10px;

  font-family: "Manrope", sans-serif;

  font-size: clamp(100px, 13vw, 190px);

  line-height: 1;

  font-weight: 900;

  color: transparent;

  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.18);
}


/* =========================================================
   ORBIT
   ========================================================= */

.hg-hero-orbit {
  position: relative;

  width: 360px;
  height: 360px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(59, 130, 246, 0.18) 0%,
      rgba(34, 211, 238, 0.06) 42%,
      rgba(10, 14, 26, 0.20) 68%,
      transparent 72%
    );

  border: 1px solid rgba(59, 130, 246, 0.40);

  box-shadow:
    0 0 70px rgba(59, 130, 246, 0.14),
    inset 0 0 60px rgba(34, 211, 238, 0.05);
}


/* =========================================================
   OUTER ROTATING RING
   ========================================================= */

.hg-orbit-ring {
  position: absolute;

  inset: 20px;

  border-radius: 50%;

  border: 1px dashed rgba(34, 211, 238, 0.35);

  animation: hgRotate 18s linear infinite;
}


/* =========================================================
   GLOWING DOT
   ========================================================= */

.hg-orbit-ring::before {
  content: "";

  position: absolute;

  width: 9px;
  height: 9px;

  top: -5px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: #22D3EE;

  box-shadow:
    0 0 10px #22D3EE,
    0 0 25px rgba(34, 211, 238, 0.8);
}


/* =========================================================
   SECOND INNER RING
   ========================================================= */

.hg-orbit-ring::after {
  content: "";

  position: absolute;

  inset: 34px;

  border-radius: 50%;

  border: 1px solid rgba(59, 130, 246, 0.16);
}


/* =========================================================
   CENTER BRAND CIRCLE
   ========================================================= */

.hg-orbit-center {
  position: relative;

  z-index: 5;

  width: 190px;
  height: 190px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(18, 26, 46, 0.96),
      rgba(10, 14, 26, 0.92)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 30px rgba(59, 130, 246, 0.08);
}


/* =========================================================
   HIMGIRI
   ========================================================= */

.hg-orbit-top {
  display: block;

  margin-bottom: 8px;

  color: #22D3EE;

  font-family: "JetBrains Mono", monospace;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.35em;

  text-transform: uppercase;
}


/* =========================================================
   E SPORTS
   ========================================================= */

.hg-orbit-center strong {
  display: block;

  color: #ffffff;

  font-family: "Manrope", sans-serif;

  font-size: 29px;

  line-height: 0.9;

  font-weight: 900;

  letter-spacing: -0.04em;

  text-transform: uppercase;

  text-shadow:
    0 0 25px rgba(59, 130, 246, 0.20);
}


/* =========================================================
   FOUNDATION
   ========================================================= */

.hg-orbit-center small {
  display: block;

  margin-top: 10px;

  color: #74839A;

  font-family: "JetBrains Mono", monospace;

  font-size: 8px;

  font-weight: 600;

  letter-spacing: 0.25em;

  text-transform: uppercase;
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

.hg-hero-bottom {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  min-height: 72px;

  padding: 0 4%;

  display: flex;
  align-items: center;

  gap: 35px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(10, 14, 26, 0.65);

  backdrop-filter: blur(12px);
}

.hg-hero-bottom > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hg-hero-bottom small {
  color: #22D3EE;

  font-family: "JetBrains Mono", monospace;

  font-size: 9px;
}

.hg-hero-bottom span {
  color: #74839A;

  font-family: "Inter", sans-serif;

  font-size: 11px;
  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


/* =========================================================
   SCROLL
   ========================================================= */

.hg-scroll {
  margin-left: auto;
}

.hg-scroll b {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(34, 211, 238, 0.3);

  border-radius: 50%;

  color: #22D3EE;

  font-size: 14px;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes hgRotate {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hg-hero {
    min-height: 760px;
  }

  .hg-hero-container {
    min-height: 760px;

    grid-template-columns: 1fr;

    align-items: center;

    padding: 90px 0 130px;
  }

  .hg-hero-side {
    display: none;
  }

  .hg-hero-content {
    max-width: 700px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .hg-hero {
    min-height: 720px;
  }

  .hg-hero-image img {
    object-position: 65% center;
  }

  .hg-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.88) 0%,
        rgba(10, 14, 26, 0.94) 60%,
        #0A0E1A 100%
      );
  }

  .hg-hero-container {
    width: 88%;

    min-height: 720px;

    padding: 70px 0 110px;
  }

  .hg-hero-label {
    font-size: 9px;

    letter-spacing: 0.14em;
  }

  .hg-hero-brand {
    font-size: 8px;

    letter-spacing: 0.1em;
  }

  .hg-hero-content h1 {
    font-size: clamp(60px, 18vw, 92px);

    line-height: 0.85;
  }

  .hg-hero-content h1 strong {
    -webkit-text-stroke: 1px #3B82F6;
  }

  .hg-hero-content p {
    margin: 28px 0;

    font-size: 13px;

    line-height: 1.7;
  }

  .hg-hero-actions {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

  .hg-btn-primary,
  .hg-btn-outline {
    width: 100%;

    justify-content: center;
  }

  .hg-btn-primary {
    justify-content: space-between;
  }

  .hg-hero-bottom {
    min-height: 65px;

    padding: 0 20px;

    gap: 15px;
  }

  .hg-hero-bottom > div:nth-child(2),
  .hg-hero-bottom > div:nth-child(3) {
    display: none;
  }

  .hg-scroll {
    margin-left: auto;
  }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

  .hg-hero-content h1 {
    font-size: 56px;
  }

  .hg-hero-content p {
    font-size: 12px;
  }

  .hg-hero {
    min-height: 690px;
  }

}




/* =========================================================
MSAK — CINEMATIC HERO
Completely different hero design
========================================================= */

.msak-cinematic-hero {
position: relative;
height: 820px;
width: 100%;
overflow: hidden;
background: #0A0E1A;
color: #fff;
}

/* =========================================================
BACKGROUND IMAGE
========================================================= */

.cinematic-bg {
position: absolute;
inset: 0;
z-index: 0;
}

.cinematic-bg img {
width: 100%;
height: 100%;
object-fit: cover;

object-position: center;

transform: scale(1.03);

animation: cinematicZoom 12s ease-out forwards;
}

@keyframes cinematicZoom {

from {
transform: scale(1.08);
}

to {
transform: scale(1.03);
}

}

/* =========================================================
CINEMATIC OVERLAY
========================================================= */

.cinematic-overlay {
position: absolute;
inset: 0;
z-index: 1;

background:
linear-gradient(
90deg,
rgba(5,9,15,.96) 0%,
rgba(5,9,15,.82) 35%,
rgba(5,9,15,.38) 68%,
rgba(5,9,15,.72) 100%
),
linear-gradient(
0deg,
rgba(5,9,15,.95) 0%,
transparent 35%,
rgba(5,9,15,.25) 100%
);
}

/* =========================================================
TOP BAR
========================================================= */

.cinematic-top {
position: absolute;
z-index: 5;

top: 35px;
left: 45px;
right: 45px;

display: flex;
justify-content: space-between;
align-items: center;

font-size: 10px;
letter-spacing: 4px;
font-weight: 700;

color: rgba(255,255,255,.65);
}

.cinematic-top span:first-child {
color: #3B82F6;
}

/* =========================================================
MAIN CONTENT
========================================================= */

.cinematic-container {
position: relative;
z-index: 4;

height: 100%;

display: flex;
align-items: center;
}

.cinematic-content {
position: relative;

max-width: 750px;

padding-top: 45px;
}

/* Number */

.cinematic-number {
position: absolute;

left: -65px;
top: 125px;

font-size: 12px;
letter-spacing: 2px;

color: #3B82F6;
}

/* Small Heading */

.cinematic-title > span {
display: block;

margin-bottom: 18px;

font-size: 12px;
font-weight: 700;

letter-spacing: 5px;

color: #3B82F6;
}

/* Main Heading */

.cinematic-title h1 {
margin: 0;

font-size: clamp(70px, 8vw, 125px);

line-height: .82;

letter-spacing: -6px;

font-weight: 800;

text-transform: uppercase;

color: #fff;
}

.cinematic-title h1 em {
display: block;

color: transparent;

-webkit-text-stroke: 1px rgba(255,255,255,.75);

font-style: normal;
}

/* Description */

.cinematic-content > p {
max-width: 470px;

margin: 35px 0 30px;

font-size: 15px;

line-height: 1.8;

color: rgba(255,255,255,.66);
}

/* =========================================================
ACTIONS
========================================================= */

.cinematic-actions {
display: flex;
align-items: center;
gap: 30px;
}

/* Main Button */

.cinematic-btn {
height: 54px;

padding: 0 8px 0 22px;

display: inline-flex;
align-items: center;

gap: 25px;

text-decoration: none;

background: #3B82F6;

color: #0A0E1A;

font-size: 12px;
font-weight: 800;

letter-spacing: .5px;

transition: .3s ease;
}

.cinematic-btn b {
width: 38px;
height: 38px;

display: flex;
align-items: center;
justify-content: center;

background: #0A0E1A;

color: #3B82F6;

font-size: 18px;

transition: .3s ease;
}

.cinematic-btn:hover {
transform: translateY(-3px);
}

.cinematic-btn:hover b {
transform: translateX(4px);
}

/* Secondary */

.cinematic-link {
display: inline-flex;
align-items: center;
gap: 10px;

color: #fff;

text-decoration: none;

font-size: 12px;
font-weight: 600;

border-bottom: 1px solid rgba(255,255,255,.35);

padding-bottom: 7px;

transition: .3s ease;
}

.cinematic-link span {
color: #3B82F6;
font-size: 16px;
}

.cinematic-link:hover {
color: #3B82F6;
border-color: #3B82F6;
}

/* =========================================================
BOTTOM NAVIGATION STRIP
========================================================= */

.cinematic-bottom {
position: absolute;

z-index: 5;

left: 0;
right: 0;
bottom: 0;

min-height: 105px;

display: flex;
align-items: center;

padding: 0 6%;

background: rgba(5,9,15,.78);

border-top: 1px solid rgba(255,255,255,.13);

backdrop-filter: blur(12px);
}

.bottom-item {
height: 45px;

min-width: 180px;

padding-right: 35px;
margin-right: 35px;

display: flex;
flex-direction: column;
justify-content: center;
gap: 5px;

border-right: 1px solid rgba(255,255,255,.15);
}

.bottom-item strong {
font-size: 10px;
color: #3B82F6;
}

.bottom-item span {
font-size: 10px;
font-weight: 700;
letter-spacing: 2px;

color: rgba(255,255,255,.7);
}

/* Scroll */

.bottom-scroll {
margin-left: auto;

min-width: auto;

border: 0;

padding: 0;

flex-direction: row;
align-items: center;
gap: 15px;
}

.bottom-scroll span {
font-size: 8px;
letter-spacing: 2px;
color: rgba(255,255,255,.4);
}

.bottom-scroll i {
display: block;

width: 55px;
height: 1px;

background: #3B82F6;

position: relative;
}

.bottom-scroll i::after {
content: "";

position: absolute;

right: 0;
top: -3px;

width: 7px;
height: 7px;

border-top: 1px solid #3B82F6;
border-right: 1px solid #3B82F6;

transform: rotate(45deg);
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 991px) {

.msak-cinematic-hero {
height: 750px;
}

.cinematic-top {
left: 25px;
right: 25px;
}

.cinematic-number {
display: none;
}

.cinematic-content {
padding-left: 10px;
}

.cinematic-title h1 {
font-size: clamp(65px, 10vw, 100px);
}

.cinematic-bottom {
padding: 0 25px;
}

.bottom-item {
min-width: 145px;
padding-right: 20px;
margin-right: 20px;
}

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {

.msak-cinematic-hero {
height: 720px;
}

.cinematic-bg img {
object-position: 62% center;
}

.cinematic-overlay {
background:
linear-gradient(
90deg,
rgba(5,9,15,.94),
rgba(5,9,15,.62)
),
linear-gradient(
0deg,
rgba(5,9,15,.98),
transparent 65%
);
}

.cinematic-top {
top: 23px;
left: 20px;
right: 20px;

```
font-size: 8px;
letter-spacing: 2px;
```

}

.cinematic-container {
align-items: flex-end;

```
padding-bottom: 145px;
```

}

.cinematic-content {
padding: 0;
}

.cinematic-title > span {
font-size: 9px;
letter-spacing: 3px;
margin-bottom: 14px;
}

.cinematic-title h1 {
font-size: clamp(55px, 17vw, 82px);
letter-spacing: -4px;
line-height: .86;
}

.cinematic-content > p {
font-size: 13px;
line-height: 1.7;

```
margin: 25px 0;
```

}

.cinematic-actions {
gap: 20px;
flex-wrap: wrap;
}

.cinematic-btn {
height: 50px;
}

.cinematic-link {
font-size: 11px;
}

/* Mobile Bottom */

.cinematic-bottom {
min-height: 95px;

```
padding: 0 20px;

overflow-x: auto;

justify-content: flex-start;
```

}

.bottom-item {
min-width: 110px;

```
padding-right: 15px;
margin-right: 15px;
```

}

.bottom-item span {
font-size: 8px;
letter-spacing: 1px;
}

.bottom-scroll {
display: none;
}

}



/* =========================================================
FULL WIDTH IMAGE
========================================================= */

.image-section {
width: 100%;
}

.full-width-image {
width: 100%;
overflow: hidden;
}

.full-width-image img {
display: block;
width: 100%;
height: 475px;
object-fit: cover;
}

@media (max-width: 600px) {

.full-width-image img {
height: 300px;
}

}



/* =========================================
   HEADING + FULL WIDTH IMAGE
========================================= */

.image-section {
    width: 100%;
    margin: 0;
    
}

.section-heading {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3B82F6;
}

.section-heading h2 {
    margin: 0 0 15px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.section-heading p {
    margin: 0 auto;
    max-width: 650px;
    font-size: 17px;
    line-height: 1.7;
    color: #AEB9CC;
}

/* Full Width Image */

.full-width-image {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.full-width-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .image-section {
        padding-top: 50px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-heading p {
        font-size: 15px;
    }
}

/* -------------------- Reveal animation -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* -------------------- Split section (About intro) -------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }
.split-media .frame-mark {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  background: rgba(10,14,26,0.65);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.split-copy p { margin-bottom: 1rem; }
.split-copy .btn { margin-top: 1rem; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* -------------------- Cards: Mind Sports -------------------- */
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.sport-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transition: transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
}
.sport-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}
.sport-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-primary);
  background: var(--card-hover);
  box-shadow: var(--shadow-md);
}
.sport-card:hover::before { transform: scaleX(1); }
.sport-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(34,211,238,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--cyan);
}
.sport-icon svg { width: 28px; height: 28px; }
.sport-card h3 { margin-bottom: 0.6rem; }
.sport-card p { font-size: 0.93rem; margin-bottom: 1rem; }
.card-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--cyan);
}
.card-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.sport-card:hover .card-arrow svg { transform: translateX(4px); }

/* -------------------- Stats -------------------- */
.stats-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: baseline; gap: 0.15rem;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* -------------------- Event / News cards -------------------- */
.cards-grid-3.events, .cards-grid-3.news { align-items: stretch; }
.event-card, .news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.event-card:hover, .news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.event-card:hover .card-media img, .news-card:hover .card-media img { transform: scale(1.07); }
.date-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  text-align: center;
  padding: 0.4rem 0.7rem;
  line-height: 1.1;
}
.date-badge .day { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--cyan); display: block; }
.date-badge .mon { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.card-category {
  position: absolute; top: 12px; right: 12px;
  background: rgba(34,211,238,0.15);
  color: var(--cyan);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border-primary);
}
.card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted-dim); font-family: var(--font-mono); }
.card-body h3 { font-size: 1.15rem; }
.card-body p { font-size: 0.92rem; flex: 1; }
.card-footer { margin-top: 0.6rem; }

.section-cta-row { display: flex; justify-content: center; margin-top: var(--space-lg); }

/* -------------------- Gallery -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.8rem;
}
.gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item:nth-child(4) { grid-column: span 2; }
.gallery-item, .g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.gallery-item img, .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-mid) var(--ease); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0) 40%, rgba(10,14,26,0.85) 100%);
  opacity: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0.9rem;
  transition: opacity var(--dur-fast) var(--ease);
}
.gallery-item:hover .gallery-overlay, .g-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img, .g-item:hover img { transform: scale(1.08); }
.gallery-overlay .cam-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(34,211,238,0.9); display: flex; align-items: center; justify-content: center; color: #121A2E; }
.gallery-overlay .g-caption { font-size: 0.85rem; font-weight: 600; }



/* -------------------- CTA Band -------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34,211,238,0.14), rgba(34,211,238,0.02)),
    var(--card);
  border: 1px solid var(--border-primary);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}
.cta-band h2, .cta-band p, .cta-band .hero-actions { position: relative; z-index: 2; }
.cta-band p { max-width: 560px; margin: 1rem auto 2rem; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.footer-brand p { margin: 1rem 0 1.3rem; font-size: 0.92rem; max-width: 300px; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1.1rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 0.6rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 0;
  font-size: 0.82rem;
  color: var(--muted-dim);
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { color: var(--muted-dim); }
.footer-bottom-links a:hover { color: var(--cyan); }

/* -------------------- Back to top -------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #121A2E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-mid) var(--ease);
  z-index: 500;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* -------------------- Timeline (About) -------------------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute; left: 22px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(34,211,238,0.1));
}
.timeline-item { position: relative; padding-left: 60px; margin-bottom: var(--space-lg); }
.timeline-dot {
  position: absolute; left: 12px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.timeline-year { font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.3rem; display: block; }
.timeline-item h3 { margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.94rem; }

/* -------------------- Objective / Value cards -------------------- */
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  transition: all var(--dur-mid) var(--ease);
}
.value-card:hover { border-color: var(--border-primary); transform: translateY(-4px); }
.value-card .num { font-family: var(--font-mono); color: var(--primary); font-size: 0.8rem; letter-spacing: 0.1em; }
.value-card h3 { margin: 0.6rem 0 0.5rem; font-size: 1.05rem; }
.value-card p { font-size: 0.88rem; }

/* -------------------- Why it matters (icon rows) -------------------- */
.matter-grid { grid-template-columns: repeat(3, 1fr); }
.matter-item { display: flex; gap: 1rem; align-items: flex-start; }
.matter-item .m-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(34,211,238,0.1); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.matter-item h4 { margin-bottom: 0.3rem; }
.matter-item p { font-size: 0.9rem; }

/* -------------------- Team Page -------------------- */
.team-grid { grid-template-columns: repeat(4, 1fr); }
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: all var(--dur-mid) var(--ease);
}
.team-card:hover { transform: translateY(-6px); border-color: var(--border-primary); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.08); }
.team-info { padding: var(--space-sm); }
.team-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.team-role { color: var(--cyan); font-size: 0.82rem; font-weight: 700; margin-bottom: 0.6rem; display: block; }
.team-info p { font-size: 0.84rem; margin-bottom: 0.8rem; }
.team-social { display: flex; justify-content: center; gap: 0.5rem; }
.team-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.team-social a:hover { border-color: var(--primary); color: var(--cyan); }

.subsection-title { display: flex; align-items: center; gap: 1rem; margin: var(--space-xl) 0 var(--space-lg); }
.subsection-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); white-space: nowrap; }
.subsection-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* -------------------- Members Page -------------------- */
.membership-grid { grid-template-columns: repeat(3, 1fr); }
.membership-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--dur-mid) var(--ease);
}
.membership-card:hover { border-color: var(--border-primary); transform: translateY(-6px); }
.membership-card .sport-icon { margin: 0 auto 1.2rem; }
.membership-card h3 { margin-bottom: 0.5rem; }
.membership-card p { font-size: 0.9rem; }

.benefit-list { grid-template-columns: repeat(2, 1fr); }
.benefit-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-sm);
}
.benefit-item .b-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(34,211,238,0.1); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-item h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.benefit-item p { font-size: 0.86rem; }

/* -------------------- News / Events filter toolbar -------------------- */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-xl);
}
.filter-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.filter-tab:hover { border-color: var(--primary); color: var(--cyan); }
.filter-tab.active { background: var(--grad-primary); color: #121A2E; border-color: transparent; }

.search-box {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  min-width: 220px;
}
.search-box svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search-box input { background: transparent; border: none; color: var(--white); width: 100%; font-size: 0.88rem; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--muted-dim); }

.no-results { text-align: center; padding: var(--space-xl) 0; color: var(--muted); display: none; }
.no-results.show { display: block; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-xl); }
.page-btn {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.page-btn.active { background: var(--grad-primary); color: #121A2E; border-color: transparent; }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--cyan); }

/* -------------------- Events page specifics -------------------- */
.featured-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.featured-event .card-media { border-radius: var(--radius-md); aspect-ratio: 4/3; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem; border-radius: 100px;
}
.status-pill.open { background: rgba(74,222,128,0.12); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.status-pill.closed { background: rgba(248,113,113,0.12); color: var(--error); border: 1px solid rgba(248,113,113,0.3); }
.status-pill.completed { background: rgba(156,163,175,0.12); color: var(--muted); border: 1px solid var(--border); }
.event-meta-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.2rem 0 1.6rem; }
.event-meta-list li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.92rem; color: var(--muted); }
.event-meta-list svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.event-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.event-card .card-meta-row { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.3rem 0 0.6rem; }
.event-card .card-meta-row span { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.event-card .card-meta-row svg { width: 14px; height: 14px; color: var(--primary); }
.event-card-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }

/* -------------------- Contact Page -------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-info-item { display: flex; gap: 1rem; margin-bottom: var(--space-md); }
.contact-info-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(34,211,238,0.1);
  color: var(--cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: 0.3rem; font-size: 0.95rem; }
.contact-info-item p { font-size: 0.9rem; margin: 0; }
.map-placeholder {
  margin-top: var(--space-md);
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); }
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
  transition: border-color var(--dur-fast) var(--ease);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.field-error { color: var(--error); font-size: 0.78rem; margin-top: 0.4rem; display: none; }
.form-group.invalid input, .form-group.invalid textarea { border-color: var(--error); }
.form-group.invalid .field-error { display: block; }
.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  display: none;
}
.form-status.success { display: block; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: var(--success); }
.form-status.error { display: block; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: var(--error); }

.social-strip { display: flex; gap: 0.7rem; margin-top: var(--space-md); }

/* -------------------- Lightbox -------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 10, 18, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease), visibility var(--dur-mid);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-inner img {
  max-width: 90vw; max-height: 78vh; object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  opacity: 0;
  transition: all var(--dur-mid) var(--ease);
}
.lightbox.open .lightbox-inner img { transform: scale(1); opacity: 1; }
.lightbox-caption { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.lightbox-counter { font-family: var(--font-mono); color: var(--cyan); font-size: 0.8rem; margin-top: 0.3rem; letter-spacing: 0.08em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--grad-primary); color: #121A2E; }
.lightbox-close { top: -16px; right: -16px; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-media { order: -1; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { margin-bottom: var(--space-sm); }
  .cards-grid-3, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .matter-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .featured-event { grid-template-columns: 1fr; }
 
}

@media (max-width: 768px) {
  section { padding: var(--space-xl) 0; }
  .cards-grid-3, .cards-grid-4, .cards-grid-2 { grid-template-columns: 1fr; }
  .matter-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
 
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 576px) {
  .container { padding: 0 var(--space-sm); }
  .hero-actions .btn, .cta-band .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions, .cta-band .hero-actions { flex-direction: column; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: var(--space-sm); }
  .team-grid { grid-template-columns: 1fr; }
 
}
/* =========================================
   MOBILE MENU HAMBURGER / CLOSE
========================================= */

.hamburger {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 10001;

  /* IMPORTANT: existing color ko change mat karo */
  color: inherit;
}

.hamburger span {
  width: 24px;
  height: 2px;

  /* Existing text color ko follow karega */
  background: currentColor;

  border-radius: 2px;
  display: block;

  transition:
    transform 0.3s ease,
    opacity 0.25s ease;
}

/* =========================================
   OPEN STATE → CROSS
========================================= */

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
}
/* =========================================================
   CONTACT SECTION — FULL RESPONSIVE FIX
   ========================================================= */

#contact-layout {
  width: 100%;
  overflow: hidden;
}

.contact-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
}

/* Prevent grid children from overflowing */
.contact-info-card,
.contact-form-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   CONTACT INFO
   ========================================================= */

.contact-info-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}

.contact-info-item .ci-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.contact-info-item h4 {
  margin: 0 0 4px;
}

.contact-info-item p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   GOOGLE MAP
   ========================================================= */

.map-placeholder {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
}

.map-placeholder iframe {
  display: block;
  width: 100% !important;
  height: 280px;
  max-width: 100%;
  border: 0;
}

/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.icon-btn {
  flex: 0 0 auto;
}

/* =========================================================
   FORM
   ========================================================= */

.contact-form-card {
  overflow: hidden;
}

.contact-form-card form {
  width: 100%;
}

.form-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-block {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info-card,
  .contact-form-card {
    width: 100%;
  }

  .map-placeholder iframe {
    height: 300px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  #contact-layout {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 20px;
    border-radius: 12px;
  }

  /* Form rows become single column */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  /* Contact information */
  .contact-info-item {
    gap: 11px;
  }

  .contact-info-item .ci-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .contact-info-item p {
    font-size: 14px;
    line-height: 1.55;
  }

  /* Map */
  .map-placeholder {
    margin-top: 20px;
    border-radius: 10px;
  }

  .map-placeholder iframe {
    width: 100% !important;
    height: 240px;
  }

  /* Social icons */
  .social-strip {
    margin-top: 18px;
    gap: 8px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

  .contact-info-card,
  .contact-form-card {
    padding: 16px;
  }

  .contact-info-item {
    gap: 9px;
  }

  .contact-info-item .ci-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .contact-info-item p {
    font-size: 13px;
  }

  .map-placeholder iframe {
    height: 220px;
  }
}
/* =========================================================
   GALLERY LIGHTBOX
   ========================================================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(0, 0, 0, 0.94);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Main image area */

.lightbox-content {
  position: relative;

  width: min(1100px, 90vw);
  height: min(82vh, 800px);

  display: flex;
  align-items: center;
  justify-content: center;

  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


.lightbox-content img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 10px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6);
}


/* Close */

.lightbox-close {
  position: fixed;

  top: 24px;
  right: 30px;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;

  background: rgba(255,255,255,.08);
  color: #fff;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;

  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .25s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.18);
  transform: rotate(90deg);
}


/* Previous / Next */

.lightbox-prev,
.lightbox-next {
  position: fixed;

  top: 50%;
  transform: translateY(-50%);

  width: 54px;
  height: 54px;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;

  background: rgba(255,255,255,.08);
  color: #fff;

  font-size: 26px;

  cursor: pointer;

  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .25s ease;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-50%) scale(1.08);
}


/* Caption */

.lightbox-bottom {
  position: absolute;

  left: 50%;
  bottom: -65px;

  transform: translateX(-50%);

  width: 100%;

  text-align: center;

  color: #fff;
}

.lightbox-bottom h3 {
  margin: 0 0 5px;

  font-size: 17px;
  font-weight: 700;
}

.lightbox-bottom span {
  font-size: 13px;

  color: rgba(255,255,255,.6);
}


/* Gallery item cursor */

.g-item {
  cursor: pointer;
}


/* Mobile */

@media (max-width: 768px) {

  .gallery-lightbox {
    padding: 20px;
  }

  .lightbox-content {
    width: 100%;
    height: 75vh;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    font-size: 28px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;

    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-bottom {
    bottom: -55px;
  }

  .lightbox-bottom h3 {
    font-size: 14px;
  }

  .lightbox-bottom span {
    font-size: 12px;
  }
}


@media (max-width: 480px) {

  .gallery-lightbox {
    padding: 15px;
  }

  .lightbox-content {
    height: 68vh;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}


/* Prevent page scrolling */

body.lightbox-open {
  overflow: hidden;
}
/* =========================================================
   GALLERY PAGE — FIXED RESPONSIVE GRID
========================================================= */

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* Gallery Item */
.gallery-page-grid .g-item {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    min-width: 0;
}

/* Gallery Image */
.gallery-page-grid .g-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

/* Overlay */
.gallery-page-grid .gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding: 20px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        transparent 60%
    );

    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-page-grid .g-item:hover .gallery-overlay {
    opacity: 1;
}

/* Caption */
.gallery-page-grid .g-caption {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Camera Icon */
.gallery-page-grid .cam-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;

    backdrop-filter: blur(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .gallery-page-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .gallery-page-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-page-grid .g-item {
        height: 220px;
    }

    .gallery-page-grid .g-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-page-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-page-grid .g-item {
        height: 170px;
        border-radius: 10px;
    }

    .gallery-page-grid .gallery-overlay {
        padding: 10px;
    }

    .gallery-page-grid .g-caption {
        font-size: 12px;
    }

    .gallery-page-grid .cam-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

}
/* -------------------- Hero (Home) -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-radial);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 40%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}
.hero-copy h1 { margin: 1.1rem 0 1.3rem; }
.hero-copy h1 em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p { font-size: 1.15rem; max-width: 540px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-board {
  position: relative;
  width: 92%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}
.hero-board img { width: 100%; height: 100%; object-fit: cover; }
.hero-board::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0) 40%, rgba(10,14,26,0.75) 100%);
}
.floating-piece {
  position: absolute;
  font-size: 2.6rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
.floating-piece.p1 { top: 6%; left: -4%; animation-delay: 0s; }
.floating-piece.p2 { bottom: 10%; right: -6%; animation-delay: 1.4s; font-size: 2.1rem; }
.floating-piece.p3 { top: 42%; right: -10%; animation-delay: 2.8s; font-size: 1.7rem; }
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
.glow-orb {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(56,189,248,0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  top: -10%; right: -10%;
  z-index: 1;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--primary), transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* -------------------- Page Hero (inner pages) -------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4rem;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-radial);
}
.page-hero .breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-dim);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 { position: relative; z-index: 2; }
.page-hero p.lead { position: relative; z-index: 2; max-width: 640px; margin: 1.2rem auto 0; font-size: 1.05rem; }
