@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #16a34a;
  --primary-light: #22c55e;
  --primary-dark: #15803d;
  --primary-darkest: #064e3b;
  --accent: #16a34a;
  --accent-light: #22c55e;
  --bg-dark: #0a1a12;
  --bg-alt: #0d2218;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --text-primary: #f0f4f1;
  --text-secondary: #a8c4b0;
  --text-muted: #6b8f76;
  --glass-bg: rgba(16,42,28,0.7);
  --glass-border: rgba(255,255,255,0.08);
  --section-gap: 5rem;
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --font-bn: 'AlinurSangbadpatro', 'Hind Siliguri', sans-serif;
  --font-en: 'Inter', sans-serif;
}

@font-face {
    font-family: 'AlinurSangbadpatro';
    src: url('../assets/fonts/AlinurSangbadpatro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlinurSangbadpatro';
    src: url('../assets/fonts/AlinurSangbadpatro-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; color-scheme: dark; }
body {
  font-family: var(--font-en);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.source-link {
  display: inline-flex;
  align-items: center;
  margin-left: .25rem;
  font-size: .72em;
  font-weight: 700;
  color: var(--accent-light);
  border-bottom: 1px dotted rgba(240,199,94,0.5);
}
.source-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.source-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: 1.5rem;
}
.source-note a { color: var(--accent-light); }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 56px; height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .8rem 0;
  transition: background var(--transition), box-shadow var(--transition), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}
.navbar.scrolled {
  background: rgba(10, 26, 18, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  font-family: var(--font-bn);
  font-size: 1.5rem; font-weight: 300;
  color: #fff;
  display: flex; align-items: center; gap: .5rem;
}
.navbar.scrolled .nav-logo { color: var(--text-primary); }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: .88rem; font-weight: 500;
  position: relative; padding: .25rem 0;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  padding: .5rem; z-index: 1001;
}
.hamburger span {
  width: 26px; height: 2.5px; background: #fff;
  border-radius: 2px; transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text-primary); }
.lang-toggle {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: .35rem .8rem;
  border-radius: 20px; font-size: .8rem; cursor: pointer;
  transition: var(--transition);
}
.navbar.scrolled .lang-toggle {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.lang-toggle:hover { background: var(--bg-card-hover); color: var(--accent-light); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #050a07;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.hero-content { 
  position: relative; z-index: 2; padding: 2rem 1.5rem; 
  width: 100%; max-width: 800px; margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-bn);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500; line-height: 1.15;
  margin-bottom: .8rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-desc {
  color: rgba(255,255,255,0.8); font-size: 1.05rem;
  line-height: 1.6; margin-bottom: 2rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

.hero-credit {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  text-align: left;
}
.hero-credit a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}
.hero-credit a:hover {
  color: var(--accent); text-decoration-color: var(--accent);
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 2.2rem; border-radius: 8px;
  font-family: 'Hind Siliguri', var(--font-en);
  font-weight: 600; font-size: 1rem;
  transition: background var(--transition), color var(--transition); border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { 
  background: #fff;
  color: var(--primary-darkest);
}
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { 
  background: #fff;
  color: var(--primary-darkest);
}

/* ===== Section Common ===== */
.section { padding: var(--section-gap) 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
}
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.15) 50%, transparent);
  position: relative;
  z-index: 5;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted); margin-bottom: .8rem; font-weight: 500;
}
.section-title {
  font-family: var(--font-bn);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500; margin-bottom: .5rem;
  color: var(--text-primary);
}
.section-desc {
  max-width: 600px; margin: 0 auto;
  color: var(--text-muted); font-size: .92rem;
  line-height: 1.7;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.22); }
.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-bn); font-size: 1.1rem;
  margin-bottom: .5rem; font-weight: 400;
}
.card p { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ===== Bar Chart ===== */
.chart-bar {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chart-bar:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===== About Section ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.about-image {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 100%; min-height: 300px; position: relative;
}
.about-image .placeholder-img {
  width: 100%; height: 100%; object-fit: cover;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem;
  letter-spacing: 0.5px;
}
.about-text h3 {
  font-family: var(--font-bn); font-size: 1.3rem;
  margin-bottom: 1rem; color: var(--primary); font-weight: 500;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; font-size: .92rem; line-height: 1.7; }

/* ===== Stats ===== */
.stats-row {
  display: grid; grid-template-columns: minmax(260px, 520px); justify-content: center; gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat-card {
  text-align: center; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.stat-card-featured {
  padding: 2rem 1.5rem 1.6rem;
}
.stat-number {
  font-size: 2rem; font-weight: 700;
  color: var(--accent);
}
.stat-card-featured .stat-number {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: .82rem; margin-top: .3rem; }
.stat-subdata {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .85rem;
  color: var(--text-secondary);
  font-size: .88rem;
}

/* ===== Timeline ===== */
.timeline-horizontal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: timeline-counter;
}
.timeline-horizontal .card:not(:first-child)::after {
  content: '';
  position: absolute;
  bottom: 27px;
  left: calc(-50% - 1.5rem + 14px);
  width: calc(100% + 1.5rem - 28px);
  height: 2px;
  background: repeating-linear-gradient(to right, transparent, transparent 6px, rgba(34, 197, 94, 0.3) 6px, rgba(34, 197, 94, 0.3) 14px);
  z-index: 2;
}
.timeline-horizontal .card {
  position: relative;
  padding: 2rem 2rem 4.5rem;
  counter-increment: timeline-counter;
}
.timeline-horizontal .card h3 {
  color: var(--accent-light);
}
.timeline-horizontal .card::before {
  content: counter(timeline-counter);
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
  z-index: 3;
  transition: transform var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-en);
}
.timeline-horizontal .card:hover::before {
  transform: scale(1.2);
  background: var(--primary-light);
}


@media (max-width: 1024px) {
  .timeline-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .timeline-horizontal .card {
    padding: 2rem 2rem 4.5rem;
  }
  .timeline-horizontal .card::before {
    display: flex;
  }
  .timeline-horizontal .card::after {
    display: none;
  }
  .timeline-horizontal .card:nth-child(even)::after {
    display: block;
    left: calc(-50% - 2rem + 14px);
    width: calc(100% + 2rem - 28px);
  }
}
@media (max-width: 768px) {
  .timeline-horizontal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline-horizontal .card {
    position: relative;
    padding: 3.5rem 2rem 2rem;
  }
  .timeline-horizontal .card::before {
    content: counter(timeline-counter);
    display: flex;
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    bottom: auto;
    right: auto;
    margin: 0;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    z-index: 2;
    color: rgba(255, 255, 255, 0.25);
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-en);
    line-height: 1;
    pointer-events: none;
  }
  .timeline-horizontal .card::after {
    display: none !important;
  }
}


/* ===== Map Section ===== */
.map-wrapper {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border); aspect-ratio: 16/9;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.1); }
.location-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 2rem; }
.loc-item {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1.2rem; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
}
.loc-item .icon { font-size: 1.3rem; }
.loc-item h4 { font-size: .9rem; margin-bottom: .2rem; }
.loc-item p { color: var(--text-muted); font-size: .82rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/3; position: relative; cursor: pointer;
}
.gallery-item .placeholder-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #162e20, #1a3f2a);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem;
  transition: transform var(--transition);
}
.gallery-item:hover .placeholder-img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { font-size: .85rem; color: #fff; }

/* ===== Contact / Footer ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-card {
  padding: 2rem; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
}
.contact-info-card h3 { font-family: var(--font-bn); margin-bottom: 1.5rem; font-size: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.2rem; }
.contact-item .ci-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26,107,60,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-item h4 { font-size: .88rem; margin-bottom: .15rem; }
.contact-item p { color: var(--text-muted); font-size: .82rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label { display: block; font-size: .82rem; color: var(--text-secondary); margin-bottom: .3rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-en); font-size: .9rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.footer {
  background: rgba(8, 8, 10, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5rem 0 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}
.footer-socials a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transition: all 0.25s ease;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Citations Collapsible Container */
.citations-container {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 0;
  margin-bottom: 2rem;
}
.citations-trigger {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: color 0.25s ease;
}
.citations-trigger:hover {
  color: var(--accent);
}
.trigger-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.citations-trigger[aria-expanded="true"] .trigger-chevron {
  transform: rotate(180deg);
}
.citations-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.citations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem 2rem;
  padding-left: 1.2rem;
}
.citations-list li {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}
.citations-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.citations-list a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.85rem;
  gap: 1.5rem;
}
.footer-disclaimer {
  color: var(--accent-light);
  font-size: 0.78rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }



/* ===== Economy Dashboard Elements ===== */
.scope-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 0.8rem;
  width: fit-content;
}
.scope-badge.mini {
  margin-bottom: 0.4rem;
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.stat-highlight {
  display: flex;
  flex-direction: column;
  margin: 1rem 0 0.5rem;
}
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-bn);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}
.stat-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.8rem 0 1.2rem;
  width: 100%;
}
.stat-progress-bar.sm {
  height: 4px;
  margin: 0.3rem 0 0.8rem;
}
.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.stat-item-name {
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-item-val {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== Player Registry Table ===== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-amt));
  -webkit-backdrop-filter: blur(var(--blur-amt));
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.player-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.player-table th {
  background: rgba(22, 163, 74, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1.1rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.player-table td {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.player-table tr:last-child td {
  border-bottom: none;
}
.player-table tr {
  transition: background var(--transition);
}
.player-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}
/* Action buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-en), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.btn-download.btn-primary {
  color: var(--accent-light);
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.25);
}
.btn-download.btn-primary:hover {
  background: rgba(22, 163, 74, 0.22);
}
.btn-download.btn-primary:active {
  background: rgba(22, 163, 74, 0.32);
}

.btn-download.btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.btn-download.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
}
.btn-download.btn-secondary:active {
  background: rgba(255, 255, 255, 0.12);
}

/* Badges for jersey sizes */
.badge-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.player-table tr:hover .badge-size {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--accent-light);
}
.badge-jersey {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--accent-light);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Premium Player Name Styling with Sporty Vibe */
.player-name-cell {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.75px !important;
  font-size: 0.98rem !important;
  color: var(--text-primary) !important;
}

/* Premium Checkbox Custom Styling */
.player-select-checkbox, #selectAllCheckbox {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
  vertical-align: middle;
}

.player-select-checkbox:hover, #selectAllCheckbox:hover {
  border-color: var(--accent-light);
  background: rgba(22, 163, 74, 0.08);
}

.player-select-checkbox:checked, #selectAllCheckbox:checked {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.player-select-checkbox:checked::after, #selectAllCheckbox:checked::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 6px;
}

/* Indeterminate dash state for master checkbox */
#selectAllCheckbox:indeterminate {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

#selectAllCheckbox:indeterminate::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: #ffffff;
  top: 7px;
  left: 4px;
}

/* Table selection states with premium dashboard feedback */
.player-table tbody tr {
  transition: all var(--transition);
  position: relative;
}

.player-table tbody tr.row-selected {
  background: rgba(22, 163, 74, 0.16) !important; /* Increased backdrop opacity for rich contrast! */
}

.player-table tbody tr.row-selected:hover {
  background: rgba(22, 163, 74, 0.20) !important;
}

/* Left green accent indicator line (Desktop: on first column td) */
.player-table tbody tr.row-selected td:first-child {
  border-left: 3.5px solid var(--accent) !important;
  transition: all var(--transition);
}

.player-table tbody tr.row-selected:hover td:first-child {
  border-left-color: var(--accent-light) !important;
}

.player-table tbody tr.row-selected .badge-size {
  background: rgba(22, 163, 74, 0.20);
  border-color: rgba(22, 163, 74, 0.45);
  color: var(--accent-light);
}



/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-gap: 3.5rem; }
  .hero-content { margin-top: 5rem; }
  .hero h1 { font-size: 2.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; padding: 5rem 2rem 2rem;
    background: rgba(10,26,18,0.97); backdrop-filter: blur(20px);
    transition: right var(--transition); gap: 1rem;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: minmax(240px, 1fr); }
  .location-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  /* Mobile Table Optimizations - Hide Checkbox column & Reduce font sizes */
  .player-table th:first-child,
  .player-table td:first-child {
    display: none !important;
  }
  /* Shift Left Green Accent Indicator to Serial cell (2nd child) on mobile viewports! */
  .player-table tbody tr.row-selected td:nth-child(2) {
    border-left: 3.5px solid var(--accent) !important;
    transition: all var(--transition);
  }
  .player-table tbody tr.row-selected:hover td:nth-child(2) {
    border-left-color: var(--accent-light) !important;
  }
  .player-table th {
    font-size: 0.72rem;
    padding: 0.8rem 0.5rem;
  }
  .player-table td {
    font-size: 0.85rem;
    padding: 0.8rem 0.5rem;
  }
  .badge-size {
    width: 32px;
    height: 24px;
    font-size: 0.72rem;
  }
  .badge-jersey {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-subdata { flex-direction: column; gap: .2rem; }
  .hero h1 { font-size: 2rem; }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-credit {
    left: 1rem;
    bottom: 1rem;
    font-size: .72rem;
    max-width: calc(100vw - 2rem);
  }
}

/* ===== Tournament Two-Column Redesign ===== */
.t-grid-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 3.5rem 3.5rem 5rem 3.5rem;
  margin-bottom: 4rem;
  backdrop-filter: blur(12px);
  text-align: left;
  transition: border-color var(--transition);
}
.t-grid-container:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.t-banner-info {
  margin-bottom: 2.5rem;
}
.t-banner-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  font-family: var(--font-bn), var(--font-en);
}
.t-banner-date {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.t-banner-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.t-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  transition: all var(--transition);
  color: rgba(255, 255, 255, 0.9);
}
.t-contact-pill:hover {
  background: rgba(34, 197, 94, 0.04);
  border-color: var(--accent);
}
.t-contact-pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}
.t-contact-pill-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  transition: color var(--transition);
}
.t-contact-pill:hover .t-contact-pill-number {
  color: var(--accent);
}
.t-details-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.t-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.t-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all var(--transition);
}
.t-spec-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}
.t-spec-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1.2px;
}
.t-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.t-rules-wrapper h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1rem;
  font-family: var(--font-bn), var(--font-en);
}
@media (max-width: 992px) {
  .t-grid-container {
    padding: 2.5rem 2rem;
  }
}

.t-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .t-sub-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.t-banner-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  width: 100%;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .t-banner-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* Upgraded Responsive Card and Badge Elements */
.t-prize-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: left;
  margin: 0;
  min-width: 320px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 992px) {
  .t-prize-card {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .t-prize-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .t-prize-card > div:last-child {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
  }
}

@media (max-width: 576px) {
  .t-contact-pill {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
    justify-content: center;
  }
  .t-grid-container {
    padding: 2rem 1.5rem 3.5rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .t-contact-pill {
    flex: 1 1 100%;
  }
  .t-grid-container {
    padding: 1.5rem 1rem 3rem 1rem;
  }
  .t-spec-item {
    padding: 0.8rem 1rem;
  }
  .t-spec-val {
    font-size: 0.88rem;
  }
  .t-spec-label {
    font-size: 0.68rem;
  }
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 4 / 3;
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.03);
}
.gallery-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  display: inline-block;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .explorer-content {
    width: 95vw;
    height: 90vh;
    padding: 1rem;
    border-radius: 14px;
  }
  .explorer-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
  }
  .explorer-header h2 {
    font-size: 1.3rem;
    padding-right: 3rem;
  }
  .explorer-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
  }
  .tab-bar {
    width: 100%;
    display: flex;
    padding: 2px;
    border-radius: 8px;
  }
  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  .explorer-grid-wrapper {
    margin-top: 1rem;
  }
}

/* Gallery Explorer Modal */
.explorer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 26, 18, 0.97); /* Official dark brand green overlay */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.explorer-content {
  background: rgba(16, 42, 28, 0.85); /* Luxurious forest green glassmorphic backdrop */
  border: 1px solid rgba(22, 163, 74, 0.25); /* Subtle green border */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  padding: 1.5rem; /* Reduced from 2.5rem to open up visual canvas */
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(22, 163, 74, 0.2); /* Clean green separator line */
  padding-bottom: 1rem; /* Compact padding */
  position: relative;
}
.explorer-header h2 {
  font-size: 1.5rem; /* Compact font size */
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}
.explorer-close {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #fff;
  font-size: 1.6rem;
  width: 38px; /* Slightly more compact close button */
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.explorer-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}
.tab-bar {
  background: rgba(10, 26, 18, 0.6); /* Forest green tab bar background */
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 3px;
  border-radius: 10px;
  display: inline-flex;
  gap: 3px;
}
.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1.1rem; /* Compact padding */
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem; /* Sized down */
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.filter-btn.active {
  background: rgba(22, 163, 74, 0.2); /* Active state green background */
  border-color: rgba(22, 163, 74, 0.4); /* Stronger active border */
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.explorer-grid-wrapper {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 1.5rem;
}
#explorer-grid {
  margin-top: 0;
}
/* Glassmorphic scrollbar for explorer grid wrapper */
.explorer-grid-wrapper::-webkit-scrollbar {
  width: 6px;
}
.explorer-grid-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.explorer-grid-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.explorer-grid-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* More Card styling */
.gallery-more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 42, 28, 0.4) 0%, rgba(10, 26, 18, 0.15) 100%);
  border: 1px dashed rgba(22, 163, 74, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  aspect-ratio: 4 / 3;
}
.gallery-more-card:hover {
  background: rgba(16, 42, 28, 0.7);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.more-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  transition: transform 0.3s ease;
}
.gallery-more-card:hover .more-icon {
  transform: rotate(90deg) scale(1.1);
}
.more-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-bn), var(--font-en);
}

@media (max-width: 576px) {
  .explorer-content {
    padding: 1.5rem;
    height: 90vh;
  }
  .explorer-header h2 {
    font-size: 1.4rem;
  }
  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Video Play Card Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}
.gallery-item:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}
.video-play-overlay svg {
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-item:hover .video-play-overlay svg {
  transform: scale(1.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Lightbox close button styling */
.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100001;
}
.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Lightbox Download Capsule Button */
.lightbox-download-btn {
  position: absolute;
  top: 2rem;
  right: 6rem; /* Placed beside the close button */
  height: 48px; /* Matching the close button height */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 1.4rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  z-index: 100000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: none; /* Removed hover effects */
}
.lightbox-download-btn:hover {
  transform: none; /* Keep completely flat */
}

/* Mobile Overrides for Lightbox Header Buttons */
@media (max-width: 576px) {
  .lightbox-close-btn {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
  .lightbox-download-btn {
    top: 1rem;
    right: 4rem; /* Sits cleanly next to the 38px close button */
    height: 38px;
    padding: 0 0.8rem;
    font-size: 0.8rem;
    border-radius: 19px;
  }
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100002;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-nav-btn.prev {
  left: 2rem;
}
.lightbox-nav-btn.next {
  right: 2rem;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Navigation Responsiveness */
@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-nav-btn.prev {
    left: 0.8rem;
  }
  .lightbox-nav-btn.next {
    right: 0.8rem;
  }
}
@media (max-width: 480px) {
  /* On very small screens, hide physical buttons and rely entirely on native mobile touch swipes */
  .lightbox-nav-btn {
    display: none !important;
  }
}

/* Player Squad Search Bar */
.squad-search-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: calc(50% - 8px); /* Center mathematically to prevent sub-pixel GPU blur */
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2; /* Sits cleanly on top of the input, avoiding the backdrop-filter blur! */
}
.search-input-wrapper input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search-input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.search-input-wrapper input:focus + .search-icon {
  color: var(--accent);
}

@media (max-width: 576px) {
  .squad-search-container {
    justify-content: center;
  }
  .search-input-wrapper {
    max-width: 100%;
  }
}

/* Native Print Layout for High-Definition Vector PDFs & Paper Prints */
@media print {
  /* Hide all website page segments except the squad container */
  body > *:not(#squad), 
  header, 
  footer, 
  nav, 
  .hero-section, 
  .about-section, 
  .citations, 
  .section-header,
  .squad-search-container,
  #downloadCsvBtn,
  #downloadPdfBtn {
    display: none !important;
  }
  
  /* Strip native browser headers/footers (title, date, URL, page number) */
  @page {
    margin: 0;
  }
  
  /* Reset margins for clean margins on hard-copy paper sizes */
  html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 1.6cm !important; /* Forces a perfect, centered physical sheet margin */
    padding: 0 !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  #squad {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: static !important;
  }
  
  /* Display print-only header elements */
  .print-only-header {
    display: block !important;
    width: 100% !important;
  }
  
  /* Strip select column from printable documents */
  .player-table th:first-child, 
  .player-table td:first-child {
    display: none !important;
  }
  
  /* Hide unselected players in print layout */
  .player-table tbody tr.print-hidden {
    display: none !important;
  }
  
  /* Flat white container style */
  .table-wrapper {
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .player-table {
    border-collapse: collapse !important;
    width: 100% !important;
    color: #000000 !important;
    background: #ffffff !important;
    border: 1px solid #000000 !important; /* Force a clean outer table border */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }
  
  .player-table th, 
  .player-table td,
  .player-name-cell,
  .badge-jersey,
  .badge-size {
    border: 1px solid #000000 !important;
    padding: 6px 10px !important;
    color: #000000 !important;
    text-align: center !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }
  
  /* Force alternating premium grey stripes and override row-selected backgrounds completely */
  .player-table tbody tr td,
  .player-table tbody tr.row-selected td {
    background: transparent !important;
  }
  .player-table tbody tr:nth-child(odd) td,
  .player-table tbody tr.row-selected:nth-child(odd) td {
    background: #f9f9f9 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .player-table tbody tr:nth-child(even) td,
  .player-table tbody tr.row-selected:nth-child(even) td {
    background: #f0f0f0 !important; /* Slightly darker grey */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Reset selection indicators and last-row border anomalies */
  .player-table tr td,
  .player-table tr:last-child td,
  .player-table tbody tr.row-selected td,
  .player-table tbody tr.row-selected td:first-child,
  .player-table tbody tr.row-selected td:nth-child(2) {
    border: 1px solid #000000 !important;
    color: #000000 !important;
    border-left: 1px solid #000000 !important; /* Force strip green accent left border */
  }
  
  .player-table td:nth-child(4), 
  .player-table th:nth-child(4),
  .player-table td.player-name-cell {
    text-align: left !important; /* Keep Player Name column left-aligned */
  }
  
  .player-table th {
    font-weight: bold !important;
    background: #f2f2f2 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #000000 !important; /* Prominent header border */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }
  
  /* Clean bold text for Jersey and Sizes */
  .badge-jersey, 
  .badge-size {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    padding: 0 !important;
    font-weight: bold !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important; /* Retain clean standard case for sizes */
  }
}
