/* Sant Sri Foundation Core Styles */
:root {
  --primary: #ff5d00;
  --primary-dark: #e05400;
  --navy: #072449;
  --navy-dark: #021226;
  --white: #ffffff;
  --sand: #fdf5ee;
  --muted: #5a6a85;
  --border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 18px 48px rgba(4, 17, 36, 0.35);
  --container-width: 80%;
  --body-bg: #041329;
  --body-bg-gradient: radial-gradient(circle at top left, rgba(7, 36, 73, 0.65), rgba(4, 19, 41, 0.95));
  --surface-100: rgba(8, 30, 60, 0.65);
  --surface-200: rgba(4, 25, 51, 0.85);
  --surface-300: rgba(255, 255, 255, 0.06);
  --text-light: rgba(236, 243, 255, 0.92);
  --text-muted-light: rgba(198, 210, 229, 0.78);
  --text-strong: #fdfdfd;
  --text-dark: #08152b;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text-light);
  background: var(--body-bg-gradient, var(--body-bg));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
  color: var(--text-muted-light);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.announcement-bar {
  position: sticky;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.65rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: opacity 0.25s ease;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1300;
}

.announcement-bar-content {
  display: inline-flex;
  gap: 3rem;
  animation: scroll-left 30s linear infinite;
}

.announcement-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.foundation-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.foundation-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
  pointer-events: none;
}

.foundation-bar-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.foundation-bar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
}

.foundation-icon {
  color: var(--white);
  opacity: 0.9;
}

.foundation-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.foundation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.foundation-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.foundation-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.foundation-link--dev {
  position: relative;
  cursor: not-allowed;
}

.dev-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(-50%, -50%) scale(0.9);
  border: 2px solid var(--primary);
}

.dev-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.dev-popup-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: bold;
}

.dev-popup-close:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.registration-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.registration-popup:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.registration-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.registration-popup-content {
  position: relative;
  background: var(--white);
  color: var(--navy);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  width: 100%;
  max-width: 450px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

.registration-popup:not([hidden]) .registration-popup-content {
  transform: scale(1);
}

.registration-popup-content h3 {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.registration-popup-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
}

.registration-popup-content .button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.registration-popup-content .button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.4);
}

.registration-popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: bold;
  line-height: 1;
  padding: 0;
}

.registration-popup-close:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.foundation-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: bold;
  padding: 0 0.25rem;
}

.announcement-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.persistent-registration-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 0.75rem 0;
  z-index: 1100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.persistent-registration-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.persistent-registration-text-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.persistent-registration-text-wrapper .trophy-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.persistent-registration-text-container {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  position: relative;
}

.persistent-registration-text {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-block;
}

/* Hide duplicate text when marquee is not active */
.persistent-registration-text[aria-hidden="true"] {
  display: none;
}

/* Marquee animation when text overflows */
.persistent-registration-text-container.marquee {
  display: flex;
  gap: 2rem;
}

.persistent-registration-text-container.marquee .persistent-registration-text[aria-hidden="true"] {
  display: inline-block;
}

.persistent-registration-text-container.marquee .persistent-registration-text {
  animation: marquee 15s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.persistent-registration-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.persistent-registration-button:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .persistent-registration-banner {
    padding: 0.6rem 0;
  }
  
  .persistent-registration-banner-content {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0 0.75rem;
    align-items: center;
    justify-content: space-between;
  }
  
  .persistent-registration-text-wrapper .trophy-icon {
    width: 18px;
    height: 18px;
  }
  
  .persistent-registration-text {
    font-size: 0.8rem;
  }
  
  .persistent-registration-text-container.marquee .persistent-registration-text {
    animation: marquee-mobile 12s linear infinite;
  }
  
  .persistent-registration-button {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
}

@keyframes marquee-mobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .persistent-registration-banner-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  
  .persistent-registration-text-wrapper {
    width: 100%;
    justify-content: center;
  }
  
  .persistent-registration-text {
    font-size: 0.75rem;
  }
  
  .persistent-registration-text-container.marquee .persistent-registration-text {
    animation: marquee-mobile 12s linear infinite;
  }
  
  .persistent-registration-button {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 1rem;
  }

  .site-header .inner {
    width: 100%;
    padding: 0.75rem 1rem;
  }

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

  .brand-tagline {
    font-size: 0.7rem;
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: auto;
    height: auto;
  }

  #mission-grid {
    grid-template-columns: 1fr !important;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .about-images {
    gap: 0.75rem;
  }

  .about-images .about-image {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .about-images .about-image img {
    min-height: 200px;
    max-height: none;
    object-fit: cover;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .feature-card .icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .cta-banner p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }

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

  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-list {
    gap: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-copyright,
  .footer-credit {
    font-size: 0.85rem;
  }
}

.nav-register-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  margin-left: 0.5rem;
  align-self: center;
  border: none;
}

.nav-register-btn::after {
  display: none !important;
}

.nav-register-btn:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.3);
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  align-items: center;
}

.site-header {
  position: sticky;
  top: calc((0.65rem * 2) + (0.95rem * 1.5));
  z-index: 1200;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(7, 36, 73, 0.08);
  border-bottom: 1px solid rgba(7, 36, 73, 0.1);
  transition: opacity 0.25s ease;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  width: 95%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo--sant-sri {
  max-height: 55px;
}

.brand-logo--ayc {
  max-height: 55px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  display: block;
  color: var(--navy);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 45%, var(--primary) 50%, var(--primary) 55%, var(--navy) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-name-gradient 4s ease-in-out infinite;
  transition: transform 0.3s ease;
  position: relative;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .brand-name {
    color: var(--navy);
    background: none;
    -webkit-text-fill-color: var(--navy);
  }
}

.brand-name:hover {
  transform: scale(1.05);
}

@keyframes brand-name-gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.brand-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  color: var(--muted);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: var(--navy);
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.35rem;
  vertical-align: middle;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 0;
  line-height: 0;
}

.desktop-nav .has-dropdown {
  position: relative;
}

.desktop-nav .dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  background: rgba(4, 24, 49, 0.96);
  border-radius: 16px;
  padding: 1rem;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(2, 9, 20, 0.45);
  display: grid;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1600;
}

.desktop-nav .dropdown a {
  font-size: 0.95rem;
  color: rgba(236, 243, 255, 0.72);
  padding: 0.25rem 0.15rem;
}

.desktop-nav .dropdown a:hover {
  color: var(--text-strong);
}

.desktop-nav .dropdown-item {
  position: relative;
}

.desktop-nav .dropdown-item.has-nested > a .nav-caret {
  margin-left: auto;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-right: none;
  transform: rotate(0deg);
}

.desktop-nav .dropdown-item.has-nested:hover > a .nav-caret,
.desktop-nav .dropdown-item.has-nested:focus-within > a .nav-caret {
  transform: translateX(2px);
}

.desktop-nav .dropdown-nested {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.5rem;
  background: rgba(4, 24, 49, 0.96);
  border-radius: 16px;
  padding: 0.75rem;
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(2, 9, 20, 0.45);
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1700;
}

.desktop-nav .dropdown-item.has-nested:hover > .dropdown-nested,
.desktop-nav .dropdown-item.has-nested:focus-within > .dropdown-nested {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.desktop-nav .dropdown-nested a {
  font-size: 0.9rem;
  white-space: nowrap;
}

.desktop-nav .has-dropdown:hover > .dropdown,
.desktop-nav .has-dropdown:focus-within > .dropdown,
.desktop-nav .has-dropdown.dropdown-open > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.desktop-nav .has-dropdown:hover > a .nav-caret,
.desktop-nav .has-dropdown:focus-within > a .nav-caret,
.desktop-nav a[aria-expanded="true"] .nav-caret {
  color: var(--primary);
  transform: rotate(-180deg);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

body.nav-open .site-header,
body.nav-open .announcement-bar {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 41, 0.75);
  backdrop-filter: blur(6px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1800;
  display: flex;
  justify-content: flex-end;
}

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

.mobile-nav__panel {
  background: linear-gradient(135deg, rgba(255, 93, 0, 0.98), rgba(255, 93, 0, 0.95));
  width: min(340px, 82vw);
  height: 100%;
  padding: 1.75rem;
  overflow-y: auto;
  box-shadow: -16px 0 40px rgba(255, 93, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav__top .brand {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav__top .brand-logos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-nav__top .brand-logo {
  height: 42px;
  max-height: 42px;
}

.mobile-nav__top .brand-name {
  color: var(--white) !important;
  font-size: 1.35rem;
  font-weight: 700;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--white) !important;
}

.mobile-nav__close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--white);
  transition: background 0.2s ease;
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  font-weight: 600;
  color: var(--white);
}

.mobile-nav ul a {
  color: var(--white);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0.5rem 0;
}

.mobile-nav ul a:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

.mobile-has-dropdown {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-nav__expand {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-nav__expand:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-nav__expand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-nav__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  vertical-align: middle;
  transition: transform 0.25s ease;
  font-size: 0;
  line-height: 0;
  color: var(--white);
}

.mobile-nav__expand[aria-expanded="true"] .mobile-nav__caret {
  transform: rotate(-180deg);
}

.mobile-submenu {
  display: grid;
  gap: 0.6rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  margin-left: 0.25rem;
  margin-top: 0.75rem;
}

.mobile-submenu[hidden] {
  display: none;
}

.mobile-submenu a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mobile-submenu a:hover {
  color: var(--white);
}

.button,
button.primary,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.button:hover,
button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 93, 0, 0.3);
}

.button.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Secondary button on light backgrounds */
.section--light .button.secondary,
.cta-banner .button.secondary {
  color: var(--white);
  border: 2px solid var(--white);
}

.section--light .button.secondary:hover,
.cta-banner .button.secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-slider {
  position: relative;
  min-height: clamp(480px, 70vh, 660px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-color: var(--navy); /* Fallback to prevent white space */
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide--first {
  background-position: center 15% !important;
}


.hero-slide > .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
  width: var(--container-width);
  margin: 0 auto;
  max-width: none;
}

.hero-slide > .container > * {
  max-width: 60%;
}

.hero-slide h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-slide p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-slide .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-slide .cta-group .button,
.hero-slide .cta-group .button.secondary {
  margin: 0;
  white-space: nowrap;
}

.hero-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  padding: 0;
  pointer-events: none;
  max-width: 100%;
}

.hero-controls-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 4;
  pointer-events: auto;
}

.hero-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hero-control-btn:first-of-type {
  margin-left: calc((100vw - var(--container-width)) / 2 - 60px);
}

.hero-control-btn:last-of-type {
  margin-right: calc((100vw - var(--container-width)) / 2 - 60px);
  margin-left: auto;
}

.hero-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.hero-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hero-control-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-control-dot.is-active {
  background: var(--primary);
}

main {
  display: block;
}

.page-hero {
  background-color: var(--primary); /* Fallback to prevent white space */
  background: linear-gradient(135deg, rgba(255, 93, 0, 0.75), rgba(255, 93, 0, 0.65)), url("images/gallery/2024/RAJ_9239.jpg") center/cover no-repeat;
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  min-height: 300px; /* Prevent layout shift */
}

.page-hero .container {
  width: var(--container-width);
  margin: 0 auto;
  max-width: none;
  display: grid;
  gap: 1rem;
  padding: 0;
}

.page-hero .container > * {
  max-width: 60%;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.content-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.content-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  display: grid;
  gap: 1rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.content-card h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.ordered-list {
  counter-reset: numbered;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.ordered-list li {
  counter-increment: numbered;
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ordered-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.ordered-list li::before {
  content: counter(numbered, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.ordered-list li strong {
  display: block;
  margin-left: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.ordered-list li p {
  margin-left: 2.5rem;
  color: var(--muted);
}

.quote-card {
  border-left: 4px solid var(--primary);
  padding: 2rem;
  background: var(--white);
  border-radius: 18px;
  display: grid;
  gap: 1rem;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.quote-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.two-column {
  columns: 2;
  column-gap: 2rem;
}

.two-column p {
  break-inside: avoid;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--navy);
  color: var(--text-light);
}

.section--deep {
  background: var(--navy);
  color: var(--white);
}

.section--deep h2,
.section--deep h3,
.section--deep h4,
.section--deep p {
  color: var(--white);
}

#about .section-header,
#about .section-header h2,
#about .section-header p,
#about .section-header .eyebrow {
  color: var(--white);
}

#about .list-check,
#about .list-check li {
  color: var(--white);
}

#about .button {
  margin-top: 1.5rem;
}

.section--mid {
  background: linear-gradient(135deg, rgba(255, 93, 0, 0.95), rgba(255, 93, 0, 0.85));
  color: var(--white);
}

.section--orange {
  background: linear-gradient(135deg, rgba(255, 93, 0, 0.95), rgba(255, 93, 0, 0.85));
  color: var(--white);
}

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

.section--gallery {
  background: var(--white);
  color: var(--text-dark);
  margin: 50px 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--gallery .section-header {
  color: var(--navy);
}

.section--gallery .section-header .eyebrow {
  color: var(--primary);
}

.section--gallery .section-header h2 {
  color: var(--navy);
}

.section--gallery .section-header p {
  color: var(--muted);
}

.gallery-carousel-wrapper {
  position: relative;
}

.gallery-carousel {
  overflow: hidden;
  position: relative;
}

.gallery-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.gallery-carousel .gallery-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  height: 320px;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.gallery-carousel-controls {
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.gallery-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(7, 36, 73, 0.15);
}

.gallery-carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.gallery-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.video-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  border: 3px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section--deep .video-card,
.section--light .video-card {
  border-color: var(--primary);
}

.section--orange .video-card,
.section--mid .video-card {
  border-color: var(--navy);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: var(--navy); /* Fallback to prevent white space */
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, background-position 0.4s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.1);
  background-position: center 20%;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.section-header {
  margin-bottom: 2.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
}

.section-header .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
}

.section--orange .section-header .eyebrow {
  color: var(--white);
}

.section-header p {
  color: var(--text-muted-light);
}

.section--orange .section-header p,
.section--mid .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.section--orange h2,
.section--mid h2 {
  color: var(--white);
}

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

.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  border: 1px solid rgba(7, 36, 73, 0.12);
  display: grid;
  gap: 0.75rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 36, 73, 0.2);
}

.feature-card h3 {
  color: var(--navy);
}

.feature-card p {
  color: var(--muted);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 93, 0, 0.15);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.split > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split > div:first-child .button {
  align-self: flex-start;
  width: auto;
}

.split .about-image {
  height: 500px;
  min-height: 500px;
  max-height: 500px;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split .about-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  display: block;
}

/* Override for home page about section - more specific */
.split .about-images .about-image {
  min-height: 0;
  height: 100%;
}

.split .about-images .about-image img {
  min-height: 0;
  height: 100%;
}

.split .card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.split .card h3 {
  color: var(--navy);
}

.split .card p {
  color: var(--muted);
}

.split .card ul {
  color: var(--muted);
}

.split .card .list-check li {
  color: var(--muted);
}

.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  height: 100%;
  align-content: stretch;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  min-height: 0;
}

/* Initiative pages - full image with no white background */
.content-section .split .about-image {
  background: transparent;
  border-radius: 18px;
}

/* Unique styles for initiative page images - no conflicts - HIGH SPECIFICITY */
.content-section .split .initiative-image-container {
  background: transparent;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.content-section .split .initiative-image-container .initiative-page-image,
.content-section .split .initiative-image-container img.initiative-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 18px !important;
  display: block;
}

/* Specific IDs for each initiative image - highest specificity */
#abhyudaya-image,
#bkl-image,
#awareness-image,
#village-sports-image {
  border-radius: 18px !important;
}

#abhyudaya-image-container,
#bkl-image-container,
#awareness-image-container,
#village-sports-image-container {
  border-radius: 18px !important;
  overflow: hidden !important;
}

#abhyudaya-image-container img,
#bkl-image-container img,
#awareness-image-container img,
#village-sports-image-container img {
  border-radius: 18px !important;
}

.about-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Home page about section specific styles */
.about-images .about-image {
  background: transparent;
  display: flex;
  align-items: stretch;
}

.about-images .about-image:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  max-width: 65%;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.about-images .about-image:nth-child(2),
.about-images .about-image:nth-child(3) {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 200px;
}

.about-images .about-image:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.about-images .about-image:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* 4-image collage layout for about page */
.about-images--collage {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.about-images--collage .about-image:first-child {
  grid-column: 1;
  grid-row: 1;
  max-width: 100%;
}

.about-images--collage .about-image:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.about-images--collage .about-image:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.about-images--collage .about-image:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.section--deep .about-image,
.section--light .about-image {
  border: none;
}

.section--orange .about-image,
.section--mid .about-image {
  border: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* Override for initiative page images - must come after general rule */
.content-section .split .initiative-image-container img,
.content-section .split .initiative-page-image {
  border-radius: 18px !important;
  object-fit: contain !important;
}

/* Home page about section specific image styles */
.about-images .about-image img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-images .about-image:nth-child(2) img {
  object-position: top center;
}

.about-image:hover img {
  transform: scale(1.03);
}

.content-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.content-card table thead tr {
  background: rgba(7, 36, 73, 0.1);
}

.content-card table th {
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--primary);
  color: var(--text-dark);
  font-weight: 600;
}

.content-card table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(7, 36, 73, 0.1);
  color: var(--text-dark);
}

.content-card table tbody tr:last-child td {
  border-bottom: none;
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted);
}

.section--orange .list-check li,
.section--mid .list-check li {
  color: rgba(255, 255, 255, 0.85);
}

.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary);
}

#about .list-check li::before,
.section--deep .list-check li::before {
  color: var(--primary);
}

.cta-banner {
  background-color: var(--navy); /* Fallback to prevent white space */
  background: linear-gradient(135deg, rgba(7, 36, 73, 0.95), rgba(7, 36, 73, 0.8));
  color: var(--white);
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: 0 24px 48px rgba(7, 36, 73, 0.35);
  min-height: 200px; /* Prevent layout shift */
}

.cta-banner .cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cta-banner .button,
.cta-banner .button.secondary {
  margin: 0;
  white-space: nowrap;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cta-group .button,
.cta-group .button.secondary {
  margin: 0;
  white-space: nowrap;
}

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

.program-card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  display: grid;
  gap: 1rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 36, 73, 0.2);
}

.program-card h3 {
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.program-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  contain: layout style paint;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 320px;
  contain: layout style paint;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.section--deep .gallery-card,
.section--light .gallery-card {
  border-color: var(--primary);
}

.section--orange .gallery-card,
.section--mid .gallery-card {
  border-color: var(--navy);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 36, 73, 0.2);
}

.gallery-card .thumb {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease, background-position 0.4s ease, opacity 0.2s ease;
  display: block;
  background-color: rgba(7, 36, 73, 0.1);
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  flex: 1;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.gallery-card .thumb.loaded {
  opacity: 1;
  background-color: transparent;
}

.gallery-card .thumb {
  background-color: rgba(7, 36, 73, 0.08); /* Fallback to prevent white space */
}

.gallery-card .thumb.loading {
  background-color: rgba(7, 36, 73, 0.15);
  background-image: none !important;
  opacity: 0.7;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Load More Button */
.load-more-wrapper {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.load-more-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.3);
}

.load-more-btn:hover {
  background: #e65400;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 93, 0, 0.4);
}

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

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.load-more-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

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

/* Hidden Gallery Cards */
.gallery-card[data-gallery-hidden] {
  display: none;
}

/* Page Loader Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: visible;
}

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

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.page-loader-logo {
  width: 120px;
  height: auto;
  animation: logoPulse 1.5s ease-in-out infinite;
  transform-origin: center;
  border-radius: 12px;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.page-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 93, 0, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

body.loading {
  overflow: hidden;
}

.gallery-card:hover .thumb {
  transform: scale(1.1);
  background-position: center 20%;
}

.event-list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  display: grid;
  gap: 0.75rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 36, 73, 0.2);
}

.event-card h3 {
  color: var(--navy);
}

.event-card p {
  color: var(--muted);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  display: grid;
  gap: 1rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-content: start;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 36, 73, 0.18);
}

.contact-card h2,
.contact-card h3 {
  color: var(--navy);
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-card dt {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-card dd {
  margin: 0 0 1rem 0;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.contact-card dd a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card dd a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.contact-card dl > div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(7, 36, 73, 0.08);
}

.contact-card dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card .social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.contact-card .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 93, 0, 0.1);
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-card .social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.3);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(7, 36, 73, 0.2);
  background: var(--white);
  font: inherit;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 93, 0, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(90, 106, 133, 0.6);
}

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

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

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

.footer .brand {
  color: var(--white);
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-list li a[href^="mailto:"] {
  word-break: break-word;
  word-wrap: break-word;
  display: inline-block;
  max-width: 100%;
  padding-right: 0.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.4);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-credit a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-bottom {
    gap: 0.4rem;
  }
  
  .footer-credit {
    font-size: 0.75rem;
  }
}

.badge {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(7, 36, 73, 0.12);
  box-shadow: 0 8px 24px rgba(7, 36, 73, 0.1);
  color: var(--muted);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 36, 73, 0.2);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .container {
    width: 92%;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split .about-image {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    border-radius: 18px !important;
  }

  .split .about-image img {
    min-height: 300px;
    max-height: 300px;
    border-radius: 18px !important;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .page-hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-hero p {
    font-size: 0.9rem;
  }

  .content-section .section-header h2[style*="font-size: 2.5rem"] {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  .content-section p[style*="font-size: 1.125rem"] {
    font-size: 0.95rem !important;
  }

  .content-card[style*="padding: 2rem"] {
    padding: 1.25rem !important;
  }

  .content-card h3[style*="font-size: 1.375rem"] {
    font-size: 1.1rem !important;
  }

  .content-card p[style*="font-size: 1.05rem"] {
    font-size: 0.9rem !important;
  }

  .split .about-image {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
  }

  .split .about-image img {
    min-height: 250px;
    max-height: 250px;
  }

  /* Ensure initiative page images maintain border radius on smaller screens */
  .content-section .split .initiative-image-container {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .content-section .split .initiative-image-container .initiative-page-image,
  .content-section .split .initiative-image-container img.initiative-page-image {
    border-radius: 18px !important;
  }

  #abhyudaya-image-container,
  #bkl-image-container,
  #awareness-image-container,
  #village-sports-image-container {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  #abhyudaya-image,
  #bkl-image,
  #awareness-image,
  #village-sports-image,
  #abhyudaya-image-container img,
  #bkl-image-container img,
  #awareness-image-container img,
  #village-sports-image-container img {
    border-radius: 18px !important;
  }

  #mission-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  #mission-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-carousel .gallery-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  /* Ensure initiative page images maintain border radius on mobile */
  .content-section .split .initiative-image-container,
  .split .initiative-image-container {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .content-section .split .initiative-image-container .initiative-page-image,
  .content-section .split .initiative-image-container img.initiative-page-image,
  .split .initiative-image-container img {
    border-radius: 18px !important;
  }

  #abhyudaya-image-container,
  #bkl-image-container,
  #awareness-image-container,
  #village-sports-image-container {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  #abhyudaya-image,
  #bkl-image,
  #awareness-image,
  #village-sports-image,
  #abhyudaya-image-container img,
  #bkl-image-container img,
  #awareness-image-container img,
  #village-sports-image-container img {
    border-radius: 18px !important;
  }

  .two-column {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    padding: 0.75rem 0;
  }
  
  .announcement-bar-content {
    gap: 2rem;
    animation-duration: 25s;
  }

  .site-header {
    top: calc((0.75rem * 2) + (0.95rem * 1.5));
  }

  .site-header .inner {
    width: 98%;
    padding: 1rem 1rem;
  }

  .page-hero {
    padding: 2.5rem 0;
  }

  .page-hero .container {
    padding: 0 1.5rem;
  }

  .page-hero .container > * {
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .content-section .section-header h2[style*="font-size: 2.5rem"] {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .content-section p[style*="font-size: 1.125rem"] {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .about-images--collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about-images--collage .about-image {
    grid-column: 1 !important;
    aspect-ratio: 16 / 9;
  }

  .about-images--collage .about-image:first-child {
    grid-row: 1;
  }

  .about-images--collage .about-image:nth-child(2) {
    grid-row: 2;
  }

  .about-images--collage .about-image:nth-child(3) {
    grid-row: 3;
  }

  .about-images--collage .about-image:nth-child(4) {
    grid-row: 4;
  }

  .content-card[style*="padding: 2rem"] {
    padding: 1.5rem !important;
  }

  .content-card h3[style*="font-size: 1.375rem"] {
    font-size: 1.2rem !important;
  }

  .content-card p[style*="font-size: 1.05rem"] {
    font-size: 0.95rem !important;
  }

  .split .about-image {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .split .about-image img {
    min-height: 300px;
    max-height: 300px;
  }

  .foundation-bar {
    padding: 1.25rem 0;
  }

  .foundation-bar-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .foundation-bar-header {
    font-size: 0.8rem;
  }

  .foundation-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .foundation-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .foundation-bar .container {
    padding: 0 1.5rem;
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: auto;
    height: auto;
  }

  .hero-slide {
    padding: 3rem 0;
  }


  .hero-slide > .container {
    gap: 1.25rem;
    width: 100%;
    padding: 0 1.5rem;
  }

  .hero-slide > .container > * {
    max-width: 100%;
  }

  .hero-slide .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slide .cta-group .button,
  .hero-slide .cta-group .button.secondary {
    width: 100%;
    min-width: auto;
  }

  .cta-banner .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner .button,
  .cta-banner .button.secondary {
    width: 100%;
    min-width: auto;
  }

  .hero-control-btn:first-of-type {
    margin-left: 20px;
  }

  .hero-control-btn:last-of-type {
    margin-right: 20px;
  }

  .hero-controls-nav {
    bottom: 1rem;
  }

  .hero-control-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

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

  .brand-tagline {
    font-size: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section--gallery {
    margin: 30px 0;
  }

  .gallery-carousel .gallery-card {
    flex: 0 0 calc(100% - 0.75rem);
    height: 280px;
  }

  .gallery-carousel-controls {
    left: 0;
    right: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .program-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer h4 {
    font-size: 1.15rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .about-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }

  .about-images .about-image:first-child {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .about-images .about-image:nth-child(2),
  .about-images .about-image:nth-child(3) {
    grid-column: 1;
    aspect-ratio: 16 / 9;
  }

  .about-images .about-image:nth-child(2) {
    grid-row: 2;
  }

  .about-images .about-image:nth-child(3) {
    grid-row: 3;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta-banner p {
    font-size: 0.95rem;
  }

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

  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 41, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-prev::before,
.lightbox-next::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
}

.lightbox-prev::before {
  border-width: 10px 12px 10px 0;
  border-color: transparent var(--white) transparent transparent;
  margin-left: -2px;
}

.lightbox-next::before {
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent var(--white);
  margin-right: -2px;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
  }
}

/* Form Modals */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.form-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 41, 0.9);
  backdrop-filter: blur(4px);
}

.form-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  color: var(--text-dark);
}

.form-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 36, 73, 0.1);
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.form-modal-close:hover {
  background: rgba(7, 36, 73, 0.2);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .form-modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
    max-height: 95vh;
  }

  .form-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* Year Tabs for Gallery */
.year-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.year-tab {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.year-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.year-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.3);
}

.year-gallery {
  animation: fadeIn 0.4s ease;
  display: block;
}

.year-gallery[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .year-tabs {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .year-tab {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

