﻿:root {
  --red: #e53935;
  --blue: #283a8f;
  --ink: #1b1c20;
  --muted: #5b5f6b;
  --sand: #f7f4ef;
  --peach: #fbe9e0;
  --card: #ffffff;
  --shadow: 0 20px 40px rgba(20, 24, 40, 0.12);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 220ms;
  --motion-medium: 420ms;
  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 18px 34px rgba(20, 24, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Playpen Sans Deva", "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 100% 90%, rgba(185, 220, 255, 0.24) 0%, rgba(185, 220, 255, 0) 42%),
    linear-gradient(180deg, #fff9f3 0%, #f3f8ff 52%, #f5fbf8 100%);
  line-height: 1.7;
}

.gallery-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(140deg, rgba(228, 243, 255, 0.76), rgba(255, 236, 214, 0.74));
  backdrop-filter: blur(2px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-loader-inner {
  min-width: min(320px, 90%);
  padding: 16px 20px;
  border-radius: 10px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.gallery-loader-inner p {
  margin: 0;
  color: var(--blue);
  font-weight: 600;
}

.loader-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(40, 58, 143, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  transition: box-shadow var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}

body.scrolled .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86));
  box-shadow: 0 12px 28px rgba(19, 24, 43, 0.12);
}

.header-top {
  background: linear-gradient(110deg, rgba(40, 58, 143, 0.92), rgba(69, 96, 201, 0.84));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.84rem;
  font-weight: 500;
}

.header-top-inner p {
  margin: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

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

.brand img {
  width: 48px;
  height: 48px;
}

.brand-title {
  font-family: "Playpen Sans Deva", "Noto Sans Devanagari", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--blue);
}

.brand-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: #2a2d38;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url("assets/gallery/Z2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
}

.hero-bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 900ms var(--motion-ease);
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(24, 30, 70, 0.72), rgba(227, 57, 53, 0.28)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 60%);
  animation: hero-glow 7s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from {
    opacity: 0.86;
  }

  to {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 80px 0 90px;
  align-items: center;
}

.kicker {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  font-family: "Playpen Sans Deva", "Noto Sans Devanagari", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.5;
  margin: 0 0 16px;
  white-space: nowrap;
}

.hero-lead {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b64 0%, #e53935 55%, #c72e2a 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(227, 57, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
  color: #fff;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-cards {
  display: grid;
  gap: 16px;
}

.info-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.info-card p{
  margin-bottom:0px;
  margin-top:0px;
  line-height: 1.5;
}


.info-card--split {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  position: relative;
}

.info-card--split::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(40, 58, 143, 0.12);
}

.info-card--split > div {
  padding-right: 18px;
}

.info-card--split > div:last-child {
  padding-right: 0;
  padding-left:0px;
}

.info-title {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.section {
  position: relative;
  padding: 70px 0;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.42));
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 88% 100%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 44%);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.82), rgba(237, 246, 255, 0.74));
}

#donations {
  background: linear-gradient(180deg, #e7f3ff 0%, #dbeaff 100%);
}

#about {
  background: linear-gradient(180deg, #fff9f2 0%, #ffefde 100%);
}

#programs {
  background: linear-gradient(180deg, #f2fbf7 0%, #e7f5ec 100%);
}

#gallery {
  background: linear-gradient(180deg, #fff6ee 0%, #ffe9d6 100%);
}

#contact {
  background: linear-gradient(180deg, #f2f9ff 0%, #e5f1ff 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.section-title h2 {
  font-family: "Playpen Sans Deva", "Noto Sans Devanagari", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 6px;
  color: var(--blue);
}

.section-title p {
  margin: 0 0 28px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trustees-wrapper {
  margin-top: 36px;
}

.trustees-wrapper .section-title h3 {
  font-family: "Playpen Sans Deva", "Noto Sans Devanagari", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 0 0 6px;
  color: var(--blue);
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.program-list li {
  padding: 14px 16px 14px 42px;
  background: var(--card);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 12px 24px rgba(21, 25, 40, 0.08);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.program-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  left: 18px;
  top: 22px;
  z-index: 2;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  margin-top:30px;
}

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

.trustees-card {
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.trustees-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trustees-list li {
  background: #fff;
  border-radius: 9px;
  padding: 14px 16px;
  box-shadow: 0 10px 20px rgba(21, 25, 40, 0.08);
  border: 1px solid rgba(40, 58, 143, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, 94%);
  }

  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.8rem;
  }

  .header-inner {
    padding: 10px 0;
  }

  .hero-content {
    padding: 60px 0 70px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    white-space: normal;
  }

  .hero-lead {
    margin-bottom: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .hero-cards {
    gap: 12px;
  }

  .info-card {
    padding: 12px 14px;
  }

  .info-title {
    margin-bottom: 4px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title p {
    margin-bottom: 20px;
  }

  .trustees-wrapper {
    margin-top: 24px;
  }

  .program-list li {
    padding: 12px 14px 12px 38px;
  }

  .gallery-grid img {
    height: 180px;
  }

  .donation-card,
  .contact-card {
    padding: 18px;
  }

  .trustees-list {
    grid-template-columns: 1fr;
  }

  .trustees-list li {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-figure {
    width: min(94vw, 1200px);
  }

  .lightbox-image {
    max-height: 72vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 54px;
    font-size: 1.7rem;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }
}

.donation-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.donation-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.donation-card h3 {
  margin-top: 0;
  color: var(--blue);
}

.donation-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.donation-card dt {
  font-weight: 600;
  color: var(--muted);
}

.donation-card dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
}

.gallery-shell {
  position: relative;
  min-height: 260px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  transition: opacity 0.25s ease;
}

.gallery-grid.is-loading {
  opacity: 0.3;
}

.gallery-grid picture {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-grid picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(21, 25, 40, 0.12);
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.gallery-grid img:hover {
  transform: translateY(-6px);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 9, 16, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 1200px);
  max-height: 90vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 9px;
  font-size: 2rem;
}

.lightbox-nav--prev {
  left: 18px;
}

.lightbox-nav--next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.contact-card address {
  margin: 0;
  font-style: normal;
}

.contact-card p {
  margin: 0 0 10px;
  line-height: 1.34;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a[href^="tel:"] {
  color: var(--blue);
  font-weight: 600;
}

:is(.info-card, .program-list li, .trustees-card, .trustees-list li, .donation-card, .contact-card, .gallery-loader-inner) {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

:is(.info-card, .program-list li, .trustees-card, .trustees-list li, .donation-card, .contact-card, .gallery-loader-inner)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 44%);
  pointer-events: none;
}

:is(.info-card, .program-list li, .trustees-card, .trustees-list li, .donation-card, .contact-card, .gallery-loader-inner) > * {
  position: relative;
  z-index: 1;
}

:is(.info-card, .program-list li, .trustees-card, .trustees-list li, .donation-card, .contact-card):hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(21, 25, 40, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.site-footer {
  background: linear-gradient(140deg, #121d44 0%, #16224f 45%, #1d2e61 100%);
  color: #f4f4f8;
  padding: 32px 0;
}

.site-footer p {
  margin: 0;
  line-height: 1.28;
}

.site-footer p + p {
  margin-top: 4px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer img {
  width: 54px;
  height: 54px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .info-card--split {
    grid-template-columns: 1fr;
    gap: 10px;

  }

  .info-card--split::before {
    display: none;
  }

  .info-card--split > div {
    padding: 0;
  }

  .info-card--split > div + div {
    padding-top: 12px;
    border-top: 1px solid rgba(40, 58, 143, 0.12);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .loader-spinner {
    animation: none;
  }

  .hero-overlay {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  :is(.info-card, .program-list li, .trustees-card, .trustees-list li, .donation-card, .contact-card):hover {
    transform: none;
  }
}

html {
  font-size: 87%;
  scroll-behavior: smooth;
}
