/* =============================================
   Volunteer Guide — Shared Stylesheet
   ============================================= */

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

:root {
  --bg: #f4f7ff;
  --white: #ffffff;
  --black: #1f1f1f;
  --accent: #3a6bdc;
  --accent-dark: #2a55c0;
  --accent-light: #e8eeff;
  --text: #333333;
  --text-muted: #666666;
  --border: #e0e4ef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(58, 107, 220, 0.08);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 { line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: 0.5rem; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

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

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: transparent; }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

/* navbar-sticky is now the default — kept for inner pages that explicitly set it */
.navbar-sticky {
  position: sticky;
  top: 0;
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-logo img { height: 36px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--black);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fff;
  background: #1a1a2e; /* fallback until JS loads images */
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0;
}

.hero h1 { color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* =============================================
   CITY CARDS — inside hero
   ============================================= */
.city-grid {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255,255,255,0.92);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 130px;
  text-align: center;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.city-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.city-card.coming-soon { opacity: 0.7; cursor: default; }
.city-card.coming-soon:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.92); }

.city-card img { width: 56px; height: 56px; }
.city-card .city-name { font-weight: 700; font-size: 0.9rem; color: var(--black); }

.coming-soon-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats {
  background: linear-gradient(90deg, #1a3a8f, #3a6bdc);
  padding: 3rem 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--bg); }

.testimonials-track-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  flex: 0 0 calc(50% - 0.75rem);
  min-width: 0;
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.testimonial-card .testimonial-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.testimonial-card .testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-meta img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.testimonial-meta .meta-name { font-weight: 700; font-size: 0.95rem; color: var(--black); }
.testimonial-meta .meta-role { font-size: 0.8rem; color: var(--text-muted); }

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--accent); color: #fff; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* =============================================
   NPO REGISTER STRIP
   ============================================= */
.npo-strip {
  background: var(--accent-light);
  padding: 4.5rem 0;
  text-align: center;
}
.npo-strip h2 { margin-bottom: 1rem; }
.npo-strip p { max-width: 560px; margin: 0 auto 2rem; font-size: 1rem; }

/* =============================================
   ACTION CAROUSEL (images)
   ============================================= */
.actions-section { background: var(--white); }

.actions-track-wrap {
  position: relative;
  overflow: hidden;
}

.actions-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-slide {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.action-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.action-slide:hover img { transform: scale(1.05); }

/* =============================================
   CATEGORIES (Chennai page)
   ============================================= */
.categories { background: var(--white); }

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

.category-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--black);
}
.category-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-card img { width: 52px; height: 52px; flex-shrink: 0; }
.category-card .cat-name { font-weight: 600; font-size: 1rem; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro { background: var(--white); }
.about-intro .about-text { max-width: 780px; }
.about-intro p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

.members-section { background: var(--bg); }
.members-section + .members-section { background: var(--white); }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
}

.member-card {
  text-align: center;
}
.member-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--accent-light);
  transition: border-color 0.2s;
}
.member-card:hover img { border-color: var(--accent); }
.member-card .member-name { font-weight: 600; font-size: 0.9rem; color: var(--black); }

.connect-section { background: var(--accent); padding: 4rem 0; text-align: center; }
.connect-section h2 { color: #fff; margin-bottom: 1.5rem; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  transition: all 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

.disclaimer-section { background: var(--bg); }
.disclaimer-box {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.75rem 2rem;
  max-width: 800px;
}
.disclaimer-box p { color: var(--text); font-size: 0.95rem; line-height: 1.75; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 36px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.75); }
.footer-social a:hover svg { fill: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom p + p { margin-top: 0.35rem; }

/* =============================================
   CMS LOADING STATES
   ============================================= */
.cms-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.cms-error {
  text-align: center;
  padding: 2rem;
  color: #c0392b;
  font-size: 0.9rem;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #1a3a8f 0%, #3a6bdc 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .breadcrumb {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .action-slide { flex: 0 0 calc(50% - 0.5rem); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 4.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }

  .testimonial-card { flex: 0 0 100%; }

  .stats-grid { gap: 2.5rem; }

  .action-slide { flex: 0 0 calc(50% - 0.5rem); }

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

@media (max-width: 480px) {
  .action-slide { flex: 0 0 100%; }
  .city-card { min-width: 130px; padding: 1.5rem; }
}
