/* 
  Ramai Multipurpose Institute - Design System
  Colors: Deep Navy (#1a237e), Warm Gold (#f57c00), Pure White, Light Gray (#f8f9fa)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a237e;
  --primary-light: #303f9f;
  --primary-dark: #0d47a1;
  --accent: #f57c00;
  --accent-hover: #e65100;
  --bg-light: #f8f9fa;
  --text-main: #212529;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
  --transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ── Header & Navbar ── */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

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

.logo-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.15rem;
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 35, 126, 0.2);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 27, 85, 0.75), rgba(26, 35, 126, 0.62)), url('../assets/images/hero_vriddhashram.webp?v=2') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
}

.hero-content {
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Section Styling ── */
.section {
  padding: 90px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Impact Counter Strip ── */
.impact-strip {
  background: var(--primary);
  color: #ffffff;
  padding: 45px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

.impact-item h3 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 800;
}

.impact-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(26, 35, 126, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

/* ── Certificates Trust Section ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trust-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

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

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Gallery Section ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 126, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

/* ── Lightbox Modal ── */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* ── Footer ── */
.footer {
  background: #0d1b40;
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

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

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive Enhancements ── */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .nav-donate-mobile {
    display: inline-flex;
    margin-top: 10px;
    width: 100%;
  }
}

.nav-donate-mobile {
  display: none;
}

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

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

  .section-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .impact-strip {
    margin-top: 0;
    padding: 30px 16px;
    border-radius: var(--radius-sm);
  }

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

  .nav-actions .btn-primary {
    display: none; /* Hide header donate button on mobile to fit logo & lang switcher cleanly */
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-text p {
    font-size: 0.68rem;
  }

  .logo-brand img {
    height: 42px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .services-grid,
  .trust-grid,
  .gallery-grid,
  .mv-grid,
  .admission-steps {
    grid-template-columns: 1fr;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}


/* ── Founder / Trustee Card ── */
.founder-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}

.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  flex-shrink: 0;
}

.founder-info h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.founder-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Mission Vision ── */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mv-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.mv-card .mv-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.mv-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.mv-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Donate CTA Strip ── */
.donate-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.donate-cta h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.donate-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  max-width: 520px;
}

.donate-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Gallery Caption ── */
.gallery-item {
  position: relative;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 28px 10px 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

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

/* ── Admission Process ── */
.admission-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.admission-step {
  text-align: center;
  padding: 28px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.admission-step h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.admission-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer Contact Info ── */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.8);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-top: 10px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .donate-cta {
    padding: 36px 24px;
    text-align: center;
    justify-content: center;
  }
  .founder-card {
    flex-direction: column;
    text-align: center;
  }
}
