/* ============================================================
   MAYAN GARRISON — PHASE 1
   Design System & Global Styles
   Fusion: Imperial Technology × Maya Culture
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* ── Design Tokens ───────────────────────────────────── */
:root {
  /* Palette */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --color-stone: #8C9296;
  --color-jade: #008B8B;
  --color-jade-glow: rgba(0, 139, 139, .35);
  --color-forest: #228B22;
  --color-text: #F4F4F4;
  --color-text-dim: #A0A0A0;
  --color-white: #FFFFFF;
  --color-danger: #FF4444;

  /* Typography */
  --ff-heading: 'Oswald', sans-serif;
  --ff-body: 'Roboto', sans-serif;

  /* Spacing */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --navbar-h: 70px;
}

/* ── Reset & Base ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  background: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  /* Subtle noise texture overlay */
  position: relative;
}

/* CSS noise / grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

body>* {
  position: relative;
  z-index: 1;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.15;
}

/* Utility: section container */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
  color: var(--color-text);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: .75rem auto 0;
  background: linear-gradient(90deg, var(--color-jade), var(--color-forest));
  border-radius: 2px;
}

section {
  padding: var(--space-xl) 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 5%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Glassmorphism on scroll */
.navbar.scrolled {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 30px rgba(0, 0, 0, .6);
  border-bottom: 1px solid rgba(140, 146, 150, .1);
}

/* Navbar logo image */
.navbar__logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
  transition: filter var(--transition);
}

.navbar__logo:hover .navbar__logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 139, 139, .3));
}

/* Hero dual logos */
.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  animation: fadeInDown .8s ease-out both;
}

.hero__logo {
  max-width: 200px;
  width: 40%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 139, 139, .2)) drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
  transition: filter .5s ease, transform .5s ease;
}

.hero__logo:hover {
  filter: drop-shadow(0 6px 30px rgba(0, 139, 139, .35)) drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
  transform: scale(1.04);
}

.hero__logos .hero__logo:nth-child(2) {
  animation: fadeInDown .9s ease-out .1s both;
}

@media (max-width: 480px) {
  .hero__logos {
    gap: var(--space-sm);
  }

  .hero__logo {
    max-width: 130px;
  }

  .navbar__logo-img {
    max-height: 40px;
  }
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text);
}

.navbar__logo-icon {
  width: 40px;
  height: 40px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-family: var(--ff-heading);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-stone);
  transition: color var(--transition);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-jade);
  transition: width var(--transition);
}

.navbar__links a:hover {
  color: var(--color-jade);
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 6px;
}

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(10, 10, 10, .95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .navbar__links.open {
    transform: translateX(0);
  }

  .navbar__links a {
    font-size: 1.3rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-lg) var(--space-sm);
}

/* Layered CSS background — stone / gradient / glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, rgba(0, 139, 139, .12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(34, 139, 34, .06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 10, .3) 0%, var(--bg-primary) 100%),
    /* Stone-like pattern */
    repeating-conic-gradient(rgba(255, 255, 255, .015) 0% 25%,
      transparent 0% 50%) 0 0 / 60px 60px;
  background-blend-mode: screen, screen, normal, overlay;
}

/* Animated glow ring */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-jade-glow) 0%, transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: .35;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: .6;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-jade);
  border: 1px solid rgba(0, 139, 139, .4);
  padding: .35em 1.2em;
  border-radius: 30px;
  margin-bottom: var(--space-sm);
  animation: fadeInDown .8s ease-out both;
}

.hero__title {
  font-size: clamp(1.8rem, 7vw, 4.5rem);
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, var(--color-text) 40%, var(--color-stone) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  animation: fadeInDown 1s ease-out .15s both;
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--color-stone);
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  animation: fadeInDown 1s ease-out .3s both;
}

/* CTA — cyberpunk / imperial button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: .9em 2.4em;
  border: 1px solid var(--color-jade);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeInUp 1s ease-out .5s both;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-jade), #006666);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  z-index: -1;
}

.btn-cta:hover {
  border-color: var(--color-jade);
  box-shadow: 0 0 30px var(--color-jade-glow), inset 0 0 30px rgba(0, 139, 139, .08);
}

.btn-cta:hover::before {
  transform: scaleX(1);
}

.btn-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out .8s both;
}

.hero__scroll span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-jade), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================
   INSTAGRAM / MISSIONS GRID
   ============================================================ */
.missions {
  background: var(--bg-secondary);
  /* Subtle stone texture */
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, .008) 0px,
      rgba(255, 255, 255, .008) 1px,
      transparent 1px,
      transparent 60px),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .008) 0px,
      rgba(255, 255, 255, .008) 1px,
      transparent 1px,
      transparent 60px);
}

.missions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.missions__card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-primary);
}

/* Each card gets a unique colour to make them visually distinct without images */
.missions__card:nth-child(1) .missions__card-bg {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 40%, var(--color-jade) 200%);
}

.missions__card:nth-child(2) .missions__card-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.missions__card:nth-child(3) .missions__card-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, var(--color-forest) 200%);
}

.missions__card:nth-child(4) .missions__card-bg {
  background: linear-gradient(135deg, #141414 0%, #1c2333 40%, #2a4a6b 100%);
}

.missions__card:nth-child(5) .missions__card-bg {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a2a1a 40%, var(--color-jade) 200%);
}

.missions__card:nth-child(6) .missions__card-bg {
  background: linear-gradient(135deg, #0b0b1a 0%, #1a1a2e 40%, #3a3a5c 100%);
}

.missions__card-bg {
  position: absolute;
  inset: 0;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

/* Decorative imperial icon inside each card */
.missions__card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  opacity: .12;
  transition: opacity var(--transition), transform var(--transition);
}

.missions__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition);
}

.missions__card-overlay span {
  font-family: var(--ff-heading);
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--color-text);
}

.missions__card:hover .missions__card-bg {
  transform: scale(1.08);
}

.missions__card:hover .missions__card-overlay {
  opacity: 1;
}

.missions__card:hover .missions__card-icon {
  opacity: .25;
  transform: translate(-50%, -50%) scale(1.15);
}

.missions__cta {
  text-align: center;
  margin-top: var(--space-md);
}

.missions__cta a {
  font-family: var(--ff-heading);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-jade);
  border-bottom: 1px solid rgba(0, 139, 139, .3);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}

.missions__cta a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

@media (max-width: 480px) {
  .missions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   HISTORY SECTION
   ============================================================ */
.history {
  overflow: hidden;
}

.history__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.history__text h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.history__text h2 span {
  color: var(--color-jade);
}

.history__text p {
  font-size: 1rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.history__text .history__regions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--space-sm);
}

.history__tag {
  font-family: var(--ff-heading);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-jade);
  padding: .3em .9em;
  border: 1px solid rgba(0, 139, 139, .25);
  border-radius: 30px;
  transition: background var(--transition), color var(--transition);
}

.history__tag:hover {
  background: var(--color-jade);
  color: var(--bg-primary);
}

/* ── State Badges (dynamic About section) ────────────── */
.states-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.state-badge {
  font-family: var(--ff-heading);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 15px;
  border: 1px solid #008B8B;
  border-radius: 20px;
  color: #008B8B;
  transition: background .3s, color .3s;
}

.state-badge:hover {
  background: #008B8B;
  color: #0a0a0a;
}

/* Visual image replacement — decorative panel */
.history__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 139, 139, .1) 0%, transparent 50%),
    linear-gradient(320deg, rgba(34, 139, 34, .08) 0%, transparent 50%),
    var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .08);
}

/* Decorative carved stone lines */
.history__visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(0, 139, 139, .12);
  border-radius: var(--radius-sm);
}

.history__visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, .5));
}

.history__visual-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  opacity: .08;
}

svg.mayan-map {
  width: 90%;
  max-width: 450px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px var(--color-jade-glow));
  transition: all 0.5s ease;
  z-index: 1;
}

.mayan-map .mayan-state {
  fill: var(--color-jade);
  stroke: var(--color-jade);
  stroke-width: 0.5px;
  opacity: 0.75;
  transition: all 0.4s ease;
  transform-origin: center;
}

.mayan-map .mayan-state:hover {
  opacity: 1;
  fill: #00ffff;
  filter: drop-shadow(0 0 12px var(--color-jade));
}

.mayan-map .other-state {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.5px;
  transition: all 0.3s ease;
}

.mayan-map .other-state:hover {
  fill: rgba(255, 255, 255, 0.08);
}

/* Custom Tooltip for Map */
.map-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  margin-top: -15px;
  background-color: var(--bg-surface);
  border: 1px solid var(--color-jade);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-base);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 8px 16px rgba(0,0,0,0.8), 0 0 12px var(--color-jade-glow);
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

.map-tooltip.visible {
  opacity: 1;
}

.history__year-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  font-family: var(--ff-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-jade);
  opacity: .6;
}

@media (max-width: 768px) {
  .history__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .history__visual {
    aspect-ratio: 4/3;
    order: -1;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(140, 146, 150, .08);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__brand-name {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer__brand-desc {
  font-size: .85rem;
  color: var(--color-text-dim);
  max-width: 260px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer__links-title {
  font-family: var(--ff-heading);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: .2rem;
}

.footer__links a {
  font-size: .9rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-jade);
}

.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(140, 146, 150, .15);
  color: var(--color-stone);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer__social a:hover {
  border-color: var(--color-jade);
  color: var(--color-jade);
  background: rgba(0, 139, 139, .08);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(140, 146, 150, .06);
  font-size: .8rem;
  color: var(--color-text-dim);
}

.footer__bottom a {
  color: var(--color-jade);
  font-weight: 500;
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .footer__social {
    justify-content: center;
  }

  .footer__brand-desc {
    max-width: 100%;
  }
}

/* ============================================================
   SOCIAL FLOATING BUTTONS (WhatsApp + Facebook)
   ============================================================ */
.social-floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.floating-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

.whatsapp-btn {
  background: #25D366;
}

.facebook-btn {
  background: #1877F2;
}

@media (max-width: 480px) {
  .social-floating-buttons {
    right: 14px;
    bottom: 85px;
    gap: 12px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Floating Audio Button ───────────────────────────── */
.floating-audio-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #008B8B;
  color: #008B8B;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(0, 139, 139, .3);
  padding: 0;
}

.floating-audio-btn svg {
  width: 22px;
  height: 22px;
  stroke: #008B8B;
  fill: none;
}

.floating-audio-btn:hover {
  background: #008B8B;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 139, 139, .5);
}

.floating-audio-btn:hover svg {
  stroke: #fff;
}

.floating-audio-btn.playing {
  animation: audioPulse 2s ease-in-out infinite;
}

@keyframes audioPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 139, 139, .3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 139, 139, .6), 0 0 40px rgba(0, 139, 139, .2);
  }
}

@media (max-width: 480px) {
  .floating-audio-btn {
    left: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .floating-audio-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   ANIMATIONS (shared)
   ============================================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

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

/* ============================================================
   PHASE 2 — ROSTER PAGE
   ============================================================ */

/* ── Active nav link ─────────────────────────────────── */
.navbar__links a.active {
  color: var(--color-jade);
}

.navbar__links a.active::after {
  width: 100%;
}

/* ── Page Header (reusable for inner pages) ──────────── */
.page-header {
  padding-top: calc(var(--navbar-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 80%, rgba(0, 139, 139, .08) 0%, transparent 70%),
    var(--bg-primary);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 139, 139, .25), transparent);
}

.page-header__badge {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-jade);
  border: 1px solid rgba(0, 139, 139, .3);
  padding: .3em 1em;
  border-radius: 30px;
  margin-bottom: var(--space-sm);
  animation: fadeInDown .7s ease-out both;
}

.page-header__title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  background: linear-gradient(180deg, var(--color-text) 40%, var(--color-stone) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  animation: fadeInDown .8s ease-out .1s both;
}

.page-header__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--color-stone);
  animation: fadeInDown .9s ease-out .2s both;
}

/* ── Roster Controls ─────────────────────────────────── */
.roster {
  padding: var(--space-lg) 0 var(--space-xl);
}

.roster__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.roster__search {
  position: relative;
  flex: 1 1 280px;
}

.roster__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-stone);
  pointer-events: none;
}

.roster__search-input {
  width: 100%;
  padding: .75em 1em .75em 2.8em;
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(140, 146, 150, .12);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.roster__search-input::placeholder {
  color: var(--color-text-dim);
  opacity: .6;
}

.roster__search-input:focus {
  border-color: var(--color-jade);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, .12);
}

.roster__filters {
  display: flex;
  gap: 6px;
}

.roster__filter-btn {
  font-family: var(--ff-heading);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-stone);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(140, 146, 150, .1);
  border-radius: 30px;
  padding: .45em 1.2em;
  cursor: pointer;
  transition: all var(--transition);
}

.roster__filter-btn:hover {
  border-color: var(--color-jade);
  color: var(--color-jade);
}

.roster__filter-btn.active {
  background: var(--color-jade);
  border-color: var(--color-jade);
  color: var(--bg-primary);
}

.roster__count {
  font-family: var(--ff-heading);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-left: auto;
}

.roster__count span {
  color: var(--color-jade);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Roster Grid ─────────────────────────────────────── */
.roster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

/* ── Roster Card ─────────────────────────────────────── */
.roster-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 139, 139, .2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(0, 139, 139, .08);
}

.roster-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.roster-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(0, 139, 139, .06) 0%, transparent 60%),
    var(--bg-primary);
  overflow: hidden;
}

.roster-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.roster-card:hover .roster-card__image {
  transform: scale(1.06);
}

/* Fallback when image fails */
.roster-card__image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(0, 139, 139, .08), transparent),
    var(--bg-primary);
}

.roster-card__image-fallback span {
  font-family: var(--ff-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-jade);
  opacity: .3;
  letter-spacing: .08em;
}

/* ID badge on image */
.roster-card__prefix-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--ff-heading);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-text);
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .3em .7em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(140, 146, 150, .1);
}

/* Card body */
.roster-card__body {
  padding: var(--space-sm);
}

.roster-card__name {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  margin-bottom: 4px;
  line-height: 1.3;
  color: var(--color-text);
}

.roster-card__costume {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .78rem;
  color: var(--color-text-dim);
  letter-spacing: .02em;
}

.roster-card__officer {
  display: block;
  margin-top: 6px;
  font-family: var(--ff-heading);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-jade);
  padding: .25em .6em;
  border: 1px solid rgba(0, 139, 139, .2);
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* Glow effect on hover */
.roster-card__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-jade), var(--color-forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.roster-card:hover .roster-card__glow {
  transform: scaleX(1);
}

/* ── Empty State ─────────────────────────────────────── */
.roster__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  color: var(--color-text-dim);
}

.roster__empty svg {
  width: 48px;
  height: 48px;
  opacity: .3;
  color: var(--color-stone);
}

.roster__empty p {
  font-size: 1rem;
}

/* ── Roster responsive ───────────────────────────────── */
@media (max-width: 600px) {
  .roster__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .roster__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .roster__count {
    text-align: center;
    margin-left: 0;
  }

  .roster__filters {
    justify-content: center;
  }

  .roster-card__name {
    font-size: .82rem;
  }

  .roster-card__body {
    padding: .6rem;
  }
}

@media (max-width: 380px) {
  .roster__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PHASE 3 — CARD SIZE FIXES & LOADING STATE
   ============================================================ */

/* Tighter grid for 501st thumbnail cards */
.roster__grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

/* Fix image aspect ratio to match 501st.com thumbnails (75×101) */
.roster-card__image {
  aspect-ratio: 75 / 101;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.roster-card__image-wrap {
  aspect-ratio: auto;
}

/* Smaller text for compact cards */
.roster-card__name {
  font-size: .85rem;
  line-height: 1.1;
  margin-bottom: .2rem;
}

.roster-card__costume,
.roster-card__prefix-badge {
  font-size: .7rem;
}

.roster-card__officer {
  font-size: .6rem;
}

.roster-card__image-fallback span {
  font-size: 1.6rem;
}

/* Mobile compact: 3 columns */
@media (max-width: 600px) {
  .roster__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .roster-card__name {
    font-size: .72rem;
  }

  .roster-card__body {
    padding: .4rem;
  }
}

@media (max-width: 380px) {
  .roster__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Roster Loading State ────────────────────────────── */
.roster__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  color: var(--color-text-dim);
}

.roster__loading p {
  font-family: var(--ff-heading);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roster__loading--error {
  color: var(--color-danger);
}

.roster__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(140, 146, 150, .15);
  border-top-color: var(--color-jade);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */
.admin {
  padding-top: calc(var(--navbar-h) + var(--space-lg));
  padding-bottom: var(--space-xl);
  min-height: 80vh;
}

/* ── Login Card ──────────────────────────────────────── */
.admin__login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.admin__login-card {
  text-align: center;
  padding: var(--space-lg);
  max-width: 420px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .08);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.admin__login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-jade), var(--color-forest));
}

.admin__icon {
  width: 48px;
  height: 48px;
  color: var(--color-jade);
  margin-bottom: var(--space-sm);
  opacity: .6;
}

.admin__title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--color-text);
  margin-bottom: .3rem;
}

.admin__subtitle {
  font-family: var(--ff-heading);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-jade);
  margin-bottom: var(--space-md);
}

.admin__google-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(140, 146, 150, .15);
  border-radius: var(--radius-md);
  padding: .8em 1.6em;
  cursor: pointer;
  transition: all var(--transition);
}

.admin__google-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--color-jade);
  box-shadow: 0 4px 20px rgba(0, 139, 139, .15);
}

/* ── Dashboard ───────────────────────────────────────── */
.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(140, 146, 150, .08);
  flex-wrap: wrap;
}

.admin__welcome {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin__welcome span {
  color: var(--color-jade);
}

.admin__rank {
  font-size: .8rem;
  color: var(--color-text-dim);
  margin-top: .2rem;
}

.admin__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-heading);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-stone);
  background: none;
  border: 1px solid rgba(140, 146, 150, .15);
  border-radius: var(--radius-sm);
  padding: .5em 1em;
  cursor: pointer;
  transition: all var(--transition);
}

.admin__logout-btn:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* ── Sections ────────────────────────────────────────── */
.admin__section {
  background: var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.admin__section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.admin__section-title svg {
  color: var(--color-jade);
}

.admin__hint {
  font-size: .85rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.admin__hint code {
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  color: var(--color-jade);
  background: rgba(0, 139, 139, .08);
  padding: .1em .4em;
  border-radius: 3px;
}

/* ── Terminal-style Textarea ─────────────────────────── */
.admin__textarea {
  width: 100%;
  padding: var(--space-sm);
  font-family: 'Courier New', Consolas, monospace;
  font-size: .85rem;
  line-height: 1.5;
  color: #00ff88;
  background: #050505;
  border: 1px solid rgba(0, 139, 139, .2);
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin__textarea::placeholder {
  color: rgba(0, 255, 136, .2);
}

.admin__textarea:focus {
  border-color: var(--color-jade);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, .1), inset 0 0 30px rgba(0, 255, 136, .02);
}

/* ── Actions ─────────────────────────────────────────── */
.admin__actions {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
}

.admin__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-heading);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-jade), #006666);
  border: none;
  border-radius: var(--radius-sm);
  padding: .8em 1.6em;
  cursor: pointer;
  transition: all var(--transition);
}

.admin__upload-btn:hover {
  box-shadow: 0 4px 20px var(--color-jade-glow);
  transform: translateY(-2px);
}

.admin__upload-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Status Messages ─────────────────────────────────── */
.admin__status {
  margin-top: var(--space-sm);
  padding: .8em 1em;
  font-family: var(--ff-body);
  font-size: .9rem;
  border-radius: var(--radius-sm);
  min-height: 1.5em;
}

.admin__status:empty {
  display: none;
}

.admin__status--loading {
  color: var(--color-jade);
  background: rgba(0, 139, 139, .06);
  border-left: 3px solid var(--color-jade);
}

.admin__status--success {
  color: #4ade80;
  background: rgba(74, 222, 128, .06);
  border-left: 3px solid #4ade80;
}

.admin__status--error {
  color: var(--color-danger);
  background: rgba(255, 68, 68, .06);
  border-left: 3px solid var(--color-danger);
}

/* ── Admin responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .admin__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin__section {
    padding: var(--space-sm);
  }
}

/* ============================================================
   PHASE 4 — HISTORIA / VERTICAL TIMELINE
   ============================================================ */

.timeline {
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
}

/* ── Central axis track ──────────────────────────────── */
.timeline__track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline__track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg,
      transparent 0%,
      var(--color-jade) 8%,
      var(--color-jade) 92%,
      transparent 100%);
}

/* ── Timeline Item (node row) ────────────────────────── */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Left-aligned item: card on the left side */
.timeline-item--left {
  justify-content: flex-start;
  padding-right: calc(50% + 30px);
}

/* Right-aligned item: card on the right side */
.timeline-item--right {
  justify-content: flex-end;
  padding-left: calc(50% + 30px);
}

/* ── Timeline Icon (center circle) ───────────────────── */
.timeline-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--color-jade);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 139, 139, .15);
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-jade);
}

.timeline-item:hover .timeline-icon {
  box-shadow: 0 0 25px rgba(0, 139, 139, .3);
  transform: translateX(-50%) scale(1.08);
}

/* Highlight variant for milestone */
.timeline-icon--highlight {
  border-color: #f5c518;
  box-shadow: 0 0 20px rgba(245, 197, 24, .2);
}

.timeline-icon--highlight svg {
  color: #f5c518;
}

.timeline-item:hover .timeline-icon--highlight {
  box-shadow: 0 0 30px rgba(245, 197, 24, .35);
}

/* ── Connector dots (before icon) ────────────────────── */
.timeline-icon::before,
.timeline-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-jade);
  opacity: .4;
}

.timeline-icon::before {
  top: -12px;
}

.timeline-icon::after {
  bottom: -12px;
}

/* ── Timeline Content Card ───────────────────────────── */
.timeline-content {
  position: relative;
  background: #1A1A1A;
  border: 1px solid rgba(140, 146, 150, .08);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-jade), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-item--right .timeline-content::before {
  background: linear-gradient(270deg, var(--color-jade), transparent);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  border-color: rgba(0, 139, 139, .15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(0, 139, 139, .06);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

/* Highlight card (milestone) */
.timeline-content--highlight {
  border-color: rgba(245, 197, 24, .12);
}

.timeline-content--highlight::before {
  background: linear-gradient(90deg, #f5c518, transparent) !important;
  opacity: .6;
}

.timeline-item:hover .timeline-content--highlight {
  border-color: rgba(245, 197, 24, .25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 25px rgba(245, 197, 24, .06);
}

/* Content typography */
.timeline-content__date {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-jade);
  margin-bottom: .6rem;
}

.timeline-content--highlight .timeline-content__date {
  color: #f5c518;
}

.timeline-content__title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--color-text);
  margin-bottom: .6rem;
  text-transform: none;
  letter-spacing: .02em;
}

.timeline-content__text {
  font-family: var(--ff-body);
  font-size: .92rem;
  line-height: 1.65;
  color: var(--color-stone);
}

.timeline-content__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.timeline-content__text em {
  color: var(--color-jade);
  font-style: normal;
}

/* Bottom glow bar */
.timeline-content__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-jade), var(--color-forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.timeline-item:hover .timeline-content__glow {
  transform: scaleX(1);
}

/* ── Arrow connector (desktop) ───────────────────────── */
.timeline-item--left .timeline-content::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #1A1A1A;
}

.timeline-item--right .timeline-content::after {
  content: '';
  position: absolute;
  top: 16px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #1A1A1A;
}

/* ── Timeline Responsive ─────────────────────────────── */
@media (max-width: 768px) {

  /* Move axis to the left */
  .timeline__track::before {
    left: 20px;
    transform: none;
  }

  /* All items align right */
  .timeline-item--left,
  .timeline-item--right {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  /* Icon on the left */
  .timeline-icon {
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .timeline-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Remove desktop arrows */
  .timeline-item--left .timeline-content::after,
  .timeline-item--right .timeline-content::after {
    display: none;
  }

  .timeline-content {
    padding: var(--space-sm);
  }

  .timeline-content__title {
    font-size: 1.1rem;
  }

  .timeline-content__text {
    font-size: .85rem;
  }
}

@media (max-width: 480px) {

  .timeline-item--left,
  .timeline-item--right {
    padding-left: 50px;
  }

  .timeline__track::before {
    left: 16px;
  }

  .timeline-icon {
    left: 16px;
    width: 34px;
    height: 34px;
  }

  .timeline-icon svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================================
   PHASE 5 — CONTACT & RECRUITMENT
   ============================================================ */

.contact {
  padding: var(--space-lg) 0 var(--space-xl);
}

/* ── Two-column grid ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-col {
  min-width: 0;
}

/* ── Form container ──────────────────────────────────── */
.contact-form-wrap {
  background: var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-jade), var(--color-forest), transparent);
}

/* ── Form title ──────────────────────────────────────── */
.contact-form__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  text-transform: none;
  letter-spacing: .02em;
}

.contact-form__title svg {
  color: var(--color-jade);
  flex-shrink: 0;
}

/* ── Disclaimer ──────────────────────────────────────── */
.contact-form__disclaimer {
  display: flex;
  gap: .8rem;
  padding: .8em 1em;
  margin-bottom: var(--space-md);
  background: rgba(0, 139, 139, .04);
  border: 1px solid rgba(0, 139, 139, .1);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--color-text-dim);
}

.contact-form__disclaimer svg {
  color: var(--color-jade);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form__disclaimer strong {
  color: var(--color-text);
}

/* ── Form rows ───────────────────────────────────────── */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.contact-form__row--triple {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Form fields ─────────────────────────────────────── */
.contact-form__field {
  margin-bottom: var(--space-sm);
}

.contact-form__field label {
  display: block;
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: .4rem;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  background: #1a1a1a;
  color: var(--color-text);
  border: 1px solid #333;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(140, 146, 150, .4);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-jade);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, .1);
}

/* Date/time inputs color scheme */
.contact-form__field input[type="date"],
.contact-form__field input[type="time"] {
  color-scheme: dark;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Radio Groups ────────────────────────────────────── */
.contact-form__radios {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(140, 146, 150, .06);
  border-radius: var(--radius-sm);
}

.contact-form__radio-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .88rem;
}

.contact-form__radio-label {
  flex: 1;
  color: var(--color-stone);
  font-size: .85rem;
}

.contact-form__radio-group label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  color: var(--color-text-dim);
  font-size: .85rem;
  transition: color .2s;
}

.contact-form__radio-group label:hover {
  color: var(--color-text);
}

.contact-form__radio-group input[type="radio"] {
  accent-color: var(--color-jade);
  width: 16px;
  height: 16px;
}

/* ── Submit Button ───────────────────────────────────── */
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-jade), #006666);
  border: none;
  border-radius: var(--radius-sm);
  padding: 1em 2em;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: var(--space-xs);
}

.contact-form__submit:hover {
  box-shadow: 0 6px 25px var(--color-jade-glow);
  transform: translateY(-2px);
}

.contact-form__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Success Message ─────────────────────────────────── */
.contact-form__success {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: var(--space-sm);
  padding: 1em 1.2em;
  background: rgba(74, 222, 128, .06);
  border: 1px solid rgba(74, 222, 128, .2);
  border-radius: var(--radius-sm);
  color: #4ade80;
  animation: fadeInDown .5s ease-out both;
}

.contact-form__success svg {
  flex-shrink: 0;
}

.contact-form__success p {
  font-size: .9rem;
  line-height: 1.4;
}

/* ============================================================
   RECRUITMENT / JOIN SECTION
   ============================================================ */

.join-section__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-transform: none;
  letter-spacing: .02em;
}

.join-section__title svg {
  color: var(--color-jade);
  flex-shrink: 0;
}

/* ── Join Card ───────────────────────────────────────── */
.join-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid rgba(140, 146, 150, .06);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.join-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 139, 139, .15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4), 0 0 15px rgba(0, 139, 139, .06);
}

.join-card__number {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-jade);
  opacity: .2;
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
  padding-top: .2rem;
}

.join-card:hover .join-card__number {
  opacity: .5;
}

.join-card__content {
  flex: 1;
  min-width: 0;
}

.join-card__title {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: .4rem;
  text-transform: none;
  letter-spacing: .02em;
}

.join-card__text {
  font-family: var(--ff-body);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--color-stone);
  margin-bottom: .5rem;
}

.join-card__text strong {
  color: var(--color-text);
}

.join-card__text em {
  color: var(--color-jade);
  font-style: normal;
}

/* Ordered list in step 3 */
.join-card__steps {
  font-family: var(--ff-body);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--color-stone);
  padding-left: 1.2em;
  margin-bottom: .5rem;
}

.join-card__steps li {
  margin-bottom: .4rem;
}

.join-card__steps strong {
  color: var(--color-text);
}

/* External link */
.join-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-jade);
  text-decoration: none;
  transition: color .2s;
}

.join-card__link:hover {
  color: var(--color-text);
}

/* ── Social CTA ──────────────────────────────────────── */
.join-cta {
  margin-top: var(--space-md);
  text-align: center;
}

.join-cta p {
  font-size: .88rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
}

.join-cta__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.join-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(140, 146, 150, .12);
  border-radius: var(--radius-sm);
  padding: .6em 1.2em;
  text-decoration: none;
  transition: all var(--transition);
}

.join-cta__btn:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, .08);
  color: #1877f2;
}

.join-cta__btn--wa:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, .08);
  color: #25d366;
}

/* ── Contact Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .contact-form__radio-group {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .contact-form__radio-label {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   PHASE 6 — ADMIN TABS & INBOX
   ============================================================ */

/* ── Tab Navigation ──────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  background: rgba(140, 146, 150, .04);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.admin-tabs__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--ff-heading);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: .7em 1em;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tabs__btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, .03);
}

.admin-tabs__btn.active {
  color: var(--color-jade);
  background: rgba(0, 139, 139, .06);
  border-bottom-color: var(--color-jade);
}

.admin-tabs__btn svg {
  opacity: .6;
}

.admin-tabs__btn.active svg {
  opacity: 1;
  color: var(--color-jade);
}

/* Badge counter */
.admin-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-family: var(--ff-body);
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-danger);
  border-radius: 9px;
  padding: 0 5px;
  line-height: 1;
}

/* ── Inbox Cards ─────────────────────────────────────── */
.inbox-card {
  background: #111;
  border: 1px solid rgba(140, 146, 150, .08);
  border-left: 3px solid rgba(140, 146, 150, .15);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.inbox-card--pending {
  border-left-color: var(--color-jade);
}

.inbox-card--read {
  opacity: .65;
}

.inbox-card:hover {
  border-color: rgba(140, 146, 150, .15);
}

.inbox-card--pending:hover {
  border-left-color: var(--color-jade);
}

/* Card header */
.inbox-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6em 1em;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(140, 146, 150, .06);
}

.inbox-card__status {
  font-family: var(--ff-heading);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inbox-card__status--pending {
  color: var(--color-jade);
}

.inbox-card__status--read {
  color: var(--color-text-dim);
}

.inbox-card__date {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .72rem;
  color: var(--color-text-dim);
}

/* Card body — tactical report rows */
.inbox-card__body {
  padding: .8em 1em;
}

.inbox-card__row {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .25em 0;
  border-bottom: 1px solid rgba(140, 146, 150, .04);
}

.inbox-card__row:last-child {
  border-bottom: none;
}

.inbox-card__label {
  font-family: var(--ff-heading);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  min-width: 80px;
  flex-shrink: 0;
}

.inbox-card__value {
  font-family: var(--ff-body);
  font-size: .85rem;
  color: var(--color-stone);
}

.inbox-card__value--highlight {
  color: var(--color-text);
  font-weight: 600;
}

.inbox-card__value--mono {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .8rem;
  color: var(--color-jade);
}

.inbox-card__value a {
  color: var(--color-jade);
  text-decoration: none;
}

.inbox-card__value a:hover {
  text-decoration: underline;
}

/* Description block */
.inbox-card__desc {
  margin-top: .5em;
  padding-top: .5em;
  border-top: 1px solid rgba(140, 146, 150, .06);
}

.inbox-card__desc p {
  font-family: var(--ff-body);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--color-stone);
  margin-top: .3em;
}

/* Actions */
.inbox-card__actions {
  padding: .6em 1em;
  border-top: 1px solid rgba(140, 146, 150, .06);
  display: flex;
  justify-content: flex-end;
}

.inbox-card__mark-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-jade);
  background: rgba(0, 139, 139, .06);
  border: 1px solid rgba(0, 139, 139, .15);
  border-radius: var(--radius-sm);
  padding: .4em .8em;
  cursor: pointer;
  transition: all var(--transition);
}

.inbox-card__mark-btn:hover {
  background: rgba(0, 139, 139, .12);
  border-color: var(--color-jade);
}

.inbox-card__mark-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Empty inbox state */
.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  color: var(--color-text-dim);
}

.inbox-empty svg {
  opacity: .3;
}

.inbox-empty p {
  font-family: var(--ff-heading);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Inbox Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .admin-tabs {
    flex-direction: column;
  }

  .inbox-card__row {
    flex-direction: column;
    gap: .15rem;
  }

  .inbox-card__label {
    min-width: auto;
  }
}

/* ============================================================
   PHASE 7 — HOLORED NEWS SYSTEM
   ============================================================ */

/* ── Section ─────────────────────────────────────────── */
.holonet-news {
  padding: var(--space-lg) 0;
}

.holonet-archive {
  padding: var(--space-lg) 0 var(--space-xl);
}

/* ── CTA ─────────────────────────────────────────────── */
.holonet-news__cta {
  text-align: center;
  margin-top: var(--space-md);
}

.holonet-news__cta a {
  font-family: var(--ff-heading);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-jade);
  text-decoration: none;
  transition: color var(--transition);
}

.holonet-news__cta a:hover {
  color: var(--color-text);
}

/* ── News Grid ───────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.news-grid--archive {
  grid-template-columns: repeat(2, 1fr);
}

/* ── News Card ───────────────────────────────────────── */
.news-card {
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 139, 139, .2);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .5), 0 0 15px rgba(0, 139, 139, .06);
}

/* Cover image */
.news-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card__cover img {
  transform: scale(1.05);
}

.news-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a, #151515);
}

/* Card body */
.news-card__body {
  padding: var(--space-sm);
}

.news-card__date {
  display: inline-block;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .7rem;
  color: var(--color-text-dim);
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.news-card__title {
  font-size: 1.05rem;
  color: var(--color-jade);
  margin-bottom: .5rem;
  text-transform: none;
  letter-spacing: .01em;
  line-height: 1.35;
}

.news-card__text {
  font-family: var(--ff-body);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--color-stone);
}

/* Full-width card in archive */
.news-card--full .news-card__body {
  padding: var(--space-sm) var(--space-md);
}

.news-card--full .news-card__text {
  white-space: pre-line;
}

/* ── Thumbnail Gallery ───────────────────────────────── */
.news-card__gallery {
  display: flex;
  gap: .5rem;
  margin-top: var(--space-sm);
  overflow-x: auto;
  padding-bottom: .3rem;
}

.news-card__gallery img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #333;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  flex-shrink: 0;
}

.news-card__gallery img:hover {
  border-color: var(--color-jade);
  transform: scale(1.05);
}

/* ── Admin File Input ────────────────────────────────── */
.admin__file-input {
  width: 100%;
  background: #1a1a1a;
  color: var(--color-text);
  border: 1px solid #333;
  padding: 10px;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: .85rem;
  cursor: pointer;
}

.admin__file-input::file-selector-button {
  background: rgba(0, 139, 139, .1);
  border: 1px solid rgba(0, 139, 139, .2);
  color: var(--color-jade);
  padding: .4em .8em;
  border-radius: var(--radius-sm);
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: .8em;
  transition: all var(--transition);
}

.admin__file-input::file-selector-button:hover {
  background: rgba(0, 139, 139, .2);
}

.admin__file-hint {
  display: block;
  margin-top: .4rem;
  font-size: .75rem;
  color: var(--color-text-dim);
}

/* ── News Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid--archive {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PHASE 8A — NEWS LIST VIEW + ADMIN NEWS CRUD
   ============================================================ */

/* ── Stacked List View ───────────────────────────────── */
.news-list-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.news-list-card {
  display: flex;
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.news-list-card:hover {
  border-color: rgba(0, 139, 139, .2);
  box-shadow: 0 6px 25px rgba(0, 0, 0, .4), 0 0 10px rgba(0, 139, 139, .05);
}

.news-list-card__thumb {
  flex: 0 0 30%;
  max-width: 30%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.news-list-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-list-card:hover .news-list-card__thumb img {
  transform: scale(1.05);
}

.news-list-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a, #151515);
}

.news-list-card__body {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-card__body .news-card__text {
  white-space: pre-line;
}

@media (max-width: 600px) {
  .news-list-card {
    flex-direction: column;
  }

  .news-list-card__thumb {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* ── Admin News Row (CRUD list) ──────────────────────── */
.admin-news-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid #222;
  transition: background var(--transition);
}

.admin-news-row:hover {
  background: rgba(0, 139, 139, .04);
}

.admin-news-row__thumb {
  flex: 0 0 50px;
  width: 50px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-news-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.admin-news-row__title {
  font-size: .85rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-news-row__date {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .7rem;
  color: var(--color-text-dim);
}

.admin-news-row__actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.admin-news-row__btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--color-text-dim);
}

.admin-news-row__btn--edit:hover {
  color: var(--color-jade);
  border-color: var(--color-jade);
  background: rgba(0, 139, 139, .08);
}

.admin-news-row__btn--delete:hover {
  color: #ff4444;
  border-color: #ff4444;
  background: rgba(255, 68, 68, .08);
}

/* ── Cancel Edit Button ──────────────────────────────── */
.admin__cancel-edit {
  display: inline-block;
  margin-top: .6rem;
  padding: .4rem 1rem;
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, .2);
  background: rgba(255, 68, 68, .05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.admin__cancel-edit:hover {
  background: rgba(255, 68, 68, .12);
  border-color: #ff4444;
}

/* Admin hint text */
.admin__hint {
  font-size: .82rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

/* ============================================================
   PHASE 8B — RBAC OFFICERS SYSTEM
   ============================================================ */

/* ── Officer Toggle Switches ─────────────────────────── */
.officer-toggles {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: var(--space-sm) 0;
}

.officer-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  user-select: none;
}

.officer-toggle input[type="checkbox"] {
  display: none;
}

.officer-toggle__slider {
  position: relative;
  width: 42px;
  height: 22px;
  background: #222;
  border: 1px solid #444;
  border-radius: 11px;
  transition: all .3s ease;
  flex-shrink: 0;
}

.officer-toggle__slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #666;
  transition: all .3s ease;
}

.officer-toggle input:checked+.officer-toggle__slider {
  background: rgba(0, 139, 139, .15);
  border-color: var(--color-jade);
}

.officer-toggle input:checked+.officer-toggle__slider::before {
  transform: translateX(20px);
  background: var(--color-jade);
  box-shadow: 0 0 8px rgba(0, 139, 139, .5);
}

.officer-toggle__label {
  font-size: .82rem;
  color: var(--color-text-dim);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.officer-toggle input:checked~.officer-toggle__label {
  color: var(--color-jade);
}

/* ── Officer Form ────────────────────────────────────── */
.officer-form {
  max-width: 480px;
}

/* ── Officer Cards (list items) ──────────────────────── */
.officer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid #222;
  transition: background var(--transition);
}

.officer-card:hover {
  background: rgba(0, 139, 139, .03);
}

.officer-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.officer-card__email {
  font-size: .85rem;
  color: var(--color-text);
  font-family: 'Courier New', Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.officer-card__badges {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

/* ── Permission Badges ───────────────────────────────── */
.officer-badge {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .6rem;
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid;
}

.officer-badge--roster {
  color: #4fc3f7;
  border-color: rgba(79, 195, 247, .25);
  background: rgba(79, 195, 247, .06);
}

.officer-badge--news {
  color: var(--color-jade);
  border-color: rgba(0, 139, 139, .25);
  background: rgba(0, 139, 139, .06);
}

.officer-badge--inbox {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, .25);
  background: rgba(255, 183, 77, .06);
}

/* ── Revoke Button ───────────────────────────────────── */
.officer-card__revoke {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  font-family: var(--ff-heading);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ff4444;
  background: transparent;
  border: 1px solid rgba(255, 68, 68, .2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.officer-card__revoke:hover {
  background: rgba(255, 68, 68, .1);
  border-color: #ff4444;
}

@media (max-width: 600px) {
  .officer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* ============================================================
   PHASE 9 — GALLERY GRID + LIGHTBOX
   ============================================================ */

/* ── Gallery Section ─────────────────────────────────── */
.gallery-section {
  padding: var(--space-xl) 0;
}

/* ── Gallery Grid ────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ── Gallery Card (Album) ────────────────────────────── */
.gallery-card {
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.gallery-card:hover {
  border-color: rgba(0, 139, 139, .25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 12px rgba(0, 139, 139, .06);
  transform: translateY(-3px);
}

.gallery-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
}

.gallery-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-card:hover .gallery-card__cover img {
  transform: scale(1.08);
}

.gallery-card__cover svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gallery-card__count {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  padding: .2rem .55rem;
  font-family: var(--ff-heading);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-card__body {
  padding: .75rem 1rem;
}

.gallery-card__title {
  font-family: var(--ff-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .2rem;
}

.gallery-card__date {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .7rem;
  color: var(--color-text-dim);
}

/* ── Lightbox Modal ──────────────────────────────────── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Lightbox Image ──────────────────────────────────── */
.lightbox-modal__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-height: 100vh;
}

.lightbox-modal__img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 60px rgba(0, 0, 0, .6);
  transition: opacity .25s ease;
}

/* ── Lightbox Close ──────────────────────────────────── */
.lightbox-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-modal__close:hover {
  background: rgba(255, 68, 68, .2);
  border-color: #ff4444;
  color: #ff4444;
}

/* ── Lightbox Arrows ─────────────────────────────────── */
.lightbox-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-modal__arrow:hover {
  background: rgba(0, 139, 139, .2);
  border-color: var(--color-jade);
  color: var(--color-jade);
}

.lightbox-modal__arrow--prev {
  left: 1rem;
}

.lightbox-modal__arrow--next {
  right: 1rem;
}

/* ── Lightbox Counter ────────────────────────────────── */
.lightbox-modal__counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  background: rgba(0, 0, 0, .5);
  padding: .3rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* ── Lightbox Info (Album Title) ─────────────────────── */
.lightbox-modal__info {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}

/* ── Gallery badge for officers ──────────────────────── */
.officer-badge--gallery {
  color: #ab47bc;
  border-color: rgba(171, 71, 188, .25);
  background: rgba(171, 71, 188, .06);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-sm);
  }

  .lightbox-modal__arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-modal__arrow svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-modal__img-wrap {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-modal__arrow--prev {
    left: .5rem;
  }

  .lightbox-modal__arrow--next {
    right: .5rem;
  }
}

/* ============================================================
   PHASE 9.1 — DROP ZONES + PREVIEW + EDIT MODAL
   ============================================================ */

/* ── Drop Zone ───────────────────────────────────────── */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 1rem;
  border: 2px dashed rgba(0, 139, 139, .3);
  border-radius: var(--radius-md);
  background: rgba(0, 139, 139, .03);
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}

.drop-zone:hover {
  border-color: rgba(0, 139, 139, .5);
  background: rgba(0, 139, 139, .06);
}

.drop-zone--over {
  border-color: var(--color-jade) !important;
  background: rgba(0, 139, 139, .12) !important;
  box-shadow: 0 0 20px rgba(0, 139, 139, .08);
}

.drop-zone svg {
  color: var(--color-jade);
  opacity: .5;
  transition: opacity .25s;
}

.drop-zone:hover svg,
.drop-zone--over svg {
  opacity: .9;
}

.drop-zone p {
  font-size: .82rem;
  color: var(--color-text-dim);
  margin: 0;
}

.drop-zone p strong {
  color: var(--color-jade);
}

.drop-zone__input {
  display: none !important;
}

/* ── Preview Grid ────────────────────────────────────── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}

/* ── Preview Thumbnail ───────────────────────────────── */
.preview-thumbnail {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #333;
  background: #0a0a0a;
}

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

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .7);
  color: #ff4444;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s;
}

.preview-thumbnail:hover .btn-remove-photo {
  opacity: 1;
}

.btn-remove-photo:hover {
  background: rgba(255, 68, 68, .9);
  color: #fff;
}

/* ── Gallery Edit Modal ──────────────────────────────── */
.edit-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.edit-gallery-modal.active {
  opacity: 1;
  pointer-events: all;
}

.edit-gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
}

.edit-gallery-modal__content {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.edit-gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.edit-gallery-modal__header h3 {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-jade);
}

@media (max-width: 600px) {
  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  }

  .edit-gallery-modal__content {
    padding: 1rem;
  }
}

/* ============================================================
   PHASE 10 — EVENTS SYSTEM
   ============================================================ */

/* ── Events Section ──────────────────────────────────── */
.events-section {
  padding: var(--space-xl) 0;
}

.events-section--past {
  padding-top: 0;
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ── Event Card ──────────────────────────────────────── */
.event-card {
  display: flex;
  gap: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  border-color: rgba(0, 139, 139, .2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.event-card__poster {
  width: 30%;
  min-height: 200px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__content {
  flex: 1;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.event-card__title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  font-size: .78rem;
  color: var(--color-text-dim);
}

.event-card__meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.event-card__meta svg {
  opacity: .5;
  flex-shrink: 0;
}

.event-card__date svg {
  color: var(--color-jade);
  opacity: .8;
}

.event-card__desc {
  font-size: .82rem;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ── Past Events ─────────────────────────────────────── */
.event-card--past {
  opacity: .65;
  filter: saturate(.4);
}

.event-card--past:hover {
  opacity: .85;
  filter: saturate(.7);
}

/* ── Google Calendar Button ──────────────────────────── */
.btn-gcal {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(0, 139, 139, .12);
  border: 1px solid rgba(0, 139, 139, .3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.btn-gcal:hover {
  background: rgba(0, 139, 139, .25);
  border-color: var(--color-jade);
  color: var(--color-jade);
}

.btn-gcal svg {
  opacity: .7;
}

/* ── Home Events Section ─────────────────────────────── */
.home-events {
  padding: var(--space-xl) 0;
}

.home-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.home-events__cta {
  text-align: center;
  margin-top: var(--space-md);
}

.home-events__cta a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-jade);
  text-decoration: none;
  transition: color var(--transition);
}

.home-events__cta a:hover {
  color: #fff;
}

/* ── Home Event Card (Compact) ───────────────────────── */
.home-event-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.home-event-card:hover {
  border-color: rgba(0, 139, 139, .2);
  transform: translateY(-2px);
}

.home-event-card__poster {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.home-event-card:hover .home-event-card__poster img {
  transform: scale(1.05);
}

.home-event-card__info {
  padding: .8rem 1rem;
}

.home-event-card__title {
  font-family: var(--ff-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .3rem;
}

.home-event-card__date {
  display: block;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .7rem;
  color: var(--color-jade);
}

.home-event-card__location {
  display: block;
  font-size: .7rem;
  color: var(--color-text-dim);
  margin-top: .2rem;
}

/* ── Events Badge for Officers ───────────────────────── */
.officer-badge--events {
  color: #42a5f5;
  border-color: rgba(66, 165, 245, .25);
  background: rgba(66, 165, 245, .06);
}

/* ── Admin Past Row ──────────────────────────────────── */
.admin-news-row--past {
  opacity: .55;
}

/* ── Events Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-card__poster {
    width: 100%;
    min-height: 160px;
    max-height: 200px;
  }

  .home-events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .event-card__content {
    padding: 1rem;
  }

  .event-card__title {
    font-size: .95rem;
  }
}

/* ============================================================
   PHASE 10.1 — MAP BUTTON + EVENT CARD FOOTER
   ============================================================ */

/* ── Event Card Footer (flex row for GCal + Map) ───── */
.event-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

/* ── Map Button (Outline Jade) ───────────────────────── */
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #008B8B;
  background: transparent;
  border: 1px solid #008B8B;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-map:hover {
  background: #008B8B;
  color: #fff;
}

/* ── Map Text Link (Home cards) ──────────────────────── */
.map-text-link {
  color: var(--color-jade);
  text-decoration: none;
  transition: color var(--transition);
}

.map-text-link:hover {
  text-decoration: underline;
  color: #fff;
}

/* ── Form Actions Row ────────────────────────────────── */
.contact-form__actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.contact-form__cancel {
  padding: .55rem 1.2rem;
  font-family: var(--ff-heading);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ff6b6b;
  background: transparent;
  border: 1px solid rgba(255, 107, 107, .3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.contact-form__cancel:hover {
  background: rgba(255, 107, 107, .12);
  border-color: #ff6b6b;
}

/* ============================================================
   PHASE 11 — IMMERSIVE MODALS
   ============================================================ */

/* ── Custom Modal (Shared) ───────────────────────────── */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  overflow-y: auto;
}

.custom-modal.active {
  display: flex;
}

.custom-modal__content {
  position: relative;
  background: #111;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 139, 139, .25);
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
  animation: modalFadeIn .25s ease;
}

.custom-modal__content--large {
  max-width: 1000px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.custom-modal__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: none;
  border: none;
  color: var(--color-jade);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition), transform var(--transition);
  padding: .25rem .5rem;
}

.custom-modal__close:hover {
  color: #fff;
  transform: scale(1.15);
}

.custom-modal__title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

/* ── News Modal Content ──────────────────────────────── */
.news-modal__cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.news-modal__date {
  display: block;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .72rem;
  color: var(--color-jade);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.news-modal__title {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}

.news-modal__text {
  font-size: .88rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.news-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
}

.news-modal__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: transform .3s ease;
}

.news-modal__gallery img:hover {
  transform: scale(1.03);
}

/* ── Album Preview Grid ──────────────────────────────── */
.album-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.album-preview-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.album-preview-thumb:hover {
  border-color: var(--color-jade);
  transform: scale(1.04);
}

.album-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Clickable News Cards ────────────────────────────── */
.news-card,
.news-list-card {
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.news-card:hover,
.news-list-card:hover {
  border-color: rgba(0, 139, 139, .25);
  transform: translateY(-2px);
}

.news-card__readmore {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-jade);
  margin-top: .5rem;
  opacity: .7;
  transition: opacity var(--transition);
}

.news-card:hover .news-card__readmore,
.news-list-card:hover .news-card__readmore {
  opacity: 1;
}

/* ── Responsive Modals ───────────────────────────────── */
@media (max-width: 768px) {
  .custom-modal {
    padding: 1.5rem .5rem;
  }

  .custom-modal__content {
    padding: 1.2rem;
    max-height: 95vh;
  }

  .news-modal__cover {
    max-height: 250px;
  }

  .album-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .5rem;
  }

  .news-modal__gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .news-modal__title {
    font-size: 1.05rem;
  }

  .custom-modal__content {
    padding: 1rem;
  }
}

/* ============================================================
   PHASE 11.1 — NEWS LIGHTBOX
   ============================================================ */

/* ── Clickable News Images ───────────────────────────── */
.clickable-news-img {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.clickable-news-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 139, 139, .4);
}

/* ── News Lightbox Overlay ───────────────────────────── */
.news-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .92);
  justify-content: center;
  align-items: center;
}

.news-lightbox.active {
  display: flex;
}

.news-lightbox__img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}

.news-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-drag: none;
}

.news-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  opacity: .7;
  transition: opacity var(--transition), color var(--transition);
}

.news-lightbox__close:hover {
  opacity: 1;
  color: var(--color-jade);
}

.news-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}

.news-lightbox__arrow:hover {
  background: rgba(0, 139, 139, .2);
  border-color: var(--color-jade);
  color: var(--color-jade);
}

.news-lightbox__arrow--prev {
  left: 1rem;
}

.news-lightbox__arrow--next {
  right: 1rem;
}

.news-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Consolas, monospace;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .news-lightbox__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .news-lightbox__close {
    font-size: 1.8rem;
    top: .5rem;
    right: .8rem;
  }
}

/* ============================================================
   PHASE 12 — DYNAMIC HISTORY
   ============================================================ */

/* ── Timeline Image Column ───────────────────────────── */
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

/* Override existing padding-based centering for items with images */
.timeline-item--left {
  padding-right: 0;
}

.timeline-item--right {
  padding-left: 0;
}

/* Odd items: text left, image right (default flex direction) */
.timeline-item:nth-child(odd) .timeline-content {
  width: 45%;
  flex-shrink: 0;
}

.timeline-item:nth-child(odd) .timeline-image {
  width: 45%;
  flex-shrink: 0;
}

/* Even items: reverse order so text goes right, image goes left */
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  width: 45%;
  flex-shrink: 0;
}

.timeline-item:nth-child(even) .timeline-image {
  width: 45%;
  flex-shrink: 0;
}

/* Items without images: content takes full width */
.timeline-item:not(:has(.timeline-image)) .timeline-content {
  width: 100%;
}

.timeline-image {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #008B8B;
}

.timeline-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

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

/* Recenter icons when images are present */
.timeline-item .timeline-icon {
  display: none;
}

/* ── History Sub-Sections ────────────────────────────── */
.history-subsections {
  padding: var(--space-xl) 0;
}

.history-subsection {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 19, 19, .6), rgba(0, 10, 10, .4));
  border: 1px solid rgba(0, 139, 139, .15);
  border-radius: var(--radius-md);
}

.history-subsection:nth-child(even) {
  flex-direction: row-reverse;
}

.history-subsection__image {
  width: 40%;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(0, 139, 139, .2);
}

.history-subsection__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.history-subsection__text {
  flex: 1;
}

.history-subsection__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .8rem;
}

.history-subsection__content {
  font-size: .88rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    align-items: stretch;
    padding-left: 30px !important;
    padding-right: 0 !important;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-image,
  .timeline-item:nth-child(even) .timeline-image {
    width: 100%;
  }

  .timeline-image {
    margin-top: 1rem;
  }

  .history-subsection,
  .history-subsection:nth-child(even) {
    flex-direction: column !important;
  }

  .history-subsection__image {
    width: 100%;
  }
}

/* ── Officer Badge: History ──────────────────────────── */
.officer-badge--history {
  background: rgba(0, 139, 139, .12);
  color: #008B8B;
  border-color: rgba(0, 139, 139, .2);
}

/* ── Reveal animation for dynamic timeline ───────────── */
.timeline-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PHASE 14 — HOME BANNER & ADMIN SETTINGS
   ============================================================ */

/* ── Home Banner — Immersive Slider ───────────────────── */
.main-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 450px;
  min-height: 250px;
  margin-top: 0 !important;
  margin-bottom: 2rem;
}

.main-slider__wrapper {
  width: 100%;
  height: 100%;
}

.main-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.main-slider__slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background-color: #000;
}

/* Pagination dots */
.main-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #008B8B;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
}

.slider-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 139, 139, .4);
}

.slider-dot--active {
  background: #008B8B;
  box-shadow: 0 0 10px rgba(0, 139, 139, .5);
}

/* Responsive */
@media (max-width: 768px) {
  .main-slider {
    min-height: 180px;
  }

  .hero__title {
    white-space: normal;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .main-slider__dots {
    bottom: 14px;
    gap: 8px;
  }
}

/* ── Admin Banner Grid (DnD reorder) ─────────────────── */
.banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 1rem 0;
}

.banner-grid-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid rgba(0, 139, 139, .15);
  transition: opacity .2s, border-color .2s, transform .15s;
}

.banner-grid-item:active {
  cursor: grabbing;
}

.banner-grid-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.banner-grid-item.dragging {
  opacity: .35;
  transform: scale(.95);
}

.banner-grid-item.drag-over {
  border-color: #008B8B;
  box-shadow: 0 0 12px rgba(0, 139, 139, .4);
}

.banner-grid-item__order {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, .7);
  color: #008B8B;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

.banner-grid-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(200, 30, 30, .85);
  color: white;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s;
}

.banner-grid-item:hover .banner-grid-item__remove {
  opacity: 1;
}

/* ── Officer Badge: Settings ─────────────────────────── */
.officer-badge--settings {
  background: rgba(100, 100, 180, .12);
  color: #7B7BCC;
  border-color: rgba(100, 100, 180, .2);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .banner-track img {
    height: 200px;
    min-width: 260px;
  }

  .banner-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
}
/* ── Aurebesh Font & Mode ────────────────────────────── */
@font-face {
    font-family: 'Aurebesh';
    src: url('fonts/aurebesh.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.aurebesh-mode,
body.aurebesh-mode h1,
body.aurebesh-mode h2,
body.aurebesh-mode h3,
body.aurebesh-mode h4,
body.aurebesh-mode h5,
body.aurebesh-mode h6,
body.aurebesh-mode p,
body.aurebesh-mode a,
body.aurebesh-mode span,
body.aurebesh-mode div,
body.aurebesh-mode li,
body.aurebesh-mode button,
body.aurebesh-mode input,
body.aurebesh-mode .nav__link {
    font-family: 'Aurebesh', sans-serif !important;
}

/* Exclude specific icons or classes that might break (like material-icons or font-awesome if any) */
body.aurebesh-mode .material-icons,
body.aurebesh-mode .fas,
body.aurebesh-mode .fab,
body.aurebesh-mode .nav__logo-text {
    font-family: inherit; /* Allow icons to keep their fonts */
}

.aurebesh-toggle {
    background: transparent;
    border: 1px solid var(--color-stone);
    color: var(--color-text);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.aurebesh-toggle:hover {
    border-color: var(--color-jade);
    color: var(--color-jade);
}

/* ── Portal Dropdown ────────────────────────────── */
.nav-item-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--color-stone);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 100;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu li {
    margin: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-jade);
}

/* Mobile support for dropdown */
@media (max-width: 900px) {
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-jade);
        margin-left: 1rem;
        background: transparent;
    }
    .nav-item-dropdown.active .nav-dropdown-menu {
        display: block;
    }
}
