/* ==========================================================================
   3./PzGrenBtl 112 Milsim Brand - Unified Theme Stylesheet
   ========================================================================== */

/* ─── NAVBAR STYLES ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
  overflow: hidden;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.logo-image {
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 68, 0.3);
  box-shadow: 0 0 10px rgba(197, 160, 68, 0.1);
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-title);
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-item a,
.nav-item-active a {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-item a::after,
.nav-item-active a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-item a:hover,
.nav-item-active a {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(197, 160, 68, 0.3);
}

.nav-item a:hover::after,
.nav-item-active a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger-trigger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
  padding: 0;
}

.hamburger-trigger span {
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
  display: block;
}

.hamburger-active span:first-child  { transform: rotate(45deg) translateY(-1px); }
.hamburger-active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger-active span:last-child   { transform: rotate(-45deg) translateY(1px); }

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100dvh;
  background-color: rgba(8, 10, 14, 0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-open {
  right: 0;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 24px;
  margin-bottom: 36px;
}

.mobile-nav-item a,
.mobile-nav-item-active a {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.mobile-nav-item a:hover,
.mobile-nav-item-active a {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(197, 160, 68, 0.4);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backdrop-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger-trigger { display: flex; }
}

@media (max-width: 360px) {
  .brand-subtitle { display: none; }
}


/* ─── FORUM STYLES ─────────────────────────────────────────────────────────── */

/* Forum Page Header (reuses about-header pattern) */
.forum-header {
  position: relative;
  background-color: #040508;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}
.forum-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(143,18,48,0.08) 0%, transparent 70%);
  z-index: 1;
}
.forum-header-content {
  position: relative;
  z-index: 10;
}
.forum-header-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 12px;
}
.forum-header-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .forum-header-title { font-size: 2.2rem; }
}

/* Forum main layout */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 960px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }
}

/* Forum top bar (new thread btn + search) */
.forum-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.forum-thread-count {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Thread list */
.forum-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.forum-thread-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.forum-thread-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.forum-thread-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.forum-thread-card:hover::before { transform: scaleY(1); }

/* Avatar initial circle */
.forum-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(143,18,48,0.5));
  border: 1px solid rgba(143,18,48,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}
.forum-avatar.accent {
  background: linear-gradient(135deg, rgba(197,160,68,0.3), rgba(197,160,68,0.1));
  border-color: rgba(197,160,68,0.35);
  color: var(--accent);
}

.forum-thread-main {
  flex: 1;
  min-width: 0;
}
.forum-thread-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  overflow-wrap: break-word;
}
.forum-thread-card:hover .forum-thread-title { color: var(--accent); }
.forum-thread-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.forum-thread-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Stats column (replies, views) */
.forum-thread-stats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.forum-stat-badge {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.forum-stat-badge svg { color: var(--accent); opacity: 0.7; }
.forum-stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-title);
}

/* Category badge */
.forum-cat-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 0;
}
.forum-cat-badge.allgemein { color: var(--accent); border-color: rgba(197,160,68,0.3); background: rgba(197,160,68,0.05); }
.forum-cat-badge.taktik    { color: #5bc0de; border-color: rgba(91,192,222,0.3); background: rgba(91,192,222,0.05); }
.forum-cat-badge.technik   { color: #9b59b6; border-color: rgba(155,89,182,0.3); background: rgba(155,89,182,0.05); }
.forum-cat-badge.off-topic { color: var(--text-muted); border-color: rgba(142,155,176,0.3); background: rgba(142,155,176,0.05); }

/* Empty state */
.forum-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.forum-empty svg { opacity: 0.3; margin: 0 auto 16px; display: block; }
.forum-empty p   { font-size: 0.95rem; }

/* Sidebar */
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.forum-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
}
.forum-sidebar-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 14px;
}
.forum-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(197,160,68,0.06);
  font-size: 0.85rem;
}
.forum-stat-row:last-child { border-bottom: none; }
.forum-stat-label { color: var(--text-muted); }
.forum-stat-val   { font-family: var(--font-title); color: #fff; font-weight: 700; }

/* ─── NEW THREAD FORM MODAL ──────────────────────────────────────────────── */
.forum-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,4,6,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.forum-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.forum-modal {
  background: #0d1018;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 640px;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}
.forum-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 8px;
}
.forum-modal-close:hover { color: var(--accent); }
.forum-modal-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Shared form field styles (reuse join pattern) */
.forum-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.forum-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.forum-input,
.forum-select,
.forum-textarea {
  background-color: rgba(6,7,10,0.7);
  border: 1px solid var(--border-color);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 11px 14px;
  border-radius: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.forum-input:focus,
.forum-select:focus,
.forum-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(197,160,68,0.15);
  background-color: rgba(6,7,10,0.9);
}
.forum-textarea { resize: vertical; min-height: 130px; }
.forum-error-text {
  font-size: 0.78rem;
  color: var(--error);
  font-weight: 500;
}
.forum-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .forum-form-row { grid-template-columns: 1fr; }
  .forum-modal { padding: 24px 20px; }
}

/* ─── SINGLE THREAD VIEW ─────────────────────────────────────────────────── */
.thread-header {
  position: relative;
  background-color: #040508;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}
.thread-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(143,18,48,0.06) 0%, transparent 60%);
  z-index: 1;
}
.thread-header-content { position: relative; z-index: 10; }
.thread-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  transition: color 0.2s ease;
}
.thread-back-link:hover { color: var(--accent); }
.thread-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.thread-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Original post (OP) */
.thread-op {
  background: rgba(22,26,36,0.5);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  padding: 28px 28px 24px;
  margin-bottom: 8px;
}
.thread-op-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.thread-op-info { flex: 1; }
.thread-op-author {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.thread-op-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.thread-op-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--foreground);
  overflow-wrap: break-word;
}
.thread-op-badge {
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(143,18,48,0.15);
  border: 1px solid rgba(143,18,48,0.4);
  color: #e05070;
  align-self: flex-start;
}

/* Replies section */
.thread-replies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 14px;
  border-bottom: 1px solid rgba(197,160,68,0.1);
  margin-bottom: 16px;
}
.thread-replies-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.thread-replies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

/* Individual reply */
.thread-reply {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  animation: replyFadeIn 0.4s ease;
}
@keyframes replyFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.thread-reply-body { flex: 1; min-width: 0; }
.thread-reply-author {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.thread-reply-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.thread-reply-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--foreground);
  overflow-wrap: break-word;
}

/* Reply form */
.thread-reply-form-card {
  background: rgba(14,17,24,0.6);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary);
  padding: 28px 28px 24px;
}
.thread-reply-form-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ─── FOOTER STYLES ──────────────────────────────────────────────────────── */
.site-footer {
  background-color: #040508;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 28px 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--foreground);
  white-space: nowrap;
}

.footer-logo-subtitle {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--foreground);
  letter-spacing: 0.08em;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  background-color: rgba(22, 26, 36, 0.6);
  border: 1px solid rgba(197, 160, 68, 0.1);
  padding: 8px 12px;
  width: fit-content;
}

.footer-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse-light 2s infinite;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  border-color: var(--accent);
  background-color: rgba(197, 160, 68, 0.05);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(197, 160, 68, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(142, 155, 176, 0.5);
  max-width: 60%;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-footer { padding: 50px 0 24px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-disclaimer {
    max-width: 100%;
    text-align: center;
  }
  .footer-copyright { text-align: center; }
}

@keyframes pulse-light {
  0%  { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 176, 0, 0.7); }
  70% { transform: scale(1);    box-shadow: 0 0 0 8px rgba(56, 176, 0, 0); }
  100%{ transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 176, 0, 0); }
}

/* ─── HOME PAGE STYLES ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  background-color: #030406;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-logo {
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 10px var(--primary-glow);
  margin-bottom: 4px;
  animation: pulseLogo 4s infinite alternate ease-in-out;
  background: var(--background);
  width: clamp(80px, 18vw, 130px) !important;
  height: clamp(80px, 18vw, 130px) !important;
}

@keyframes pulseLogo {
  0%   { transform: scale(1);    box-shadow: 0 0 20px var(--accent-glow); }
  100% { transform: scale(1.04); box-shadow: 0 0 35px rgba(197,160,68,0.5), 0 0 15px var(--primary-glow); }
}

.hero-badge {
  font-family: var(--font-title);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background-color: rgba(197, 160, 68, 0.08);
  border: 1px solid rgba(197, 160, 68, 0.25);
  padding: 5px 14px;
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
  overflow-wrap: break-word;
}

.hero-title span.typing-span {
  color: var(--accent);
  display: block;
  font-size: clamp(1rem, 3.5vw, 2rem);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.08em;
  min-height: 1.4em;
}

.hero-description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--foreground);
  max-width: 680px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 400px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group a { text-align: center; }
}

.intro-section {
  background-color: #08090d;
  position: relative;
}

.intro-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 860px) {
  .intro-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-lead {
  font-size: 1.05rem;
  color: var(--foreground);
  font-weight: 500;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

.intro-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.intro-image-frame {
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  line-height: 0;
  overflow: visible;
}

.intro-image-frame::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 100%; height: 100%;
  border: 1px solid rgba(197,160,68,0.1);
  z-index: -1;
  pointer-events: none;
}

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

.features-section {
  background-color: #06070a;
  position: relative;
}

.features-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .features-card-grid { grid-template-columns: 1fr; gap: 20px; }
}

.feature-card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  color: var(--accent);
}

.feature-card-content h3 {
  font-size: 1.15rem;
  color: #fff;
}

.home-gallery-teaser-section { background-color: #08090d; }

.gallery-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

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

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

.gallery-teaser-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  display: block;
}

.gallery-teaser-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-teaser-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,7,10,0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-teaser-item:hover .gallery-overlay-layer { opacity: 1; }

.gallery-overlay-title {
  font-family: var(--font-title);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-join-section { background-color: #06070a; }

.recruitment-banner {
  background: linear-gradient(135deg, rgba(22,26,36,0.9) 0%, rgba(14,17,24,0.95) 100%);
  border: 1px solid var(--border-color);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.recruitment-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(143,18,48,0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(197,160,68,0.08) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.recruitment-banner-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.recruitment-requirements {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin: 12px 0;
}

.recruitment-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.recruitment-req-icon { color: var(--accent); flex-shrink: 0; }

@media (max-width: 640px) {
  .recruitment-banner { padding: 40px 16px; }
  .recruitment-requirements { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── ABOUT US PAGE STYLES ───────────────────────────────────────────────── */
.about-header {
  position: relative;
  background-color: #040508;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.about-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 18, 48, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.about-header-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.about-header-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .about-header-title {
    font-size: 2.2rem;
  }
}

.about-intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-mission-section {
  background-color: #08090d;
}

.about-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

@media (max-width: 900px) {
  .about-split-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.about-mission-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-mission-content h3 {
  font-size: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(197, 160, 68, 0.15);
  padding-bottom: 8px;
}

.about-mission-content p {
  line-height: 1.7;
}

.about-org-section {
  background-color: #06070a;
}

.about-org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.about-org-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  text-align: center;
  position: relative;
  width: 280px;
}

.about-org-node h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.about-node-role {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.about-node-members {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.about-org-connector {
  width: 2px;
  height: 40px;
  background-color: var(--border-color);
}

.about-org-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

@media (max-width: 900px) {
  .about-org-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

.about-ranks-section {
  background-color: #08090d;
}

.about-ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 576px) {
  .about-ranks-grid {
    grid-template-columns: 1fr;
  }
}

.about-rank-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-rank-icon {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  background-color: rgba(197, 160, 68, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.about-rank-card h4 {
  font-size: 1.1rem;
  color: #fff;
}

.about-rank-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.about-eq-section {
  background-color: #06070a;
}

.about-eq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .about-eq-grid {
    grid-template-columns: 1fr;
  }
}

.about-eq-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-eq-card {
    grid-template-columns: 1fr;
  }
}

.about-eq-img-frame {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.about-eq-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-eq-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-eq-info h4 {
  font-size: 1.2rem;
  color: #fff;
}

.about-eq-info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-eq-specs {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-eq-specs li {
  color: var(--text-muted);
}

.about-eq-specs strong {
  color: var(--accent);
}

/* ─── GALLERY PAGE STYLES ────────────────────────────────────────────────── */
.gallery-header {
  position: relative;
  background-color: #040508;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}

.gallery-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 18, 48, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.gallery-header-content {
  position: relative;
  z-index: 10;
}

.gallery-header-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 12px;
}

.gallery-intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  font-family: var(--font-title);
  background-color: #08090d; /* Solid background */
  color: var(--accent);      /* Gold text */
  border: 1px solid var(--accent); /* Gold border */
  padding: 10px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  background-color: var(--accent);
  color: #000;
}

.gallery-filter-btn-active {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 800;
  box-shadow: 0 0 15px var(--accent-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 100px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/9;
  cursor: pointer;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.95) 0%, rgba(6, 7, 10, 0.2) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 0.95;
}

.gallery-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-item-title {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-item-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.gallery-view-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(6, 7, 10, 0.8);
  border: 1px solid var(--border-color);
  color: var(--accent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-view-icon {
  opacity: 1;
  transform: translateY(0);
}

.gallery-view-icon:hover {
  background-color: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 4, 6, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-img-frame {
  position: relative;
  width: 80vw;
  height: 70vh;
  border: 1px solid var(--border-color);
  background-color: #000;
}

.gallery-lightbox-img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.gallery-lightbox-caption {
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
}

.gallery-lightbox-caption h3 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gallery-lightbox-caption p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gallery-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s ease;
  padding: 10px;
}

.gallery-close-btn:hover {
  color: var(--accent);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 7, 10, 0.7);
  border: 1px solid var(--border-color);
  color: var(--accent);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2100;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background-color: var(--accent);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.gallery-prev-btn {
  left: 40px;
}

.gallery-next-btn {
  right: 40px;
}

@media (max-width: 768px) {
  .gallery-close-btn {
    top: 20px;
    right: 20px;
  }
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }
  .gallery-prev-btn {
    left: 10px;
  }
  .gallery-next-btn {
    right: 10px;
  }
  .gallery-lightbox-img-frame {
    width: 95vw;
    height: 60vh;
  }
}

/* ─── JOIN PAGE STYLES ───────────────────────────────────────────────────── */
.join-header {
  position: relative;
  background-color: #040508;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}

.join-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 18, 48, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.join-header-content {
  position: relative;
  z-index: 10;
}

.join-header-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 12px;
}

.join-intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.join-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  margin-bottom: 100px;
}

@media (max-width: 992px) {
  .join-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.join-req-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.join-req-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
}

.join-req-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(197, 160, 68, 0.15);
  padding-bottom: 8px;
}

.join-req-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.join-req-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.join-req-item strong {
  color: var(--foreground);
}

.join-req-icon {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.join-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
}

.join-form-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 24px;
}

.join-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.join-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .join-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.join-label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.join-input,
.join-select,
.join-textarea {
  background-color: rgba(6, 7, 10, 0.6);
  border: 1px solid var(--border-color);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 0;
  transition: all 0.3s ease;
  width: 100%;
}

.join-input:focus,
.join-select:focus,
.join-textarea:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 10px rgba(197, 160, 68, 0.2);
  background-color: rgba(6, 7, 10, 0.9);
}

.join-textarea {
  resize: vertical;
  min-height: 120px;
}

.join-error-text {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 500;
  margin-top: 4px;
}

.join-success-card {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.join-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(56, 176, 0, 0.1);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 176, 0, 0.2);
  margin-bottom: 8px;
}

.join-success-card h3 {
  color: var(--success);
  font-size: 1.6rem;
}

.join-success-text {
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
}

.join-success-steps {
  background-color: rgba(6, 7, 10, 0.4);
  border: 1px solid rgba(197, 160, 68, 0.1);
  padding: 20px 24px;
  text-align: left;
  list-style: decimal;
  padding-left: 40px;
  max-width: 450px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-success-steps strong {
  color: var(--accent);
}


/* --- FORUM STYLES ----------------------------------------------------------- */