:root {
  --navy-950: hsl(223, 32%, 8%);
  --navy-900: hsl(222, 48%, 12%);
  --navy-800: hsl(223, 34%, 20%);
  --navy-700: hsl(220, 24%, 30%);
  --gold-500: hsl(42, 92%, 57%);
  --gold-400: hsl(43, 88%, 66%);
  --gold-200: hsl(42, 100%, 78%);
  --white-100: hsl(210, 20%, 95%);
  --silver-200: hsl(210, 15%, 80%);
  --glow: rgba(253, 194, 79, 0.25);
  --bg-glow: rgba(31, 59, 115, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Force GitHub Pages rebuild */
}

body {
  position: relative;
  font-family: 'Outfit', sans-serif;
  color: var(--white-100);
  background:
    radial-gradient(circle at top left, var(--bg-glow), transparent 35%),
    linear-gradient(135deg, var(--navy-900), hsl(223, 32%, 10%));
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('image/new division image.jpeg?v=2');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 65vw;
  opacity: 0.18;
  mix-blend-mode: screen;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(90deg, var(--gold-400), var(--white-100));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

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

.news-card {
  overflow: hidden;
  padding: 0;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
}

.news-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.news-date,
.news-admin-item small {
  color: var(--gold-400);
  font-size: 0.82rem;
}

.news-empty {
  color: var(--silver-200);
}

.section-actions {
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--gold-400);
  margin-bottom: 0.8rem;
}

.glass-card,
.site-header {
  background: rgba(10, 18, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.highlight-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, rgba(15,23,47,0.95), rgba(10,18,35,0.98));
}

.highlight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.highlight-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.highlight-card h3 {
  margin-bottom: 0.75rem;
  color: var(--gold-400);
}

.highlight-card p {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.highlight-section .text-center {
  text-align: center;
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.85);
}

.glass-card {
  border-radius: 1.4rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px var(--glow);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 1.5rem));
  border-radius: 999px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  top: 0.5rem;
  padding: 0.3rem 0;
  opacity: 0.98;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--silver-200);
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

  .site-nav a,
  .site-nav button {
    width: auto;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }


.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white-100);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.cta-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  width: 1.4rem;
  height: 2px;
  background: var(--white-100);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  padding-top: 8rem;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.7)),
    url('image/new division image.jpeg?v=2') center/cover no-repeat;
  border-radius: 0 0 2rem 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.9rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--silver-200);
  margin-bottom: 1.6rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(255, 203, 79, 0.2);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-100);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.ring {
  position: absolute;
  inset: 1rem;
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  border: 2px dashed rgba(255, 203, 79, 0.55);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.hero-image-card {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,203,79,0.2), rgba(10,18,35,0.15));
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0.6rem;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.3));
}

.stats-ribbon {
  padding: 1.2rem 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1.5rem;
  background: linear-gradient(90deg, rgba(14,24,44,0.95), rgba(27,42,72,0.9));
  border: 1px solid rgba(255,255,255,0.1);
}

.stats-grid article {
  text-align: center;
  padding: 0.7rem 0;
}

.stats-grid strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-400);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about-card ul,
.pledge-card ul,
.tab-panel ul {
  padding-left: 1.2rem;
  color: var(--silver-200);
}

.symbolism-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.symbol-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.symbol-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.symbol-card:nth-child(1)::before { background: linear-gradient(90deg, hsl(215, 72%, 45%), transparent); }
.symbol-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold-500), transparent); }
.symbol-card:nth-child(3)::before { background: linear-gradient(90deg, hsl(0, 0%, 90%), transparent); }

.symbol-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gold-400);
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.symbol-card:hover .symbol-icon {
  transform: scale(1.08);
}

.pledge-card {
  margin-top: 1.2rem;
}

.pledge-card h3 {
  margin: 0.5rem 0 0.4rem;
}

.division-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}

.summary-stat {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-200);
}

.summary-stat strong {
  font-size: 1.3rem;
  color: var(--gold-400);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.company-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.company-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.5rem 0 0.8rem;
  color: var(--gold-400);
  font-size: 0.9rem;
}

.company-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.company-stats h4 {
  margin: 0;
  font-size: inherit;
}

.company-stats strong {
  font-size: 1.05rem;
}

.company-toggle {
  align-self: flex-start;
  margin: 0.15rem 0 0.7rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--white-100);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.company-number {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold-400);
  margin-bottom: 0.6rem;
}

.company-card h3 {
  margin-bottom: 0.2rem;
}

.company-caption {
  color: var(--silver-200);
  margin-bottom: 0.9rem;
}

.company-details {
  margin-top: 0.3rem;
}

.company-details h4 {
  font-size: 0.95rem;
  margin: 0.7rem 0 0.35rem;
  color: var(--gold-400);
}

.company-details ul {
  padding-left: 1rem;
  color: var(--silver-200);
}

.company-details li {
  margin-bottom: 0.25rem;
}

.company-pdf-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.company-pdf-columns-single {
  grid-template-columns: 1fr;
}

.company-pdf-members {
  padding-left: 1.5rem;
  color: var(--silver-200);
}

.company-pdf-members li {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .company-pdf-columns {
    grid-template-columns: 1fr;
  }
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.laws-grid {
  display: grid;
  gap: 1rem;
}

.laws-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
  color: var(--silver-200);
}

.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.founder-portrait {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.founder-copy {
  display: grid;
  gap: 0.9rem;
}

.score-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.score-panel {
  padding: 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.score-panel h5 {
  margin-bottom: 0.5rem;
  color: var(--gold-400);
}

.score-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
  color: var(--silver-200);
}

.training-card ul {
  padding-left: 1rem;
  color: var(--silver-200);
}

.officers-list,
.exco-list {
  display: grid;
  gap: 1.2rem;
}

.leadership-group {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.leadership-group-title {
  color: var(--gold-400);
  font-size: 1.15rem;
}

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

.leadership-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.leadership-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 1.15rem 1.15rem 0 0;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.leadership-photo-wrap {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 0;
}

.leadership-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.leadership-photo.avatar {
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-400);
  background: linear-gradient(135deg, rgba(253,194,79,0.18), rgba(255,255,255,0.04));
}

.leadership-photo.avatar.empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.leadership-details {
  display: grid;
  gap: 0.35rem;
}

.leadership-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.leadership-details h4 {
  font-size: 1.1rem;
  color: var(--white-100);
}

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

.membership-stat-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.membership-stat-trigger:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 4px;
}

.membership-list-modal {
  width: min(94vw, 1050px);
  max-width: 1050px;
  max-height: 88vh;
  padding: 1.25rem;
}

.membership-list-modal h2 {
  margin: 0 2.5rem 0.75rem 0;
  font-size: 1.35rem;
}

.membership-list-modal > p {
  margin-bottom: 0.75rem;
}

.membership-lookup {
  margin-bottom: 1rem;
  padding: 1.2rem;
}

.membership-lookup .section-heading {
  margin-bottom: 1rem;
}

.membership-lookup-form {
  display: grid;
  gap: 0.5rem;
}

.membership-lookup-controls {
  display: flex;
  gap: 0.75rem;
}

.membership-lookup-controls input {
  min-width: 0;
  flex: 1;
}

.membership-lookup-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.membership-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}

.membership-match {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  font: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.membership-match[aria-pressed="true"] {
  border-color: var(--gold-400);
  background: rgba(253, 194, 79, 0.1);
}

@media (max-width: 520px) {
  .membership-lookup-controls {
    flex-direction: column;
  }
}

.total-membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  list-style: none;
  max-height: min(70vh, 760px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.total-membership-grid li {
  min-width: 0;
  padding: 0.5rem 0.65rem;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .total-membership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .total-membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.captain-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.captain-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 1.15rem 1.15rem 0 0;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.captain-photo-wrap {
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(253,194,79,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
}

.captain-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.04);
}

.captain-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--silver-200);
  text-align: center;
}

.captain-details {
  display: grid;
  gap: 0.35rem;
}

.captain-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.captain-details h3 {
  font-size: 1.15rem;
  color: var(--white-100);
}

.captain-bio {
  color: var(--silver-200);
  font-size: 0.95rem;
}

.dashboard-modal {
  max-width: 860px;
  width: min(94vw, 860px);
}

.auth-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-tab {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--white-100);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: transparent;
}

.captain-confirm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  color: var(--silver-200);
}

.captain-confirm input {
  width: auto;
}

.captain-notice {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  color: var(--gold-400);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.dashboard-card label:first-child input {
  font-weight: 600;
  font-size: 1.05rem;
  border-color: rgba(255, 203, 79, 0.3);
}

.dashboard-page-card {
  padding: 1.4rem;
  border-radius: 1.4rem;
}
.dashboard-card textarea {
  min-height: 110px;
  resize: vertical;
}

.news-admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.news-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
}

.news-admin-item > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.gallery-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.gallery-upload-preview-item {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  color: var(--silver-200);
  font-size: 0.75rem;
}

.gallery-upload-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.65rem;
}

.gallery-admin-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.gallery-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.7rem;
  color: var(--silver-200);
}

.print-report {
  display: none;
}

.dashboard-intro {
  color: var(--silver-200);
  margin-top: 0.5rem;
}

.profile-photo-card {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0.25rem 0;
}

.profile-photo-circle {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px dashed rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 28px 60px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.profile-photo-preview {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
}

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

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.56);
  font-size: 1.15rem;
  text-align: center;
  padding: 0.75rem;
}

.profile-photo-circle-button {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255, 203, 79, 0.95);
  color: var(--black);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.profile-photo-circle-button:hover {
  transform: translateY(-1px);
}

.profile-photo-hint {
  color: var(--silver-200);
  font-size: 0.92rem;
  text-align: center;
  max-width: 220px;
}

.profile-photo-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.exco-photo-button,
.exco-remove-photo {
  min-width: 140px;
}

.exco-remove-photo {
  min-width: 120px;
}

@media (max-width: 900px) {
  .profile-photo-card {
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .profile-photo-circle {
    width: 136px;
    height: 136px;
  }

  .profile-photo-preview {
    width: 116px;
    height: 116px;
  }

  .profile-photo-actions {
    width: 100%;
    justify-content: center;
  }

  .exco-photo-button,
  .exco-remove-photo {
    flex: 1 1 45%;
    min-width: auto;
  }
}

.gallery-panel-inner {
  max-height: 74vh;
  min-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1.5rem;
  touch-action: pan-y;
}

.gallery-panel-inner::-webkit-scrollbar {
  width: 10px;
}

.gallery-panel-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.gallery-panel-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 197, 79, 0.65);
  border-radius: 999px;
}

.gallery-grid:empty::before {
  content: 'Gallery pictures are loading...';
  color: var(--silver-200);
  padding: 1rem 0;
}

.gallery-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.gallery-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.gallery-search {
  flex: 1 1 220px;
  min-width: 180px;
}

.gallery-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.06);
  color: var(--white-100);
}

.gallery-toggle {
  min-width: 120px;
}

.gallery-panel.is-collapsed .gallery-panel-inner {
  display: block;
}

.gallery-panel.is-collapsed .gallery-grid {
  display: none;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--white-100);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
}

.filter-btn:hover,
.filter-btn:focus {
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: transparent;
}

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

.gallery-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  color: var(--silver-200);
  text-align: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 220px;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-download {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.gallery-item .gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(5,10,21,0.95));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-thumb:focus .gallery-overlay {
  transform: translateY(0);
}

.gallery-preview-modal {
  max-width: 920px;
  width: min(96vw, 920px);
  padding: 1rem;
  overflow: hidden;
}

.gallery-preview-image {
  width: 100%;
  height: auto;
  max-height: 65vh;
  border-radius: 1rem;
  object-fit: contain;
  background: var(--navy-950);
}

.gallery-preview-copy {
  margin-top: 1rem;
  color: var(--white-100);
}

.gallery-preview-category {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.16);
  color: var(--gold-200);
  font-size: 0.85rem;
}

.gallery-preview-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.gallery-preview-copy .btn {
  margin-top: 0.75rem;
}

.enlistment-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
}

label span {
  color: var(--silver-200);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(5, 10, 20, 0.95);
  color: var(--white-100);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(255, 203, 79, 0.2);
}

.full-width {
  width: 100%;
  margin-top: 1rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 203, 79, 0.1);
  border: 1px solid rgba(255, 203, 79, 0.25);
}

.form-success.active {
  display: block;
  animation: scaleUp 0.3s ease;
}

.site-footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.social-links a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gold-400);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: min(92vw, 460px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  animation: fadeIn 0.25s ease;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 203, 79, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 203, 79, 0.5);
}

.dashboard-modal .modal-content {
  max-height: 85vh;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--white-100);
  font-size: 1.6rem;
  cursor: pointer;
}

.gallery-item.is-hidden {
  display: none;
}

.print-report {
  display: none;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.hidden {
  display: none !important;
}

@media print {
  body > *:not(.print-report) {
    display: none !important;
  }

  .print-report {
    display: block;
    background: #ffffff;
    color: #111111;
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
  }

  .hidden {
    display: none !important;
  }

  .print-report h1,
  .print-report h2,
  .print-report p,
  .print-report li {
    color: #111111;
  }

  .print-report ul {
    padding-left: 1.25rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .enlistment-grid,
  .symbolism-grid,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 1.1rem;
    width: calc(100% - 1rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 0;
  }

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

  .gallery-panel-inner {
    max-height: 65vh;
    min-height: 360px;
  }

  .nav-wrap {
    padding: 0.8rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 86vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1.2rem;
    background: rgba(8, 13, 25, 0.98);
    border-left: 1px solid rgba(255,255,255,0.12);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
  }

  .site-nav.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    right: 0 !important;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

  .division-summary {
    flex-direction: column;
  }

  .summary-stat {
    min-width: 0;
  }

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

  .training-grid,
  .score-columns {
    grid-template-columns: 1fr;
  }

  .officer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    width: min(95vw, 460px);
    padding: 1.2rem;
  }

  .dashboard-card textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .dashboard-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .dashboard-actions .btn {
    width: 100%;
  }

  .founder-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .founder-portrait {
    width: 100%;
    max-width: 100%;
  }

  .founder-portrait img {
    min-height: 280px;
  }
}

/* Toast Notification Styles */
.toast-notification {
  position: relative;
  background: rgba(19, 32, 59, 0.95);
  border: 1px solid var(--gold-400);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.toast-notification i {
  color: var(--gold-400);
  font-size: 1.1rem;
}

