/* =============================================================================
   THEME VARIABLES
   ============================================================================= */

:root {
  --bg: #050a14;
  --bg2: #080f1e;
  --surface: #0d1829;
  --surface2: #111e33;
  --border: rgba(99, 179, 237, 0.12);
  --accent: #4fa3e8;
  --accent2: #0b4984;
  --accent3: #107788;
  --text: #e2e8f0;
  --text-muted: #8aadcc;
  --text-dim: #4a6fa5;
  --glow: rgba(79, 163, 232, 0.15);
  --nav-bg: rgba(5, 10, 20, 0.8);
  --star-color: 200, 220, 255;
}

[data-theme="light"] {
  --bg: #eef6fb;
  --bg2: #ddebf5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface2: rgba(255, 255, 255, 0.82);
  --border: rgba(8, 56, 102, 0.08);
  --accent: #3e8cac;
  --accent2: #0b4984;
  --accent3: #107788;
  --text: #0f172a;
  --text-muted: #49657f;
  --text-dim: #6b7f95;
  --glow: rgba(11, 73, 132, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.65);
  --star-color: 11, 73, 132;
}

/* =============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================= */

[data-theme="light"] body {
  background:
    radial-gradient(
      circle at top left,
      rgba(16, 119, 136, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(11, 73, 132, 0.07),
      transparent 30%
    ),
    var(--bg);
}

[data-theme="light"] .program-card,
[data-theme="light"] .branch-card,
[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(11, 73, 132, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="light"] nav {
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(11, 73, 132, 0.05);
}

[data-theme="light"] .navbar__dropdown-menu {
  background: white;
  border: 1px solid #f3f4f6;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar__dropdown-menu a {
  color: #374151;
}

[data-theme="light"] .navbar__dropdown-menu a::before {
  background: linear-gradient(to bottom, #355380, #3959b0);
}

[data-theme="light"] .navbar__dropdown-menu a:hover {
  background: linear-gradient(to right, #f0fafd, #ecf5fd);
  color: #355680;
}

[data-theme="light"] .astro-slider {
  background-color: #38bdf8;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .astro-slider::after {
  content: "☁️";
  right: 36px;
  font-size: 12px;
  opacity: 0.9;
}

[data-theme="light"] .astro-slider::before {
  transform: translateX(32px);
  background-color: #fef08a;
  box-shadow: 0 0 10px #fde047;
}

[data-theme="light"] .nav-btn {
  border-color: #3e8cac;
  color: #3e8cac;
}

[data-theme="light"] .nav-btn:hover {
  background: #3e8cac;
  color: #eef6fb;
  box-shadow: 0 0 12px rgba(62, 140, 172, 0.4);
}

[data-theme="light"] .nav-btn-gaac {
  border-color: #107788;
  color: #107788;
}

[data-theme="light"] .nav-btn-gaac:hover {
  background: #107788;
  color: #eef6fb;
  box-shadow: 0 0 12px rgba(16, 119, 136, 0.4);
}

/* =============================================================================
   GLOBAL TRANSITIONS
   ============================================================================= */

body,
nav,
footer,
.stat,
.program-card,
.branch-card,
.ticker-wrap,
.contact-form,
input,
textarea,
select {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: 0.2s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(16, 119, 136, 0.08),
      transparent 25%
    ),
    radial-gradient(circle at 80% 30%, rgba(11, 73, 132, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

#stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =============================================================================
   LOADING SCREEN
   ============================================================================= */

#loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

#loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

#loading-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.loading-logo {
  position: relative;
  z-index: 10;
  width: 100px;
  height: 100px;
  animation: logoRotate 2s linear infinite, floatUp 3s ease-in-out infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(16, 119, 136, 0.3));
}

.loading-text {
  position: relative;
  z-index: 20;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  animation: textGlow 2s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(16, 119, 136, 0.6);
}

@keyframes textGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 20px rgba(16, 119, 136, 0.6);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 40px rgba(16, 119, 136, 1);
  }
}

@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#loading-screen.fade-out {
  animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

[data-theme="light"] #loading-screen {
  background: var(--bg);
}

/* =============================================================================
   NAVBAR
   ============================================================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition:
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.4s ease,
    border-color 0.4s ease;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 163, 232, 0.25),
    transparent
  );
}

nav.nav-scrolled {
  padding: 0.6rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav .logo {
  transition: transform 0.4s ease;
  transform-origin: left center;
}

nav.nav-scrolled .logo {
  transform: scale(0.9);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(
    135deg,
    #0a5b6b 0%,
    #0a4d63 35%,
    #083a5f 70%,
    #072f52 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo em {
  color: var(--accent);
  font-style: normal;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a,
.nav-links p {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links p:hover {
  color: var(--accent);
  cursor: pointer;
}

.nav-links > li > a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #1a88a4, #3984b0);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links > li > a:hover {
  color: #1a88a4;
  transform: translateY(-2px);
}

.nav-links > li > a:hover::after {
  width: 100%;
}

/* =============================================================================
   DROPDOWN
   ============================================================================= */

.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.navbar__dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.navbar__dropdown:hover .navbar__dropdown-icon {
  transform: rotate(-180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  margin-top: 0.5rem;
  background: #081221;
  border-radius: 0.75rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.35),
    0 10px 10px -5px rgba(0, 0, 0, 0.25);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-menu li {
  margin: 0;
}

.navbar__dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #b8c7d9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.navbar__dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, #107788, #0b4984);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.navbar__dropdown-menu a::after {
  display: none;
}

.navbar__dropdown-menu a:hover {
  background: linear-gradient(
    to right,
    rgba(16, 119, 136, 0.16),
    rgba(11, 73, 132, 0.18)
  );
  color: #dbeafe;
  transform: translateX(5px);
  padding-left: 1.25rem;
}

.navbar__dropdown-menu a:hover::before {
  transform: scaleY(1);
}

/* =============================================================================
   THEME TOGGLE (ASTRO SWITCH)
   ============================================================================= */

.astro-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 32px;
  margin-left: 0.5rem;
}

.astro-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.astro-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #0f172a;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.astro-slider::after {
  content: "✨";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: 0.4s;
}

.astro-slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: #e2e8f0;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  z-index: 2;
  box-shadow: inset -4px -2px 0px 0px #94a3b8;
}

/* =============================================================================
   NAV BUTTONS (Donate & GAAC)
   ============================================================================= */

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 5rem;
  order: 2;
  

}

.nav-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.nav-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(79, 163, 232, 0.4);
  transform: translateY(-2px);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn-donate {
  border-color: var(--accent);
  background-color: var(--accent);
  color:#fff !important;
}

.nav-btn-gaac {
  border-color: var(--accent3);
  background-color: var(--accent);
  color:#fff !important;
}

.nav-btn-gaac:hover, .nav-btn-donate:hover {
  background: var(--accent3);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(16, 119, 136, 0.4);
}

/* =============================================================================
   HERO
   ============================================================================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    rgba(79, 163, 232, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 163, 232, 0.1);
  border: 1px solid rgba(79, 163, 232, 0.25);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #107788);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-primary {
  background: linear-gradient(
    135deg,
    #096577 0%,
    #037d8a 20%,
    #0b4984 55%,
    #083866 75%,
    #07325d 100%
  );
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(79, 163, 232, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(79, 163, 232, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--glow);
}

/* =============================================================================
   STATS BAR
   ============================================================================= */

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg2);
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* =============================================================================
   SECTIONS (shared)
   ============================================================================= */

section {
  position: relative;
  z-index: 1;
  padding: 6rem 5%;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

h2.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

/* =============================================================================
   ABOUT
   ============================================================================= */
/* =============================================================================
   ABOUT
   ============================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.aimg {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
}

.aimg.tall {
  grid-column: 1 / 3;
  height: 220px;
}

.aimg.short {
  height: 150px;
}

.aimg span {
  font-size: 2.5rem;
}

.aimg p {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✦";
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* =============================================================================
   BOARD MEMBERS SECTION (NEW)
   ============================================================================= */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.board-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px var(--glow);
}

.member-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface2);
  transition: border-color 0.3s ease;
}

.board-card:hover .member-img-wrapper {
  border-color: var(--accent);
}

.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.board-card:hover .member-img {
  transform: scale(1.1); 
}

.member-name {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.member-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.25rem;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.member-socials a {
  text-decoration: none;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.member-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Light Mode Compatible --- */
[data-theme="light"] .board-card {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(11, 73, 132, 0.03);
}

[data-theme="light"] .board-card:hover {
  box-shadow: 0 15px 35px rgba(11, 73, 132, 0.08);
}

[data-theme="light"] .member-socials a {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .member-socials a:hover {
  background: var(--accent);
  color: #fff;
}
/* =============================================================================
   PROGRAMS
   ============================================================================= */

.programs-bg,
.branches-bg {
  background:
    radial-gradient(
      circle at top left,
      rgba(16, 119, 136, 0.05),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(11, 73, 132, 0.05),
      transparent 35%
    ),
    var(--bg2);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.program-card,
.branch-card {
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 40px rgba(0, 0, 0, 0.22);
}

.program-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, linear-gradient(90deg, #4fa3e8, #7c3aed));
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(79, 163, 232, 0.3);
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg, rgba(79, 163, 232, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.program-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(79, 163, 232, 0.08);
  border: 1px solid rgba(79, 163, 232, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =============================================================================
   TICKER
   ============================================================================= */

.ticker-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-inner {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.ticker-item {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ticker-item span {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.5rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* =============================================================================
STEM OCT SCHOOL
  ============================================================================= */

.octSchool {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  gap: 40px; 
  padding: 60px 10%; 
  
  background: linear-gradient(
    135deg,
    rgba(79, 163, 232, 0.06),
    rgba(124, 58, 237, 0.06)
  ), var(--bg2); 
  
  color: var(--text); 
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.octSchoolAbout {
  flex: 1; 
  max-width: 550px;
}

.octSchoolAbout h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.octSchoolAbout h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text); 
}

.octSchoolAbout p {
  color: var(--text-muted); 
  line-height: 1.6;
  margin-bottom: 30px;
}

.octSchoolAbout p span a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.octSchoolAbout p a[href="about.html"] {
  display: inline-block;
  background-color: var(--accent2);
  color: white; 
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px var(--glow);
  transition: background 0.3s ease, transform 0.2s ease;
}

.octSchoolAbout p a[href="about.html"]:hover {
  background-color: var(--accent3); 
  transform: translateY(-2px);
}

.octSchoolImg {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.octSchoolImg img {
  width: 100%;
  max-width: 600px; 
  height: auto;
  border-radius: 16px; 
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
  border: 1px solid var(--border);
}

[data-theme="light"] .octSchoolImg img {
  box-shadow: 0 10px 30px rgba(11, 73, 132, 0.12);
}

@media (max-width: 768px) {
  .octSchool {
    flex-direction: column-reverse; 
    text-align: center;
    padding: 40px 20px;
  }
  
  .octSchoolImg {
    justify-content: center;
    margin-bottom: 20px;
  }
}
/* =============================================================================
   GALLERY
   ============================================================================= */

#gallery {
  background: linear-gradient(
    135deg,
    rgba(79, 163, 232, 0.08),
    rgba(124, 58, 237, 0.08)
  );
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.g-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
}
.gallery-item:nth-child(1) .g-img,
.gallery-item:nth-child(2) .g-img {
  height: 320px;
}
.gallery-item:nth-child(3) .g-img,
.gallery-item:nth-child(4) .g-img,
.gallery-item:nth-child(5) .g-img {
  height: 210px;
}

.g-img span {
  font-size: 3rem;
}

.g-img p {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.05) saturate(0.88);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) contrast(1.08) saturate(1);
}

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 10, 20, 0.85) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .g-overlay {
  opacity: 1;
}

.g-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================================================
   BRANCHES
   ============================================================================= */

.branches-bg {
  background: var(--bg2);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.branch-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition:
    transform 0.25s,
    border-color 0.25s;
  cursor: pointer;
}

.branch-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  transition: 0.3s;
}

.branch-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.branch-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.branch-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
  background: linear-gradient(
    135deg,
    rgba(79, 163, 232, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================================
   CONTACT
   ============================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  align-items: start;
}

.contact-info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(79, 163, 232, 0.1);
  border: 1px solid rgba(79, 163, 232, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 163, 232, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================================================
   HAMBURGER BUTTON (hidden on desktop)
   ============================================================================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0; /* no padding — bars use explicit width */
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 101; /* always above the drawer (z-index 99) */
  transition: border-color 0.2s;
}

.nav-hamburger:hover {
  border-color: var(--accent);
}

.nav-hamburger span {
  display: block;
  height: 2px;
  width: 20px; /* explicit px width — not % of button */
  background: var(--text-muted);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

/* Animate into × when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================================= */

@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .branches-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================================================
   RESPONSIVE — MOBILE  (≤ 860px)
   ============================================================================= */

@media (max-width: 860px) {
  /* Hamburger button visible */
  .nav-hamburger {
    display: flex;
  }

  /* Nav buttons adjust for mobile */
  .nav-buttons {
    gap: 0.5rem;
    margin-left: 1rem;
    order: 2;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Nav bar must sit above the drawer */
  nav {
    z-index: 200;
    padding: 1rem 5%;
  }

  /* Drawer slides in from below the nav bar */
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 10, 20, 0.92);

    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 1rem 6%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      transform 0.3s ease,
      padding 0.3s ease;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links.is-open {
    max-height: 700px;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    padding: 1.5rem 6% 3rem;
  }

  /* Each link row */
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
  }

  .nav-links > li:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
  }

  .nav-links a,
  .nav-links p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    transition:
      color 0.25s ease,
      transform 0.25s ease;
  }
  .nav-links.is-open {
    animation: mobileMenuFade 0.35s ease;
  }

  @keyframes mobileMenuFade {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* No underline animation on mobile */
  .nav-links > li > a::after {
    display: none;
  }
  .nav-links > li > a:hover {
    color: var(--accent);
    transform: translateX(4px);
  }
  /* Programs dropdown → inline accordion */
  .navbar__dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
    margin-top: 0;
    display: none;
  }

  .navbar__dropdown.is-open .navbar__dropdown-menu {
    display: block;
  }
  .navbar__dropdown.is-open .navbar__dropdown-icon {
    transform: rotate(-180deg);
  }

  .navbar__dropdown-menu a {
    padding: 0.6rem;
    font-size: 1rem;
    color: var(--text-muted);
    padding-left: 20px;
  }

  .navbar__dropdown-menu a:hover {
    color: var(--accent);
    background: transparent;
    transition: 0.3s;
  }

  /* --- Page layout --- */
  section {
    padding: 4rem 5%;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-column: 1 / 3;
  }
  .gallery-item:nth-child(1) .g-img,
  .gallery-item:nth-child(2) .g-img {
    height: 220px;
  }

  /* Hero */
  .hero {
    padding: 6rem 5% 4rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  nav {
    position: relative;
  }

  .nav-hamburger {
    position: relative;

    z-index: 999;
  }
  .nav-center {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    margin: 0;

    z-index: 50;
  }
}
.nav-actions {
  display: flex;

  align-items: center;

  justify-content: center;
}
.nav-center {
  display: flex;

  align-items: center;

  justify-content: center;

  order: 3;

  margin-left: 2rem;
}
nav {
  display: flex;
  align-items: center;
}
/* =============================================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ============================================================================= */

@media (max-width: 480px) {
  /* Stats: single column */
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 1.75rem 1rem;
  }
  .stat-num {
    font-size: 2rem;
  }

  /* Branches: single column */
  .branches-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery: single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-column: 1;
  }
  .gallery-item:nth-child(1) .g-img,
  .gallery-item:nth-child(2) .g-img {
    height: 200px;
  }
  .gallery-item:nth-child(3) .g-img,
  .gallery-item:nth-child(4) .g-img,
  .gallery-item:nth-child(5) .g-img {
    height: 180px;
  }

  /* CTA buttons stack */
  .cta-btns,
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  /* Form row: single column */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Astrophotography section background ─────────────────────────────────── */
.astrophoto-bg {
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(79, 163, 232, 0.05),
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 20%,
      rgba(124, 58, 237, 0.06),
      transparent 35%
    ),
    var(--bg2);
}
/* ═══════════════════════════════════════════════════════════════
   GALLERY TABS
════════════════════════════════════════════════════════════════ */

/* tab bar */
.gallery-tabs {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;

  width: 100%;
  max-width: 420px;

  display: flex;
  gap: 8px;
  padding: 6px;
  max-width: fit-content;

  justify-content: center;

  margin-left: auto;
  margin-right: auto;

  margin-bottom: 40px;
}
.gtab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.gtab.active {
  color: var(--text);
}

.gtab-icon {
  font-size: 1rem;
}

/* sliding pill indicator */
.gtab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: linear-gradient(
    135deg,
    rgba(16, 119, 136, 0.25),
    rgba(11, 73, 132, 0.3)
  );
  border: 1px solid rgba(79, 163, 232, 0.22);
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gtab-indicator.slide-right {
  transform: translateX(100%);
}

/* ── viewport + panels ──────────────────────────────────────── */
.gallery-viewport {
  position: relative;
  overflow: hidden; /* clips the outgoing panel */
  width: 100%;
}

.gallery-panel {
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  /* transition applied by JS only during animation to avoid init flicker */
}

.gallery-panel.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: all;
}

/* ── astrophoto grid variant ────────────────────────────────── */
.astrophoto-grid .gallery-item:nth-child(1) {
  grid-column: 1 / 2;
}
.astrophoto-grid .gallery-item:nth-child(2) {
  grid-column: 2 / 4;
}

.astrophoto-grid .gallery-item:nth-child(1) .g-img,
.astrophoto-grid .gallery-item:nth-child(2) .g-img {
  height: 320px;
}

.astrophoto-grid .gallery-item:nth-child(3) .g-img,
.astrophoto-grid .gallery-item:nth-child(4) .g-img,
.astrophoto-grid .gallery-item:nth-child(5) .g-img {
  height: 210px;
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery-tabs {
    max-width: 100%;
  }

  .astrophoto-grid .gallery-item:nth-child(1),
  .astrophoto-grid .gallery-item:nth-child(2) {
    grid-column: 1 / 3;
  }
  .astrophoto-grid .gallery-item:nth-child(1) .g-img,
  .astrophoto-grid .gallery-item:nth-child(2) .g-img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .gtab {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }

  .astrophoto-grid .gallery-item:nth-child(1),
  .astrophoto-grid .gallery-item:nth-child(2) {
    grid-column: 1;
  }
  .astrophoto-grid .gallery-item:nth-child(1) .g-img,
  .astrophoto-grid .gallery-item:nth-child(2) .g-img {
    height: 200px;
  }
  .astrophoto-grid .gallery-item:nth-child(3) .g-img,
  .astrophoto-grid .gallery-item:nth-child(4) .g-img,
  .astrophoto-grid .gallery-item:nth-child(5) .g-img {
    height: 180px;
  }
}
#stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

#stars-bg-body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

#stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
  transition: background-color 0.3s ease;
}
[data-theme="light"] .hero h1 .gradient {
  background: linear-gradient(135deg, #0b4984, #3e8cac, #107788);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 860px) {
  [data-theme="light"] .nav-links {
    background-color: #eef6fb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  [data-theme="light"] .nav-links > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}


/*JOIN */

/* =============================================================================
   JOIN CARDS STYLES
   ============================================================================= */

.info-title {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.join-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.join-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px var(--glow);
}

.join-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.join-card__content strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-family: "Space Grotesk", sans-serif;
}

.join-card__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
  color: var(--text);
  border-bottom-style: solid;
}

.contact-form {
  background: rgba(13, 24, 41, 0.45);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.closed-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.closed-icon {
  font-size: 1.1rem;
}

.join-page .contact-form form {
  opacity: 0.65; 
}

.join-page .contact-form .form-group input,
.join-page .contact-form .form-group select,
.join-page .contact-form .form-group textarea {
  width: 100%;
  background: rgba(5, 10, 20, 0.4) !important;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.btn-disabled {
  background: linear-gradient(135deg, #27272a, #18181b) !important;
  color: #71717a !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
  padding: 0.9rem 2rem;
  font-weight: 600;
}

/* --- Light Mode Overrides --- */
[data-theme="light"] .join-card {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 20px rgba(11, 73, 132, 0.04);
}

[data-theme="light"] .join-card:hover {
  box-shadow: 0 10px 30px rgba(11, 73, 132, 0.08);
}

[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 50px rgba(11, 73, 132, 0.06);
}

[data-theme="light"] .join-page .contact-form .form-group input,
[data-theme="light"] .join-page .contact-form .form-group select,
[data-theme="light"] .join-page .contact-form .form-group textarea {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(8, 56, 102, 0.1);
  color: var(--text-dim);
}

[data-theme="light"] .closed-badge {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}