/* ============================================
   THE SERVICE CHARITABLE TRUST — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:    #1d0f55;
  --saffron: #ff751f;
  --gold:    #C8922A;
  --cream:   #F9F6F0;
  --white:   #FFFFFF;
  --text:    #1E2A38;
  --muted:   #6B7A8D;
  --border:  #E2D9CE;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding:10px;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--saffron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  flex-shrink: 0;
}

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

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 10px;
  color: var(--saffron);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* NAV */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(245,166,35,0.15);
}

.nav-links a.active {
  color: var(--saffron);
}

.nav-cta {
  background: var(--saffron) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.founder-avatar {
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-wrap { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  color: var(--white);
}

.social-btn:hover {
  background: var(--saffron);
  color: var(--navy);
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,166,35,0.3);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--saffron); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.footer-contact-item .icon {
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── LOTUS DIVIDER ── */
.lotus-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.lotus-divider::before,
.lotus-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lotus-sym {
  color: var(--saffron);
  font-size: 20px;
  line-height: 1;
}

/* ── SECTION UTILITY ── */
.section { padding: 80px 24px; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }

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

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-navy .section-subtitle { color: rgba(255,255,255,0.65); }
.section-navy .section-title { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--saffron);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.35);
}

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

.btn-outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,27,42,0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(200,146,42,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  gap: 0;
}

.stat-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
}

.authors-section {

}
 
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
 
.author-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}
 
.author-card:hover {
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.08);
  transform: translateY(-4px);
}
 
.author-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
 
.author-photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--cream);
  border: 2px solid var(--saffron);
}
 
.author-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(13,27,42,0.06));
  border: 2px solid var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--saffron);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
 
.author-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  text-align: center;
}
 
.author-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
 
.author-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}
 
.author-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.author-bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
 
.author-readmore {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  border-bottom: 1px dashed var(--navy);
}
 
.author-readmore:hover {
  color: var(--saffron);
  border-color: var(--saffron);
}
 
/* RESPONSIVE */
@media (max-width: 900px) {
  .authors-grid { grid-template-columns: 1fr; }
}
 
@media (max-width: 560px) {
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-photo-wrap { align-items: center; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .site-header { position: relative; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section { padding: 56px 20px; }
}


/* =========================================
   GALLERY SECTION — The Service Charitable Trust
   Keep this file separate from style.css
   ========================================= */

.gallery-section {
  padding: 80px 24px;
  background: var(--cream);
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.55), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}




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

.gallery-item-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox popup */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}



/* ========================================
   MANTHAN.SL — FLAGSHIP INITIATIVE SECTION
   ======================================== */

/* Screen-reader-only heading (keeps SEO/accessibility intact
   while the logo image carries the visible title) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Full logo shown inside the Manthan.SL section */
.manthan-logo-full {
  width: 190px;
  max-width: 60%;
  height: auto;
  margin-bottom: 24px;
  display: block;
}

/* Small icon logo used in the quick nav */
.nav-logo-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
}

.manthan-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #142a42 100%);
  scroll-margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.manthan-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245,166,35,0.15), transparent 70%);
  pointer-events: none;
}

.manthan-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.manthan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 20px;
}

.manthan-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.25);
}

/* Title */
.manthan-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.manthan-title-dot {
  color: var(--saffron);
}

.manthan-tagline {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}

.manthan-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
}

.manthan-desc strong {
  color: var(--white);
}

.manthan-desc em {
  color: var(--saffron);
  font-style: italic;
}

/* Exam chips */
.manthan-exam-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.manthan-exam-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.25s ease;
}

.manthan-exam-chip:hover {
  background: rgba(245,166,35,0.15);
  border-color: rgba(245,166,35,0.4);
  transform: translateY(-2px);
}

/* Pillars strip */
.manthan-pillars-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.manthan-pillars-sep {
  color: var(--saffron);
}

/* Visual side */
.manthan-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manthan-quote-box {
  background: var(--navy);
  border: 1px solid rgba(245,166,35,0.25);
  border-left: 3px solid var(--saffron);
  border-radius: 14px;
  padding: 28px 26px;
}

.manthan-quote-sanskrit {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.manthan-quote-translation {
  font-size: 14px;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
}

/* Gallery */
.manthan-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.manthan-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,0.1);
}

.manthan-gallery-large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.manthan-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.manthan-gallery-item:hover img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════
   GALLERY / MOMENTS OF IMPACT SECTION CSS
══════════════════════════════════════════════ */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--cream);
}

/* Make first and last items bigger for a magazine-style layout */
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(13,27,42,0.06));
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-cta {
  text-align: center;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .manthan-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manthan-section {
    padding: 56px 20px;
  }
}

@media (max-width: 480px) {
  .manthan-exam-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
}


@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
