@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1A6B2F;   /* Royal Blue Ã¢â‚¬â€ from logo book/figure */
  --secondary-color: #1A6B2F; /* Forest Green Ã¢â‚¬â€ from logo gear/text */
  --accent-color: #C59836;    /* Saffron Orange Ã¢â‚¬â€ from DHARTIPUTRA text */
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-light: #000000;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 48, 130, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Text Selection Highlight */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}
::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* =============================================
   HINDI TRANSLATION FIX
   Fixes broken letter joining (shirorekha) in Devanagari script
   when Google Translate is active or lang="hi" is set.
   ============================================= */
html.translated-ltr *, 
html[lang="hi"] *, 
body.translated-ltr *,
.translated-ltr {
  letter-spacing: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Disable Google Translate tooltips and highlight */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}
body {
  top: 0 !important;
}

body {
  font-family: 'Outfit', 'Aparajita', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =============================================
   PREMIUM NAVBAR STYLES
   ============================================= */

/* Base Header Ã¢â‚¬â€ White Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid rgba(0, 48, 130, 0.08);
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 20px rgba(0, 48, 130, 0.08);
}

/* Scrolled State Ã¢â‚¬â€ crisp white glass */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 48, 130, 0.12), 0 0 0 1px rgba(0, 48, 130, 0.06);
  padding: 0;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease, opacity 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 3px 14px rgba(0,48,130,0.18));
}

.logo:hover .logo-img {
  transform: scale(1.06);
  opacity: 0.9;
}

/* ---- NAV LINKS ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
  padding: 8px 13px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #1A6B2F, #1A6B2F);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item:hover {
  color: #1A6B2F;
  background: rgba(0, 48, 130, 0.06);
}

.nav-item:hover::after {
  width: calc(100% - 26px);
}

/* Active page highlight */
.nav-item.active {
  color: #1A6B2F;
  background: rgba(0, 48, 130, 0.07);
}

.nav-item.active::after {
  width: calc(100% - 26px);
}

/* ---- DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
  margin-left: 2px;
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #ffffff;
  border: 1px solid rgba(0, 48, 130, 0.12);
  border-radius: 14px;
  padding: 8px;
  min-width: 190px;
  box-shadow: 0 20px 50px rgba(0, 48, 130, 0.12), 0 4px 12px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Dropdown arrow tip */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0, 48, 130, 0.15);
}

/* Invisible bridge to keep hover state active */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 9px;
  color: #000000;
  font-size: 0.87rem;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  color: #1A6B2F;
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(0, 48, 130, 0.07);
  color: #1A6B2F;
  padding-left: 20px;
}

.dropdown-item:hover i {
  transform: scale(1.2);
  color: #C59836;
}

/* ---- LANG TOGGLE BUTTON ---- */
.btn-lang-toggle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1A6B2F;
  padding: 6px 13px;
  border: 1.5px solid rgba(26, 107, 47, 0.4);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 4px;
}

.btn-lang-toggle:hover {
  border-color: #1A6B2F;
  color: #fff;
  background: #1A6B2F;
}

/* ---- DONATE BUTTON ---- */
.btn-donate {
  position: relative;
  background: linear-gradient(135deg, #C59836 0%, #e07b10 100%);
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(197, 152, 54, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  overflow: hidden;
  margin-left: 8px;
}

.btn-donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffac42 0%, #C59836 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.btn-donate:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(197, 152, 54, 0.5);
}

.btn-donate:hover::before {
  opacity: 1;
}

.btn-donate i,
.btn-donate span {
  position: relative;
  z-index: 1;
}

.btn-donate::after {
  display: none;
}

/* Heartbeat animation on donate button icon */
.btn-donate i {
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  transition: background 0.3s ease;
  z-index: 1100;
}

.hamburger:hover {
  background: rgba(0, 48, 130, 0.08);
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: #1A6B2F;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---- MOBILE OVERLAY ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .header-container {
    height: 80px;
    padding: 0 20px;
  }
  .logo-img {
    height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: all;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 25px 40px;
    gap: 4px;
    box-shadow: -6px 0 30px rgba(0, 48, 130, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 10px;
    color: #000000;
  }

  .nav-item::after {
    display: none;
  }

  /* Mobile dropdown */
  .nav-dropdown {
    width: 100%;
    position: static;
  }

  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* CRITICAL: Override ALL desktop dropdown styles for mobile */
  .dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    pointer-events: all !important;
    background: rgba(0, 48, 130, 0.05);
    border: 1px solid rgba(0, 48, 130, 0.12);
    border-radius: 10px;
    margin-top: 6px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-width: unset;
    padding: 4px 0;
    display: none;
    overflow: hidden;
  }

  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu {
    display: block !important;
    transform: none !important;
  }

  /* Sub-items: full width, properly aligned */
  .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #1A6B2F;
    border-bottom: 1px solid rgba(0, 48, 130, 0.07);
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item:hover,
  .dropdown-item:active {
    background: rgba(0, 48, 130, 0.08);
    color: #C59836;
  }

  .dropdown-item i {
    color: #C59836;
    width: 18px;
    flex-shrink: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .btn-lang-toggle {
    margin-top: 10px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .btn-donate {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
    padding: 13px 22px;
    font-size: 1rem;
  }
}

/* ============================================
   EXTRA SMALL SCREENS (< 400px)
   ============================================ */
@media (max-width: 400px) {
  .nav-links {
    width: 100%;
    right: -100%;
    padding: 80px 18px 40px;
  }
  .nav-item {
    font-size: 0.95rem;
    padding: 11px 12px;
  }
  .dropdown-item {
    padding: 11px 15px;
    font-size: 0.88rem;
  }
  .btn-donate {
    font-size: 0.92rem;
    padding: 12px 18px;
  }
}

.site-footer {
  background: linear-gradient(160deg, #002270 0%, #1A6B2F 50%, #003d1a 100%);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center top;
  background-size: cover;
  background-color: #000;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 6s linear;
  transform: scale(1.05); /* Slight scale for Ken Burns effect */
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}
.slider-nav:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #C59836, #e07b10);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(197, 152, 54, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(197, 152, 54, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.align-center { align-items: center; }

/* Mission & Vision Cards */
.mv-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.mv-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.mv-card .icon-wrapper {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: rgba(0, 48, 130, 0.08);
  color: var(--primary-color);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.mv-card h2 { color: var(--primary-color); margin-bottom: 15px; }

/* Core Values */
.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.value-card i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.value-card h3 { color: var(--primary-color); margin-bottom: 10px; }

/* Team Section */
.team-filters { margin-bottom: 40px; }
.filter-btn {
  background: transparent; border: 2px solid var(--primary-color);
  color: var(--primary-color); padding: 8px 20px; border-radius: 50px;
  margin: 0 5px; cursor: pointer; font-weight: 700; font-family: inherit;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: var(--white); }

.team-card {
  background: var(--white); border-radius: 15px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
  transition: all 0.3s ease;
}

.team-img img, .team-img .placeholder-img {
  width: 100%; height: 280px; object-fit: contain; background: #fafafa; padding-top: 15px;
}
.team-img .placeholder-img {
  background: #eee; display: flex; align-items: center; justify-content: center; font-size: 50px; color: #ccc;
}
.team-info { padding: 25px; }
.team-info h3 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 5px; }
.team-info .role { display: block; color: var(--accent-color); font-weight: 600; margin-bottom: 15px; font-size: 0.9rem; }
.team-info .bio { color: var(--text-light); font-size: 0.9rem; }

/* Legal & Transparency */
.registration-list { margin: 20px 0; }
.registration-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: flex-start; gap: 10px; }
.registration-list li i { color: #2ecc71; margin-top: 5px; }

/* Partners */
.partners-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; margin-top: 30px;
}
.partner-logo img {
  max-width: 150px; filter: grayscale(100%); opacity: 0.6; transition: var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

@media (max-width: 768px) {
}
.team-info { padding: 25px; }
.team-info h3 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 5px; }
.team-info .role { display: block; color: var(--accent-color); font-weight: 600; margin-bottom: 15px; font-size: 0.9rem; }
.team-info .bio { color: var(--text-light); font-size: 0.9rem; }

/* Legal & Transparency */
.registration-list { margin: 20px 0; }
.registration-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: flex-start; gap: 10px; }
.registration-list li i { color: #2ecc71; margin-top: 5px; }

/* Partners */
.partners-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; margin-top: 30px;
}
.partner-logo img {
  max-width: 150px; filter: grayscale(100%); opacity: 0.6; transition: var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

@media (max-width: 768px) {
  .page-banner { padding: 120px 20px 60px; }
  .page-banner h1 { font-size: 2.2rem; }
  .filter-btn { margin-bottom: 10px; }
}

/* Impact Counter */
.stat-card {
  background: var(--white);
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-10px); }
.stat-card i { font-size: 50px; color: var(--accent-color); margin-bottom: 20px; }
.stat-card h3 { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; }
.stat-card p { color: var(--text-light); font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Programme Card */
.programme-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.programme-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.prog-img { position: relative; }
.prog-img img { width: 100%; height: 250px; object-fit: cover; display: block; }
.prog-badge {
  position: absolute; top: 15px; right: 15px;
  background: var(--accent-color); color: white;
  padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}

/* =============================================
   PARTNER LOGOS LOOP (MARQUEE)
   ============================================= */
.partners-section {
    padding: 40px 0;
    background: #fef8f2;
    border-top: 1px solid rgba(197, 152, 54, 0.15);
    border-bottom: 1px solid rgba(197, 152, 54, 0.15);
    overflow: hidden;
    width: 100%;
}

.logoloop {
    position: relative;
    --logoloop-gap: 60px;
    --logoloop-logoHeight: 70px;
    --logoloop-fadeColorAuto: #f8faff;
    width: 100%;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    /* Keep fade white since background is always white */
    .logoloop {
        --logoloop-fadeColorAuto: #ffffff;
    }
}

.logoloop__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 0;
}

.logoloop__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap);
    font-size: var(--logoloop-logoHeight);
    line-height: 1;
    list-style: none;
}

.logoloop__item:last-child {
    margin-right: var(--logoloop-gap);
}

.logoloop__item img {
    height: var(--logoloop-logoHeight);
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    -webkit-user-drag: none;
    pointer-events: none;
    mix-blend-mode: multiply;        /* removes white background of JPEGs */
    filter: grayscale(20%) opacity(0.85);
    transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) opacity(1);
}

.logoloop--fade::before,
.logoloop--fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(50px, 15%, 200px);
    pointer-events: none;
    z-index: 10;
}

.logoloop--fade::before {
    left: 0;
    background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.logoloop--fade::after {
    right: 0;
    background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .logoloop__track { transform: translate3d(0, 0, 0) !important; }
    .logoloop__item img { transition: none !important; }
}

/* =============================================
   PREMIUM HERO COMPONENT
   ============================================= */
.premium-hero {
    position: relative;
    width: 100%;
    min-height: 40vh;
    margin-top: 90px; /* navbar height */
    background: linear-gradient(135deg, rgba(10,40,20,0.92), rgba(26,107,47,0.85)), url('../../image/gallery3.png') center/cover no-repeat !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.premium-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.premium-hero-eyebrow {
    color: #C59836;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.premium-hero-title, .premium-hero h1 {
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif; 
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.1;
}

.premium-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =============================================
   GLOBAL RESPONSIVE â€” MAIN WEBSITE
   ============================================= */

/* Sections general padding */
section, .section {
    padding-left: 20px;
    padding-right: 20px;
}

/* ---- Tablet (â‰¤ 900px) ---- */
@media (max-width: 900px) {
    .header-container {
        height: 75px;
        padding: 0 18px;
    }
    .logo-img { height: 55px; }

    /* Hero */
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p  { font-size: 1rem; }
    .hero-buttons    { flex-direction: column; align-items: center; gap: 14px; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; justify-content: center; }

    /* Slider nav buttons */
    .slider-nav.prev { left: 12px; }
    .slider-nav.next { right: 12px; }
    .slider-nav { width: 38px; height: 38px; font-size: 1rem; }

    /* Section headers */
    .section-header h2 { font-size: 1.9rem; }
    .section-header p  { font-size: 1rem; }

    /* Grids */
    .grid-2 { grid-template-columns: 1fr; gap: 24px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Impact stats */
    .stat-card h3 { font-size: 2.2rem; }

    /* Premium hero */
    .premium-hero { margin-top: 75px; }
    .premium-hero-title, .premium-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

    /* Footer */
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---- Mobile (â‰¤ 600px) ---- */
@media (max-width: 600px) {
    .header-container {
        height: 68px;
        padding: 0 14px;
    }
    .logo-img { height: 48px; }

    /* Hero */
    .hero { min-height: 75vh; }
    .hero-content h1  { font-size: 1.85rem; line-height: 1.25; }
    .hero-content p   { font-size: 0.93rem; margin-bottom: 28px; }
    .hero-buttons     { gap: 12px; }
    .slider-nav       { display: none; } /* hide arrows on very small screens */

    /* Section headers */
    .section-header h2 { font-size: 1.6rem; }
    .section-header p  { font-size: 0.93rem; }

    /* Grid */
    .grid-4 { grid-template-columns: 1fr; }

    /* Stat cards */
    .stat-card { padding: 28px 16px; }
    .stat-card h3   { font-size: 1.9rem; }
    .stat-card i    { font-size: 2.5rem; }

    /* Programme cards */
    .programme-card { border-radius: 10px; }
    .prog-img img   { height: 200px; }

    /* Team cards */
    .team-img img, .team-img .placeholder-img { height: 220px; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .site-footer { padding: 50px 0 16px; }

    /* Premium hero */
    .premium-hero { padding: 50px 16px; margin-top: 68px; min-height: 32vh; }
    .premium-hero-title, .premium-hero h1 { font-size: 2rem; }
    .premium-hero-eyebrow { font-size: 0.75rem; letter-spacing: 2px; }

    /* Page banners */
    .page-banner h1 { font-size: 1.8rem !important; }

    /* Containers */
    .container { padding: 0 16px; }

    /* Contact/Form sections */
    .contact-grid, .form-section { grid-template-columns: 1fr !important; }

    /* Gallery */
    .gallery-grid-public { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* ---- Extra small phones (â‰¤ 380px) ---- */
@media (max-width: 380px) {
    .hero-content h1  { font-size: 1.55rem; }
    .section-header h2 { font-size: 1.4rem; }
    .stat-card h3     { font-size: 1.7rem; }
    .gallery-grid-public { grid-template-columns: 1fr !important; }
    .logo-img { height: 42px; }
}

/* ---- Utility: prevent horizontal overflow on body ---- */
html, body {
    overflow-x: hidden;
}

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


/* Programs Dropdown Extras */
.dropdown-menu-wide { min-width: 270px; }
.dropdown-group-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #1A6B2F; padding: 10px 16px 6px; display: flex; align-items: center; gap: 8px; }
.dropdown-group-label i { color: #C59836; font-size: 0.85rem; }
.dropdown-divider { height: 1px; background: rgba(26,107,47,0.12); margin: 6px 12px; }
.premium-hero-title, .premium-hero h1 { font-family: 'Outfit', sans-serif !important; font-weight: 800 !important; }
