/* ========================================
   Lions Club of Hosur Sipcot - Styles
   ======================================== */

:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --primary-dark: #0f2545;
  --accent: #c8922a;
  --accent-light: #e0b050;
  --accent-dark: #a07520;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #eef1f6;
  --gray: #8b95a5;
  --dark-gray: #4a5568;
  --dark: #1a202c;
  --shadow-sm: 0 2px 8px rgba(26, 58, 107, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 58, 107, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 58, 107, 0.15);
  --shadow-accent: 0 8px 30px rgba(200, 146, 42, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Fixed navbar + comfortable gap when jumping to #sections */
  --nav-offset: 64px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Align in-page anchors just below the fixed nav (avoids hero strip + extra gap) */
section[id] {
  scroll-margin-top: var(--nav-offset);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: rgba(15, 37, 69, 0.85);
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
  line-height: 1.25;
  white-space: normal;
}

.logo-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  font-weight: 600;
  white-space: nowrap;
}

.navbar.scrolled .logo-title {
  color: var(--primary);
}

.navbar.scrolled .logo-tagline {
  color: var(--accent);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--dark-gray);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--light-gray);
}

.nav-link.cta-btn {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 4px;
}

.nav-link.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 146, 42, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 82, 152, 0.3) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(200, 146, 42, 0.2);
  border: 1px solid rgba(200, 146, 42, 0.4);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

.hero-scroll a:hover {
  color: var(--accent-light);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ========================================
   Section Commons
   ======================================== */

.section {
  padding: 40px 0 56px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header.light .section-label,
.section-header.light .section-title {
  color: var(--white);
}

.section-header.light .section-divider {
  background: var(--accent-light);
}

.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

.section-description {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--dark-gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========================================
   About Section
   ======================================== */

.about {
  background: var(--white);
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-content > p {
  color: var(--dark-gray);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.about-feature h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.about-feature--clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.about-feature--clickable:hover {
  border-color: var(--primary-light);
}

.about-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.about-feature-link i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.about-feature--clickable:hover .about-feature-link i {
  transform: translateX(3px);
}

/* ========================================
   Structure Section
   ======================================== */

.structure {
  background: #edf2f9;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
}

.structure-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  height: 100%;
}

.structure-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.structure-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

.structure-icon--blood {
  background: rgba(217, 54, 62, 0.1);
  color: #c0392b;
}

.structure-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.structure-card p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.compliance-section {
  background: var(--off-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.compliance-section h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.compliance-subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.badge {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.badge-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
}

.badge span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.badge small {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ========================================
   Focus Areas Section (single-screen grid on wide viewports)
   ======================================== */

.focus {
  background: var(--white);
  box-sizing: border-box;
  min-height: 100vh;
  max-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 10px;
}

.focus .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.focus .section-header {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.focus .section-label {
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.focus .section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  margin-bottom: 8px;
}

.focus .section-divider {
  margin-bottom: 10px;
}

.focus-subsection {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.5px;
}

.focus-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 0.9vh, 12px);
  align-content: stretch;
}

.focus-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.focus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.focus-img {
  flex: 1 1 58%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  padding: clamp(4px, 0.8vh, 10px);
  overflow: hidden;
}

.focus-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.focus-card:hover .focus-img img {
  transform: scale(1.03);
}

.focus-content {
  flex: 0 0 auto;
  padding: clamp(6px, 1vh, 10px) clamp(8px, 1vw, 12px) clamp(8px, 1vh, 12px);
}

.focus-content h3 {
  font-size: clamp(0.68rem, 1.05vw, 0.88rem);
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.2;
}

.focus-content p {
  font-size: clamp(0.62rem, 0.95vw, 0.74rem);
  color: var(--dark-gray);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Projects Section
   ======================================== */

.projects {
  background: #f0f4f8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 37, 69, 0.95) 0%, rgba(15, 37, 69, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(15, 37, 69, 0.98) 0%, rgba(15, 37, 69, 0.6) 60%, rgba(15, 37, 69, 0.3) 100%);
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.project-card:hover .project-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   School Section
   ======================================== */

.school {
  background: var(--white);
}

.school-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.school-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.school-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-img:hover img {
  transform: scale(1.06);
}

/* ========================================
   Achievements Section
   ======================================== */

.achievements {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 32px 0 40px;
}

.achievements .section-header {
  margin-bottom: 16px;
}

.achievements-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23grid)" width="100" height="100"/></svg>');
}

.achievements .container {
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.stat-value {
  white-space: nowrap;
  line-height: 1.2;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.stat-suffix {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.3;
}

/* Year-wise Achievements */
.achievements-yearwise {
  margin-top: 16px;
}

.year-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.year-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.year-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.year-content {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.year-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.year-highlights {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  grid-column: 1 / -1;
}

.year-highlights h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.year-highlights li {
  padding-left: 20px;
  position: relative;
  color: var(--dark);
  font-size: 0.85rem;
  line-height: 1.4;
}

.year-highlights li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.achievement-category {
  margin-bottom: 0;
}

.achievement-category h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}

.achievement-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-category li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
  color: var(--dark);
  font-size: 0.85rem;
  line-height: 1.5;
}

.achievement-category li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.95rem;
}

.achievement-category li strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.achievement-awards {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
}

.achievement-awards i {
  color: #f9a825;
  font-size: 1.2rem;
}

/* ========================================
   Signature Projects Section
   ======================================== */

.signatures {
  background: var(--off-white);
  padding: 32px 0;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.signature-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.signature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  border-color: var(--primary-light);
}

.signature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(42, 82, 152, 0.2);
}

.signature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.signature-card p {
  font-size: 0.82rem;
  color: var(--dark-gray);
  line-height: 1.5;
  margin-bottom: 10px;
  flex-grow: 1;
}

.signature-impact {
  padding-top: 10px;
  border-top: 1px solid var(--light-gray);
}

.signature-impact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.signature-impact i {
  color: #27ae60;
  font-size: 0.85rem;
}

/* ========================================
   Blood Bank Section
   ======================================== */

.bloodbank {
  background: var(--white);
}

.bloodbank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bb-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.bb-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: #d9363e;
}

.bb-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

.bb-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.bb-card p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ========================================
   Charitable Trust Section
   ======================================== */

.trust {
  background: #edf2f9;
}

.trust-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.trust-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.trust-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.trust-feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.trust-feature h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-feature p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

.trust-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-offset) + 12px);
}

.trust-compliance-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 32px;
}

.trust-compliance-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.trust-compliance-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-compliance-card li {
  font-size: 0.88rem;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-compliance-card i {
  color: var(--accent);
  font-size: 0.85rem;
}

.trust-cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.trust-cta-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.trust-cta-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.trust-cta-card .btn-primary {
  background: var(--accent);
}

.trust-cta-card .btn-primary:hover {
  background: var(--accent-dark);
}

/* ========================================
   Hosur Run Section Styles
   ======================================== */

.hosur-run {
  background: linear-gradient(to bottom, #f8f9fa 0%, var(--white) 100%);
}

/* Run Highlights */
.run-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.run-highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.run-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.run-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(205, 127, 50, 0.3);
}

.run-highlight-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.run-highlight-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Main Content Grid */
.run-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.run-section-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.run-section-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.run-section-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.run-section-card h3 i {
  font-size: 1.2rem;
}

/* Objectives */
.run-objectives {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.run-objective-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.run-objective-item > i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4caf50, #81c784);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  margin-top: 4px;
}

.run-objective-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.run-objective-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Event Details */
.run-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.run-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.run-detail-item strong {
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.run-detail-item strong i {
  font-size: 0.85rem;
}

.run-detail-item span {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Prize Money */
.run-prize-card {
  background: linear-gradient(135deg, #fff8e1 0%, var(--white) 100%);
  border: 2px solid #ffd54f;
}

.run-prize-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.prize-category h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffd54f;
}

.prize-amounts {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.prize-amounts span {
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid #ffd54f;
}

.prize-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.prize-total {
  background: var(--primary);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* Registration CTA */
.run-cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
}

.run-cta-card h3 {
  color: var(--white);
  justify-content: center;
}

.run-cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.run-cta-buttons {
  margin: 24px 0;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.run-cta-card .btn-primary {
  background: var(--accent);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.run-cta-card .btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.run-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.run-contact strong {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .run-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .run-main-grid {
    grid-template-columns: 1fr;
  }

  .run-highlight-card {
    padding: 24px 16px;
  }

  .run-section-card {
    padding: 24px;
  }

  .prize-amounts {
    flex-direction: column;
  }

  .prize-amounts span {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .run-highlights {
    grid-template-columns: 1fr;
  }

  .run-highlight-card h3 {
    font-size: 1.75rem;
  }

  .run-objective-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .run-detail-item {
    flex-direction: column;
    gap: 8px;
  }

  .run-detail-item strong {
    white-space: normal;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

/* ========================================
   Gallery Section Styles
   ======================================== */

.gallery {
  background: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  background: var(--white);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-caption {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Gallery Placeholder */
.gallery-placeholder {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px dashed var(--light-gray);
}

.gallery-placeholder-content {
  text-align: center;
  color: var(--text-secondary);
}

.gallery-placeholder-content i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.5;
}

.gallery-placeholder-content p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .gallery-placeholder {
    min-height: 250px;
  }
  
  .gallery-placeholder-content i {
    font-size: 3rem;
  }
  
  .gallery-placeholder-content p {
    font-size: 1rem;
  }
}

/* ========================================
   Lions Hall Hero Slider Styles
   ======================================== */

.lionshall-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.lionshall-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

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

/* Slider Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .lionshall-hero {
    min-height: 70vh;
  }
  
  .hero-dots {
    bottom: 30px;
    gap: 10px;
  }
  
  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* ========================================
   Donate & Membership
   ======================================== */

.donate {
  background: var(--white);
}

.membership-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.donate-payment-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px 32px 40px;
  text-align: center;
}

.donate-payment-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
  text-align: left;
  margin-bottom: 28px;
}

.donate-qr-column {
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.donate-pay-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  min-height: 100%;
}

.donate-pay-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
}

.donate-submit {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 768px) {
  .donate-payment-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .donate-qr-column {
    max-width: none;
    justify-self: stretch;
  }

  .donate-fields {
    grid-template-columns: 1fr;
  }
}

.donate-payee {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  line-height: 1.35;
}

.donate-form {
  text-align: left;
  margin-bottom: 0;
}

.donate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.donate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.donate-field--full {
  grid-column: 1 / -1;
}

.donate-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.donate-field input,
.donate-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.donate-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3a6b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.donate-field input:focus,
.donate-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12);
}

.donate-qr-block {
  margin-bottom: 0;
}

.donate-qr-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.donate-qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.donate-qr-frame img {
  display: block;
  width: min(280px, 85vw);
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.donate-upi-block {
  padding: 24px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 24px;
}

.donate-upi-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.donate-upi-id {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
}

.donate-copy-btn {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.donate-copy-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.donate-copy-feedback {
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-top: 10px;
  margin-bottom: 0;
}

.donate-payment-wrap > .donate-hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.donate-panel-row,
.membership-panel-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--light-gray);
}

.donate-panel-row:last-of-type,
.membership-panel-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.donate-icon,
.membership-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
}

.membership-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.donate-panel-row h3,
.membership-panel-row h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.donate-panel-row p,
.membership-panel-row p {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

.donate-cta,
.membership-cta {
  text-align: center;
  padding-top: 8px;
}

.membership {
  background: #edf2f9;
}

/* Members Tabs */
.members-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--light-gray);
}

.members-tab {
  padding: 12px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.members-tab:hover {
  color: var(--primary);
}

.members-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.members-tab-content {
  display: none;
}

.members-tab-content.active {
  display: block;
}

/* PSTs Section - Table Layout */
.psts-table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 32px;
}

.psts-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

.psts-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.psts-table thead th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-dark);
}

.psts-table thead th i {
  margin-right: 8px;
  opacity: 0.9;
}

.psts-table tbody tr {
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}

.psts-table tbody tr:last-child {
  border-bottom: none;
}

.psts-table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.005);
}

.psts-table tbody td {
  padding: 16px;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.psts-table .year-cell {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Responsive table for mobile */
@media (max-width: 900px) {
  .psts-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .psts-table {
    min-width: 700px;
  }
  
  .psts-table thead th {
    padding: 14px 12px;
    font-size: 0.85rem;
  }
  
  .psts-table tbody td {
    padding: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .psts-table {
    min-width: 650px;
  }
  
  .psts-table thead th {
    padding: 12px 10px;
    font-size: 0.8rem;
  }
  
  .psts-table thead th i {
    display: none;
  }
  
  .psts-table tbody td {
    padding: 10px;
    font-size: 0.85rem;
  }
  
  .psts-table .year-cell {
    font-size: 0.95rem;
  }
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.member-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.member-photo {
  aspect-ratio: 1;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 14px 14px 6px;
  line-height: 1.35;
  margin: 0;
}

.member-occupation {
  font-size: 0.82rem;
  color: var(--dark-gray);
  line-height: 1.45;
  padding: 0 14px 16px;
  margin: 0;
  flex-grow: 1;
}

.membership-panel--after-grid {
  margin-top: 8px;
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .member-name {
    font-size: 0.85rem;
    padding: 12px 12px 4px;
  }

  .member-occupation {
    font-size: 0.76rem;
    padding: 0 12px 14px;
  }

  .members-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ========================================
   Partner Section
   ======================================== */

.partner {
  background: #f0f4f8;
}

/* ========================================
   Partner Modal Styles
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  z-index: 10000;
}

.partner-modal-content {
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  padding: 32px 48px 24px;
  border-bottom: 1px solid var(--light-gray);
}

.modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header .section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.modal-body {
  padding: 28px 48px 36px;
}

.purpose-modal-content {
  max-width: 760px;
  padding: 0;
}

.purpose-modal-body {
  padding-top: 20px;
}

.purpose-block + .purpose-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}

.purpose-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.purpose-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.purpose-block li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.purpose-block li:last-child {
  margin-bottom: 0;
}

.purpose-block p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Partner Contact Form in Modal */
.modal-body .contact-form {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  align-items: start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.captcha-field {
  grid-column: 1 / 2;
}

.submit-field {
  grid-column: 2 / 3;
  display: flex;
  align-items: flex-end;
}

.form-field label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 70px;
}

.form-field select {
  appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

/* Captcha */
.captcha-field label {
  margin-bottom: 6px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 2px solid var(--light-gray);
}

.captcha-question {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.captcha-box input {
  width: 80px;
  padding: 8px 10px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  background: var(--white);
}

.captcha-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.captcha-feedback {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 18px;
  margin-top: 4px;
}

.captcha-feedback.success {
  color: #4caf50;
}

.captcha-feedback.error {
  color: #f44336;
}

/* Submit Button */
.submit-field .btn-lg {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* Button as trigger */
button.btn {
  font: inherit;
  cursor: pointer;
}

button.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }
  
  .modal-content {
    max-height: none;
    margin: 20px 0;
  }
  
  .modal-header {
    padding: 32px 24px 20px;
  }
  
  .modal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
  
  .modal-description {
    font-size: 0.9rem;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .modal-body {
    padding: 20px 24px 28px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .captcha-field {
    grid-column: 1 / -1;
  }
  
  .submit-field {
    grid-column: 1 / -1;
  }
  
  .captcha-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .captcha-box input {
    width: 100%;
  }
  
  .submit-field .btn-lg {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo h3 {
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
}

.footer-logo p {
  font-size: 0.72rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-about > p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-compliance h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-compliance ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-compliance li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-compliance i {
  color: var(--accent-light);
  font-size: 0.8rem;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p + p {
  margin-top: 4px;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (min-width: 901px) and (max-width: 1200px) {
  .focus-grid {
    gap: 8px;
  }

  .focus-content p {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    flex-wrap: wrap;
    padding: 80px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-link {
    color: var(--dark-gray);
    padding: 14px 20px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: var(--off-white);
    color: var(--primary);
  }

  .nav-menu .nav-link.cta-btn {
    background: var(--accent);
    color: var(--white) !important;
    text-align: center;
    margin-top: 12px;
    margin-left: 0;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar.scrolled .nav-toggle.open span,
  .nav-toggle.open span {
    background: var(--primary);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bloodbank-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-content {
    grid-template-columns: 1fr;
  }

  .trust-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .focus {
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .focus .container {
    display: block;
  }

  .focus .section-header {
    margin-bottom: 36px;
  }

  .focus .section-label {
    font-size: 0.82rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .focus .section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
  }

  .focus-grid {
    flex: none;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .focus-card {
    height: auto;
  }

  .focus-img {
    flex: none;
    height: 140px;
    padding: 10px;
  }

  .focus-content {
    padding: 16px 18px 18px;
  }

  .focus-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .focus-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-line-clamp: unset;
    display: block;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 32px 0 48px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .year-content {
    padding: 28px 24px;
  }

  .year-buttons {
    gap: 8px;
  }

  .year-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .signature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .bloodbank-grid {
    grid-template-columns: 1fr;
  }

  .school-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .structure-grid {
    grid-template-columns: 1fr;
  }

  .compliance-badges {
    gap: 12px;
  }

  .badge {
    min-width: 140px;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: span 1;
  }

  .footer-logo h3 {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    white-space: normal;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .signature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .signature-card {
    padding: 24px 20px;
  }

  .signature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .signature-card h3 {
    font-size: 1.15rem;
  }

  .yearwise-title {
    font-size: 1.5rem;
  }

  .year-content {
    padding: 20px 16px;
  }

  .year-highlights,
  .achievement-category {
    padding: 16px;
  }

  .year-highlights h4,
  .achievement-category h4 {
    font-size: 1rem;
  }

  .achievement-awards {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .compliance-section {
    padding: 32px 20px;
  }

  .compliance-badges {
    flex-direction: column;
    align-items: center;
  }

  .badge {
    width: 100%;
    max-width: 250px;
  }
}

/* ========================================
   Members Title Row + Pay Fees Button
   ======================================== */

.members-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.members-title-row .section-title {
  margin-bottom: 0;
}

@keyframes pay-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pay-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5), 0 4px 15px rgba(220, 38, 38, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0), 0 4px 20px rgba(220, 38, 38, 0.5); }
}

@keyframes pay-icon-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%       { transform: scale(1.2) rotate(-8deg); }
  75%       { transform: scale(1.2) rotate(8deg); }
}

.btn-pay-fees {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  background: linear-gradient(270deg, #c0392b, #e74c3c, #e67e22, #e74c3c, #c0392b);
  background-size: 300% 300%;
  color: #fff;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.4px;
  animation: pay-shimmer 3s ease infinite, pay-pulse 2s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-pay-fees::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  animation: pay-shine-sweep 3s ease-in-out infinite;
}

@keyframes pay-shine-sweep {
  0%   { left: -75%; }
  40%  { left: 125%; }
  100% { left: 125%; }
}

.btn-pay-fees:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.1);
}

.btn-pay-fees i {
  font-size: 1rem;
  animation: pay-icon-bounce 2s ease-in-out infinite;
}

/* ========================================
   Membership Fees Modal
   ======================================== */

#membershipFeesModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 25, 50, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#membershipFeesModal.active {
  opacity: 1;
  pointer-events: all;
}

#membershipFeesModal .modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  max-width: 680px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 30px 80px rgba(10, 25, 50, 0.35);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  margin: auto 0;
  flex-shrink: 0;
}

#membershipFeesModal.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  color: var(--dark-gray);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

/* Two-column body */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Left — QR code */
.modal-qr-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.modal-qr-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}

.modal-qr-frame {
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-qr-frame:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.modal-qr-frame img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Right — UPI */
.modal-upi-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-upi-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.modal-upi-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-upi-id {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  word-break: break-all;
  line-height: 1.5;
}

.modal-copy-feedback {
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 600;
  min-height: 18px;
  font-family: 'Inter', sans-serif;
}

.modal-upi-note {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.modal-upi-note i {
  color: var(--accent);
  margin-right: 4px;
}

.modal-upi-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive modal */
@media (max-width: 560px) {
  .modal-box {
    padding: 32px 20px 28px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-qr-frame img {
    width: 160px;
    height: 160px;
  }

  .members-title-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================
   Wide Modal (2-column) + Member Form
   ======================================== */

.modal-box--wide {
  max-width: 780px;
}

/* 2-col: QR left | Form right */
.modal-body--two-col {
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

/* ---- Left column: QR + UPI below ---- */
.modal-qr-frame--large {
  padding: 16px;
  border-radius: var(--radius-lg);
  position: relative;
}

.modal-qr-frame--large img {
  width: 260px;
  height: 260px;
}

/* QR Code Masking */
.qr-mask {
  position: absolute;
  inset: 0;
  background: rgba(42, 82, 152, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  z-index: 10;
}

.qr-mask i {
  font-size: 3rem;
  color: var(--accent-light);
  animation: lockPulse 2s ease-in-out infinite;
}

.qr-mask p {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 200px;
}

@keyframes lockPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.qr-hidden {
  display: none;
}

/* Phone Validation Group */
.phone-validate-group {
  margin-bottom: 16px;
}

.modal-field--with-button {
  margin-bottom: 8px;
}

.input-button-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-button-group input {
  flex: 1;
}

.btn-validate {
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-validate:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-validate:disabled {
  background: #27ae60;
  cursor: not-allowed;
  opacity: 0.9;
}

.validation-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 18px;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
}

#additionalFields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact UPI row below QR */
.modal-upi-inline {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.modal-upi-inline-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-upi-inline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  width: 100%;
  justify-content: space-between;
}

.modal-upi-inline-id {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.4;
}

.modal-upi-copy-sm {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.78rem;
  transition: var(--transition);
}

.modal-upi-copy-sm:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- Right column: Fee badge + Form ---- */
.modal-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Fee badge */
.modal-fee-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.modal-fee-badge strong {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent-light);
  font-weight: 700;
}

.modal-form-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
}

.modal-member-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-gray);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.modal-field input {
  padding: 10px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--off-white);
  outline: none;
  transition: var(--transition);
}

.modal-field input:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.modal-field input::placeholder {
  color: var(--gray);
  font-size: 0.85rem;
}

.modal-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.btn-pay-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-pay-now:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.btn-pay-now .fa-google-pay {
  font-size: 1.45rem;
  line-height: 1;
}

.modal-pay-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.45;
}

.modal-form-feedback {
  font-size: 0.82rem;
  color: #27ae60;
  font-weight: 600;
  min-height: 18px;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

/* Responsive: stack to single column */
@media (max-width: 680px) {
  #membershipFeesModal {
    padding: 10px 12px;
    align-items: flex-start;
  }

  #membershipFeesModal .modal-box {
    max-height: calc(100dvh - 20px);
    padding: 28px 16px 24px;
  }

  #membershipFeesModal .modal-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  #membershipFeesModal .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-body--two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-box--wide {
    max-width: 100%;
  }

  .modal-qr-frame--large img {
    width: 180px;
    height: 180px;
  }

  .modal-qr-frame--large {
    padding: 12px;
  }

  .qr-mask i {
    font-size: 2.5rem;
  }

  .qr-mask p {
    font-size: 0.85rem;
    max-width: 180px;
  }

  .btn-validate {
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .input-button-group {
    gap: 6px;
  }

  #additionalFields {
    margin-top: 4px;
    padding-bottom: 8px;
  }
}

