:root {
  /* Default Theme: Dark Mode */
  --bg: #0d0813;
  --surface: #171120;
  --surface-soft: #231b2e;
  --text: #f5f0f9;
  --text-muted: #b8acbf;
  --accent: #ac84db;
  --accent-strong: #ec9f8b;
  --accent-soft: #4c375e;
  --border: rgba(217, 198, 229, 0.12);
  --border-dashed: rgba(217, 198, 229, 0.22);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --radius: 24px;
  
  /* Gradients and specific section backgrounds */
  --body-bg: linear-gradient(180deg, #130d1c 0%, #09050d 100%);
  --header-bg: rgba(13, 8, 19, 0.92);
  --header-border: rgba(255, 255, 255, 0.08);
  --submenu-hover-bg: rgba(172, 132, 219, 0.15);
  --carousel-btn-bg: rgba(23, 17, 32, 0.9);
  --carousel-btn-hover-bg: #231b2e;
  --carousel-btn-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  --scrollbar-thumb: rgba(217, 198, 229, 0.2);
  
  --mission-bg: linear-gradient(135deg, #1d1527 0%, #110a18 100%);
  --cta-bg: linear-gradient(135deg, #2a1b3d 0%, #1c102a 100%);
  --hero-bg: linear-gradient(180deg, #221733 0%, #0d0813 100%);
  --highlight-bg: linear-gradient(135deg, #211630 0%, #180e25 60%, #100919 100%);
  --ceo-section-bg: linear-gradient(135deg, #1d1527 0%, #110a18 100%);
  
  --video-item-bg: rgba(23, 17, 32, 0.6);
  --video-item-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  --mobile-nav-bg: rgba(23, 17, 32, 0.98);
  --input-bg: #1d1726;
  --preloader-circle-bg: rgba(172, 132, 219, 0.25);

  /* Brand colors for social icons */
  --brand-fb: #1877F2;
  --brand-tt: #69C9D0;
  --brand-yt: #FF0000;
  --brand-ig: #E1306C;
}

html.light-theme {
  --bg: #f9f6f8;
  --surface: #ffffff;
  --surface-soft: #f1eaef;
  --text: #243047;
  --text-muted: #5f6778;
  --accent: #7f57a5;
  --accent-strong: #e07a5f;
  --accent-soft: #d9c6e5;
  --border: rgba(36, 48, 71, 0.08);
  --border-dashed: rgba(36, 48, 71, 0.15);
  --shadow: 0 18px 40px rgba(49, 55, 83, 0.08);
  
  --body-bg: linear-gradient(180deg, #faf7fb 0%, #f3eef4 100%);
  --header-bg: rgba(250, 246, 248, 0.96);
  --header-border: rgba(255, 255, 255, 0.55);
  --submenu-hover-bg: rgba(127, 87, 165, 0.08);
  --carousel-btn-bg: rgba(255, 255, 255, 0.9);
  --carousel-btn-hover-bg: #ffffff;
  --carousel-btn-shadow: 0 12px 24px rgba(49, 55, 83, 0.16);
  --scrollbar-thumb: rgba(36, 48, 71, 0.16);
  
  --mission-bg: linear-gradient(135deg, #fff8fb 0%, #f7f2fb 100%);
  --cta-bg: linear-gradient(135deg, #f4e6f6 0%, #efe5fb 100%);
  --hero-bg: linear-gradient(180deg, #f8eff8 0%, #fff 100%);
  --highlight-bg: linear-gradient(135deg, #f4eaf8 0%, #efe3f6 60%, #fdf5fb 100%);
  --ceo-section-bg: linear-gradient(135deg, #fff8fb 0%, #f7f2fb 100%);
  
  --video-item-bg: rgba(250, 250, 250, 0.6);
  --video-item-shadow: 0 12px 30px rgba(36, 48, 71, 0.06);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #ffffff;
  --preloader-circle-bg: rgba(127, 87, 165, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section,
.page-hero,
.hero,
.site-footer {
  padding: 80px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.main-nav {
  position: relative;
}

.main-nav .has-submenu {
  position: relative;
}

.main-nav .has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav .has-submenu .submenu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--text);
}

.main-nav .has-submenu .submenu-toggle span {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.main-nav .has-submenu.open .submenu-toggle span {
  transform: rotate(-135deg);
}

.main-nav .submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  min-width: 220px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
}

.main-nav .has-submenu:hover > .submenu,
.main-nav .has-submenu.open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .submenu li {
  margin: 0;
}

.main-nav .submenu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav .submenu a:hover,
.main-nav .submenu a:focus-visible {
  background: var(--submenu-hover-bg);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  gap: 0.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-grid,
.split-grid,
.mission-grid,
.info-grid,
.cards-grid,
.stats-grid,
.cta-grid {
  display: grid;
  gap: 2rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-carousel {
  position: relative;
}

.hero-carousel {
  margin-top: clamp(2rem, 3vw, 3.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-carousel .carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.5rem;
  overflow-anchor: none;
  overflow-y: hidden;
  align-items: center;
}

.hero-carousel .image-card {
  min-width: min(280px, 80vw);
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-carousel .image-card:hover,
.hero-carousel .image-card:focus-within {
  transform: translateY(-2px);
}

.hero-carousel .image-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-carousel .image-card:hover img,
.hero-carousel .image-card:focus-within img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

.hero-carousel .carousel-button {
  background: var(--carousel-btn-bg);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
  overflow-anchor: none;
  overflow-y: hidden;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.gallery-carousel .card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-height: 220px;
}

.section.reveal .card:not(.team-card) {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.section.reveal .card:not(.team-card) img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  flex-shrink: 0;
  margin: -1.85rem -1.85rem 0 -1.85rem;
}

.section.reveal .card:not(.team-card) div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.section.reveal .card:not(.team-card) h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}

.section.reveal .card:not(.team-card) p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.section.reveal .card:not(.team-card) .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.section.reveal .card:not(.team-card):hover img,
.section.reveal .card:not(.team-card):focus-within img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.section.reveal .card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.gallery-carousel .card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-carousel .card:hover img,
.gallery-carousel .card:focus-within img {
  transform: scale(1.05);
  filter: brightness(1.03);
}

.video-gallery {
  display: grid;
  gap: 1rem;
}

.video-gallery .section-header {
  margin-bottom: 1.75rem;
}

.video-gallery .carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
  overflow-anchor: none;
  overflow-y: hidden;
  align-items: center;
}

.video-gallery .video-card {
  min-width: min(420px, 86vw);
  max-width: 460px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-gallery .video-card:hover,
.video-gallery .video-card:focus-within {
  transform: translateY(-2px);
}

.video-gallery .video-card-inner {
  position: relative;
  display: grid;
  background: #000;
}

.video-gallery video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: #000;
}

.video-gallery .video-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(22, 22, 22, 0.72) 100%);
}

.video-gallery .carousel-track::-webkit-scrollbar {
  height: 8px;
}

.video-gallery .carousel-track::-webkit-scrollbar-thumb {
  background: rgba(36, 48, 71, 0.2);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .video-gallery .video-card {
    min-width: min(360px, 92vw);
  }
}

@media (max-width: 680px) {
  .video-gallery .video-card {
    min-width: 90vw;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(49, 55, 83, 0.16);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
  outline: none;
}

.carousel-prev {
  left: 0.5rem;
}

.carousel-next {
  right: 0.5rem;
}

@media (max-width: 880px) {
  .gallery-carousel:not(.video-gallery):not(.hero-carousel) .carousel-button {
    display: none;
  }

  .gallery-carousel .card {
    min-width: 240px;
  }

  .hero-carousel .image-card {
    min-width: min(260px, 92vw);
  }
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 4vw, 4rem);
  max-width: 700px;
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 30px rgba(127, 87, 165, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.intro-cards,
.cards-grid,
.stats-grid,
.testimonial-slider,
.activity-card {
  display: grid;
}

.intro-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Side-by-side layout: text copy left | scrollable video panel right */
.video-section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 560px);
  gap: 2rem;
  align-items: start;
}

.video-copy-text {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

.video-player-panel {
  display: grid;
  padding: 0;
  overflow: hidden; /* clips card border-radius */
  min-width: 0;
}

/* Independently scrollable iframe container — does not affect main-page scroll */
.video-player-scroll {
  height: 520px;
  max-height: 520px;
  overflow-y: auto;
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.video-player-scroll::-webkit-scrollbar {
  width: 8px;
}

.video-player-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.video-player-item {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.video-player-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section-grid .section-header {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .video-section-grid {
    grid-template-columns: 1fr;
  }

  /* Remove fixed height when stacked so all videos are visible without scroll */
  .video-player-scroll {
    height: auto;
    overflow-y: visible;
  }
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.input-error {
  border-color: var(--accent-strong);
  outline: 2px solid var(--accent-strong);
  outline-offset: -1px;
}

.map-placeholder,
.video-block {
  min-height: 400px;
  border-radius: 22px;
  background: var(--highlight-bg);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}

.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.section-highlight.reveal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px dashed var(--border-dashed);
  background: var(--input-bg);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.file-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
}

.soft-card {
  background: var(--surface-soft);
}

.program-card,
.activity-card,
.team-card,
.testimonial-card,
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover,
.activity-card:hover,
.team-card:hover,
.card:hover {
  transform: translateY(-4px);
}

.mission {
  background: var(--mission-bg);
}

.mission-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.mission-details {
  display: grid;
  gap: 1rem;
}

.mission-item {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat-card h3 {
  font-size: 2.25rem;
  margin: 0;
  color: var(--accent);
}

.stat-card p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.testimonial-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.activity-card {
  border: none;
  overflow: hidden;
  border-radius: var(--radius);
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 18px;
  background: var(--submenu-hover-bg);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.activity-card div {
  padding: 1.5rem;
}

.cta-banner {
  background: var(--cta-bg);
}

.cta-grid {
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  justify-content: space-between;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 1rem;
  display: inline-block;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

/* Social icons in footer */
.socials {
  margin-top: 0.6rem;
}
.social-list {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  padding: 0;
  margin: 0.4rem 0 0;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  border: 1px solid transparent;
}
.social-link:hover,
.social-link:focus {
  transform: translateY(-2px);
}
.social-link--fb:hover,
.social-link--fb:focus {
  background: rgba(24,119,242,0.08);
  color: var(--brand-fb);
  border-color: rgba(24,119,242,0.14);
}
.social-link--tt:hover,
.social-link--tt:focus {
  background: rgba(105,201,208,0.08);
  color: var(--brand-tt);
  border-color: rgba(105,201,208,0.14);
}
.social-link--yt:hover,
.social-link--yt:focus {
  background: rgba(255,0,0,0.08);
  color: var(--brand-yt);
  border-color: rgba(255,0,0,0.14);
}
.social-link--ig:hover,
.social-link--ig:focus {
  background: rgba(225,48,108,0.08);
  color: var(--brand-ig);
  border-color: rgba(225,48,108,0.14);
}
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.site-footer p {
  margin: 0.6rem 0;
}

.footer-note {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 0;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(49, 55, 83, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.75rem 0.95rem;
  }
}

.page-hero {
  background: var(--hero-bg);
}

.section-highlight {
  background: var(--highlight-bg);
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
}

.page-hero--about .container {
  max-width: 820px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-section .container.section-header {
  margin-bottom: 2rem;
}

.team-section .cards-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.team-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.team-card__image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: rgba(20, 24, 38, 0.55);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-radius: 20px 20px 0 0;
}

.team-card:hover .team-card__overlay,
.team-card__image-wrapper:hover .team-card__overlay,
.team-card__overlay:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-card__overlay h3 {
  margin: 0;
  font-size: 1.15rem;
}

.team-card__overlay p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
}

/* Responsive video grid for gallery page */
.video-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: start;
  padding: 0.5rem;
  justify-content: space-between;
}
.video-item {
  margin: 0;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--video-item-bg);
  flex: 1 1 calc(33.333% - 0.833rem);
  min-width: 220px;
  border: 1px solid var(--border);
}
.video-item video {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  box-shadow: var(--video-item-shadow);
  object-fit: cover;
  aspect-ratio: 16/9;
  max-height: 420px;
  background: #000;
  transition: transform .22s ease;
}
.video-item:hover video {
  transform: scale(1.01);
}
.video-item video:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .video-item {
    flex: 1 1 calc(50% - 0.625rem);
  }
}

@media (max-width: 560px) {
  .video-item {
    flex: 1 1 100%;
  }
}

.founder-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: start;
  gap: 2rem;
}

.ceo-profile-section {
  background: var(--ceo-section-bg);
}

.ceo-profile-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.profile-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--highlight-bg);
  border: 2px solid var(--accent-soft);
  display: grid;
  place-items: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-header {
  margin: 0;
}

.profile-name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--text);
}

.profile-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-bio p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.profile-bio p:first-child {
  color: var(--text);
  font-weight: 500;
}

.founder-message p:first-child {
  margin-top: 0;
}

.founder-grid ul {
  margin: 0;
  padding-left: 1.25rem;
}

.whatsapp-float {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background: #25d366;
  color: white;
  border-radius: 999px;
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.3);
  font-weight: 700;
  text-transform: uppercase;
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 10px solid var(--preloader-circle-bg);
  border-top-color: var(--accent);
  animation: spin 1.4s linear infinite;
}

.preloader__text {
  margin-top: 1rem;
  color: var(--text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-grid,
  .mission-grid,
  .cards-grid,
  .info-grid,
  .team-section .cards-grid,
  .founder-grid,
  .cto-profile-card,
  .ceo-profile-card,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    gap: 1.75rem;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* Team Card Responsiveness */
  .team-section .cards-grid {
    width: min(1120px, calc(100% - 2rem));
  }

  .team-card__image-wrapper {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .team-card__image-wrapper img {
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: unset;
  }

  .team-card__overlay {
    padding: 1.25rem;
  }

  .team-card__overlay h3 {
    font-size: 1.1rem;
  }

  .team-card__overlay p {
    font-size: 0.95rem;
  }
}

@media (max-width: 850px) {
  .main-nav {
    position: absolute;
    inset: calc(100% + 1rem) 0 auto 0;
    background: var(--mobile-nav-bg);
    padding: 1.5rem 1.5rem 2rem;
    border-radius: 24px;
    margin: 0 1rem;
    border: 1px solid var(--border);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav .has-submenu .submenu-toggle {
    display: inline-flex;
  }

  .main-nav .submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .main-nav .has-submenu.open > .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
    margin-top: 0.75rem;
  }

  .main-nav .submenu a {
    padding-left: 1.5rem;
    background: transparent;
    border-radius: 0;
  }

  .main-nav .has-submenu > a {
    justify-content: space-between;
    width: 100%;
  }

  .main-nav .has-submenu {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .section.reveal .card:not(.team-card) img {
    aspect-ratio: 4 / 3;
    margin: -1.5rem -1.5rem 0 -1.5rem;
  }

  .section.reveal .card:not(.team-card) {
    padding: 1.5rem;
  }

  /* Team Card Responsiveness on Tablet */
  .team-card__image-wrapper {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .team-card__image-wrapper img {
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center top;
  }

  .team-card__overlay {
    padding: 1.2rem;
  }

  .team-card__overlay h3 {
    font-size: 1.05rem;
  }

  .team-card__overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .intro-cards,
  .cards-grid,
  .stats-grid,
  .team-section .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section.reveal .card:not(.team-card) {
    padding: 1.25rem;
  }

  .section.reveal .card:not(.team-card) img {
    aspect-ratio: 16 / 9;
    margin: -1.25rem -1.25rem 0 -1.25rem;
  }

  .section.reveal .card:not(.team-card) h3 {
    font-size: 1.05rem;
  }

  .section.reveal .card:not(.team-card) p {
    font-size: 0.9rem;
  }

  .ceo-profile-card {
    padding: 2rem;
    gap: 2rem;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .hero {
    padding-bottom: 80px;
  }

  .site-header {
    position: relative;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Team Card Responsiveness on Mobile */
  .team-section .cards-grid {
    gap: 1.5rem;
  }

  .team-card__image-wrapper {
    aspect-ratio: 3 / 4;
    min-height: 0;
    border-radius: 16px 16px 0 0;
  }

  .team-card__image-wrapper img {
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center top;
  }

  .team-card {
    border-radius: 16px;
  }

  .team-card__overlay {
    padding: 1rem;
    border-radius: 16px 16px 0 0;
  }

  .team-card__overlay h3 {
    font-size: 1rem;
    margin: 0;
  }

  .team-card__overlay p {
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
  }
}

/* Accordion Functionality for Card Content */
.accordion-btn {
  cursor: pointer;
  position: relative;
  padding: 0.95rem 1.8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.accordion-btn::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-btn.expanded::after {
  transform: translateY(-50%) rotate(225deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              visibility 0.4s ease;
  padding: 0;
  margin: 0;
  will-change: max-height, opacity;
}

.accordion-content.expanded {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.accordion-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeInContent 0.6s ease 0.15s both;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .accordion-btn {
    padding: 0.85rem 1.2rem 0.85rem 1rem;
  }

  .accordion-btn::after {
    right: 0.75rem;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
  }

  .accordion-content.expanded {
    max-height: 1200px;
    margin-top: 0.75rem;
    padding-top: 1rem;
  }

  .accordion-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  .accordion-btn {
    padding: 0.8rem 1rem 0.8rem 0.9rem;
    font-size: 0.95rem;
  }

  .accordion-btn::after {
    width: 9px;
    height: 9px;
    right: 0.65rem;
  }

  .accordion-content.expanded {
    max-height: 1400px;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }

  .accordion-content p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

/* Theme Switching and Dynamic Toggle Button Styling */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header, 
.card, 
.soft-card, 
.site-footer, 
input, 
textarea, 
select, 
.preloader,
.preloader__circle,
.file-upload,
.video-item,
.carousel-button {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  padding: 0;
  margin: 0;
  order: 2; /* Visual placement: on the right on desktop, between brand and hamburger on mobile */
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--submenu-hover-bg);
  transform: scale(1.05);
  outline: none;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On desktop, keep nav as order 1, toggle as order 2, hamburger (hidden) as 3 */
.main-nav {
  order: 1;
}

.nav-toggle {
  order: 3;
}

.brand {
  order: 0;
}

/* Brand logo badge styling in dark mode to preserve color legibility */
.brand-logo {
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* In light mode, let it merge slightly more softly if desired */
html.light-theme .brand-logo {
  box-shadow: none;
  background-color: #ffffff;
}
