/* ─── MSSS NGO – Homepage Styles ────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy-dark);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,34,68,0.88) 0%,
    rgba(26,107,47,0.7) 50%,
    rgba(65,105,225,0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0 60px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  background: rgba(255,130,0,0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,130,0,0.3);
}
.hero-title {
  font-family: var(--font-hindi);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  min-width: 100px;
}
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--orange); width: 24px; border-radius: 4px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ── Quick Links Bar ─────────────────────────────────────────────────────────── */
.quick-bar {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  margin-top: -1px;
}
.quick-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: var(--navy); }
.quick-item:hover .quick-icon { background: var(--orange); color: var(--white); }
.quick-item:hover .quick-label { color: var(--white); }
.quick-item:hover .quick-desc  { color: rgba(255,255,255,0.65); }
.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(26,107,47,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  transition: var(--transition);
}
.quick-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  transition: color 0.2s;
}
.quick-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.2s;
}

/* ── About Section ───────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-stack {
  position: relative;
}
.about-main-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-main-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}
.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  min-width: 160px;
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.about-badge-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Features list */
.about-features { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(65,105,225,0.04);
  border: 1px solid rgba(65,105,225,0.1);
  transition: var(--transition);
}
.about-feature:hover { background: rgba(65,105,225,0.08); transform: translateX(6px); }
.af-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}
.af-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.af-text p  { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Programs/Projects ───────────────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.program-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.program-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
}
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.program-card:hover .program-img img { transform: scale(1.06); }
.program-body { padding: 20px; }
.program-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.program-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}
.program-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Latest News/Posts ───────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.news-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.news-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.news-title {
  font-family: var(--font-hindi);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap 0.2s;
}
.news-card:hover .news-read-more { gap: 10px; }

/* ── Stats Counter ───────────────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(65,105,225,0.3) 0%, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--orange);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Gallery Preview ─────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  background: var(--navy);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,107,47,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ── Testimonials ────────────────────────────────────────────────────────────── */
.testimonial-slider { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease);
}
.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  overflow: hidden;
}
.testimonial-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ── President Message ───────────────────────────────────────────────────────── */
.president-section { background: var(--bg-light); }
.president-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}
.president-photo-wrap { position: relative; }
.president-photo {
  width: 280px;
  height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}
.president-photo img { width: 100%; height: 100%; object-fit: cover; }
.president-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 5rem;
}
.president-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,130,0,0.4);
}
.president-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}
.president-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--orange);
  line-height: 1;
  font-family: Georgia, serif;
}
.president-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.president-title { font-size: 0.82rem; color: var(--text-muted); }

/* ── Donate CTA ──────────────────────────────────────────────────────────────── */
.donate-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
}
.donate-cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.donate-cta-text h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: white; margin-bottom: 8px; }
.donate-cta-text p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.donate-amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.donate-amount-btn {
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.donate-amount-btn:hover { background: white; color: var(--orange); border-color: white; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .testimonial-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .hero { min-height: 440px; }
  .hero-content { padding: 60px 0 40px; }
  .quick-bar-inner { grid-template-columns: repeat(2,1fr); }
  .quick-item { padding: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge-card { position: static; margin-top: 16px; display: inline-block; }
  .programs-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .testimonial-card { min-width: 80%; }
  .president-grid { grid-template-columns: 1fr; text-align: center; }
  .president-photo { width: 200px; height: 220px; margin: 0 auto; }
  .president-quote { padding-left: 0; padding-top: 40px; }
  .donate-cta .container { flex-direction: column; text-align: center; }
  .donate-amounts { justify-content: center; }
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .quick-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
