/*
  AIKYAM — Stylesheet
  - Mobile-first CSS with responsive enhancements and reduced motion support
  - Sections labeled for quick scanning
*/

/* =====================================================================
   AIKYAM DESIGN SYSTEM
   A comprehensive, semantic CSS framework built for maintainability
   and developer experience.
   
   Architecture:
   1. Reset & Tokens - Base styles and CSS custom properties
   2. Semantic Utility System - Consistent spacing, colors, typography
   3. Component System - Reusable UI components with variants
   4. Layout System - Grid, flexbox, and positioning utilities
   5. Interactive System - Buttons, forms, and feedback components
   6. Page-specific Styles - Custom styles for specific pages
   
   Naming Convention:
   - Block: .component (e.g., .card, .btn, .form)
   - Element: .component__element (e.g., .card__title, .btn__icon)
   - Modifier: .component--variant (e.g., .btn--primary, .card--compact)
   - Utility: .utility-property (e.g., .text-center, .space-lg)
   
   Usage Guidelines:
   - Prefer semantic classes over utility classes for components
   - Use BEM methodology for complex components
   - Maintain consistent spacing using the spacing scale
   - Follow the color system for consistent theming
===================================================================== */

/* ===================== RESET & TOKENS ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* ======== VARS ======== */
:root {
  /* Dark theme (default) */
  --bg: hsl(220, 15%, 8%);
  --text: hsl(220, 20%, 90%);
  --text-muted: hsl(220, 10%, 65%);
  --accent: #ffd700;
  --accent-2: #ffcc00;
  --accent-text: #ffd700; /* Accent color for text - same as accent in dark theme */
  --accent-rgb: 255, 215, 0; /* RGB values for rgba usage */
  --secondary: #1a365d;
  --brd: hsl(220, 15%, 20%);
  --card: rgba(40, 45, 60, 0.6);
  --card-alt: rgba(50, 55, 70, 0.8);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --maxw: 1200px;
  --header-h: 80px;
  --gutter: 20px;
  --font-body: "Montserrat", system-ui, sans-serif;
  --r: 16px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
}

body.light {
  /* Light theme */
  --bg: hsl(0, 0%, 99%);
  --text: hsl(0, 0%, 15%);
  --text-muted: hsl(0, 0%, 45%);
  --accent: #ffd700; /* Keep same accent for backgrounds and borders */
  --accent-2: #ffcc00; /* Secondary accent */
  --accent-text: #cc8c00; /* Darker gold for better contrast on light backgrounds */
  --accent-rgb: 204, 140, 0; /* RGB values for rgba usage */
  --brd: hsl(0, 0%, 80%);
  --card: rgba(255, 255, 255, 0.6);
  --card-alt: rgba(255, 255, 255, 0.8);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable both-edges;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn, .vendor-phone, [data-filter] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .btn:active, .vendor-phone:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent text selection on buttons for better mobile experience */
  .btn, [data-filter] {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
}

/* Join page specific styles */
.card-title {
  margin-bottom: 6px;
}

.card-subtitle {
  margin-top: 15px;
  margin-bottom: 6px;
}

.info-box {
  margin-top: 15px;
  padding: 10px;
  background: var(--accent-bg);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.embed-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.quick-links-section {
  background: var(--card);
  margin: 15px 0;
  padding: 20px 0;
}

.quick-links-title {
  text-align: center;
  margin-bottom: 15px;
}

.quick-links-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .embed-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .quick-links-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .quick-links-grid .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Note: theme is controlled by the toggle; system preference handled in JS */

.tricolor {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  z-index: 1500;
  background: linear-gradient(90deg, #FF9933 0 33%, #ffffff 33% 66%, #138808 66% 100%);
  box-shadow: 0 0 20px rgba(255, 153, 0, .4);
}

#bg-zoom {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: .30;
  transition: opacity .3s ease;
}

body.light #bg-zoom {
  opacity: .30;
}

#bg-zoom img {
  width: min(1200px, 90vw);
  height: auto;
  transform: scale(1);
  filter: drop-shadow(0 0 60px rgba(255, 153, 0, .25));
  transition: filter .3s ease;
}

header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 1400;
  border-bottom: 1px solid var(--brd);
  backdrop-filter: saturate(120%) blur(8px);
}

.header-inner {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

/* ====== NAV (updated for mobile) ====== */
nav {
  position: relative;
}

nav .nav-toggle {
  display: none;
  font-size: 24px;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
}

nav .nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  display: inline-block;
  margin: 0 6px;
  font-weight: 800;
  color: var(--text);
  opacity: .92;
  transition: .25s;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-text);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.85), 0 0 22px rgba(255, 153, 0, 0.5);
}

nav a.active {
  color: var(--accent-text);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.85), 0 0 22px rgba(255, 153, 0, 0.5);
  font-weight: 900;
}

.theme-toggle {
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--border-radius-lg);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 14px;
}

.theme-toggle:hover {
  background: var(--card-alt);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.theme-toggle:active {
  transform: scale(0.95);
}

#scroll-progress {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 204, 0, .9);
  z-index: 999;
}

section {
  padding: var(--pad-section) var(--gutter);
  min-height: 520px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brd), transparent);
  opacity: .5
}

h2.section-title {
  text-align: center;
  font-size: 44px;
  letter-spacing: .6px;
  font-weight: 900;
  margin-bottom: 30px;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 220px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: radial-gradient(closest-side, var(--accent), transparent);
  filter: blur(.4px);
  animation: underlinePulse 3s ease-in-out infinite;
}

@keyframes underlinePulse {

  0%,
  100% {
    transform: scaleX(.9);
    opacity: .85
  }

  50% {
    transform: scaleX(1.15);
    opacity: 1
  }
}

.hero {
  min-height: 760px;
  padding-top: calc(var(--header-h) + 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}

.hero .container {
  row-gap: 22px;
}

.hero-title {
  font-size: clamp(28px, 8vw, 56px);
  line-height: 1.1;
}

.hero-left {
  flex: 1;
  min-width: 320px
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  visibility: visible;
}

.tagline {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 16px
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px
}

/* ===================== ENHANCED BUTTON SYSTEM ===================== */

/* Base Button - Foundation for all button variants */
.btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--brd);
  background: var(--card-alt);
  color: var(--text);
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

/* Button Interaction States */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15), 0 0 1rem var(--accent-2);
}

.btn:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Button Variants - Semantic naming for different use cases */
.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--brd);
}

.btn--secondary:hover {
  background: var(--card-alt);
  border-color: var(--accent);
}





.btn--disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Groups - Cohesive button layouts */
.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Ripple effect styles - prevent layout shifts and size changes */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .r {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.62s ease-out forwards;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}



/* Legacy Support - Maintain existing functionality */
.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--brd);
}

.btn.mini {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

/* Register button click effect - controlled animation */
.btn-click-effect {
  transform: scale(1.02) !important;
  transition: transform 0.15s ease !important;
}

/* Prevent hover effects during click state for register buttons */
.btn[data-clicking="1"] {
  pointer-events: none;
}

.btn[data-clicking="1"]:hover {
  transform: scale(1.02) !important;
}

/* Force reset transforms for register links to prevent accumulation */
a[href="#register"].btn {
  will-change: transform;
}

a[href="#register"].btn:not(.btn-click-effect):not(:hover) {
  transform: none !important;
}



/* ======== Hero Alt (for separate pages) ======== */
.hero-alt {
  padding: 120px var(--gutter) 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(255, 204, 0, 0.05) 100%);
  border-bottom: 1px solid var(--brd);
}

.hero-alt h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
  color: var(--text);
}

.hero-alt .tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-alt {
    padding: 100px var(--gutter) 40px;
  }
}

.sunburst {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  z-index: 0;
  filter: saturate(1.05);
}

.sunburst::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 153, 0, .18), transparent 60%);
  box-shadow: 0 0 36px 8px rgba(255, 204, 0, .18) inset;
}

.sunburst .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 204, 0, .45) 0deg, rgba(255, 204, 0, .18) 14deg, rgba(255, 204, 0, 0) 40deg 360deg);
  filter: blur(1px);
  animation: beam-spin var(--beamspd, 10s) linear infinite;
}

@keyframes beam-spin {
  to {
    transform: rotate(360deg)
  }
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(255, 153, 0, .22)) drop-shadow(0 0 48px rgba(255, 153, 0, .08));
}

.hero-logo {
  width: 560px;
  max-width: 90%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 62%, rgba(255, 255, 255, .35) 78%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 62%, rgba(255, 255, 255, .35) 78%, transparent 90%);
  transition: transform .3s ease;
}

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  font-weight: 900;
  flex-wrap: wrap;
}

.countdown .k {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--brd);
  min-width: 80px;
  text-align: center
}

.next-title {
  font-size: 18px;
  font-weight: 900;
  margin-top: 16px
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  width: 100%;
  margin: 6px auto 22px;
}

.person-card {
  background: var(--card);
  padding: 26px;
  border: 1px solid var(--brd);
  border-radius: 18px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: var(--shadow);
  max-width: 320px;
  width: 100%;
}

.person-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-2);
}

.person-card img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  transition: .4s ease;
}

.person-card:hover img {
  transform: rotate(5deg) scale(1.05);
}

.person-card .name {
  font-weight: 900;
  font-size: 21px;
}

.person-card .role {
  opacity: .9;
  margin-top: 4px;
}

.chip-mini {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--brd);
  font-size: 12px
}

.events-3col {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 560px) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width:1200px) {
  .events-3col {
    grid-template-columns: 1fr;
  }
}

.subhead {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  text-align: center;
}

.vloop {
  height: 685px;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--brd);
  background: var(--card);
}

.vtrack {
  display: grid;
  gap: 16px;
  animation: vscroll var(--vspd, 36s) linear infinite;
  will-change: transform;
  padding: 16px;
  /* Ensure sufficient height for scrolling effect */
  min-height: 300%;
  animation-play-state: running;
  animation-fill-mode: forwards;
}

@keyframes vscroll {
  0% {
    transform: translateY(0)
  }

  100% {
    transform: translateY(-33.33%)
  }
}

.event-card {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.event-body {
  padding: 12px 14px 14px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: .9;
  margin: 4px 0 6px;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  background: var(--card);
  border: 1px solid var(--brd);
}

.event-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 4px;
}

.event-desc {
  font-size: 13px;
  opacity: .9;
}

.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

#gallery .wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brd);
  background: var(--card);
  box-shadow: var(--shadow);
}

.gtrack {
  display: flex;
  gap: 22px;
  padding: 18px;
  will-change: transform;
}

.gslide {
  flex: 0 0 auto;
  width: 440px;
  height: 268px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0b0b0b;
  box-shadow: var(--shadow);
}

.gslide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 12s ease-in-out infinite alternate;
}

.gslide .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

@keyframes ken {
  0% {
    transform: scale(1.05)
  }

  100% {
    transform: scale(1.12) translate(8px, -6px)
  }
}

/* ===================== ENHANCED CARD SYSTEM ===================== */

/* Base Card - Foundation for all card variants */
.card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 1.125rem;
  padding: 1.375rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

/* Card Interaction States */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}













/* Responsive Card Behavior */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
  
  .card--spacious {
    padding: 1.5rem;
  }
  
  .card--horizontal {
    flex-direction: column;
    text-align: center;
  }
  
  .card-grid {
    gap: 1rem;
  }
}

/* ===================== STATUS & FEEDBACK SYSTEM ===================== */

/* Status Messages - Semantic feedback components */
.status {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.status--info {
  background: rgba(13, 110, 253, 0.1);
  border-color: #0d6efd;
  color: #084298;
}

.status--success {
  background: rgba(25, 135, 84, 0.1);
  border-color: #198754;
  color: #0f5132;
}

.status--warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #664d03;
}

.status--error {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #721c24;
}

/* Badges and Pills - Status indicators */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

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

.badge--secondary {
  background: var(--card-alt);
  color: var(--text);
  border: 1px solid var(--brd);
}

/* Pills - Enhanced from existing pill class */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 2rem;
  background: var(--card-alt);
  color: var(--text);
  border: 1px solid var(--brd);
  transition: all 0.2s ease;
}

.pill--accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.pill--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-text);
}

.pill--sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

/* Progress Indicators */
.progress {
  width: 100%;
  height: 0.75rem;
  background: var(--card-alt);
  border-radius: 0.375rem;
  overflow: hidden;
  position: relative;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width 0.3s ease;
  border-radius: inherit;
}

.progress--sm {
  height: 0.5rem;
}

.progress--lg {
  height: 1rem;
}

/* Loading States */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.loading__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--card-alt);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading__spinner--sm {
  width: 1rem;
  height: 1rem;
  border-width: 1px;
}

.loading__spinner--lg {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltips and Help Text */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}

.help-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.375rem;
  line-height: 1.4;
}

.help-text--inline {
  display: inline-block;
  margin: 0 0.5rem;
}

/* Legacy Support */
.hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

#contact-section .contact {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#contact-section a {
  color: var(--accent-text);
  font-weight: 900;
  text-decoration: none;
}

#contact-section a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(255, 153, 0, .9);
}

/* Sticky footer layout */
.page-content {
  flex: 1 0 auto;
}

/* Ensure content sections grow to fill available space */
body > section:not(#footer-placeholder),
body > main {
  flex: 1 0 auto;
}

footer {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  padding: 28px;
  margin-top: auto;
  border-top: 1px solid var(--brd);
  z-index: 1;
  position: relative;
  flex-shrink: 0;
}

footer a {
  color: var(--accent-text);
  font-weight: 900;
  text-decoration: none;
}

footer a:hover {
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ======== Register (Google Form) ======== */
#register .reg-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.embed {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--brd);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--brd);
  background: var(--card);
}

.embed-head .title {
  font-weight: 900;
}

.embed-body {
  padding: 0;
  height: min(1100px, 80vh);
}

.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--brd);
  font-size: 12px;
  font-weight: 800;
}

/* ===================== DONATE — NEW PRETTY LAYOUT ===================== */
#donate .donate-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width:1100px) {
  #donate .donate-grid {
    grid-template-columns: 1fr;
  }
}

.donate-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--brd);
  background:
    radial-gradient(1200px 500px at -20% -40%, rgba(255, 204, 0, .18), transparent 60%),
    radial-gradient(900px 500px at 120% 120%, rgba(255, 153, 0, .16), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}

.donate-hero h3 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.donate-hero p {
  color: var(--muted);
  margin-bottom: 14px;
}

.donate-hero .progress {
  height: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--brd);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 10px;
}

.donate-hero .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(255, 204, 0, .45);
  transition: width .8s ease;
}

.donate-hero .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  font-size: 12px;
  opacity: .9;
}

.donate-hero .meta .pill {
  background: rgba(255, 204, 0, .12);
  border-color: rgba(255, 204, 0, .35);
}

.donation-form {
  margin-top: 18px;
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 18px;
  padding: 18px;
}

/* ===================== ENHANCED FORM SYSTEM ===================== */

/* Form Layout Components */
.form {
  width: 100%;
  max-width: 500px;
}

.form--wide {
  max-width: 800px;
}

.form--full {
  max-width: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group--compact {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row--auto {
  grid-template-columns: auto 1fr;
  align-items: center;
}

/* Form Labels */
.form-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-label--required::after {
  content: " *";
  color: #dc3545;
}

.form-label--optional::after {
  content: " (optional)";
  color: var(--muted);
  font-weight: normal;
}

/* Input Base Styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  outline: none;
}

.input:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Input Variants */
.input--sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.input--error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.input--error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input--success {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.input--success:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Select Styling */
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

.select:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Textarea Styling */
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  outline: none;
}

.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Form Messages */
.form-message {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.form-message--error {
  color: #dc3545;
}

.form-message--success {
  color: #28a745;
}

.form-message--info {
  color: var(--muted);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.form-actions--center {
  justify-content: center;
}

.form-actions--end {
  justify-content: flex-end;
}

/* Checkbox and Radio Styling */
.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
}

/* Legacy Support */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  outline: none;
}

/* Responsive Form Layout */
@media (max-width: 700px) {
  .input-row,
  .form-row {
    grid-template-columns: 1fr;
  }
  

  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 8px;
}

.amount-btn {
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
  user-select: none;
}

.amount-btn.active,
.amount-btn:hover {
  outline: 2px solid rgba(255, 204, 0, .55);
  transform: translateY(-2px);
}

/* Vendor filter button active state - override amount-btn styles */
[data-filter].active {
  background: var(--accent) !important;
  color: #000000 !important;
  transform: none !important;
  outline: none !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
  font-weight: 900 !important;
}

/* Prevent size changes on active filter buttons when hovered or clicked */
[data-filter].active:hover,
[data-filter].active:active,
[data-filter].active:focus {
  transform: none !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}

.custom-amount {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.custom-amount input {
  width: 120px;
  text-align: center;
}

.donate-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.switch input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--brd);
  position: relative;
  outline: none;
  cursor: pointer;
}

.switch input::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

body.light .switch input::after {
  background: var(--bg);
}

.switch input:checked {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.switch input:checked::after {
  transform: translateX(18px);
}

/* ======== TOP DONORS ======== */
.leaderboard {
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--brd);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.leaderboard .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--brd);
  background: linear-gradient(90deg, rgba(255, 204, 0, .12), transparent);
}

.leaderboard .head .title {
  font-weight: 900;
}

.donor-list {
  padding: 12px;
}

.donor {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--brd);
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: .2s;
}

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

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: 2px solid rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, .2);
}

body.light .avatar {
  color: var(--text);
}

.donor .name {
  font-weight: 900;
}

.donor .amt {
  font-weight: 900;
}

.rank {
  font-weight: 900;
  font-size: 12px;
}

.rank.gold {
  color: #ffd700;
}

.rank.silver {
  color: #c0c0c0;
}

.rank.bronze {
  color: #cd7f32;
}

/* ======== MEMBERS (NEW) ======== */
#members .reg-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width:900px) {
  #members .reg-wrap {
    grid-template-columns: 1fr;
  }
}

#members .embed-body {
  height: min(1000px, 80vh);
}

#members .card ul {
  margin-left: 18px;
  line-height: 1.9;
}

/* ======== VENDORS (NEW) ======== */
.vendor-card {
  background: var(--card);
  padding: 16px;
  border: 1px solid var(--brd);
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: .3s;
  width: 280px;
}

.vendor-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-2);
}

.vendor-card .name {
  font-weight: 900;
  font-size: 18px;
}

.vendor-card .cat {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* Vendor sub-category header */
.vendor-subcategory-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 4px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  text-align: center;
}

/* Vendor phone styling */
.vendor-phone {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.vendor-phone:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--accent-rgb), 0.3);
  color: var(--bg);
  text-decoration: none;
}

.vendor-phone:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Vendor referral information */
.vendor-card .referred-by {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
}

.vendor-card .vendor-blurb {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
  background: var(--card-alt);
  padding: 6px 8px;
  border-radius: 6px;
}

#vendorGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  gap: 14px;
  justify-content: center;
}

#vendorMarquee .gslide {
  width: 280px;
  height: 120px;
}

/* ======== Reveal, Toast, etc. ======== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
}

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

#toTop {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 204, 0, .25);
  z-index: 1200;
  opacity: 0;
  transform: translateY(12px);
  transition: .3s;
}

body.light #toTop {
  background: var(--card-alt);
  color: var(--text);
  border-color: var(--brd);
}

#toTop.show {
  opacity: 1;
  transform: translateY(0);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .76);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 1200;
  pointer-events: none;
}

body.light #toast {
  background: #16181d;
  color: #fff;
  border-color: #2a2f3a;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* (removed) Global Loading Spinner — using per-section placeholders */

/* ==================== Responsive Enhancements ==================== */
:root {
  --nav-h: 64px;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: clamp(22px, 3.2vw, 32px);
  }

  .gslide {
    width: 360px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* Enhanced mobile typography */
  h1, .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  h2, .section-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  p, .text {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Mobile-friendly buttons */
  .btn {
    padding: 12px 20px !important;
    font-size: 16px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
  }

  .btn--sm {
    padding: 10px 16px !important;
    font-size: 14px !important;
    min-height: 40px !important;
  }

  /* Mobile card improvements */
  .card {
    margin-bottom: 16px !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* Mobile section spacing */
  section {
    padding: 40px 0 !important;
  }

  nav .nav-toggle {
    display: block;
    position: absolute;
    left: -8px;
    top: -2px;
  }

  nav .nav-links {
    display: none !important;
    position: fixed !important;
    top: var(--header-h) !important;
    left: 32.5% !important;
    right: 32.5% !important;
    width: 35% !important;
    background: #000 !important;
    backdrop-filter: none !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
  }

  header.open nav .nav-links {
    display: flex !important;
    background: #000 !important;
  }

  /* Remove header transparency on mobile when menu is open */
  header.open {
    background: #000 !important;
    backdrop-filter: none !important;
  }

  /* Mobile menu links - override desktop styles completely */
  nav .nav-links a {
    color: #fff !important;
    opacity: 1 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    display: block !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
  }

  nav .nav-links a:last-child {
    border-bottom: none !important;
  }

  nav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  nav .nav-links a.active {
    background-color: rgba(var(--accent-rgb), 0.15) !important;
    color: var(--accent-text) !important;
  }

  header {
    min-height: var(--nav-h);
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Board cards responsive behavior */
  .board-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    max-width: 600px;
  }
  
  /* Chairman cards responsive behavior */
  .chairman-cards {
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  
  /* Board cards mobile behavior */
  .board-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  
  /* Chairman cards mobile behavior */
  .chairman-cards {
    max-width: 300px;
  }

  .vendor-card {
    padding: 16px;
    width: 100%;
    max-width: 280px;
  }

  #vendorGrid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
  }

  /* Mobile vendor filter improvements */
  .vendor-filter-section {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    padding: 16px !important;
  }

  .vendor-filter-section .btn {
    flex: 0 1 auto !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }

  .vendor-filter-section .pill {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }

  /* Mobile form improvements */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .input, .textarea {
    font-size: 16px !important;
    padding: 12px 16px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
  }

  .textarea {
    min-height: 120px !important;
  }

  /* Mobile grid improvements */
  .grid, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Mobile person cards */
  .person-card {
    padding: 16px !important;
    text-align: center !important;
  }

  .person-card img {
    width: 120px !important;
    height: 120px !important;
  }

  /* Mobile navigation improvements */
  .nav-links a {
    padding: 12px 0 !important;
    font-size: 16px !important;
    border-bottom: 1px solid #333 !important;
  }

  .nav-links a:last-child {
    border-bottom: none !important;
  }

  #members .embed-body {
    height: 72vh;
  }
}

/* ======== CALENDAR STYLES ======== */
.calendar-card {
  border: 1px solid var(--brd);
  border-radius: 18px;
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 10px;
}

.calendar-grid .cal-cell {
  padding: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.calendar-grid .cal-cell.has {
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.calendar-grid .cal-cell.mute {
  opacity: .4;
}

.schedule .sch-item {
  border-top: 1px solid var(--brd);
  padding: 6px 0;
  font-size: 13px;
}

.schedule .sch-item .t {
  font-weight: 900;
}

.schedule .sch-item .d {
  opacity: .8;
  font-size: 12px;
}

.schedule .sch-item .a {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==================== Mobile-friendly enhancements ==================== */
/* Scalable hero heading and larger tap targets */
.hero-left h1 {
  font-size: clamp(28px, 8vw, 56px);
  line-height: 1.1;
}

.btn,
.amount-btn {
  min-height: 44px;
  /* improve touch target size on mobile */
}

/* ======== LOCAL RESOURCES ======== */
#local-resources {
  background: var(--card);
  border-radius: var(--border-radius-lg);
  margin-bottom: 40px;
}

.resource-links {
  display: grid;
  gap: 30px;
}

.resource-category {
  text-align: center;
}

.resource-category .subhead {
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 900;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  justify-items: center;
}

.resource-link {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card-alt);
  border: 1px solid var(--brd);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: #ffffff;
  transition: var(--transition-medium);
  min-height: 100px;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.resource-link strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
  display: block;
}

.resource-link span {
  color: #ffffff;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  section {
    padding: 48px var(--gutter);
  }

  /* Mobile nav: convert links into a drop-down panel */
  nav .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 1500;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  section {
    padding: 36px var(--gutter);
  }

  .gslide {
    width: 300px;
    height: 180px;
  }

  #vendorGrid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ======== Contact Page Styles ======== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  text-align: center;
  padding: 30px;
}

.contact-title {
  margin-bottom: 15px;
  color: var(--accent);
}

.contact-text {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.contact-email {
  color: var(--accent);
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hint-margin {
  margin-top: 10px;
}

.volunteer-container {
  max-width: 800px;
  margin: 0 auto;
}

.volunteer-card {
  padding: 30px;
  margin-bottom: 30px;
}

.volunteer-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.coordinator-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9900 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.coordinator-title {
  margin-bottom: 10px;
}

.coordinator-name {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.coordinator-description {
  margin-bottom: 0;
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.opportunity-card {
  padding: 20px;
}

.opportunity-title {
  margin-bottom: 10px;
  color: var(--accent);
}

.opportunity-list {
  margin: 0;
  padding-left: 20px;
}

/* ======== Gallery Page Styles ======== */
.gallery-wrap {
  margin-bottom: 30px;
}

.gallery-filter-section {
  margin-bottom: 30px;
}

.gallery-filter-title {
  text-align: center;
  margin-bottom: 20px;
}

.gallery-filter-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.gallery-highlight-card {
  padding: 20px;
}

.gallery-highlight-title {
  margin-bottom: 15px;
  color: var(--accent);
}

.gallery-highlight-text {
  margin-bottom: 15px;
}

.gallery-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ======== Common Page Styles ======== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.padding-30 {
  padding: 30px;
}

.padding-20 {
  padding: 20px;
}

.margin-bottom-30 {
  margin-bottom: 30px;
}

.margin-bottom-20 {
  margin-bottom: 20px;
}

.margin-bottom-15 {
  margin-bottom: 15px;
}

.margin-bottom-10 {
  margin-bottom: 10px;
}

.font-large {
  font-size: 1.1em;
}

.line-height-relaxed {
  line-height: 1.6;
}

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

/* Volunteer section specific classes - using consolidated classes where possible */
.volunteer-card {
  padding: 30px;
  margin-bottom: 30px;
}

.volunteer-intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.volunteer-coordinator-name {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.volunteer-coordinator-description {
  margin-bottom: 0;
}

.volunteer-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Unified explore section - replaces all page-specific explore sections */
.explore-section {
  margin: 40px 0;
}

.explore-section.with-background {
  background: var(--bg);
  padding: 25px 0;
}

.explore-section.compact {
  margin: 20px 0;
}

.explore-title {
  text-align: center;
  margin-bottom: 20px;
}

.explore-title.compact {
  margin-bottom: 15px;
}

.explore-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.explore-links.compact {
  gap: 15px;
}

/* Vendor page specific classes */
.vendor-filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Vendor Logo Placeholders */
.vendor-logo-placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Category-based background colors */
.vendor-logo-placeholder--services { background: #4CAF50; }
.vendor-logo-placeholder--food { background: #FF9800; }
.vendor-logo-placeholder--education { background: #2196F3; }
.vendor-logo-placeholder--boutique { background: #9C27B0; }
.vendor-logo-placeholder--default { background: #607D8B; }

/* Vendor Link Styling */
.vendor-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.vendor-blurb {
  margin-top: 6px;
}

/* Vendor Marquee Logo Placeholders */
.vendor-marquee-logo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vendor-marquee-logo--services { background: #4CAF50; }
.vendor-marquee-logo--food { background: #FF9800; }
.vendor-marquee-logo--education { background: #2196F3; }
.vendor-marquee-logo--boutique { background: #9C27B0; }
.vendor-marquee-logo--default { background: #607D8B; }

.vendor-marquee-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brd);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.vendor-marquee-track {
  gap: 18px;
  padding: 14px;
}

.vendor-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.vendor-partnership-section {
  background: var(--card);
  margin: 40px 0;
  padding: 40px 0;
}

.vendor-partnership-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vendor-partnership-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.6;
}

.vendor-partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.vendor-hint-text {
  margin-bottom: 0;
}

/* Donate page specific classes */
.donate-sunburst {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  position: absolute;
  opacity: 0.8;
}

.donate-amount-section {
  margin-top: 12px;
}

.donate-amount-hint {
  margin-bottom: 6px;
}

.text-align-right {
  text-align: right;
}

.donate-feature-hint {
  margin-top: 24px;
  text-align: center;
}

.donate-questions-section {
  background: var(--bg);
  margin: 40px 0;
}

.donate-questions-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-questions-title {
  margin-bottom: 15px;
}

.donate-questions-text {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Gallery page additional classes (some classes already exist) */
.gallery-wrap-section {
  margin-bottom: 30px;
}

.gallery-category-section {
  margin-bottom: 30px;
}

.gallery-category-title {
  text-align: center;
  margin-bottom: 20px;
}

.gallery-category-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-highlights-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.gallery-highlight-description {
  margin-bottom: 15px;
}

.gallery-highlight-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Gallery submission section */
.gallery-submission-section {
  background: var(--card);
  margin: 40px 0;
  padding: 40px 0;
}

.gallery-submission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gallery-submission-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.6;
}

.gallery-submission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.gallery-submission-card {
  padding: 25px;
  text-align: left;
}

/* Gallery stats section */
.gallery-stats-section {
  background: var(--bg);
  margin: 40px 0;
  padding: 30px 0;
}

.gallery-stats-title {
  text-align: center;
  margin-bottom: 25px;
}

.gallery-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.gallery-stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
}

.gallery-stat-label {
  font-weight: bold;
}

.padding-25 {
  padding: 25px;
}

.text-align-left {
  text-align: left;
}

.margin-right-10 {
  margin-right: 10px;
}

.margin-top-15 {
  margin-top: 15px;
}

.font-size-small {
  font-size: 0.9em;
}

.opacity-90 {
  opacity: 0.9;
}

/* ===================== SEMANTIC UTILITY SYSTEM ===================== */

/* Color Utilities - Semantic naming for consistent theming */
.color-accent { color: var(--accent-text); }
.color-primary { color: var(--text); }
.color-secondary { color: var(--text-muted); }
.bg-accent { background: var(--accent); }
.bg-card { background: var(--card); }
.bg-gradient-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, #ff9900 100%); 
}

/* Typography Utilities - Semantic content hierarchy */
.text-title { 
  font-size: 1.5em; 
  font-weight: 600; 
  margin-bottom: 1rem;
}

.text-subtitle { 
  font-size: 1.25em; 
  font-weight: 500; 
  margin-bottom: 0.75rem;
}

.text-body { 
  line-height: 1.6; 
  margin-bottom: 1rem;
}

.text-caption { 
  font-size: 0.9em; 
  opacity: 0.8;
}

/* Spacing Utilities - Consistent rhythm */
.space-xs { margin-bottom: 0.5rem; }   /* 8px */
.space-sm { margin-bottom: 0.75rem; }  /* 12px */
.space-md { margin-bottom: 1rem; }     /* 16px */
.space-lg { margin-bottom: 1.5rem; }   /* 24px */
.space-xl { margin-bottom: 2rem; }     /* 32px */

/* Layout Utilities - Flexible spacing */
.pad-xs { padding: 0.5rem; }
.pad-sm { padding: 0.75rem; }
.pad-md { padding: 1rem; }
.pad-lg { padding: 1.5rem; }
.pad-xl { padding: 2rem; }

/* ===================== COMPONENT SYSTEM ===================== */

/* Content Structure Components */
.content-section {
  margin: 2.5rem 0;
}

.content-section--compact {
  margin: 1.25rem 0;
}

.content-section--featured {
  background: var(--card);
  padding: 2.5rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Typography Components - Semantic content roles */
.heading-section {
  margin-bottom: 1.5rem;
  color: var(--accent-text);
  text-align: center;
}

.heading-card {
  margin-bottom: 1rem;
  color: var(--accent-text);
  font-weight: 600;
}

.heading-feature {
  margin-bottom: 0.75rem;
  color: var(--accent-text);
  font-size: 1.125em;
}

/* List Components - Semantic list patterns */
.list-clean {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.list-features {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Call-to-Action Components */
.cta-block {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9900 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cta-block--compact {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.cta-heading {
  margin-bottom: 1rem;
  font-size: 1.25em;
  font-weight: 600;
}

.cta-heading--compact {
  margin-bottom: 0.75rem;
  font-size: 1.125em;
}

.cta-description {
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.cta-description--compact {
  margin-bottom: 1rem;
}

/* Button Extensions - Semantic button roles */
.btn--cta {
  background: white;
  color: var(--accent-text);
  font-weight: bold;
  border: none;
}

.btn--cta:hover {
  background: var(--card-alt);
  transform: translateY(-1px);
}

/* Navigation Components */
.nav-explore {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.nav-explore--compact {
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Grid Components - Semantic layout patterns */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid-features--compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.grid-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

/* Legacy Support - Maintain backward compatibility */
.section-subtitle { 
  margin-bottom: 15px; 
  color: var(--accent-text); 
}

.card-title { 
  margin-bottom: 10px; 
  color: var(--accent-text); 
}

.list-reset { 
  margin: 0; 
  padding-left: 20px; 
}

.list-spaced { 
  line-height: 1.6; 
}

/* Legacy CTA classes - mapped to new system */
.cta-card { 
  background: linear-gradient(135deg, var(--accent) 0%, #ff9900 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.cta-card.compact { 
  padding: 20px; 
  margin-bottom: 20px; 
}

.cta-title { 
  margin-bottom: 15px; 
}

.cta-title.compact { 
  margin-bottom: 10px; 
}

.cta-text { 
  margin-bottom: 20px; 
}

.cta-text.compact { 
  margin-bottom: 15px; 
}

.cta-button { 
  background: white; 
  color: var(--accent); 
  border: none; 
  font-weight: bold; 
}

/* ===================== LAYOUT SYSTEM ===================== */

/* Container System - Responsive content containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container--sm {
  max-width: 768px;
}

.container--fluid {
  max-width: none;
}

/* Flexbox Utilities - Semantic layout helpers */
.flex {
  display: flex;
}

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

.flex--row-reverse {
  flex-direction: row-reverse;
}

.flex--column-reverse {
  flex-direction: column-reverse;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--nowrap {
  flex-wrap: nowrap;
}

/* Flex Alignment */
.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* Grid System - Responsive grid layouts */
.grid {
  display: grid;
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Grid Gap Utilities */
.gap-xs { gap: 0.5rem; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Display Utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Width and Height Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Z-index Utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Section Layouts - Semantic page structure */
.section {
  padding: 4rem 0;
}

.section--sm {
  padding: 2rem 0;
}

.section--lg {
  padding: 6rem 0;
}

.section--hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.section--feature {
  background: var(--card);
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
}

/* Content Layouts */
.content {
  max-width: 65ch;
  margin: 0 auto;
  line-height: 1.7;
}

.content--wide {
  max-width: 80ch;
}

.content--narrow {
  max-width: 50ch;
}

/* Responsive Layout Helpers */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section--hero {
    padding: 4rem 0 2rem;
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .flex--column-mobile {
    flex-direction: column;
  }
  
  .text-center-mobile {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  section {
    padding: 32px 0;
  }

  /* Extra small screen typography */
  h1, .hero-title {
    font-size: 2rem !important;
  }

  h2, .section-title {
    font-size: 1.75rem !important;
  }

  /* Compact vendor cards for small screens */
  .vendor-card {
    padding: 12px !important;
  }

  .vendor-subcategory-header {
    font-size: 12px !important;
    padding: 3px 6px !important;
  }

  .vendor-phone {
    font-size: 13px !important;
    padding: 6px 12px !important;
  }

  /* Mobile navigation adjustments */
  nav .nav-links {
    left: 10% !important;
    right: 10% !important;
    width: 80% !important;
  }

  /* Compact filter buttons */
  .vendor-filter-section .btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Exception: Keep essential content scrolling animations for UX */
  .vtrack {
    animation-duration: var(--vspd, 36s) !important;
    animation-iteration-count: infinite !important;
  }
}

/* Accessibility Utilities */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===================== HOMEPAGE SPECIFIC STYLES ===================== */

/* Mission & Vision Section */
.hero .mission-vision {
  margin-top: 20px;
  padding: 0;
  color: #ffffff;
  max-width: 550px;
  line-height: 1.7;
  font-size: 1rem;
}

.hero .mission-vision h4 {
  color: var(--accent-text);
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 6px;
}

.hero .mission-vision p {
  margin-bottom: 14px;
}

/* Team Section Styles */
.team-section-title {
  text-align: center;
  margin-bottom: 20px;
}

.chairman-cards {
  justify-content: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.chairman-cards .person-card {
  max-width: 320px;
  width: 100%;
  flex-shrink: 0;
}

.board-cards {
  margin-bottom: 40px;
  /* Limit board card width to prevent excessive stretching */
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Explicit single-row layout when requested (JS adds modifier class) */
.board-cards.board-cards--single-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 26px;
}

/* Allow direct use of modifier without needing base class specificity */
.board-cards--single-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 26px;
}

/* Constrain card widths in single-row mode so they sit side-by-side */
.board-cards.board-cards--single-row .person-card,
.board-cards--single-row .person-card {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  padding: 18px;
}

/* Compact image size for single-row board members */
.board-cards.board-cards--single-row .person-card img,
.board-cards--single-row .person-card img {
  width: 140px;
  height: 140px;
  margin-bottom: 10px;
}

/* Responsive: allow wrapping on narrow screens */
@media (max-width: 680px) {
  .board-cards.board-cards--single-row,
  .board-cards--single-row {
    flex-wrap: wrap;
  }
  .board-cards.board-cards--single-row .person-card,
  .board-cards--single-row .person-card {
    flex: 1 1 200px;
    width: 100%;
    max-width: 260px;
  }
}

/* When there's only one board member, prevent it from stretching */
.board-cards:has(.person-card:only-child) {
  max-width: 320px;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
  .board-cards {
    max-width: 700px;
  }
}

/* Event Loop Styles */
.vloop--past {
  --vspd: 20s;
}

.vloop--upcoming {
  --vspd: 25s;
}

/* Reviews Section Styles */
.reviews-marquee-wrapper {
  overflow: hidden;
  width: var(--maxw);
  margin: 0 auto;
}

.reviews-track {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  width: var(--maxw);
  margin: 0 auto;
  will-change: transform;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .btn,
  button {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }
}

/* ===== Gallery Grid (gallery.html) ===== */
.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--brd);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.6), 0 0 0 1px var(--brd);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: brightness(.92) saturate(1.05);
  transition: .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.15);
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}

@media (max-width: 600px) {
  .gallery-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .gallery-item figcaption {
    font-size: 11px;
    padding: 4px 8px;
  }
}
