:root {
  --navy: #0a1628;
  --nav-height: 60px;
  --navy-mid: #122040;
  --sky: #4a9fd4;
  --sky-light: #7ec8e3;
  --sky-pale: #d6eef8;
  --logo-size: 44px;
  --white: #ffffff;
  --off-white: #f4f9fd;
  --accent: #f0a500;
  --text-dark: #0d1f35;
  --text-mid: #3a5068;
  --text-light: #7a9ab5;
  --border: rgba(74, 159, 212, 0.18);
  --shadow: 0 8px 40px rgba(10, 22, 40, 0.13);
}

/* Reset and box-sizing for reliable layout across devices */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--nav-height);
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Sticky footer: body is a flex column so footer is always pushed to the bottom */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Standard Back button for internal pages */
.back-nav {
  margin-bottom: 20px;
}

.back-link,
a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a77b8;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.back-link:hover,
a.back:hover {
  color: var(--sky);
  transform: translateX(-3px);
}

/* Prevent accidental horizontal scroll from large elements */
html,
body {
  overflow-x: hidden;
}

/* Typography: DM Sans for UI/body, Playfair Display for headings */
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.section-title,
.hero-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  margin: 0 0 0.6rem 0;
  line-height: 1.05;
  letter-spacing: 0.4px;
}

.section-title {
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
}

p,
li,
a,
.section-desc {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1rem;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 6vw;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 159, 212, 0.12);
  transition: all 0.3s;
}

nav.scrolled {
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 24px rgba(2, 8, 20, 0.45);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  padding: 0;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 159, 212, 1), rgba(240, 165, 0, 1));
  box-shadow: var(--shadow), 0 6px 18px rgba(2, 8, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-logo:hover .site-logo {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 48px rgba(10, 22, 40, 0.22);
}

/* subtle inner ring for premium badge */
.nav-logo::before {
  display: none;
}

.nav-logo::after {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky-light);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--sky-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-donate {
  background: var(--sky);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-left: 1.2rem;
}

.nav-donate:hover {
  background: var(--sky-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ─── HERO ─── */
#home {
  scroll-margin-top: var(--nav-height);
  min-height: 100vh;
  background-image: url('../assets/images/hero-children-planting.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  /* place hero section below the fixed header */
  margin-top: var(--nav-height);
  padding-top: 0;
  transition: background-position 0.6s ease, background-size 0.6s ease;
}

/* premium overlay for text legibility and depth */
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.1) 40%, rgba(10, 22, 40, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-shapes::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 159, 212, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation: pulse 6s ease-in-out infinite;
}

.hero-bg-shapes::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 227, 0.08) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* floating dots */
.dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(74, 159, 212, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.hero-main-title {
  position: absolute;
  top: 20px; /* position near the top of hero section, clearing the navigation bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(104px, 8vw, 130px); /* prominent size requested by the user */
  font-weight: 900;
  color: #031733; /* rich, deep premium navy blue */
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.55), 0 0 32px rgba(255, 255, 255, 0.35);
  animation: fadeDown 1s ease both;
}

.hero-main-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 80%);
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.42) 45%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0) 100%);
  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

/* Left-aligned Subheading container without background card label overlay */
.hero-sub-box {
  position: absolute;
  top: auto;
  bottom: 25%;
  left: 6%; /* exactly 6% from left edge */
  transform: none;
  z-index: 10;
  width: auto; /* wrap only around text */
  pointer-events: auto;
  animation: fadeRight 1s ease 0.15s both;
}

/* Left-aligned Subheading (Times New Roman, bold, White, comfortable line spacing) */
.hero-sub-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(34px, 2.4vw, 42px); /* standard prominent size requested by the user */
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2; /* 1.2 line spacing */
  text-align: left;
  margin: 0;
  
  /* Text shadow for legibility directly on background image walk-way space */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Add custom animations if missing */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translate(-20px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 767px) {
  .hero-main-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 15px !important;
    left: 50vw !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    text-align: center !important;
    font-size: clamp(36px, 10vw, 48px) !important;
    padding: 0 16px !important;
    color: #031733 !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.55), 0 0 24px rgba(255, 255, 255, 0.35) !important;
    z-index: 10 !important;
    margin: 0 !important;
  }
  
  .hero-main-title::before {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    height: 56px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 90%) !important;
    filter: blur(10px) !important;
    z-index: -1 !important;
    pointer-events: none !important;
  }
  
  .hero-sub-box {
    position: absolute !important;
    top: auto !important;
    bottom: 15px !important;
    left: 6vw !important;
    transform: none !important;
    margin: 0 !important;
    max-width: 90vw !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10 !important;
  }
  
  .hero-sub-title {
    text-align: left !important;
    font-size: clamp(14px, 4.2vw, 20px) !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
    line-height: 1.2 !important;
  }
}

/* Small screens: stack and center both elements */
@media (max-width: 900px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    white-space: normal;
  }

  .hero-kicker {
    position: static;
    transform: none;
    text-align: center;
    width: 100%;
  }

  .hero-inner {
    padding-top: 0.5rem;
  }
}

/* extra small screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }
}

@media (max-width: 1100px) {
  .hero-text {
    padding: 1.6rem 1.4rem;
  }

  .hero-kicker {
    font-size: clamp(1.2rem, 5.5vw, 2.6rem);
  }
}

@media (max-width: 600px) {
  #home {
    padding-top: 20px;
  }

  .hero-inner {
    padding: 0.5rem 4vw 2.5rem;
  }

  .hero-text {
    padding: 1rem 1rem;
    border-radius: 10px;
  }

  .hero-kicker {
    font-size: clamp(1rem, 6.5vw, 1.8rem);
  }
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0.8rem auto 1.6rem auto;
  max-width: 760px;
  text-align: center;
  z-index: 11;
  pointer-events: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  order: 5;
}

/* Adjust visibility for hero elements */
.hero-tag {
  display: inline-flex;
  pointer-events: auto;
}

.hero-cta {
  display: flex;
  pointer-events: auto;
  margin-top: 0.6rem;
}

/* Keep hero text directly over image (no boxed panel) */
.hero-text {
  animation: fadeUp 0.9s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: static;
  z-index: 3;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

/* ensure hero-content children are positioned relative to the hero area */
#home {
  position: relative;
}

/* Desktop: ensure subtitle sits within left third and title around 55-60% from top */
@media (min-width: 901px) {

  /* Desktop: ensure subtitle sits above the title and slightly left-aligned */
  .hero-subtitle {
    left: 50%;
    top: calc(var(--nav-height) + 6px) !important;
    transform: translateX(-50%);
  }

}

/* Tablet: slightly reduce sizes and maintain safe spacing */
@media (max-width: 900px) and (min-width: 601px) {

  /* Tablet: keep subtitle above title, gently reduce sizes */
  .hero-subtitle {
    left: 50%;
    top: calc(var(--nav-height) + 6px) !important;
    font-size: clamp(0.95rem, 2.6vw, 1.4rem);
    width: 86%;
    transform: translateX(-50%);
  }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
  }

  .hero-cta {
    margin-top: 1.2rem;
  }
}

/* Mobile: center content, keep above image subjects and avoid overlap */
@media (max-width: 600px) {

  /* Mobile: center both elements and keep subtitle above the title */
  .hero-subtitle {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -60%);
    top: calc(var(--nav-height) + 8px) !important;
    text-align: center;
    width: 86%;
    font-size: clamp(0.95rem, 4.5vw, 1.25rem);
  }

  .hero-title {
    font-size: clamp(1.8rem, 10vw, 3.2rem);
    white-space: normal;
    padding: 2px 6px;
  }

  .hero-cta {
    position: relative;
    margin-top: 12rem;
  }
}

.btn-primary {
  background: var(--sky);
  color: white;
  padding: 14px 32px;
  border-radius: 40px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(74, 159, 212, 0.4);
}

.btn-primary:hover {
  background: var(--sky-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 159, 212, 0.5);
}

/* Desktop parallax-like effect */
@media (min-width: 1024px) {
  #home {
    background-attachment: fixed;
  }

  .hero-inner {
    padding-top: 6.5rem;
  }
}

/* Tablet adjustments */
@media (max-width: 1199px) and (min-width: 768px) {
  #home {
    min-height: 70vh;
    background-position: center center;
  }
}

.mobile-hero-img {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  #home {
    scroll-margin-top: var(--nav-height) !important;
    background-image: none !important;
    min-height: auto !important;
    height: auto !important;
    position: relative !important;
    display: block !important;
    margin-top: var(--nav-height) !important;
    background-color: var(--navy);
  }

  #home::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0) 50%, rgba(10, 22, 40, 0.6) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  .mobile-hero-img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
    z-index: 1 !important;
  }
}

@media (max-width: 767px) {
  #home {
    padding-top: 0 !important;
  }
  #home::before {
    top: 0 !important;
    height: 100% !important;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    padding: 1rem 4vw 3rem !important;
    width: 100%;
  }

  .dots {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4.5rem);
  }

  .section-label,
  .section-title,
  .divider {
    margin-left: 12px;
  }

  .hero-content,
  .hero-text,
  .hero-caption,
  .banner-content,
  .banner-text,
  .slide-content {
    padding-left: 8px !important;
    margin-left: 0 !important;
  }
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SECTIONS COMMON ─── */
.section {
  padding: 100px 6vw;
}

/* UPDATES grid: horizontal scrolling on desktop, carousel behavior on mobile */
.updates-carousel {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  /* fixed height to avoid layout shift; tuned to match card height */
  height: 360px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 420ms cubic-bezier(.22, .9, .33, 1);
  will-change: transform;
  height: 100%;
}

/* scrollbar for desktop slides (hidden on mobile) */
.carousel-viewport::-webkit-scrollbar {
  height: 10px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(74, 159, 212, 0.28);
  border-radius: 999px;
}

/* Each slide is a full viewport page. Cards inside the slide divide space exactly. */
.slide {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
  height: 100%;
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 100%;
}

.slide .update-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.06);
  display: flex;
  flex-direction: column;
}

.slide .update-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px
}

.carousel-arrow {
  background: rgba(10, 22, 40, 0.06);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 220ms, background 220ms;
}

.carousel-arrow:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--sky);
  color: white
}

.carousel-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.12);
  border: none;
  padding: 0;
  cursor: pointer
}

.carousel-dot[aria-current="true"] {
  background: var(--sky);
  box-shadow: 0 6px 18px rgba(74, 159, 212, 0.22)
}

/* Responsive: cards per slide change but section height remains fixed */
@media (min-width: 1100px) {

  /* desktop: 3 cards */
  .slide .update-card {
    flex: 0 0 calc((100% - 3.2rem) / 3);
    min-height: 320px
  }

  .carousel-viewport {
    height: 360px
  }
}

@media (min-width: 760px) and (max-width: 1099px) {

  /* tablet: 2 cards */
  .slide .update-card {
    flex: 0 0 calc((100% - 1.6rem) / 2);
    min-height: 300px
  }

  .carousel-viewport {
    height: 340px
  }
}

@media (max-width: 759px) {

  /* mobile: 1 card */
  .slide .update-card {
    flex: 0 0 100%;
    min-height: 280px
  }

  .carousel-viewport {
    height: 320px
  }

  .carousel-controls {
    margin-top: 10px
  }
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.7rem;
}

/* hero-title positioning consolidated above — no duplicate needed */
.divider {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  margin: 1.2rem 0 2.5rem;
}

/* ─── ABOUT ─── */
#about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  /* overflow: hidden; removed so badge isn't cut off */
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  box-shadow: var(--shadow);
  /* Ensure the entire image is visible (no cropping) and aligned */
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 320px;
}

.about-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* Make the about image more flexible on narrow screens */
@media (max-width: 900px) {
  .about-img-wrap {
    aspect-ratio: 16/9;
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .about-img-wrap {
    aspect-ratio: auto;
    height: auto;
    min-height: 200px;
  }
}

.about-img-wrap .about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 3.5rem;
  gap: 1rem;
}

.about-img-wrap .about-placeholder p {
  font-size: 0.9rem;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 50%;
  width: 85px;
  height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 16px rgba(240, 165, 0, 0.3);
  padding: 4px;
}

.about-badge strong {
  font-size: 1.1rem;
}

/* ─── STATS BAND ─── */
/* ─── OUR WORK ─── */
.about-content .pillars {
  display: none;
}

.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2a4a 100%);
  padding: 40px 6vw;
  /* reduced vertical padding for tighter section */
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-num {
  /* Premium display: elegant serif with gradient fill and accent underline */
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: lining-nums tabular-nums;
  -moz-font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
  /* gradient text */
  background: linear-gradient(90deg, #ffffff 0%, rgba(126, 200, 227, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 18px rgba(10, 22, 40, 0.22);
  position: relative;
  padding-bottom: 10px;
}

.stat-num::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 46%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  box-shadow: 0 6px 18px rgba(74, 159, 212, 0.18);
  opacity: 0.95;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 6px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(74, 159, 212, 0.15);
}

#work {
  background: var(--white);
}

.work-tabs {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  color: var(--text-dark);
  text-decoration: none; /* remove link underlines */
  transition: all 300ms ease; /* smooth 300ms transitions */
  box-shadow: 0 2px 14px rgba(10, 22, 40, 0.06);
  padding: 0;
  text-align: left;
  width: 23%;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  position: relative; /* relative anchor for circular arrow indicator */
  
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tab-btn:hover {
  border-color: var(--sky);
  transform: scale(1.04); /* slightly scale the card 1.03-1.05 */
  box-shadow: 0 16px 38px rgba(10, 22, 40, 0.16); /* slightly increased shadow */
  cursor: pointer;
}

/* Keyboard focus indicators for accessibility */
.tab-btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

/* Elegant Option A Interactive Indicator: top-right circular arrow → on hover */
.tab-btn::after {
  content: '→';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(10, 22, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8) translate(4px, -4px);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.tab-btn:hover::after {
  opacity: 1;
  transform: scale(1) translate(0, 0);
}

.tab-photo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

/* Media area inside each widget for images */
.tab-img {
  height: 240px;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  position: relative;
}

.tab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
}

/* widget cards use card background (image/gradient) directly */
.tab-btn {
  background-size: cover;
  background-position: center;
  color: white;
}

.widget-head {
  background: rgba(0, 0, 0, 0.18);
}

.widget-head h3 {
  color: #ffffff;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.tab-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.tab-photo span {
  position: relative;
  z-index: 1;
}

.tab-photo.education {
  background: linear-gradient(135deg, #102542 0%, #4a9fd4 100%);
}

.tab-photo.healthcare {
  background: linear-gradient(135deg, #11352f 0%, #57b99d 100%);
}

.tab-photo.community {
  background: linear-gradient(135deg, #2b2454 0%, #8b72d8 100%);
}

.tab-photo.environment {
  background: linear-gradient(135deg, #1e3b24 0%, #85c95f 100%);
}

.tab-content {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-end;
  background: transparent;
  border-radius: 0 0 18px 18px;
  flex: 1 1 auto;
  color: white;
}

.tab-btn:not(.active) .tab-content {
  display: none;
}

.tab-footer {
  width: 100%;
  background: white;
  color: var(--navy);
  border-radius: 0 0 18px 18px;
  padding: 14px 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.tab-footer .learn-more {
  color: var(--sky);
  font-weight: 700;
}

.tab-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Widget header block (gradient + icon) */
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
  border-radius: 14px 14px 0 0;
  color: white;
}

.widget-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.22);
  flex-shrink: 0;
}

.widget-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
  opacity: 0.98;
}

/* numeric badge removed — simplified header */
.widget-head h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(2, 8, 20, 0.6);
}

.education-head {
  background: linear-gradient(135deg, #102542 0%, #4a9fd4 100%);
}

.healthcare-head {
  background: linear-gradient(135deg, #11352f 0%, #57b99d 100%);
}

.community-head {
  background: linear-gradient(135deg, #2b2454 0%, #8b72d8 100%);
}

.environment-head {
  background: linear-gradient(135deg, #1e3b24 0%, #85c95f 100%);
}

/* When card uses an image background, make header overlay translucent so image shows through */
.widget-head.education-head,
.widget-head.healthcare-head,
.widget-head.community-head,
.widget-head.environment-head {
  background: rgba(0, 0, 0, 0.28) !important;
}

.tab-content p {
  color: var(--text-mid);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
  font-style: italic;
}

.learn-more {
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tab-btn.active .learn-more {
  color: var(--navy);
}

.work-panel {
  display: none;
}

.work-panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}


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

.work-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: default;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.05);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
  border-color: var(--sky);
}

.work-card-head {
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.work-card-head::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(74, 159, 212, 0.15);
}

.work-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.work-card-head h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
}

.work-card-body {
  padding: 1.5rem 2rem;
}

.work-card-body p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.75;
  font-style: italic;
}

.update-body p {
  font-style: italic;
  color: var(--text-mid);
}

/* ─── UPDATES ─── */
#updates {
  background: var(--off-white);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.update-card {
  background: white;
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(10, 22, 40, 0.08);
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.update-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.update-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-mid), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.update-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, var(--navy-mid), var(--sky));
  transition: transform 0.35s ease;
}

.update-card:hover .update-img img {
  transform: scale(1.04);
}

.update-body {
  padding: 1.5rem;
}

.update-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.update-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.update-body p {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.update-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

.update-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.read-more {
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.news-skeleton {
  min-height: 360px;
  border-radius: 22px;
  background: linear-gradient(90deg, #eaf3fa, #fff, #eaf3fa);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
  border: 1px solid var(--border);
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

/* ─── CONTACT ─── */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

/* Info Cards styling */
.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(74, 159, 212, 0.12);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.03);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 22, 40, 0.08);
  border-color: var(--sky-light);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(74, 159, 212, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--sky);
  color: var(--white);
}

.contact-item-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item-text span {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

.socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
}

.social-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-3px);
}

/* Form Card styling */
.contact-form {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(74, 159, 212, 0.12);
  box-shadow: 0 15px 35px rgba(10, 22, 40, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 52px;
  padding: 12px 18px;
  border: 1.5px solid rgba(74, 159, 212, 0.18);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #f8fafc;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select {
  padding-right: 32px;
}

.form-group textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 159, 212, 0.12);
  transform: translateY(-1px);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12) !important;
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5d7b97; /* High contrast slate blue */
  opacity: 0.85;
}

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.15);
  margin-top: 1.5rem;
}

.btn-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.25);
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 159, 212, 0.4), 0 4px 12px rgba(10, 22, 40, 0.15);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 2.25rem;
  }
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 1.75rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
  }
}

/* ─── DONATE ─── */
#donate {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2a4a 100%);
  padding: 100px 6vw;
  text-align: center;
}

.donate-inner {
  max-width: 680px;
  margin: 0 auto;
}

#donate .section-title {
  color: white;
}

#donate .section-desc {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 3rem;
}

.qr-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(74, 159, 212, 0.2);
  border-radius: 24px;
  padding: 3.5rem;
  margin: 0 auto;
  max-width: 760px;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.qr-placeholder {
  /* legacy wrapper kept for backwards compatibility */
  display: block;
  margin: 0;
}

.qr-image-wrap {
  background: white;
  padding: 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.22);
  justify-self: center;
  overflow: hidden;
  flex-direction: column;
}

.qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: white;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.12);
}

.qr-image-wrap .qr-caption {
  margin-top: 12px;
  text-align: center;
  line-height: 1.1;
}

.qr-image-wrap .qr-caption .upi {
  display: inline-block;
  background: white;
  color: var(--navy);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(10, 22, 40, 0.08);
}

.qr-image-wrap .qr-caption .scantext {
  display: block;
  color: rgba(10, 22, 40, 0.6);
  margin-top: 8px;
  font-size: 0.9rem;
}

.donate-info {
  color: rgba(255, 255, 255, 0.95);
}

.donate-info .bank-details p {
  color: rgba(255, 255, 255, 0.8);
}

.donate-info .bank-details strong {
  color: white;
}

.bank-details {
  text-align: left;
  margin-top: 1.5rem;
}

.bank-details p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.bank-details strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ─── FOOTER ─── */
footer {
  background: #070f1d;
  padding: 50px 6vw 30px;
  border-top: 1px solid rgba(74, 159, 212, 0.1);
  flex-shrink: 0; /* prevent footer from collapsing in flex-column body */
  margin-top: auto; /* push footer to bottom when content is short */
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-brand .logo span {
  color: white;
  /* make KAITHANG single color in footer */
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 500px;
}

/* Navigate column — centered heading and links */
.footer-col:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col:nth-child(2) ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Follow Us column — centered heading and icons */
.footer-col:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  margin-top: 0;
}

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

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 0.5rem;
}

.footer-socials a {
  color: var(--sky);
  display: inline-flex;
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--sky-light);
  transform: scale(1.15);
}

/* Hide social icons whose URL has not been set in Admin Settings */
.footer-socials a[href=""] {
  display: none;
}

.follow-note {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 260px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .hero-inner {
    padding-top: 2rem;
  }

  /* Reduce section padding on smaller screens for better fit */
  .section {
    padding: 48px 5vw;
  }

  /* Keep original colors but increase contrast via shadow and subtle stroke */
  .hero-kicker {
    color: var(--sky-light);
    /* original color preserved */
    font-weight: 800;
    text-shadow: 0 8px 26px rgba(2, 8, 20, 0.6);
    -webkit-text-stroke: 0.4px rgba(2, 8, 20, 0.06);
  }

  .hero-description {
    color: rgba(255, 255, 255, 0.65);
    /* original color preserved */
    text-shadow: 0 8px 24px rgba(2, 8, 20, 0.45);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .work-tabs {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .tab-btn {
    width: calc(50% - 0.5rem);
  }



  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    align-items: center;
    text-align: center;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  /* Slightly reduce stat numbers on narrow viewports for balance */
  .stat-num {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

}



/* Tablet (max-width: 900px) overrides */
@media (max-width: 900px) {
  .hamburger {
    display: flex !important;
    margin-left: 1rem;
  }
  
  .nav-links {
    display: none !important;
  }
}

/* Mobile (max-width: 699px) overrides */
@media (max-width: 699px) {
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(74, 159, 212, 0.15);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .qr-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .qr-image-wrap {
    margin: 0 auto 1rem;
  }
}


@media (max-width: 767px) {
  .work-tabs {
    flex-direction: column;
    gap: 1rem;
  }

  .tab-btn {
    width: 100%;
  }

  .widget-head {
    padding: 14px;
    gap: 10px;
  }

  .widget-icon {
    width: 48px;
    height: 48px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo {
    --logo-size: 44px;
    width: var(--logo-size);
    height: var(--logo-size);
  }

  .site-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    border-radius: 50%;
    image-rendering: auto;
    object-fit: contain;
  }

  /* place donate button left of the hamburger on mobile and give a premium look */
  /* nav must stay position:fixed — do NOT override to relative */

  .nav-donate {
    position: absolute;
    right: 72px;
    /* donate appears before hamburger */
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding: 9px 18px;
    font-size: 0.9rem;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(74, 159, 212, 0.28);
    background: linear-gradient(90deg, var(--sky), var(--sky-light));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1101;
  }

  .hamburger {
    position: absolute;
    right: 16px;
    /* hamburger sits to the right of donate */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2, 8, 20, 0.35);
    z-index: 1100;
  }

  .hamburger span {
    background: white;
    height: 2px;
    width: 18px;
  }

  /* tighten space on very small screens */
  @media (max-width: 420px) {
    .nav-donate {
      right: 64px;
      padding: 8px 14px;
      font-size: 0.84rem;
    }

    .hamburger {
      right: 12px;
      padding: 7px 9px;
    }

    .mobile-nav {
      width: 300px;
    }
  }
}

/* Mobile nav drawer (right-side) */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  left: auto;
  z-index: 999;
  background: var(--navy);
  border-left: 1px solid rgba(74, 159, 212, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  width: 320px;
  max-width: 90%;
  height: calc(100% - var(--nav-height));
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: -8px 0 30px rgba(2, 8, 20, 0.4);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
  display: flex;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.15s;
}

.mobile-nav a:hover {
  color: var(--sky-light);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--sky);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Final mobile overrides to ensure header and widgets render correctly */
@media (max-width: 767px) {
  nav {
    justify-content: space-between;
    padding: 0 4vw !important;
  }

  .nav-links {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .hamburger,
  #hamburger {
    display: flex !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1100 !important;
  }

  .nav-logo {
    margin-right: auto;
    width: var(--logo-size);
    height: var(--logo-size);
    padding: 0;
  }

  .nav-donate {
    position: absolute !important;
    right: 64px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1101 !important;
    display: inline-block !important;
  }

  /* Widgets: full-width, centered, premium spacing */
  .work-tabs {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 0 1rem !important;
    justify-content: center !important;
  }

  .tab-btn {
    width: 100% !important;
    max-width: 420px !important;
    box-shadow: 0 10px 30px rgba(2, 8, 20, 0.12) !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
    min-width: 0 !important;
  }

  .tab-btn .widget-head {
    justify-content: flex-start;
    padding: 12px !important;
  }

  .tab-btn .tab-content {
    padding: 12px 16px !important;
  }

  .tab-photo {
    height: 220px !important;
  }

  /* Ensure hero content scales and doesn't create overflow */
  .hero-inner {
    max-width: 100%;
    padding: 0 4vw !important;
  }

  .site-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 50% !important;
    image-rendering: auto !important;
    object-fit: contain !important;
  }
}


.image-missing-banner {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff7a7a, #ffb27a);
  color: #061227;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 1100;
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.12);
  font-weight: 700;
  display: none;
}

.image-missing-banner.show {
  display: block;
}

/* ─── FOUNDER SECTION ─── */
#founder {
  background: var(--white);
  padding: 5rem 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.founder-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto;
  width: 100%;
}

.founder-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.founder-content {
  text-align: left;
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-img-wrap {
    max-width: 380px;
  }

  .founder-content {
    text-align: center;
  }

  .founder-title {
    font-size: 2.2rem;
  }
}

.founder-quote-icon {
  font-size: 6rem;
  line-height: 1;
  color: var(--sky);
  font-family: Georgia, serif;
  margin-bottom: -2rem;
  display: inline-block;
}

.founder-label {
  color: var(--sky);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.founder-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--navy);
}

.founder-desc {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 1.05rem;
}

.founder-signature {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  margin-top: 2rem;
  color: var(--text-dark);
}

/* =========================================================
   PREMIUM MOBILE TYPOGRAPHY & BREATHING SPACE (<768px)
   ========================================================= */
@media (max-width: 767px) {
  /* 1. Universal Section & Container Horizontal Padding (20px-24px) */
  .section {
    padding: 44px 22px;
  }

  /* 2. Text Containers Comfortable Max-Width & Centering */
  .founder-content,
  .about-content,
  .gallery-text,
  .news-content,
  .news-rich,
  .section-body,
  .donate-inner {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* 3. Founder Message Section Centering & Premium Hierarchy */
  .founder-content {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
  }

  .founder-img-wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }

  .founder-quote-icon {
    display: block;
    margin: 0 auto -1.25rem auto;
    text-align: center;
  }

  .founder-label {
    display: block;
    text-align: center;
    margin: 0 auto 0.5rem auto;
  }

  .founder-title {
    text-align: center;
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    line-height: 1.25;
    margin: 0 auto 1.2rem auto;
  }

  .founder-desc {
    text-align: center;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .founder-desc p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
    color: var(--text-mid);
    margin-bottom: 1.25rem;
  }

  .founder-signature {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 1.8rem;
  }

  /* 4. Shared Paragraph Readability Across All Text Sections */
  .about-content p,
  .gallery-text p,
  .section p,
  .news-rich p,
  .donate-inner p,
  .section-body p {
    line-height: 1.85;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}



/* ─── GLOBAL MOBILE GALLERY ARROW HIDE (<768px) ─── */
@media (max-width: 767px) {
  .gallery-nav,
  .gallery-nav.prev,
  .gallery-nav.next,
  .carousel-arrow,
  .carousel-prev,
  .carousel-next {
    display: none !important;
  }
}