/* =====================================================
   NECC - New Era Cricket Club Website
   Professional Cricket Club Stylesheet
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --green:       #1a5c38;
  --green-dark:  #0f3a22;
  --green-mid:   #236b42;
  --green-light: #e8f5ee;
  --green-hover: #145030;
  --gold:        #c9a227;
  --gold-dark:   #a8841e;
  --gold-light:  #f5e199;
  --white:       #ffffff;
  --off-white:   #f7f9f7;
  --text:        #1a202c;
  --text-muted:  #5a6a5e;
  --text-light:  #8fa694;
  --border:      #d4e4d8;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:   0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 56px rgba(0,0,0,.16);
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --transition:  all .28s cubic-bezier(.4,0,.2,1);
  --font-main:   'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:'Oswald', 'Arial Narrow', Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); }
p  { font-size: .96rem; color: var(--text-muted); line-height: 1.8; }

/* ---- Utility ---- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5.5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .6rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--gold); border-radius: 1px; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--green-dark); margin-bottom: .85rem;
  line-height: 1.15;
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: .96rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 3.5rem;
  line-height: 1.8;
}
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px; margin: .6rem auto 0;
}
.divider-left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .88rem;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
  letter-spacing: .02em;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary {
  background: var(--gold); color: var(--green-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(201,162,39,.35);
}
.btn-primary:hover {
  background: var(--gold-dark); border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,162,39,.4);
}
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: var(--white); color: var(--green-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green); color: var(--white); border-color: var(--green);
}
.btn-green:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }


/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .9rem 0;
  transition: background .35s, padding .3s, box-shadow .35s, backdrop-filter .35s;
}
#navbar.scrolled {
  background: rgba(10,35,20,.97);
  padding: .6rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
}
.nav-logo img {
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: brightness(1.15) drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: transform .25s;
}
.nav-logo:hover img { transform: scale(1.06); }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .club-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--white); letter-spacing: .08em;
  line-height: 1.1;
}
.nav-logo-text .club-tagline {
  font-size: .62rem; color: var(--gold);
  letter-spacing: .14em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: .15rem;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .84rem; font-weight: 500;
  padding: .48rem .88rem; border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; background: var(--gold);
  transition: left .25s ease, right .25s ease;
  border-radius: 1px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { left: .88rem; right: .88rem; }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: .6rem; }
.nav-admin-btn {
  margin-left: .4rem;
  padding: .4rem .9rem; border-radius: 6px;
  font-size: .82rem; font-weight: 600;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--gold) !important;
  transition: background .2s;
  white-space: nowrap;
}
.nav-admin-btn:hover { background: rgba(201,162,39,.28); }
.nav-admin-btn::after { display: none !important; }
.mobile-admin-link {
  color: var(--gold) !important; font-weight: 600;
  border-top: 1px solid rgba(201,162,39,.2) !important;
  margin-top: .25rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: .45rem; border: none; background: none;
  border-radius: 6px; transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 1px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(10,35,20,.98);
  padding: .75rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.82); font-size: .92rem;
  padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s, padding-left .2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); padding-left: .5rem; }


/* ================================================
   HERO
   ================================================ */
#hero {
  min-height: 100vh;
  background: var(--green-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(8,28,16,.95) 0%, rgba(22,75,46,.82) 55%, rgba(12,48,28,.96) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-field-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 72% 52%, rgba(201,162,39,.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(26,92,56,.15) 0%, transparent 60%);
  pointer-events: none;
}
/* Subtle cricket pitch lines */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.012) 60px, rgba(255,255,255,.012) 61px);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 7.5rem 0 4.5rem;
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content { grid-template-columns: 1fr 1fr; padding: 9.5rem 0 5.5rem; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3);
  border-radius: 50px; padding: .38rem 1.1rem;
  font-size: .72rem; font-weight: 700; color: var(--gold);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(201,162,39,.4); }
  50% { opacity: .8; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(201,162,39,0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  color: var(--white); line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title .accent { color: var(--gold); display: block; }
.hero-desc {
  font-size: 1.02rem; color: rgba(255,255,255,.72);
  max-width: 480px; line-height: 1.82;
  margin-bottom: 1.6rem;
}
/* Slogan */
.hero-slogan {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hero-slogan::before, .hero-slogan::after {
  content: ''; height: 1px; min-width: 24px;
  background: rgba(201,162,39,.3);
}
.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .5rem; }
.hero-stats {
  display: flex; gap: 0; margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
}
.hero-stat {
  flex: 1; padding-right: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 1.5rem; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem; color: var(--gold); line-height: 1;
  text-shadow: 0 0 20px rgba(201,162,39,.3);
}
.hero-stat .lbl {
  font-size: .7rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .1em;
  margin-top: .2rem;
}
/* Hero emblem */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-emblem {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 38% 38%, rgba(201,162,39,.14), rgba(26,92,56,.25));
  border-radius: 50%;
  border: 1.5px solid rgba(201,162,39,.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 0 80px rgba(201,162,39,.08),
    inset 0 0 50px rgba(0,0,0,.18);
}
@media (min-width: 768px) { .hero-emblem { width: 380px; height: 380px; } }
.hero-emblem img {
  width: 86%; height: 86%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
}
.hero-emblem-fallback {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--gold);
  text-align: center; letter-spacing: .1em; line-height: 1.4;
}
.hero-ring {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 1px dashed rgba(201,162,39,.18);
  animation: spin 35s linear infinite;
}
.hero-ring-2 {
  position: absolute; inset: -40px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.05);
  animation: spin 55s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: rgba(255,255,255,.35); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; z-index: 2; animation: fade-in-up 1.5s ease 1.5s both;
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 1.5px solid rgba(255,255,255,.3);
  border-bottom: 1.5px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(7px); }
}


/* ================================================
   SECTION DIVIDER — cricket stumps motif
   ================================================ */
.section-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem 0; overflow: hidden;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.section-divider::after {
  background: linear-gradient(90deg, var(--border), transparent);
}
.section-divider-icon { font-size: 1.1rem; opacity: .45; }


/* ================================================
   ABOUT
   ================================================ */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3.5rem; align-items: stretch;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 3fr 2fr; }
}
.about-left {
  display: flex; flex-direction: column;
}
.about-img-wrap {
  position: relative; flex: 1;
}
.about-img-wrap img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute; bottom: .85rem; right: .85rem;
  background: var(--gold); color: var(--green-dark);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-img-badge .num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.about-img-badge .lbl { font-size: .65rem; font-weight: 700; letter-spacing: .06em; }
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .65rem; margin-top: 1rem;
}
.about-fact {
  background: var(--off-white);
  border-radius: var(--radius); padding: .5rem .75rem;
  border-left: 3px solid var(--gold);
  display: flex; align-items: center; gap: .5rem;
  transition: var(--transition);
}
.about-fact:hover { background: var(--green-light); transform: translateX(3px); }
.about-fact .fact-val { font-size: .95rem; line-height: 1; flex-shrink: 0; }
.about-fact .fact-lbl { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }
.about-text {
  padding: 0;
  display: flex; flex-direction: column; justify-content: center;
  align-self: stretch;
}


/* ================================================
   PLAYERS — Compact Roster Grid
   ================================================ */
#players { background: var(--off-white); }

/* Role filter tabs */
.players-filter {
  display: flex; flex-wrap: wrap; gap: .45rem;
  justify-content: center; margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}

/* Compact grid — many players per row */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}
@media (min-width: 480px)  { .players-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (min-width: 768px)  { .players-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
@media (min-width: 1024px) { .players-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* Compact player card */
.player-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  padding: 1rem .75rem .85rem;
  border-bottom: 3px solid transparent;
}
.player-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
/* Circular photo */
.player-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2.5px solid var(--green-light);
  margin: 0 auto .65rem;
  display: block;
  background: linear-gradient(160deg, var(--green-light) 0%, #b8d9c4 100%);
  transition: border-color .2s;
}
.player-card:hover .player-avatar { border-color: var(--green); }
.player-avatar-placeholder {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(160deg, var(--green-light), #b8d9c4);
  border: 2.5px solid var(--green-light);
  margin: 0 auto .65rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.player-name {
  font-family: var(--font-display);
  font-size: .85rem; color: var(--green-dark);
  line-height: 1.2; margin-bottom: .3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-role-badge {
  display: inline-block;
  font-size: .62rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 999px;
}
/* Role colours */
.role-bat  { border-bottom-color: #e85d04; }
.role-bat  .player-role-badge { background: #fff0e8; color: #e85d04; }
.role-bowl { border-bottom-color: #1a5c38; }
.role-bowl .player-role-badge { background: var(--green-light); color: var(--green); }
.role-allr { border-bottom-color: #c9a227; }
.role-allr .player-role-badge { background: #fef9e7; color: #a8841e; }
.role-wk   { border-bottom-color: #7b2d8b; }
.role-wk   .player-role-badge { background: #f5e8ff; color: #7b2d8b; }

/* Player detail modal */
#player-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
#player-modal.open { display: flex; }
.player-modal-card {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 360px; width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: lb-zoom .22s ease;
  position: relative;
}
.player-modal-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}
.player-modal-banner.role-bat  { background: linear-gradient(135deg, #7a2a00, #e85d04); }
.player-modal-banner.role-bowl { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); }
.player-modal-banner.role-allr { background: linear-gradient(135deg, #6b5500, #c9a227); }
.player-modal-banner.role-wk   { background: linear-gradient(135deg, #3d0f46, #7b2d8b); }
.player-modal-body { padding: 0 1.5rem 1.5rem; text-align: center; }
.player-modal-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 4px solid var(--white);
  margin: -50px auto .75rem;
  display: block;
  background: linear-gradient(160deg, var(--green-light), #b8d9c4);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.player-modal-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(160deg, var(--green-light), #b8d9c4);
  border: 4px solid var(--white);
  margin: -50px auto .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.player-modal-name {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--green-dark); line-height: 1.2; margin-bottom: .4rem;
}
.player-modal-achievements {
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.7; margin-top: .75rem; text-align: left;
  background: var(--off-white); border-radius: var(--radius);
  padding: .75rem 1rem;
  border-left: 3px solid var(--gold);
}
#player-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.2); border: none;
  color: var(--white); font-size: 1.2rem;
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#player-modal-close:hover { background: rgba(255,255,255,.35); }


/* ================================================
   MVP / HALL OF FAME
   ================================================ */
#mvp {
  background: linear-gradient(145deg, #0a2014 0%, var(--green-dark) 40%, #143d24 100%);
  position: relative; overflow: hidden;
}
#mvp::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(201,162,39,.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(201,162,39,.07) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
#mvp .section-title { color: var(--white); }
#mvp .section-subtitle { color: rgba(255,255,255,.6); }
#mvp .divider { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.5rem;
}
.mvp-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.mvp-card::after {
  content: '';
  position: absolute; inset: 0; top: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.4), transparent);
  bottom: 0;
}
.mvp-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border-color: rgba(201,162,39,.25);
}
.mvp-rank {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-display);
  font-size: .78rem; color: var(--gold);
  background: rgba(201,162,39,.12); border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,162,39,.25);
}
.mvp-rank-1 { background: rgba(201,162,39,.28); font-size: 1rem; }
.mvp-photo {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2.5px solid rgba(201,162,39,.45);
  margin: 0 auto .9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.mvp-photo-placeholder {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2.5px solid rgba(201,162,39,.25);
  margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.mvp-name {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--white); margin-bottom: .25rem; line-height: 1.2;
}
.mvp-role { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.mvp-stats { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; }
.mvp-stat { text-align: center; }
.mvp-stat .v { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); line-height: 1; }
.mvp-stat .l { font-size: .62rem; color: rgba(255,255,255,.45); letter-spacing: .06em; margin-top: .15rem; }
.mvp-trophy { font-size: 1.2rem; position: absolute; top: .7rem; right: .8rem; }


/* ================================================
   NEWS / ANNOUNCEMENTS
   ================================================ */
#news { background: var(--white); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
}
.news-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-light), #bed8c6);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--green);
}
.news-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  display: inline-block;
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); background: var(--green-light);
  border-radius: 4px; padding: .22rem .65rem;
  margin-bottom: .65rem;
}
.news-title {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--green-dark); line-height: 1.3;
  margin-bottom: .5rem;
}
.news-excerpt { font-size: .84rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.news-meta {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 1rem; padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .73rem; color: var(--text-light);
}
.news-meta span { display: flex; align-items: center; gap: .3rem; }


/* ================================================
   GALLERY — Masonry layout with tag filters
   ================================================ */
#gallery { background: var(--green-dark); position: relative; overflow: hidden; }
#gallery::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,162,39,.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(26,92,56,.3) 0%, transparent 60%);
  pointer-events: none;
}
#gallery .container { position: relative; z-index: 1; }
#gallery .section-label { color: var(--gold-light); }
#gallery .section-title { color: var(--white); }
#gallery .section-subtitle { color: rgba(255,255,255,.6); }
#gallery .divider { background: var(--gold); }

/* Tag filter pills */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-bottom: 2rem;
}
.gallery-filter-btn {
  padding: .42rem 1.1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .2s;
  backdrop-filter: blur(4px);
}
.gallery-filter-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,162,39,.1);
}
.gallery-filter-btn.active {
  background: var(--gold); color: var(--green-dark);
  border-color: var(--gold); font-weight: 700;
}

/* Masonry grid using CSS columns */
.gallery-masonry {
  columns: 2; column-gap: .75rem;
}
@media (min-width: 540px)  { .gallery-masonry { columns: 3; } }
@media (min-width: 900px)  { .gallery-masonry { columns: 4; } }
@media (min-width: 1200px) { .gallery-masonry { columns: 5; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: .75rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: rgba(255,255,255,.05);
  display: block;
  /* entry animation */
  animation: g-fadeIn .4s ease both;
}
@keyframes g-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.gallery-item:hover img { transform: scale(1.06); }

/* Caption overlay — slides up on hover */
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,35,20,.9) 0%, transparent 100%);
  padding: 2rem .9rem .75rem;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption-tag {
  display: inline-block;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .2rem;
}
.gallery-caption-text {
  font-size: .78rem; color: rgba(255,255,255,.9); line-height: 1.35;
}

/* Photo counter badge */
.gallery-count {
  text-align: center; margin-bottom: 1.5rem;
  font-size: .82rem; color: rgba(255,255,255,.45);
  letter-spacing: .06em;
}

/* Empty state */
.gallery-empty {
  text-align: center; padding: 4rem 1rem;
  color: rgba(255,255,255,.5);
}
.gallery-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ---- Lightbox ---- */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.96); z-index: 2000;
  flex-direction: column;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

.lb-image-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: min(92vw, 1100px);
  max-height: 80vh;
  animation: lb-zoom .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes lb-zoom {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
#lightbox-img {
  max-width: 100%; max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  object-fit: contain;
  display: block;
}

/* Caption bar below image */
.lb-caption-bar {
  margin-top: .85rem;
  text-align: center; max-width: 600px; padding: 0 1rem;
}
.lb-caption-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .25rem;
}
.lb-caption-text { font-size: .88rem; color: rgba(255,255,255,.72); }

/* Counter */
.lb-counter {
  position: absolute; top: 1.1rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.1); border-radius: 50px;
  padding: .3rem .85rem; font-size: .75rem;
  color: rgba(255,255,255,.65); letter-spacing: .05em;
  backdrop-filter: blur(8px);
}

/* Close */
#lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .25s;
  z-index: 10;
}
#lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg) scale(1.1); }

/* Prev / Next */
#lightbox-prev, #lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--white); font-size: 1.6rem;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10;
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-prev:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(-3px); }
#lightbox-next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(3px); }

/* Touch swipe hint on mobile */
@media (max-width: 600px) {
  #lightbox-prev, #lightbox-next { display: none; }
}


/* ================================================
   WELL WISHERS
   ================================================ */
#wellwishers { background: var(--off-white); }
.ww-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
}
.ww-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.ww-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
}
.ww-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ww-photo {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid var(--green-light);
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.ww-photo-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), #bed8c6);
  border: 3px solid var(--border);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.ww-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-dark); margin-bottom: .25rem; }
.ww-designation {
  font-size: .76rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: .35rem;
}
.ww-address { font-size: .74rem; color: var(--text-light); margin-bottom: .6rem; }
.ww-message {
  font-size: .82rem; color: var(--text-muted);
  font-style: italic; line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .5rem;
}
.ww-message::before { content: '\201C'; color: var(--gold); font-size: 1.2rem; line-height: 0; vertical-align: -.3em; margin-right: .1rem; }
.ww-message::after  { content: '\201D'; color: var(--gold); font-size: 1.2rem; line-height: 0; vertical-align: -.3em; margin-left: .1rem; }


/* ================================================
   CONTACT
   ================================================ */
#contact {
  background: linear-gradient(145deg, #081c10 0%, var(--green-dark) 45%, #0f2e1a 100%);
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(201,162,39,.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(26,92,56,.2) 0%, transparent 45%);
  pointer-events: none;
}
#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: rgba(255,255,255,.6); }
#contact .divider { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  position: relative; z-index: 1;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { color: rgba(255,255,255,.82); }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(201,162,39,.14);
  border-radius: 10px; border: 1px solid rgba(201,162,39,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: var(--transition);
}
.contact-item:hover .contact-icon { background: rgba(201,162,39,.25); transform: scale(1.08); }
.contact-item .ci-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: .2rem;
}
.contact-item .ci-value { font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.6; }
.contact-socials { display: flex; gap: .65rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: var(--transition);
}
.social-btn:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--green-dark); transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(201,162,39,.35);
}
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(201,162,39,.2);
  height: 330px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }


/* ================================================
   FOOTER
   ================================================ */
footer {
  background: #040e07;
  padding: 3.5rem 0 1.5rem;
  color: rgba(255,255,255,.48);
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.3), transparent);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.footer-logo img {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: 50%; mix-blend-mode: multiply;
  filter: brightness(1.2); opacity: .88;
}
.footer-logo .club-name {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--white);
  letter-spacing: .06em;
}
.footer-desc { font-size: .83rem; line-height: 1.75; max-width: 300px; }
.footer-heading {
  font-family: var(--font-display); font-size: .9rem;
  color: var(--white); letter-spacing: .06em;
  margin-bottom: .9rem; text-transform: uppercase;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .83rem; transition: color .2s, padding-left .2s; display: inline-block; }
.footer-links a:hover { color: var(--gold); padding-left: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .5rem;
  font-size: .76rem;
}
.footer-bottom .heart { color: var(--gold); }


/* ================================================
   RESPONSIVE OVERRIDES
   ================================================ */
@media (max-width: 767px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 4rem 0; }
  .hero-visual { display: none; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 1rem; }
  .hero-stat:first-child { padding-left: 0; }
  .about-img-badge { right: .5rem; bottom: .5rem; }
}
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 479px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
}


/* ================================================
   ANIMATIONS
   ================================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .32s; }
.fade-up-delay-4 { transition-delay: .45s; }


/* ================================================
   NEWS LOADING / PLACEHOLDER STATES
   ================================================ */
.news-placeholder-pulse  { animation: news-pulse 2.2s ease-in-out infinite; }
.news-placeholder-spin   { animation: news-spin 3.5s linear infinite; }
.news-placeholder-bounce { animation: news-bounce 1.6s ease-in-out infinite; }
@keyframes news-pulse  { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.12);opacity:.72} }
@keyframes news-spin   { to{transform:rotate(360deg)} }
@keyframes news-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.news-tag-blink { animation: tag-blink 2.8s ease-in-out infinite; }
@keyframes tag-blink { 0%,75%,100%{opacity:1} 40%{opacity:.35} }
.news-loading-bar { height: 3px; background: #e2e8e2; border-radius: 2px; overflow: hidden; margin: .85rem 0 .5rem; }
.news-loading-fill {
  height: 100%; width: 45%;
  background: linear-gradient(90deg, var(--green-light), var(--green), var(--green-light));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.news-coming-soon-title::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-left: .4rem;
  vertical-align: middle;
  animation: news-pulse 1.4s ease-in-out infinite;
}


/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }


/* ================================================
   PRINT
   ================================================ */
@media print {
  #navbar, .scroll-hint, .hero-btns, .hero-ring, .hero-ring-2,
  #lightbox, footer { display: none !important; }
  #hero { min-height: auto; padding: 2rem 0; }
  body { font-size: 12pt; color: #000; }
}
