/* Self-hosted Inter + Playfair Display (SIL Open Font License).
   Same faces the site used from Google, served from this origin so a
   visit no longer sends the visitor's address to Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Content protection (light, non-broken) — use noai meta + terms instead.
   Disabling selection site-wide breaks screen readers, keyboard users, and
   legitimate quoting of your own content. Real scraping protection is
   server-side (rate limiting, bot detection). */
:root {
  /* Declare dark support: without this, phone browsers (Chrome/Samsung auto-dark)
     recolor the page and brighten dark reds (#8B0000) into peach. */
  color-scheme: dark;
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1e2a42;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8B0000;
  --accent-hover: #5c0000;
  --accent-glow: rgba(139, 0, 0, 0.3);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-brand: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
}

/* Always-dark theme (charcoal navy #0a0e17) — system color-scheme preference is intentionally ignored.
   The original v1 design intent was dark-only; the system-preference light override was a holdover
   that broke the look for users on Windows light mode. Removed 2026-09-10. */

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  background-color: #0a0e17;
  background-image: url('/maple-leaf-scroll.webp');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  background-attachment: scroll;
}

body {
  position: relative;
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(60, 60, 60, 0.04) 0%, transparent 50%);
  animation: bgRotate 60s linear infinite;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
  color: var(--text-primary);
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.hamburger {
  display: none;
}

/* ===== NAV LOGO IMAGE ===== */
.nav-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-brand .logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.nav-brand span {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;  min-width: 100px;  text-align: center;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: #DAA520;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: #DAA520;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: #DAA520;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

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

/* ===== PAGE STYLES ===== */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero-title {
  margin-bottom: 1rem;
  line-height: 1;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About section */
.about-section {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.values,
.team {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.values h3,
.team h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.values ul {
  list-style: none;
}

.values li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.values li:last-child {
  border-bottom: none;
}

.values li strong {
  color: var(--accent);
}

/* Apply section *//* ===== APPLY HERO ===== */
.apply-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0;
}

.apply-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 35s ease-in-out infinite alternate;
  pointer-events: none;
  filter: saturate(1.15) brightness(0.88);
}

.apply-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.72) 0%,
    rgba(5, 5, 10, 0.62) 40%,
    rgba(5, 5, 10, 0.78) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.apply-hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 80px rgba(0, 0, 0, 0.85) !important;
  z-index: 1;
  pointer-events: none;
}

.apply-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
}

.apply-hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-shadow:
    0 2px 0 #140000,
    0 0 14px rgba(0, 0, 0, 0.95),
    0 6px 28px rgba(0, 0, 0, 0.9);
  animation: titleIn 1.1s 0.2s cubic-bezier(.2,.8,.2,1) both;
}

.apply-hero-title-gold {
  color: #8B0000;
}

.apply-hero-subtitle {
  font-family: Georgia, serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #eef2f7;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  max-width: 540px;
  animation: fadeUp 0.9s 0.5s both;
}

.apply-disclaimer-section {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

.apply-disclaimer-card {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(26,34,53,0.75) 0%, rgba(26,34,53,0.55) 100%);
  border: 1px solid rgba(218,165,32,0.3);
  border-left: 5px solid #DAA520;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.apply-disclaimer-card::before {
  display: none;
}

.disclaimer-label {
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #DAA520;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
  writing-mode: horizontal-tb;
}

.apply-disclaimer-card .disclaimer-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  padding-top: 0.2rem;
}


.disclaimer-text {
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65;
  margin: 0;
}

.apply-section {
  max-width: 600px;
  margin: 0 auto;
}

.apply-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

.apply-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.application-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  padding: 12px 28px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 12px rgba(218, 165, 32, 0.3);
  transform: translateY(-2px);
  border-color: rgba(218, 165, 32, 0.6);
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.success-message h3 {
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-secondary);
}

/* ===== INTERACTIVE BUTTON ===== */
.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #5C0000, #7A0000);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(92, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(92, 0, 0, 0.6);
}

/* ===== CHAT ===== */
.chat-container {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
}

.chat-container.with-sidebar {
  width: 680px;
}

.admin-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chat-container.open {
  display: flex;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

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

.message {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: msgIn 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.message-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.message-wrapper.own {
  flex-direction: row-reverse;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message.own {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.other {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message .msg-meta {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 2px;
  font-weight: 600;
}

.message .msg-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 2px;
  text-align: right;
}

.read-receipt {
  font-size: 0.7rem;
  opacity: 0.6;
  text-align: right;
  margin-top: 2px;
}

.read-receipt.read::after {
  content: ' ✓✓';
  color: #4CAF50;
}

.read-receipt.sent::after {
  content: ' ✓';
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-send:hover {
  background: var(--accent-hover);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal p.subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.modal .form-group input {
  background: var(--bg-secondary);
}

.modal .btn {
  margin-top: 0.5rem;
}

.modal .switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal .switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.modal .switch a:hover {
  text-decoration: underline;
}

.modal {
  position: relative;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4px;
}

.admin-tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  background: var(--accent);
  color: white;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.page-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.page-editor h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.page-editor label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.page-editor input,
.page-editor textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  font-family: inherit;
}

.page-editor textarea {
  min-height: 200px;
  resize: vertical;
}

.page-editor input:focus,
.page-editor textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.button-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.button-editor h3 {
  margin-bottom: 1.5rem;
}

.button-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.button-preview .cta-button {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.application-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.application-card .app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.application-card .app-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.application-card .app-email {
  color: var(--accent);
  font-size: 0.9rem;
}

.application-card .app-section {
  margin-top: 0.75rem;
}

.application-card .app-section strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.application-card .app-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.no-apps {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  animation: notifIn 0.3s ease;
  box-shadow: var(--shadow);
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.notification.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--success);
  color: var(--success);
}

.notification.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ===== FOOTER ===== */
footer,
.footer {
  position: relative;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer::before,
.footer::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #8B0000 20%, #DAA520 50%, #8B0000 80%, transparent 100%);
}
footer a,
.footer a {  color: #DAA520;  text-decoration: none;}
footer a:hover,
.footer a:hover {  color: #fff;  text-decoration: underline;}

.footer-signature {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #DAA520;
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 1.1rem auto 0;
  max-width: 40rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    height: 60px;
  }

  .nav-brand .brand-homeland {
  color: #8B0000;
    font-size: 1.6rem;
  }
  .nav-brand .brand-canada {
    font-size: 1.6rem;
  }
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    display: none;
  }

  .nav-auth .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 40vh;
  }

  .hero-content {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }

  .chat-container {
    width: calc(100% - 40px);
    height: 60vh;
    right: 20px;
    bottom: 20px;
  }

  .main-content {
    padding: 1rem;
  }

  .intro-section {
    padding: 0 1rem 3rem;
  }

  .intro-section p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
  }

  .nav-auth {
    gap: 6px;
  }

  .nav-auth .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .apply-section {
    padding: 0 1rem;
  }

  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero .hero-title {
    font-size: 2.5rem;
  }

  .hero-content > p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== HERO FULL WIDTH BACKGROUND ===== */
.hero {
  text-align: center;
  padding: 0;
  position: relative;
  min-height: 50vh;
  overflow: hidden;
}

/* Make hero content sit above the image */
.hero h1,
.hero .tagline,
.hero p,
.hero .cta-button {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 6rem 2rem 5rem;
}

.hero .hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #5C0000 !important;
  text-shadow: 0 4px 20px rgba(92, 0, 0, 0.8), 0 0 10px rgba(92, 0, 0, 0.5) !important;
  background: none !important;
  -webkit-text-fill-color: #5C0000 !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin: 0 0 0.2rem 0;
  font-family: Georgia, serif;
  letter-spacing: 3px;
}

/* Nav brand colors */
.nav-brand .brand-homeland {
  color: #8B0000;
  font-weight: 700;
}
.nav-brand .brand-canada {
  color: #FFFFFF;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.hero p:not(.tagline) {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
}

/* Remove old feature cards but keep the container for intro content */
.features,
.feature {
  display: none !important;
}

/* ===== INTRO SECTION (below hero image) ===== */
.intro-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.intro-section p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: left;
  margin-bottom: 1.5rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* Drop-cap on first paragraph */
.intro-section p:first-of-type::first-letter {
  font-family: Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: #8B0000;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.15em 0 0;
}

/* ===== APPLY FORM ===== */
.apply-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.apply-form-grid .form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.apply-form-grid .form-group input,
.apply-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.apply-form-grid .form-group input:focus,
.apply-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.apply-form-grid .form-group input::placeholder,
.apply-form .form-group textarea::placeholder {
  color: var(--text-muted);
}

.apply-form-grid .form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.apply-form .form-group {
  margin-bottom: 1rem;
}

.apply-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #5C0000, #7A0000);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: 0.6s;
  pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== POLISH: ENTRANCE ANIMATIONS ===== */
.hero-content { animation: heroFadeIn 1s cubic-bezier(.2,.8,.2,1) .1s both; }

.hero .hero-title {
  animation: titleIn 1.1s .25s cubic-bezier(.2,.8,.2,1) both;
}

.hero-content > p {
  animation: fadeUp .9s .55s both;
}

.cta-button {
  animation: fadeUp .9s .75s both, ctaPulse 3.8s 2.5s ease-in-out infinite;
}

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

@keyframes titleIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

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

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(92, 0, 0, 0.5); }
  50%      { box-shadow: 0 4px 40px rgba(180, 20, 20, 0.85), 0 0 0 8px rgba(180, 20, 20, 0.08); }
}

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

/* Nav scrolled state */
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(92, 0, 0, 0.35);
}

/* Intro section scroll reveal */
.intro-section p {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s ease;
}

/* Apply form panel — soft glass lift */
.apply-section form.apply-form {
  background: rgba(26, 34, 53, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.apply-section form.apply-form:hover {
  border-color: rgba(92, 0, 0, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Apply heading entrance */
#page-apply .apply-section > h2 {
  animation: fadeUp .8s .15s both;
}
#page-apply .apply-section > p {
  animation: fadeUp .8s .3s both;
}
#page-apply form.apply-form {
  animation: fadeUp .9s .45s both;
}

/* ===== HAMBURGER MENU ===== *//* Nav menu — hidden by default, revealed by hamburger on mobile */
.navMenu {
  display: none;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 4px; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
  .navMenu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-primary);
    transition: left 0.3s ease-in-out;
    padding: 2rem;
    overflow-y: auto;
    z-index: 98;
  }

  .navMenu.active {
    left: 0;
  }

  .navMenu ul {
    list-style: none;
    padding: 0;
  }

  .navMenu ul li {
    margin-bottom: 1.5rem;
  }

  .navMenu ul li a {
    font-size: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }

  .navMenu ul li a.active,
.navMenu ul li a:hover {
    color: #DAA520;
  }
}

/* ===== PRE-FOOTER CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, rgba(26,34,53,0.6) 50%, rgba(139,0,0,0.08) 100%);
  border-top: 1px solid rgba(139,0,0,0.25);
  border-bottom: 1px solid rgba(139,0,0,0.15);
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem 0 0;
}

.cta-banner-text {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.cta-banner-link {
  display: inline-block;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eef2f7;
  background: #8B0000;
  padding: 0.7rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid #8B0000;
  transition: all 0.25s ease;
}

.cta-banner-link:hover {
  background: transparent;
  color: #DAA520;
  border-color: #DAA520;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.3);
}

/* ===== HERO REDESIGN ===== */
.hero-redesign {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,10,0.55) 0%, rgba(5,5,10,0.35) 40%, rgba(5,5,10,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,0.75) !important;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* Georgia serif + gold outline title (user-established brand style) */
.hero-gold-title {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #8B0000;
  text-shadow:
    0 2px 0 #140000,
    0 0 14px rgba(0, 0, 0, 0.95),
    0 6px 28px rgba(0, 0, 0, 0.9);
  line-height: 1.05;
  margin: 0 0 0.8rem 0;
  animation: titleIn 1.1s .25s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)        scale(1);    }
}

.hero-subtitle {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: #eef2f7;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 2rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.9);
  animation: fadeUp .9s .55s both;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s .8s both;
}

.btn-primary-cta,
.btn-secondary-cta {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  border: 2px solid transparent;  min-width: 160px;  display: inline-block;  text-align: center;
}

.btn-primary-cta {
  background: transparent;
  color: #DAA520;
  border: 2px solid #DAA520;
  box-shadow: 0 0 0 transparent;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(218, 165, 32, 0.12); }
}

.btn-primary-cta:hover {
  background: #DAA520;
  color: #1A0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.4);
}

.btn-secondary-cta {
  background: transparent;
  color: #DAA520;
  border-color: #DAA520;
}

.btn-secondary-cta:hover {
  background: #DAA520;
  color: #1A0000;
  border-color: #DAA520;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.4);
}

@media (max-width: 640px) {
  .hero-redesign { height: 60vh; min-height: 360px; }
  .hero-gold-title { text-shadow:
    0 2px 0 #140000,
    0 0 12px rgba(0, 0, 0, 0.95),
    0 4px 18px rgba(0, 0, 0, 0.9); }
  .hero-actions { flex-direction: column; width: 85%; }
  .btn-primary-cta,
.btn-secondary-cta { width: 100%; }
}

/* ===== OUR MISSION PAGE ===== */
.mission-container {
  max-width: 820px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.mission-page-hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.mission-page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #8B0000;
  margin: 0 0 0.6rem;
}

.mission-page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 0;
  max-width: 640px;
}

.mission-card {
  background: rgba(26, 34, 53, 0.45);
  border: 1px solid var(--border);
  border-left: 3px solid #8B0000;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 0 0 1.25rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: missionIn .6s ease-out forwards;
}

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

.mission-card:hover {
  border-color: rgba(139,0,0,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}

.mission-card h2 {
  font-family: Georgia, serif;
  color: #DAA520;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.mission-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.02rem;
  margin: 0 0 0.6rem 0;
}
.mission-card p:last-child {
  margin-bottom: 0;
}

.mission-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.mission-card ul li {
  color: var(--text-secondary);
  padding: 0.85rem 1rem 0.85rem 1rem;
  background: rgba(17,24,39,0.5);
  border-left: 3px solid #8B0000;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.mission-card ul li strong {
  color: #DAA520;
  font-family: Georgia, serif;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.4rem;
}

@media (max-width: 640px) {
  .mission-card { padding: 1.25rem; }
  .mission-card h2 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  /* Mobile touch targets */
.btn-primary,
.btn-secondary {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  .nav-links a {
    padding: 12px 16px !important;
  }
}

/* ===== MISSION HERO (background image + overlay) ===== */
.mission-page-hero {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
}

.mission-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.35) saturate(0.7);
}

.mission-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.4) 0%,
    rgba(10, 14, 23, 0.25) 45%,
    rgba(10, 14, 23, 0.5) 100%
  );
  z-index: 1;
}

.mission-hero-content {
  position: relative;
  z-index: 2;
  top: 220px;
  padding: 0 2rem 3rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.mission-hero-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #8B0000;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.85);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.mission-hero-content p {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #eef2f7;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .mission-page-hero { min-height: 340px; }
  .mission-hero-content {
    top: 180px;
    padding: 0 1rem 2.5rem;
  }
  .mission-hero-bg img { filter: brightness(0.4) saturate(0.7); }
}


/* Back-to-home button: hidden on desktop, red at the bottom of the page on a phone */
.mobile-back-home {
  display: none;
}

/* ===== MOBILE FIXES — FINAL OVERRIDES ===== */
/* Must come AFTER all .mobile-back-home { display: none } rules to cascade properly */
@media (max-width: 768px) {
  /* ===== HERO: BRIGHTER IMAGES ===== */
.hero-bg-img {
    filter: brightness(1.25) contrast(1.08) saturate(1.3) !important;
  }

  .apply-hero-bg-img {
    filter: brightness(1.25) contrast(1.08) saturate(1.3) !important;
  }

  .mission-hero-bg img,
.hero-redesign .mission-hero-bg {
    filter: brightness(0.4) saturate(0.7) !important;
  }

  /* Lighter overlay */
.hero-overlay {
    background: linear-gradient(180deg,
      rgba(5,5,10,0.45) 0%,
      rgba(5,5,10,0.25) 40%,
      rgba(5,5,10,0.55) 100%) !important;
  }

  .apply-hero-overlay {
    background: linear-gradient(180deg,
      rgba(5,5,10,0.40) 0%,
      rgba(5,5,10,0.20) 40%,
      rgba(5,5,10,0.50) 100%) !important;
  }

  /* Phone buttons stay gold. Wordmark and the home hero title are locked red at the end of this file. */
:root {
    --accent: #DAA520 !important;
    --accent-hover: #B8860B !important;
  }

  /* Hamburger — gold */
.hamburger { display: block; filter: drop-shadow(0 0 6px rgba(218,165,32,0.7)); }
  .hamburger span { background: #DAA520 !important; }

  /* Nav menu — reveal */
.navMenu { display: block; }

  /* Hero and section titles keep their desktop colors on a phone. */

  /* Buttons — gold */
.btn-primary-cta,
.btn-primary,
.cta-button,
.submit-btn {
    color: #DAA520 !important;
    border-color: #DAA520 !important;
    background: transparent !important;
  }

  .btn-primary-cta:hover,
.btn-primary:hover,
.cta-button:hover,
.submit-btn:hover {
    background: #DAA520 !important;
    color: #000 !important;
    box-shadow: 0 6px 22px rgba(139,0,0,0.6) !important;
  }

  .apply-disclaimer-card {
    border: 1px solid rgba(218,165,32,0.3) !important;
    border-left: 5px solid #DAA520 !important;
  }

  .disclaimer-label { color: #DAA520 !important; }

  /* Drop-cap — same red as desktop; no gold halo (gold halo caused the peach look on phones) */
.intro-section p:first-of-type::first-letter {
    color: #8B0000 !important;
    text-shadow: none;
  }

  /* Mission cards — full gold border */
.mission-card {
    border: 2px solid #DAA520 !important;
    box-shadow: 0 0 16px rgba(218,165,32,0.15);
  }

  .mission-card:hover,
.mission-card:active {
    border-color: #DAA520 !important;
    box-shadow: 0 0 26px rgba(218,165,32,0.3);
  }

  .mission-card h2 { color: #DAA520 !important; }

  /* Hamburger menu links — gold */
.navMenu ul li a { color: #DAA520 !important; }
  .navMenu ul li a:active,
.nav-links a.active { color: #fff !important; }

  /* Canada stays the same dark red as Homeland. */

  /* Mobile back-to-home — solid red, at the bottom of the page */
.mobile-back-home {
    display: block;
    text-align: center;
    padding: 0.95rem 2.5rem;
    margin: 1.75rem auto 2rem;
    max-width: 240px;
    min-height: 48px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-indent: 3px;
    color: #f4f1ea !important;
    background: #8B0000 !important;
    border: 2px solid #8B0000;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-back-home:hover,
.mobile-back-home:active {
    transform: translateY(-2px);
    color: #f4f1ea !important;
    background: #a31515 !important;
    box-shadow: 0 6px 28px rgba(139, 0, 0, 0.55);
  }
}

/* ===== ACCESSIBILITY: Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ===== FORM VALIDATION ===== */
.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

/* ===== LOADING SPINNER ===== */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Nav logo hover effect */
.nav-brand {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}

.nav-brand:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-logo-img {
  transition: transform 0.2s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
}

@media (max-width: 520px) {
}

/* ===========================================================
   ACTIVISM PAGE
   ===========================================================
   Design language: matches the rest of the site —
     - Deep navy (#0a0e17 / #111827) backgrounds
     - Gold (#DAA520) accents + maple-leaf dividers
     - Deep red (#8B0000) highlights
     - Georgia/Playfair serif for headings, Inter for body
     - 16:9 hero video with glow halo
     - Horizontal photo scroller with custom controls
     - Full-screen lightbox with arrow-key navigation
*//* === Page hero === */
.activism-hero {
  position: relative;
  min-height: 48vh;
  padding: 4.5rem 1.5rem 3.25rem;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e17;
}

.activism-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/activism-hero-1280.webp') center 42% / cover no-repeat;
  pointer-events: none;
}

.activism-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 5, 10, 0.72) 0%,
    rgba(5, 5, 10, 0.66) 45%,
    rgba(5, 5, 10, 0.82) 100%);
}

.activism-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.activism-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.activism-eyebrow .eyebrow-line {
  flex: 0 1 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #DAA520, transparent);
  opacity: 0.7;
}

.activism-eyebrow .eyebrow-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #DAA520;
}

.activism-h1 {
  position: relative;
  z-index: 2;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  color: #8B0000;
  text-shadow:
    0 2px 0 #140000,
    0 0 14px rgba(0, 0, 0, 0.95),
    0 6px 28px rgba(0, 0, 0, 0.9);
}

.activism-h1-line {
  display: block;
}

.activism-h1-gold {
  background: linear-gradient(135deg, #DAA520 0%, #f5d36a 50%, #DAA520 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback color when gradient is not supported */
  color: #DAA520;
}

.activism-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #e7e1d4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.activism-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.activism-divider .divider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(218, 165, 32, 0.12) 0%, transparent 70%),
    var(--bg-card, #1a2235);
  border: 1px solid rgba(218, 165, 32, 0.25);
  font-size: 1.6rem;
  color: #DAA520;
  filter: drop-shadow(0 0 12px rgba(218, 165, 32, 0.25));
}

/* === Section headers (numbered) === */
.activism-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  position: relative;
}

.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.campaign-banner {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(218, 165, 32, 0.35);
  background: #07090f;
}
.campaign-banner:hover,
.campaign-banner:focus-visible {
  border-color: #DAA520;
}
.campaign-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
}
.campaign-banner-title {
  display: block;
  padding: 0.75rem 1rem 0.95rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: #DAA520;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.campaign-empty {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-family: Georgia, serif;
}

.section-header {
  margin-bottom: 2rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #DAA520;
  letter-spacing: 0.05em;
}

.section-rule {
  flex: 0 1 60px;
  height: 1px;
  background: linear-gradient(to right, #DAA520, transparent);
}

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #94a3b8;
}

.section-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

/* === Video section === */
.video-section {
  position: relative;
}

/* Glow halo behind the video frame — gold halo, very subtle */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050810;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(218, 165, 32, 0.15);
  border: 1px solid rgba(218, 165, 32, 0.15);
}

.video-frame-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(218, 165, 32, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.12) 0%, transparent 70%),
    linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}

.video-empty-art {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #DAA520;
  background:
    radial-gradient(circle at 50% 40%, rgba(218, 165, 32, 0.15) 0%, transparent 70%),
    rgba(218, 165, 32, 0.04);
  border: 1px solid rgba(218, 165, 32, 0.2);
  box-shadow: 0 0 30px rgba(218, 165, 32, 0.1);
}

.video-empty-art svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.3));
}

.video-empty-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #DAA520;
  margin: 0 0 0.75rem;
}

.video-empty-p {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 420px;
  margin: 0;
  line-height: 1.5;
}

.video-meta {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 1rem 0 0;
  letter-spacing: 0.02em;
}

/* === Photo gallery === */
.photos-section {
  position: relative;
}

/* Scroll controls floating above the scroller */
.scroller-controls {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  pointer-events: none;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
  z-index: 5;
}

.scroll-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 34, 53, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(218, 165, 32, 0.3);
  color: #DAA520;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.scroll-btn:hover:not(:disabled) {
  background: rgba(218, 165, 32, 0.15);
  border-color: rgba(218, 165, 32, 0.6);
  color: #f5d36a;
  transform: scale(1.08);
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* The horizontal scroller — same scroll-snap pattern as before, but with
   more polished card styling */
.photo-scroller {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.5rem;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(218, 165, 32, 0.4) transparent;
}

.photo-scroller::-webkit-scrollbar {
  height: 8px;
}

.photo-scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.photo-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, rgba(218, 165, 32, 0.5), rgba(139, 0, 0, 0.5));
  border-radius: 4px;
}

.photo-scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, rgba(218, 165, 32, 0.8), rgba(139, 0, 0, 0.8));
}

.photo-card {
  flex: 0 0 auto;
  width: 360px;
  height: 270px;
  scroll-snap-align: start;
  background: var(--bg-card, #1a2235);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.photo-card:hover,
.photo-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(218, 165, 32, 0.5);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(218, 165, 32, 0.3);
  outline: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* Empty state for photos — large card-like treatment, centered */
.photo-empty {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 240px;
  padding: 3rem 1rem;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, rgba(26, 34, 53, 0.5) 0%, rgba(13, 17, 23, 0.5) 100%);
  border: 1px dashed rgba(218, 165, 32, 0.3);
  border-radius: 12px;
  color: #94a3b8;
}

.photo-empty-art {
  width: 64px;
  height: 64px;
  color: #DAA520;
  opacity: 0.7;
}

.photo-empty-art svg {
  width: 100%;
  height: 100%;
}

.photo-empty-p {
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  animation: lightbox-fade 0.22s ease;
}

/* The `hidden` attribute must win over display:flex above — without this the
   lightbox overlay covers the whole page from load (X button appears dead). */
.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(218, 165, 32, 0.2);
}

.lightbox-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 80%;
  text-align: center;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.lightbox-counter {
  color: rgba(218, 165, 32, 0.9);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(218, 165, 32, 0.2);
  border-color: rgba(218, 165, 32, 0.5);
  color: #DAA520;
  transform: scale(1.08);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #DAA520;
  outline-offset: 3px;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* === Responsive tweaks === */

@media (max-width: 768px) {
  .photo-card {
    width: 280px;
    height: 210px;
  }
  .scroller-controls {
    display: none;  /* On touch devices, swipe is enough */
  }
  .lightbox {
    padding: 3rem 1rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }
  .activism-hero {
    min-height: 42vh;
    padding: 3rem 1rem 2rem;
  }
  .activism-hero::before {
    background-image: url('/activism-hero-720.webp');
  }
}

/* === Admin: Activism tab === */
.activism-admin-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: var(--radius, 12px);
  position: relative;
  overflow: hidden;
}

.activism-admin-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(218, 165, 32, 0.4), transparent);
}

.activism-admin-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #DAA520;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.activism-admin-section .section-help {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.video-current {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border, #1e293b);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.video-current video {
  width: 220px;
  border-radius: 6px;
  background: #000;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.video-current-info {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.video-current-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #e2e8f0;
  font-weight: 600;
}

.video-current-info span {
  color: #94a3b8;
}

.upload-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.upload-row input[type="file"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.75rem;
  background: var(--bg-primary, #0a0e17);
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.92rem;
}

.upload-row input[type="file"]:focus-visible {
  outline: 2px solid rgba(218, 165, 32, 0.5);
  outline-offset: 2px;
  border-color: rgba(218, 165, 32, 0.5);
}

.upload-row button,
.upload-row .btn {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #DAA520 0%, #c8941b 100%);
  color: #0a0e17;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.upload-row button:hover:not(:disabled),
.upload-row .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f5d36a 0%, #DAA520 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.upload-row button:disabled,
.upload-row .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.upload-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.upload-status.success { color: #10b981; }
.upload-status.error { color: #ef4444; }

.photos-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.photos-admin-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border, #1e293b);
  transition: border-color 0.2s ease;
}

.photos-admin-item:hover {
  border-color: rgba(218, 165, 32, 0.4);
}

.photos-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photos-admin-item .item-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.photos-admin-item .item-actions button {
  flex: 1;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(13, 17, 23, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.photos-admin-item .item-actions button:hover:not(:disabled) {
  background: rgba(218, 165, 32, 0.25);
  border-color: rgba(218, 165, 32, 0.5);
  color: #DAA520;
}

.photos-admin-item .item-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.photos-admin-item .item-actions button.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.photos-admin-item .item-pos {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(4px);
  color: #DAA520;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ===== CONTENT PROTECTION (2026-09-23) ====================================
   Block text selection / copy site-wide. Deliberate exceptions:
   - form fields (application form, chat, login) must stay usable
   - the Monero address box + share embed box stay selectable (their copy
     buttons use the clipboard API, but manual selection must work too —
     -webkit- prefixes keep the Range/execCommand fallback alive on old iOS)
   The admin panel re-enables selection via its own inline <style> in
   admin.html (served no-store). Editing this block = cache-bust ritual. */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select,
[contenteditable="true"], [contenteditable=""] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.address-box, #xmr-address, .embed-box {
  -webkit-user-select: all;
  -moz-user-select: all;
  user-select: all;
  -webkit-touch-callout: default;
}

/* ===== 2026-09-27 visual pass ===== */

/* Homeland stays dark red. Canada in the corner is white, every page. */
.brand-homeland,
.nav-brand .brand-homeland,
.donate-nav .brand-homeland {
  color: #8B0000 !important;
  -webkit-text-fill-color: #8B0000 !important;
}
.brand-canada,
.nav-brand .brand-canada,
.donate-nav .brand-canada {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.hero-gold-title,
.mission-hero-content h1,
.mission-page-hero h1,
.apply-hero-title,
.apply-hero-title-gold,
.donate-hero h1,
.donate-hero-content h1,
.short-hero-content h1,
.activism-hero h1,
.activism-h1,
.activism-h1-gold {
  color: #8B0000 !important;
  -webkit-text-fill-color: #8B0000 !important;
  -webkit-text-stroke: 0 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.hero-gold-title {
  text-shadow:
    0 2px 0 #140000,
    0 0 14px rgba(0, 0, 0, 0.95),
    0 6px 28px rgba(0, 0, 0, 0.9) !important;
}

/* Gold ornament between home paragraphs. No white tile. */
.leaf-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.35rem auto 1.7rem;
  max-width: 340px;
  pointer-events: none;
}
.leaf-break::before,
.leaf-break::after {
  content: '';
  flex: 1;
  height: 7px;
  background:
    linear-gradient(#DAA520, #DAA520) center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, #F0D060, #DAA520, transparent) center / 100% 1px no-repeat;
  background-position: center 2px, center 5px;
}
.leaf-break img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.55));
}

/* Short photo header for About and Privacy. */
.short-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin: 0 0 2rem;
}
.short-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(1.1) brightness(0.82);
}
.short-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 5, 10, 0.72) 0%,
    rgba(5, 5, 10, 0.66) 42%,
    rgba(5, 5, 10, 0.82) 100%);
}
.short-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.short-hero-content h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #8B0000;
  margin: 0;
  text-shadow:
    0 2px 0 #140000,
    0 0 14px rgba(0, 0, 0, 0.95),
    0 6px 28px rgba(0, 0, 0, 0.9);
}

/* Gold number on a mission card. */
.mission-card .section-label {
  margin-bottom: 0.45rem;
}

/* Donate: gold outline mark, not the orange circle. */
.xmr-mark {
  flex-shrink: 0;
  display: block;
}

/* Dark navy stays. Leaves scroll with the page, denser at the top. */
html {
  background-color: #0a0e17 !important;
  background-image: url('/maple-leaf-scroll.webp') !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
  background-size: 100% auto !important;
  background-attachment: scroll !important;
}
body {
  background-color: transparent !important;
  background-image: none !important;
}

.footer-links {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}
.shop-lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}
.shop-actions {
  text-align: center;
  margin: 0 0 3rem;
}
.shop-go {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #eef2f7;
  background: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  text-decoration: none;
}
.shop-go:hover {
  background: transparent;
  color: #DAA520;
  border-color: #DAA520;
}

.shop-listings {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.shop-listings .section-h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.shop-empty {
  text-align: center;
  color: var(--text-secondary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  padding: 2rem 1rem;
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: 8px;
}

/* Shop banner: taller so the whole photograph shows, and a lighter shade
   than About/Privacy — dark only behind the title. */
.short-hero.shop-hero {
  height: clamp(280px, 30vw, 420px);
}
.short-hero.shop-hero img {
  filter: none;
}
.short-hero.shop-hero .short-hero-overlay {
  background:
    radial-gradient(ellipse 30% 40% at 50% 50%,
      rgba(5, 5, 10, 0.62) 0%,
      rgba(5, 5, 10, 0.30) 55%,
      rgba(5, 5, 10, 0) 100%),
    linear-gradient(180deg,
      rgba(5, 5, 10, 0.18) 0%,
      rgba(5, 5, 10, 0) 28%,
      rgba(5, 5, 10, 0) 70%,
      rgba(5, 5, 10, 0.50) 100%);
}
