/* ================================================================
   KOLABORASA — Landing Page Styles v2.0
   Ultra-Modern, Animation-Rich, Interactive Design
   Color Palette: Red (#D8000B, #A4001F) + Blue (#1C3D6F, #2D67BD)
   ================================================================ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* ── Red / Volunteer Palette ── */
  --red-50: #fff0f0;
  --red-100: #ffd6d6;
  --red-200: #ffadad;
  --red-400: #E2453B;
  --red-500: #D8000B;
  --red-600: #A4001F;
  --red-700: #8D080D;

  /* ── Blue / Mentoring Palette ── */
  --blue-300: #71A5D5;
  --blue-400: #4d84c8;
  --blue-500: #2D67BD;
  --blue-700: #1C3D6F;

  /* ── Neutral ── */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Aliases */
  --orange-50: var(--red-50);
  --orange-100: var(--red-100);
  --orange-200: var(--red-200);
  --orange-400: var(--red-400);
  --orange-500: var(--red-500);
  --orange-600: var(--red-600);
  --orange-700: var(--red-700);
  --amber-400: var(--blue-300);
  --amber-500: var(--blue-500);

  /* ── Gradients ── */
  --gradient-main: linear-gradient(135deg, #D8000B 0%, #A4001F 45%, #1C3D6F 100%);
  --gradient-hero: linear-gradient(160deg, #fff0f0 0%, #e8f1fb 60%, #fffefb 100%);
  --gradient-dark: linear-gradient(135deg, #0d0204 0%, #1a0407 40%, #0a1929 100%);
  --gradient-glow-r: radial-gradient(ellipse, rgba(216, 0, 11, 0.35) 0%, transparent 70%);
  --gradient-glow-b: radial-gradient(ellipse, rgba(28, 61, 111, 0.35) 0%, transparent 70%);

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .15);
  --shadow-orange: 0 8px 32px rgba(216, 0, 11, .28);
  --shadow-blue: 0 8px 32px rgba(28, 61, 111, .28);

  /* ── Misc ── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --white: #fffefb;
  --black: #000000;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Ensure section contents sit above edge gradient transitions & ambient masks */
.hero > .container,
.about > .container,
.programs > .container,
.impact > .container,
.articles > .container,
.testimonials > .container,
.contact > .container {
  position: relative;
  z-index: 3;
}

.section {
  padding: 5rem 0;
}

/* ═══════════════════════════════════════════════════════════════
    ARTICLES SECTION
    ═══════════════════════════════════════════════════════════════ */
.articles {
  background:
    radial-gradient(ellipse at 8% 20%, rgba(141, 8, 13, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 80%, rgba(28, 61, 111, 0.1) 0%, transparent 45%),
    linear-gradient(160deg, #f8f0f0 0%, #f0f4fb 50%, #f0f0f8 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.articles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(216, 0, 11, 0.05) 0%, transparent 28%),
    radial-gradient(circle at 75% 65%, rgba(28, 61, 111, 0.05) 0%, transparent 28%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Bottom transition blend from Articles into Testimonials */
.articles::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, #fdf8f8 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

:root.dark .articles::after,
html.dark .articles::after {
  background: linear-gradient(to bottom, transparent 0%, #0f0f0f 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.article-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.article-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.85) inset, 0 24px 64px rgba(0, 0, 0, 0.1);
  border-color: rgba(216, 0, 11, 0.15);
}

.article-card-body {
  padding: 2rem;
}

.article-category {
  display: inline-block;
  background: rgba(216, 0, 11, 0.08);
  color: var(--red-500);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--neutral-900);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.article-excerpt {
  font-size: .9rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
}

.article-author {
  font-weight: 700;
  color: var(--neutral-700);
}

.article-date {
  color: var(--neutral-500);
}

.article-card-thumb {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  margin-bottom: 1.15rem;
  background: var(--neutral-100);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.article-modal-highlight {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.75rem;
  background: var(--neutral-100);
  max-height: 420px;
}

.article-image-upload-zone:hover {
  border-color: var(--red-500, #d8000b) !important;
  background: rgba(216, 0, 11, 0.04) !important;
}

:root.dark .article-card-thumb,
html.dark .article-card-thumb,
:root.dark .article-modal-highlight,
html.dark .article-modal-highlight {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

:root.dark .article-image-upload-zone,
html.dark .article-image-upload-zone {
  border-color: #334155 !important;
  background: rgba(30, 41, 59, 0.4) !important;
}

/* Article form card */
.article-form-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
    RESPONSIVE
    ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode articles section & components */
:root.dark .articles,
html.dark .articles {
  background:
    radial-gradient(ellipse at 8% 20%, rgba(141, 8, 13, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 80%, rgba(28, 61, 111, 0.25) 0%, transparent 45%),
    linear-gradient(160deg, #110507 0%, #070e1a 50%, #0c0d13 100%) !important;
}

:root.dark .articles::before,
html.dark .articles::before {
  background-image:
    radial-gradient(circle at 25% 35%, rgba(216, 0, 11, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 75% 65%, rgba(28, 61, 111, 0.08) 0%, transparent 28%);
}

:root.dark .article-card,
html.dark .article-card {
  background: rgba(30, 41, 59, 0.55) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

:root.dark .article-card:hover,
html.dark .article-card:hover {
  transform: translateY(-10px) !important;
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(216, 0, 11, 0.4) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

:root.dark .article-title,
html.dark .article-title {
  color: #f1f5f9 !important;
}

:root.dark .article-excerpt,
html.dark .article-excerpt {
  color: #94a3b8 !important;
}

:root.dark .article-author,
html.dark .article-author {
  color: #cbd5e1 !important;
}

:root.dark .article-date,
html.dark .article-date {
  color: #64748b !important;
}

:root.dark .article-category,
html.dark .article-category {
  background: rgba(216, 0, 11, 0.22) !important;
  color: #f87171 !important;
}

:root.dark .article-form-card,
html.dark .article-form-card {
  background: rgba(30, 41, 59, 0.55) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

:root.dark .article-form-card .contact-form-title,
html.dark .article-form-card .contact-form-title {
  color: #f8fafc !important;
}

:root.dark .article-form-card .contact-form-desc,
html.dark .article-form-card .contact-form-desc {
  color: #94a3b8 !important;
}

:root.dark .article-form-card label,
html.dark .article-form-card label {
  color: #cbd5e1 !important;
}

:root.dark .article-form-card input,
html.dark .article-form-card input,
:root.dark .article-form-card textarea,
html.dark .article-form-card textarea,
:root.dark .article-form-card select,
html.dark .article-form-card select {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}

:root.dark .article-form-card input:focus,
html.dark .article-form-card input:focus,
:root.dark .article-form-card textarea:focus,
html.dark .article-form-card textarea:focus,
:root.dark .article-form-card select:focus,
html.dark .article-form-card select:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Dark mode modal container & reader modal */
:root.dark .modal-container,
html.dark .modal-container {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75) !important;
}

:root.dark .modal-close,
html.dark .modal-close {
  background: #1f2937 !important;
  color: #9ca3af !important;
}

:root.dark .modal-close:hover,
html.dark .modal-close:hover {
  background: #374151 !important;
  color: #ffffff !important;
}

:root.dark .article-full-content p,
html.dark .article-full-content p {
  color: #cbd5e1 !important;
}
:root.dark {
  --neutral-50: #0f0f0f;
  --neutral-100: #1a1a1a;
  --neutral-200: #2a2a2a;
  --neutral-300: #3a3a3a;
  --neutral-400: #666666;
  --neutral-500: #888888;
  --neutral-600: #aaaaaa;
  --neutral-700: #cccccc;
  --neutral-800: #e8e8e8;
  --neutral-900: #f5f5f5;
  --gradient-hero: linear-gradient(160deg, #1a0306 0%, #0a1525 60%, #0f0f0f 100%);
  --white: #1a1a1a;
}

:root.dark body {
  background: #0f0f0f;
  color: #e8e8e8;
}

/* Dark mode navbar */
:root.dark .navbar {
  background: rgba(15, 15, 15, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

:root.dark .navbar.scrolled {
  background: rgba(15, 15, 15, 0.96);
}

:root.dark .logo-text {
  color: #f5f5f5;
}

:root.dark .nav-link,
html.dark .nav-link {
  color: #cccccc;
}

:root.dark .nav-link:hover,
html.dark .nav-link:hover,
:root.dark .nav-link.active-link,
html.dark .nav-link.active-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

:root.dark .hamburger span {
  background: #e8e8e8;
}

:root.dark .nav-menu {
  background: rgba(15, 15, 15, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark mode sections */
:root.dark .section-title {
  color: #f5f5f5;
}

:root.dark .section-subtitle {
  color: #aaaaaa;
}

:root.dark .vm-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root.dark .value-card,
:root.dark .program-card,
:root.dark .testimonial-card,
:root.dark .contact-option,
:root.dark .donate-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root.dark .program-body h3,
:root.dark .vm-title {
  color: #f5f5f5;
}

:root.dark .program-body p,
:root.dark .vm-text,
:root.dark .testi-text {
  color: #aaaaaa;
}

:root.dark .section-tag {
  background: rgba(216, 0, 11, 0.15);
  color: var(--red-400);
}

:root.dark .testi-author strong {
  color: #f5f5f5;
}

:root.dark .testi-author small {
  color: #888;
}

:root.dark .option-text strong {
  color: #f5f5f5;
}

:root.dark .option-text small {
  color: #888;
}

:root.dark input,
:root.dark textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

:root.dark input::placeholder,
:root.dark textarea::placeholder {
  color: #666;
}

:root.dark .donate-box-header h3 {
  color: #f5f5f5;
}

:root.dark .donate-box-header p {
  color: #888;
}

:root.dark .amount-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
}

:root.dark .donate-note {
  color: #666;
}

:root.dark .footer {
  background: linear-gradient(160deg, #080808 0%, #0a0f1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root.dark .footer-col h4 {
  color: #f5f5f5;
}

:root.dark .footer-col a {
  color: #888;
}

:root.dark .footer-bottom p {
  color: #555;
}

:root.dark .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root.dark .about {
  background: #0f0f0f;
}

:root.dark .programs {
  background: #111;
}

:root.dark .testimonials {
  background: #0f0f0f;
}

:root.dark .contact {
  background: #111;
}

:root.dark .value-card h3 {
  color: #f5f5f5;
}

:root.dark .value-card p {
  color: #aaa;
}

:root.dark .prog-vol-desc {
  color: #aaa;
}

:root.dark .prog-vol-title {
  color: #f5f5f5;
}

:root.dark .hero-stats {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root.dark .stat-label {
  color: #888;
}

:root.dark .stat-divider {
  background: rgba(255, 255, 255, 0.12);
}

:root.dark .floating-card {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

:root.dark .floating-card strong {
  color: #f5f5f5;
}

:root.dark .floating-card small {
  color: #888;
}

:root.dark .impact-desc {
  color: rgba(255, 255, 255, 0.55);
}

:root.dark .impact-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Dark mode feature list items */
:root.dark .program-features li {
  color: #ccc;
}

:root.dark .program-features li strong {
  color: #f8fafc;
}

:root.dark .program-features li::before {
  color: var(--red-400, #f87171);
}



/* ═══════════════════════════════════════════════════════════════
   ANIMATED PARTICLE CANVAS
   ═══════════════════════════════════════════════════════════════ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(1deg);
  }

  66% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

@keyframes float-x {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(12px);
  }
}

@keyframes blob-morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(1) rotate(0deg);
  }

  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: scale(1.05) rotate(90deg);
  }

  50% {
    border-radius: 40% 60% 60% 40% / 70% 30% 60% 40%;
    transform: scale(0.95) rotate(180deg);
  }

  75% {
    border-radius: 60% 40% 40% 60% / 40% 70% 40% 60%;
    transform: scale(1.08) rotate(270deg);
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(1) rotate(360deg);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

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

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(216, 0, 11, 0.4);
  }

  50% {
    transform: scale(1.3);
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(216, 0, 11, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(216, 0, 11, 0.2), 0 0 40px rgba(216, 0, 11, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(216, 0, 11, 0.4), 0 0 80px rgba(216, 0, 11, 0.2);
  }
}

@keyframes glow-pulse-blue {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(28, 61, 111, 0.2), 0 0 40px rgba(28, 61, 111, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(28, 61, 111, 0.4), 0 0 80px rgba(28, 61, 111, 0.2);
  }
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(8px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes number-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes toast-in {
  from {
    transform: translateY(100px) translateX(-50%);
    opacity: 0;
  }

  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-cursor {
  50% {
    border-color: transparent;
  }
}

@keyframes card-shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(300%) rotate(45deg);
  }
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.gradient-text {
  background: var(--gradient-main);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.gradient-text-light {
  background: linear-gradient(135deg, #E2453B, #D8000B, #71A5D5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════════ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-100);
  color: var(--orange-600);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.section-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: card-shine 3s ease infinite;
}

.section-tag.light {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

.section-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--neutral-900);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-title.light {
  color: #fff;
}

.section-subtitle {
  color: var(--neutral-600);
  max-width: 600px;
  margin: 0 auto 3.5rem;
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1.6;
  text-align: center;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, .75);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS — with ripple + magnetic
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: none;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  width: 10px;
  height: 10px;
  animation: ripple 0.6s linear;
  pointer-events: none;
  transform-origin: center;
}

.btn-primary {
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-orange);
  animation: gradient-shift 5s ease infinite;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(216, 0, 11, .45);
}

.btn-ghost {
  background: transparent;
  color: var(--orange-600);
  border: 2px solid var(--orange-200);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(216, 0, 11, 0.06);
  border-color: var(--orange-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(216, 0, 11, .15);
}

.btn-outline {
  background: transparent;
  color: var(--orange-600);
  border: 2px solid var(--orange-400);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--orange-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}

.btn-white {
  background: rgba(255, 255, 255, 0.95);
  color: var(--orange-600);
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.full-width {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-anim="left"] {
  transform: translateX(-50px);
}

.animate-on-scroll[data-anim="right"] {
  transform: translateX(50px);
}

.animate-on-scroll[data-anim="scale"] {
  transform: scale(0.85);
}

.animate-on-scroll[data-anim="left"].visible,
.animate-on-scroll[data-anim="right"].visible,
.animate-on-scroll[data-anim="scale"].visible {
  transform: translateX(0) scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 20px rgba(141, 8, 13, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(216, 0, 11, 0.03) 0%,
      rgba(255, 255, 255, 0.0) 40%,
      rgba(28, 61, 111, 0.02) 100%);
  pointer-events: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 24px rgba(0, 0, 0, 0.07),
    0 1px 6px rgba(141, 8, 13, 0.05);
}

/* Single unified inner row */
.nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: .5rem 1.5rem;
}

/* Keep old selector working */
.nav-container {
  display: contents;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: scale(1.03);
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}

.logo-text-red {
  color: var(--red-500);
}

.logo-text-blue {
  color: var(--blue-700);
}

:root.dark .logo-text-red {
  color: var(--red-400);
}

:root.dark .logo-text-blue {
  color: var(--blue-300);
}

.logo-img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
  transition: filter 0.3s ease;
}

.footer-logo-text {
  color: var(--neutral-900) !important;
  transition: color 0.3s ease;
}

:root.dark .footer-logo-img,
html.dark .footer-logo-img {
  filter: brightness(0) invert(1);
}

:root.dark .footer-logo-text,
html.dark .footer-logo-text {
  color: #ffffff !important;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .45rem;
  transition: transform 0.3s;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile dropdown — slides down from navbar */
.nav-menu {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(32px);
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-bottom: 1px solid var(--neutral-200);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .4s ease;
  box-shadow: var(--shadow-lg);
}

.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-link {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  color: var(--neutral-700);
  padding: .75rem .5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: left 0.3s, right 0.3s;
}

.nav-link:hover::after,
.nav-link.active-link::after {
  left: .5rem;
  right: .5rem;
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--orange-500);
  background: var(--orange-50);
}

.nav-cta {
  display: inline-block;
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .88rem;
  padding: .6rem 1.35rem;
  border-radius: 100px;
  text-align: center;
  margin-top: 0;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition);
  animation: gradient-shift 5s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--neutral-200);
  color: var(--neutral-600);
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.dark-mode-toggle:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-300);
  color: var(--neutral-900);
  transform: rotate(15deg);
}

:root.dark .dark-mode-toggle {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ccc;
}

:root.dark .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

:root.dark .icon-sun {
  display: none;
}

:root.dark .icon-moon {
  display: block;
}

/* Hero floating card icon box */
.card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-blue {
  background: rgba(28, 61, 111, 0.12);
  color: var(--blue-700);
}

.card-icon-red {
  background: rgba(216, 0, 11, 0.12);
  color: var(--red-500);
}

/* VM Icon wrap (replaces emoji) */
.vm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(216, 0, 11, 0.08);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.vm-icon-blue {
  background: rgba(28, 61, 111, 0.08);
  color: var(--blue-700);
}

/* Value card icon wrap */
.value-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(216, 0, 11, 0.08);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  transition: transform 0.3s;
}

.value-card:hover .value-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

:root.dark .vm-icon-wrap {
  background: rgba(216, 0, 11, 0.15);
}

:root.dark .vm-icon-blue {
  background: rgba(28, 61, 111, 0.15);
}

:root.dark .value-icon-wrap {
  background: rgba(216, 0, 11, 0.15);
}

:root.dark .card-icon-blue {
  background: rgba(28, 61, 111, 0.2);
  color: var(--blue-300);
}

:root.dark .card-icon-red {
  background: rgba(216, 0, 11, 0.2);
  color: var(--red-400);
}


.nav-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.nav-cta:hover::before {
  left: 120%;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(216, 0, 11, .45);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — Cinematic
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--gradient-hero);
  padding: 84px 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(216, 0, 11, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(28, 61, 111, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 30%, rgba(45, 103, 189, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Animated grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 0, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 0, 11, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: fade-in 2s ease 0.5s both;
}

/* Morphing blobs */
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.2;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #D8000B, #E2453B);
  top: -150px;
  right: -150px;
  animation: blob-morph 18s infinite ease-in-out;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1C3D6F, #2D67BD);
  bottom: 5%;
  left: -150px;
  animation: blob-morph 24s infinite ease-in-out reverse;
  animation-delay: -8s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #1C3D6F, #71A5D5);
  bottom: -80px;
  right: 25%;
  animation: blob-morph 20s infinite ease-in-out;
  animation-delay: -4s;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(216, 0, 11, 0.15), transparent);
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
  filter: blur(20px);
}

.hero-orb-2 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(28, 61, 111, 0.15), transparent);
  top: 40%;
  right: 15%;
  animation: float 10s ease-in-out infinite 2s;
  filter: blur(15px);
}

.hero-orb-3 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(216, 0, 11, 0.12), transparent);
  bottom: 25%;
  left: 30%;
  animation: float 7s ease-in-out infinite 1s;
  filter: blur(12px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

/* Hero badge with glow */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(216, 0, 11, .08);
  border: 1px solid rgba(216, 0, 11, .2);
  color: var(--orange-600);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fade-up .6s ease .1s both;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: card-shine 4s ease 1s infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Hero title with typing effect slot */
.hero-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: 1.25rem;
  animation: fade-up .6s ease .2s both;
  letter-spacing: -0.025em;
}

.hero-title .line-accent {
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--neutral-600);
  margin-bottom: 2.25rem;
  animation: fade-up .6s ease .35s both;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero interaction wrapper (aligns button width to stats width) */
.hero-interaction {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  box-sizing: border-box;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: fade-up .6s ease .45s both;
  width: 100%;
}

.hero-interaction .hero-actions {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin-bottom: 1rem;
}

.hero-interaction #btn-explore {
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-sizing: border-box;
  border-radius: 100px;
  text-align: center;
}

.hero-interaction #btn-hero-auth {
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Stats with glass card */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 1.15rem 0.85rem;
  animation: fade-up .6s ease .55s both;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-interaction .hero-stats {
  width: 100% !important;
  box-sizing: border-box;
  flex-wrap: nowrap !important;
}

.hero-stats:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 48px rgba(0, 0, 0, 0.1);
}

.stat-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 0.35rem;
  position: relative;
}

.stat-number {
  display: block;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.25rem, 3.8vw, 1.55rem);
  background: var(--gradient-main);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: clamp(0.62rem, 1.9vw, 0.72rem);
  color: var(--neutral-500);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--neutral-200), transparent);
  flex-shrink: 0;
}

/* Hero image */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  animation: fade-up .6s ease .35s both;
}

.hero-image-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(216, 0, 11, .2), transparent 65%);
  border-radius: 50%;
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: float 7s ease-in-out infinite;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-image.inactive {
  opacity: 0;
  transform: scale(1.08);
  z-index: 1;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: .75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  font-family: var(--font-main);
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-card:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.floating-card .card-emoji {
  font-size: 1.5rem;
}

.floating-card strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.floating-card small {
  font-size: .72rem;
  color: var(--neutral-500);
}

.card-top {
  top: 10%;
  left: 0%;
  animation: float 5.5s ease-in-out infinite 1s;
}

.card-bottom {
  bottom: 10%;
  right: 0%;
  animation: float 6s ease-in-out infinite 0.5s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--neutral-400);
  z-index: 2;
  animation: fade-up .6s ease 1.2s both;
  font-family: var(--font-main);
  letter-spacing: 0.06em;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2.5px solid var(--orange-400);
  border-bottom: 2.5px solid var(--orange-400);
  transform: rotate(45deg);
  animation: scroll-bounce 1.8s ease-in-out infinite;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(28, 61, 111, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(216, 0, 11, 0.08) 0%, transparent 45%),
    linear-gradient(160deg, #fdf8f8 0%, #f8f4ff 50%, #f4f8fd 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Bottom transition blend from About into Programs */
.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent 0%, #f8f0f0 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

:root.dark .about::after,
html.dark .about::after {
  background: linear-gradient(to bottom, transparent 0%, #111111 100%);
}

.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 0, 11, 0.06), transparent);
  pointer-events: none;
}

.about .section-tag,
.about .section-title,
.about .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Visi & Misi */
.visi-misi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: left;
}

.vm-card {
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 40px rgba(216, 0, 11, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.vm-card>* {
  position: relative;
  z-index: 1;
}

.vm-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 64px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Shine sweep on hover */
.vm-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.vm-card:hover::after {
  left: 120%;
}

.vm-card--blue {
  border-color: rgba(28, 61, 111, 0.15);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 40px rgba(28, 61, 111, 0.06);
}

.vm-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.vm-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red-600);
  margin-bottom: .9rem;
  letter-spacing: -.01em;
}

.vm-card--blue .vm-title {
  color: #1C3D6F;
}

.vm-text {
  font-size: .95rem;
  color: var(--neutral-700);
  line-height: 1.8;
}

.vm-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.vm-list li {
  font-size: .9rem;
  color: var(--neutral-700);
  line-height: 1.65;
  padding-left: 1.6rem;
  position: relative;
}

.vm-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #2D67BD;
  font-weight: 700;
}

/* Values */
.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.value-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 6px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.value-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover::before {
  width: 80%;
}

.value-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-20deg);
  transition: left 0.6s;
  pointer-events: none;
}

.value-card:hover::after {
  left: 120%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(216, 0, 11, 0.06);
  border-color: rgba(216, 0, 11, 0.15);
}

.value-icon {
  font-size: 2.8rem;
  margin-bottom: 1.1rem;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon {
  transform: scale(1.2) rotate(5deg);
}

.value-card h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--neutral-900);
  margin-bottom: .7rem;
}

.value-card p {
  font-size: .9rem;
  color: var(--neutral-600) !important;
  line-height: 1.7;
  background: none !important;
  -webkit-text-fill-color: var(--neutral-600) !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRAMS SECTION
   ═══════════════════════════════════════════════════════════════ */
.programs {
  background:
    radial-gradient(ellipse at 8% 20%, rgba(141, 8, 13, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 80%, rgba(28, 61, 111, 0.1) 0%, transparent 45%),
    linear-gradient(160deg, #f8f0f0 0%, #f0f4fb 50%, #f0f0f8 100%);
  position: relative;
  overflow: hidden;
}

.programs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(216, 0, 11, 0.05) 0%, transparent 28%),
    radial-gradient(circle at 75% 65%, rgba(28, 61, 111, 0.05) 0%, transparent 28%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.programs-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
}

.filter-btn.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(216, 0, 11, 0.25);
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.hidden {
  display: none !important;
}

.program-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 72px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(141, 8, 13, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}

.program-card.featured {
  border: 1.5px solid rgba(216, 0, 11, 0.2);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 48px rgba(216, 0, 11, 0.1);
  animation: glow-pulse 3s ease-in-out infinite;
}

.program-card.featured:hover {
  animation: none;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 72px rgba(216, 0, 11, 0.18);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .75rem;
  padding: .4rem .95rem;
  border-radius: 100px;
  z-index: 2;
  animation: gradient-shift 4s ease infinite;
}

.program-img-wrapper {
  position: relative;
  height: 230px;
  flex-shrink: 0;
  overflow: hidden;
}

.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-img-wrapper > .program-img {
  transform: scale(1.08);
}

.program-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 50%);
  transition: opacity 0.4s;
}

.program-card:hover .program-img-wrapper::after {
  opacity: 0.5;
}

/* Black & White effect for Previous Events images */
.program-img--bnw {
  filter: grayscale(100%) contrast(1.05);
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease;
}

.program-card:hover .program-img-wrapper > .program-img--bnw {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.08);
}

.program-tag {
  position: absolute;
  bottom: .9rem;
  left: .9rem;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .75rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.program-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-body h3 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--neutral-900);
  margin-bottom: .75rem;
  transition: color 0.3s;
}

.program-card:hover .program-body h3 {
  color: var(--red-600);
}

.program-body p {
  font-size: .9rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.program-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0;
  list-style: none;
}

.program-features li {
  font-size: 0.92rem;
  color: var(--neutral-700);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
  display: block;
}

.program-features li strong {
  color: var(--neutral-900);
  font-weight: 700;
}

.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-500, #d8000b);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Volunteer card in programs */
.program-card--volunteer {
  border: 1px solid rgba(216, 0, 11, 0.12);
}

.prog-vol-chapters {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prog-vol-chapter {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.3s;
}

.prog-vol-chapter:last-child {
  border-bottom: none;
}

.prog-vol-chapter:hover {
  background: rgba(216, 0, 11, 0.03);
}

.prog-vol-chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.prog-vol-emoji {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prog-vol-chapter:hover .prog-vol-emoji {
  transform: scale(1.2) rotate(10deg);
}

.prog-vol-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--neutral-900);
  margin-bottom: .4rem;
}

.prog-vol-desc {
  font-size: .83rem;
  color: var(--neutral-600);
  line-height: 1.65;
  margin-bottom: .75rem;
}

.prog-vol-desc em {
  color: var(--blue-500);
  font-style: normal;
  font-weight: 500;
}

.prog-vol-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.prog-vol-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .76rem;
  padding: .38rem .9rem;
  border-radius: 100px;
  transition: all var(--transition);
  background: var(--neutral-50);
  color: var(--neutral-700);
  border: 1px solid var(--neutral-200);
  position: relative;
  overflow: hidden;
}

.prog-vol-link:hover {
  background: var(--neutral-100);
  transform: translateY(-2px);
}

.prog-vol-link--cta {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(216, 0, 11, .25);
}

.prog-vol-link--cta:hover {
  box-shadow: 0 8px 24px rgba(216, 0, 11, .4);
  transform: translateY(-2px);
}

.prog-vol-link.disabled {
  background: var(--neutral-200);
  color: var(--neutral-500);
  border-color: var(--neutral-300);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.vol-chapter-badge {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   IMPACT SECTION — Adaptive Light & Dark Elegance
   ═══════════════════════════════════════════════════════════════ */
.impact {
  background:
    radial-gradient(ellipse at 25% 45%, rgba(216, 0, 11, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 78% 25%, rgba(28, 61, 111, 0.05) 0%, transparent 45%),
    linear-gradient(160deg, #f0f0f8 0%, #fdf8f8 50%, #f8f0f0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0 6.5rem;
  transition: background 0.3s ease;
}

/* Subtle entrance & exit gradient blends */
.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #f0f0f8 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

.impact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, #f8f0f0 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

.impact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.impact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(216, 0, 11, .07) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 20%, rgba(28, 61, 111, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(45, 103, 189, 0.04) 0%, transparent 40%);
  transition: background 0.3s ease;
}

/* Subtle moving lines in light mode */
.impact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 0, 11, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 0, 11, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Impact Section Header text visibility in Light Mode */
.impact .section-title.light,
.impact .section-title {
  color: var(--neutral-900) !important;
}

.impact .section-tag.light,
.impact .section-tag {
  background: var(--red-50) !important;
  color: var(--red-600) !important;
  border: 1px solid var(--red-200) !important;
}

.impact .section-subtitle.light,
.impact .section-subtitle {
  color: var(--neutral-600) !important;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

.impact-card:hover::before {
  opacity: 0.05;
}

.impact-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  transition: left 0.6s;
  pointer-events: none;
}

.impact-card:hover::after {
  left: 120%;
}

.impact-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(216, 0, 11, 0.2);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 1) inset,
    0 20px 48px rgba(0, 0, 0, 0.08);
}

.impact-number {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  background: linear-gradient(135deg, #d8000b, #a4001f, #2d67bd);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin-bottom: .5rem;
  animation: gradient-shift 5s ease infinite;
  position: relative;
  z-index: 1;
}

.impact-label {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: var(--neutral-800);
  margin-bottom: .35rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.impact-desc {
  font-size: .8rem;
  color: var(--neutral-600);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.impact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.impact-cta p {
  color: var(--neutral-700);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.impact-cta .btn {
  background: var(--gradient-main);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(216, 0, 11, 0.25);
  transition: all var(--transition);
}

.impact-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(216, 0, 11, 0.35);
}

/* ── Dark Mode Impact Section ── */
:root.dark .impact,
html.dark .impact {
  background:
    radial-gradient(ellipse at 25% 45%, rgba(216, 0, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 25%, rgba(28, 61, 111, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #111111 0%, #17070a 45%, #0c121e 85%, #110507 100%) !important;
}

:root.dark .impact::before,
html.dark .impact::before {
  background: linear-gradient(to bottom, #111111 0%, transparent 100%);
}

:root.dark .impact::after,
html.dark .impact::after {
  background: linear-gradient(to bottom, transparent 0%, #110507 100%);
}

:root.dark .impact-bg::before,
html.dark .impact-bg::before {
  background:
    radial-gradient(ellipse at 25% 55%, rgba(216, 0, 11, .25) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 20%, rgba(28, 61, 111, .22) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(45, 103, 189, 0.12) 0%, transparent 40%);
}

:root.dark .impact-bg::after,
html.dark .impact-bg::after {
  background-image:
    linear-gradient(rgba(216, 0, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 0, 11, 0.04) 1px, transparent 1px);
}

:root.dark .impact-card,
html.dark .impact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.3);
}

:root.dark .impact-card:hover,
html.dark .impact-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 20px 48px rgba(0, 0, 0, 0.4);
}

:root.dark .impact-number,
html.dark .impact-number {
  background: linear-gradient(135deg, #fca5a5, #f87171, #93c5fd);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root.dark .impact-label,
html.dark .impact-label {
  color: #f1f5f9;
}

:root.dark .impact-desc,
html.dark .impact-desc {
  color: #94a3b8;
}

:root.dark .impact-cta p,
html.dark .impact-cta p {
  color: #cbd5e1;
}

:root.dark .impact-cta .btn,
html.dark .impact-cta .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-700);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Dark mode impact header text */
:root.dark .impact .section-title.light,
:root.dark .impact .section-title,
html.dark .impact .section-title.light,
html.dark .impact .section-title {
  color: #ffffff !important;
}

:root.dark .impact .section-tag.light,
:root.dark .impact .section-tag,
html.dark .impact .section-tag.light,
html.dark .impact .section-tag {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

:root.dark .impact .section-subtitle.light,
:root.dark .impact .section-subtitle,
html.dark .impact .section-subtitle.light,
html.dark .impact .section-subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════ */
.testimonials {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(216, 0, 11, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(28, 61, 111, 0.07) 0%, transparent 45%),
    linear-gradient(160deg, #fdf8f8 0%, #f8f4ff 50%, #f4f8fd 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Bottom transition blend from Testimonials into Contact */
.testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent 0%, #fdf8f8 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

:root.dark .testimonials::after,
html.dark .testimonials::after {
  background: linear-gradient(to bottom, transparent 0%, #111111 100%);
}

.testimonial-slider {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.testimonial-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 12px 6px;
  margin: -12px -6px;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem 2.25rem;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 44px -12px rgba(28, 61, 111, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  opacity: 0.38;
  transform: scale(0.95);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.testi-quote {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(216, 0, 11, 0.1), rgba(28, 61, 111, 0.1));
  color: var(--orange-500, #D8000B);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.testimonial-card.is-active .testi-quote {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.testi-text {
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  color: var(--neutral-700);
  line-height: 1.85;
  max-width: 62ch;
  margin: 0 auto 2rem;
  font-style: italic;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.testimonial-card.is-active .testi-text {
  opacity: 1;
  transform: translateY(0);
}

.testi-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  min-width: 220px;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.testimonial-card.is-active .testi-author {
  opacity: 1;
  transform: translateY(0);
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover .testi-avatar {
  transform: scale(1.08);
}

.testi-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testi-author strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--neutral-900);
}

.testi-author small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-500);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  overflow: visible;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--orange-500);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(216, 0, 11, 0.16);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.testi-btn:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(216, 0, 11, 0.28);
  transform: translateY(-2px);
}

:root.dark .testi-btn,
html.dark .testi-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.18);
}

:root.dark .testi-btn:hover,
html.dark .testi-btn:hover {
  background: var(--gradient-main);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(216, 0, 11, 0.45);
}

.testi-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--neutral-300);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.dot.active {
  width: 32px;
  background: rgba(216, 0, 11, 0.22);
}

.dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-main);
  transform-origin: left center;
  animation: testi-dot-progress 5.5s linear forwards;
}

.testimonial-slider.is-paused .dot.active::after {
  animation-play-state: paused;
}

@keyframes testi-dot-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.testimonial-cta-bar {
  max-width: 780px;
  margin: 2.25rem auto 0;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg, 16px);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px -10px rgba(28, 61, 111, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonial-cta-text {
  color: var(--neutral-700);
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
}

:root.dark .testimonial-cta-bar,
html.dark .testimonial-cta-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

:root.dark .testimonial-cta-text,
html.dark .testimonial-cta-text {
  color: #e2e8f0;
}

:root.dark .testi-quote,
html.dark .testi-quote {
  background: rgba(255, 255, 255, 0.08);
  color: #ff6b6b;
}

@media (max-width: 640px) {
  .testimonial-card {
    padding: 2rem 1.35rem 1.75rem;
  }
  .testimonial-cta-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track,
  .testimonial-card,
  .testi-quote,
  .testi-text,
  .testi-author {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .dot.active::after {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact {
  background:
    radial-gradient(ellipse at 8% 50%, rgba(216, 0, 11, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(28, 61, 111, 0.07) 0%, transparent 45%),
    linear-gradient(160deg, #fdf8f8 0%, #f4f8fd 50%, #f8f4ff 100%);
  position: relative;
  overflow: hidden;
}

/* Bottom transition blend from Contact into Footer */
.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, #f1f3f6 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

:root.dark .contact::after,
html.dark .contact::after {
  background: linear-gradient(to bottom, transparent 0%, #111111 100%);
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.contact-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-main);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom;
}

.contact-option:hover::before {
  transform: scaleY(1);
}

.contact-option:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(216,0,11,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE OPTIMIZATIONS (HP Entry-Level Smooth 60FPS)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #particle-canvas {
    display: none !important;
  }
  .hero-bg-blobs, .blob {
    display: none !important;
  }
  .hero-image-glow {
    animation: none !important;
  }
  .hero-image-container {
    animation: none !important;
  }
  .floating-card {
    backdrop-filter: none !important;
    background: #ffffff !important;
  }
  .navbar {
    backdrop-filter: none !important;
  }
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

.contact-option:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(216, 0, 11, 0.2);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 40px rgba(216, 0, 11, 0.08);
  transform: translateX(6px);
}

.option-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-option:hover .option-icon {
  transform: scale(1.1) rotate(5deg);
}

.option-icon svg {
  width: 26px;
  height: 26px;
}

.whatsapp-icon {
  background: #dcfce7;
  color: #16a34a;
}

.email-icon {
  background: var(--orange-50);
  color: var(--orange-500);
}

.instagram-icon,
.social-ig-icon {
  background: #fce7f3;
  color: #db2777;
}

.option-text {
  flex: 1;
}

.option-text strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .95rem;
  color: var(--neutral-900);
  margin-bottom: 0.15rem;
}

.option-text small {
  font-size: .82rem;
  color: var(--neutral-500);
}

.option-arrow {
  font-size: 1.3rem;
  color: var(--neutral-400);
  transition: transform 0.3s, color 0.3s;
}

.contact-option:hover .option-arrow {
  transform: translateX(5px);
  color: var(--orange-500);
}

/* Donate Box */
.donate-box {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 48px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 1.75rem;
  position: relative;
}

.donate-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.donate-box-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.donate-box-header h3 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--neutral-900);
  margin-bottom: .4rem;
}

.donate-box-header p {
  font-size: .9rem;
  color: var(--neutral-600);
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: .85rem .5rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .9rem;
  color: var(--neutral-700);
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.amount-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.amount-btn:hover {
  border-color: var(--orange-400);
  color: var(--orange-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(216, 0, 11, .12);
}

.amount-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px) scale(1.03);
}

.donate-custom,
.donate-name {
  margin-bottom: 1.1rem;
}

.donate-custom label,
.donate-name label {
  display: block;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .85rem;
  color: var(--neutral-700);
  margin-bottom: .5rem;
}

.input-wrapper {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .95rem;
  color: var(--neutral-500);
}

.input-wrapper input,
.donate-name input {
  width: 100%;
  padding: .9rem 1rem .9rem 2.9rem;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--neutral-800);
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  backdrop-filter: blur(10px);
}

.donate-name input {
  padding-left: 1rem;
}

.input-wrapper input:focus,
.donate-name input:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(216, 0, 11, .08);
  background: #fff;
}

.donate-note {
  text-align: center;
  font-size: .8rem;
  color: var(--neutral-500);
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Adaptive Light & Dark Elegance
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: #f1f3f6;
  color: var(--neutral-700);
  border-top: 1px solid #e2e8f0;
  padding: 3.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(216, 0, 11, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(28, 61, 111, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.footer-top .nav-logo .logo-text {
  color: var(--neutral-900);
  transition: color 0.3s ease;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.footer-tagline {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 380px;
  color: var(--neutral-600);
  transition: color 0.3s ease;
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-700);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  cursor: none;
}

.social-link:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(216, 0, 11, .3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 641px) and (max-width: 899px) {
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-col.footer-col-contact {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
  }
}

@media (min-width: 900px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-col.footer-col-contact {
    grid-column: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.footer-col h4 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .85rem;
  color: var(--neutral-900);
  margin-bottom: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-col a {
  display: block;
  font-size: .83rem;
  color: var(--neutral-600);
  margin-bottom: .65rem;
  transition: all var(--transition);
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
  cursor: none;
}

.footer-col a:hover {
  color: var(--red-600);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: .8rem;
  color: var(--neutral-500);
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* ── Dark Mode Footer ── */
:root.dark .footer,
html.dark .footer {
  background: linear-gradient(180deg, #111111 0%, #0d0f15 45%, #07090e 100%) !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

:root.dark .footer::after,
html.dark .footer::after {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(216, 0, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(28, 61, 111, 0.08) 0%, transparent 50%);
}

:root.dark .footer-top,
html.dark .footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root.dark .footer-top .nav-logo .logo-text,
html.dark .footer-top .nav-logo .logo-text {
  color: #f8fafc !important;
}

:root.dark .footer-tagline,
html.dark .footer-tagline {
  color: #94a3b8 !important;
}

:root.dark .footer-col h4,
html.dark .footer-col h4 {
  color: #f8fafc !important;
}

:root.dark .footer-col a,
html.dark .footer-col a {
  color: #94a3b8 !important;
}

:root.dark .footer-col a:hover,
html.dark .footer-col a:hover {
  color: #f87171 !important;
}

:root.dark .footer-bottom,
html.dark .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

:root.dark .footer-bottom p,
html.dark .footer-bottom p {
  color: #64748b !important;
}

:root.dark .social-link,
html.dark .social-link {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root.dark .social-link:hover,
html.dark .social-link:hover {
  background: var(--gradient-main) !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════
   FAB WhatsApp
   ═══════════════════════════════════════════════════════════════ */
.fab-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 62px;
  height: 62px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
  z-index: 999;
  transition: all var(--transition);
  animation: float 4s ease-in-out infinite;
  cursor: none;
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: glow-pulse 2s ease-in-out infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 48px rgba(37, 211, 102, .65);
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST (Floating top corner notification)
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  bottom: auto;
  left: auto;
  transform: translateY(-20px);
  background: rgba(23, 23, 23, 0.96);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: .85rem 1.4rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .9rem;
  box-shadow:
    0 20px 35px -10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1), background .3s ease;
  white-space: normal;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: min(420px, calc(100vw - 2rem));
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .toast {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: calc(100vw - 2rem);
    border-radius: 10px;
    padding: .75rem 1.15rem;
    font-size: .85rem;
  }
}

.toast-icon {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR (top loading indicator)
   ═══════════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 10px rgba(216, 0, 11, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION REVEAL DECORATORS
   ═══════════════════════════════════════════════════════════════ */
.section-decorator {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   TABLET — 640px+
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .hero {
    padding: 110px 2rem 3rem;
    flex-direction: column;
    align-items: center;
  }

  .card-top {
    left: -12%;
  }

  .card-bottom {
    right: -10%;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

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

  .about-values {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }

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

  #program-volunteer {
    grid-column: 1 / -1;
  }

  .prog-vol-chapters {
    flex-direction: row;
  }

  .prog-vol-chapter {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
  }

  .prog-vol-chapter:last-child {
    border-right: none;
  }

  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .donate-amounts {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-options {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-option {
    flex: 1 1 calc(50% - .5rem);
  }

  .contact-option:last-child {
    flex: 1 1 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — 1024px+
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* No extra padding needed — nav-inner handles it */
  .navbar {
    padding: 0;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: none;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all;
    gap: .2rem;
    box-shadow: none;
    width: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link {
    padding: .45rem .85rem;
  }

  .nav-link::after {
    bottom: 2px;
  }

  .hero {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 100px 2rem 4rem;
    text-align: left;
    min-height: 100vh;
  }

  .hero-content {
    max-width: 620px;
  }

  .hero-interaction {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-badge {
    margin-bottom: 1.6rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-image-wrapper {
    max-width: 520px;
  }

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

  #program-volunteer {
    grid-column: 1 / -1;
  }

  .contact-options {
    flex-direction: row;
  }

  .contact-option {
    flex: 1;
  }

  .contact-option:last-child {
    flex: 1;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col a {
    word-break: normal;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LARGE DESKTOP — 1280px+
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.25rem;
    line-height: 1.2;
  }

  .section {
    padding: 7rem 0;
  }

  .hero {
    gap: 5rem;
  }
}

/* ── Focus Styles ─────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ---------------------------------------------------------------
   REGISTRATION MODAL
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  max-height: 85vh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-100);
  color: var(--neutral-500);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--red-50);
  color: var(--red-600);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--neutral-500);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-700);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--neutral-900);
  background: var(--neutral-50);
  transition: all 0.2s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--red-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216, 0, 11, 0.1);
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* Custom Select Dropdown Arrow */
.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

/* ==========================================================================
   AUTH UI & USER PROFILE
   ========================================================================== */
.auth-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--neutral-100);
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 100px;
  border: 1px solid var(--neutral-200);
}

.user-profile.hidden {
  display: none;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--neutral-800);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.logout-btn:hover {
  color: var(--red-500);
  background: var(--red-50);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
  font-weight: 600;
}

.btn-google:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-400);
  transform: translateY(-2px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--neutral-500);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--neutral-200);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.auth-footer a {
  color: var(--red-500);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Read-only inputs */
input[readonly] {
  background-color: var(--neutral-200);
  color: var(--neutral-600);
  cursor: not-allowed;
  border-color: var(--neutral-300);
}
input[readonly]:focus {
  box-shadow: none;
  border-color: var(--neutral-300);
}

/* ═══════════════════════════════════════════════════════════════
   PROGRAM DETAIL MODAL
   ═══════════════════════════════════════════════════════════════ */
.btn-detail-trigger {
  margin-top: auto;
  align-self: flex-start;
}

.modal-header-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.modal-prog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-prog-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.modal-prog-desc {
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Center all section headers globally as requested */
.section-tag, .section-title, .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}
.section-tag {
  display: block !important;
  width: max-content !important;
}

/* ═══════════════════════════════════════════════════════════════
   DIRECT CONTACT FORM & GRID LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.contact-grid-wrap {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.contact-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  margin-bottom: 0 !important;
}

.contact-option {
  width: 100% !important;
  flex: none !important;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-form-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.contact-form-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

:root.dark .contact-form-card,
html.dark .contact-form-card {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

:root.dark .contact-form-title,
html.dark .contact-form-title {
  color: #f5f5f5 !important;
}

:root.dark .contact-form-desc,
html.dark .contact-form-desc {
  color: #888 !important;
}

:root.dark .contact-form-card label,
html.dark .contact-form-card label {
  color: #aaa !important;
}

:root.dark .contact-form-card input,
html.dark .contact-form-card input,
:root.dark .contact-form-card textarea,
html.dark .contact-form-card textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f5 !important;
}

:root.dark .contact-form-card input::placeholder,
html.dark .contact-form-card input::placeholder,
:root.dark .contact-form-card textarea::placeholder,
html.dark .contact-form-card textarea::placeholder {
  color: #555 !important;
}

@media (max-width: 868px) {
  .contact-grid-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL PERFORMANCE OPTIMIZATIONS (Smooth 60FPS on all devices)
   ═══════════════════════════════════════════════════════════════ */
.hero-image-container,
.program-card,
.impact-card,
.floating-card,
.btn,
.navbar {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 1024px) {
  #particle-canvas {
    display: none !important;
  }
  .hero-bg-blobs, .blob {
    display: none !important;
  }
  .hero-image-glow {
    animation: none !important;
    display: none !important;
  }
  .hero-image-container {
    animation: none !important;
  }
  .floating-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
  }
  html.dark .floating-card {
    background: #1e293b !important;
  }
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
  }
  html.dark .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
  }
}

/* ==========================================================================
   ENHANCED REGISTRATION & COMPETITION FORM STYLING
   ========================================================================== */
.reg-modal-container {
  max-width: 760px !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  padding: 0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35) !important;
}

:root.dark .reg-modal-container,
html.dark .reg-modal-container {
  background: #0f172a !important;
}

.reg-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

:root.dark .reg-form-card,
html.dark .reg-form-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.2);
}

.reg-form-card:hover {
  border-color: #cbd5e1;
}

:root.dark .reg-form-card:hover {
  border-color: #475569;
}

.reg-form-card.header-card {
  background: linear-gradient(135deg, #1C3D6F, #2d6aa0);
  color: #ffffff;
  border: none;
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
}

.reg-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
  display: block !important;
  line-height: 1.45;
}

.reg-card-title em {
  font-style: italic;
  font-weight: inherit;
}

.reg-card-title a {
  display: inline;
  color: #2563eb;
  text-decoration: underline;
}

:root.dark .reg-card-title {
  color: #f1f5f9;
}

:root.dark .reg-card-title a {
  color: #60a5fa;
}

.reg-card-title .req-star {
  color: #ef4444;
  font-weight: 800;
  margin-left: 0.2rem;
  display: inline;
}

/* Talent Pool label styling dengan dark mode */
.tp-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 0.35rem;
}

:root.dark .tp-field-label,
html.dark .tp-field-label {
  color: #f1f5f9 !important;
}

.tp-field-label .req-star {
  color: #ef4444;
  font-weight: 800;
  margin-left: 0.15rem;
}

.reg-card-subtext {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

:root.dark .reg-card-subtext {
  color: #94a3b8;
}

.reg-card-example {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.65rem;
}

:root.dark .reg-card-example {
  color: #cbd5e1;
}

.reg-card-example strong {
  color: #1e293b;
}

:root.dark .reg-card-example strong {
  color: #f8fafc;
}

.reg-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

:root.dark .reg-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.reg-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

:root.dark .reg-input:focus {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.reg-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.15em;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Upload Dropzone & Chip */
.reg-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

:root.dark .reg-upload-zone {
  background: #1e293b;
  border-color: #475569;
}

.reg-upload-zone:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

:root.dark .reg-upload-zone:hover {
  background: #1e293b;
  border-color: #3b82f6;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

:root.dark .file-chip {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.file-badge-pdf {
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Radio Cards for Fast Track */
.radio-card-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

:root.dark .radio-card {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.radio-card.active, .radio-card:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

:root.dark .radio-card.active, :root.dark .radio-card:hover {
  background: #1e293b;
  border-color: #3b82f6;
}

.radio-card input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #2563eb;
  margin: 0;
  cursor: pointer;
}

.btn-add-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-file:hover {
  background: #f8fafc;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

:root.dark .btn-add-file {
  background: #1e293b;
  border-color: #475569;
  color: #60a5fa;
}

:root.dark .btn-add-file:hover {
  background: #334155;
  border-color: #60a5fa;
}

/* TIMELINE MODAL */
.timeline-list {
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 1.5rem 0;
  border-left: 2px solid var(--blue-300);
  position: relative;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.timeline-list li::before {
  content: '';
  position: absolute;
  left: -2.25rem; /* center on border-left (-1.5rem padding - half width approx) */
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--blue-500);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue-300);
}

:root.dark .timeline-list li::before {
  border-color: var(--neutral-800);
}

.timeline-list strong {
  display: block;
  color: var(--blue-700);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

:root.dark .timeline-list strong {
  color: var(--blue-300);
}

.timeline-list span {
  display: block;
  color: var(--neutral-600);
  font-size: 0.95rem;
}

:root.dark .timeline-list span {
  color: var(--neutral-400);
}

/* ==========================================================================
   GLOBAL DARK MODE FORMS, PLACEHOLDERS & CONTROLS AUDIT
   ========================================================================== */

/* 1. Universal Crisp & High-Contrast Placeholders in Dark Mode */
html.dark input::placeholder,
:root.dark input::placeholder,
html.dark textarea::placeholder,
:root.dark textarea::placeholder,
html.dark select::placeholder,
:root.dark select::placeholder,
html.dark .reg-input::placeholder,
:root.dark .reg-input::placeholder,
html.dark .modal-form input::placeholder,
:root.dark .modal-form input::placeholder,
html.dark .modal-form textarea::placeholder,
:root.dark .modal-form textarea::placeholder,
html.dark .contact-form input::placeholder,
:root.dark .contact-form input::placeholder,
html.dark .contact-form textarea::placeholder,
:root.dark .contact-form textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

html.dark input::-webkit-input-placeholder,
:root.dark input::-webkit-input-placeholder,
html.dark textarea::-webkit-input-placeholder,
:root.dark textarea::-webkit-input-placeholder,
html.dark .reg-input::-webkit-input-placeholder,
:root.dark .reg-input::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

html.dark input::-moz-placeholder,
:root.dark input::-moz-placeholder,
html.dark textarea::-moz-placeholder,
:root.dark textarea::-moz-placeholder,
html.dark .reg-input::-moz-placeholder,
:root.dark .reg-input::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

html.dark input:-ms-input-placeholder,
:root.dark input:-ms-input-placeholder,
html.dark textarea:-ms-input-placeholder,
:root.dark textarea:-ms-input-placeholder,
html.dark .reg-input:-ms-input-placeholder,
:root.dark .reg-input:-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

/* 2. All Modal Form Controls & Inputs in Dark Mode */
html.dark .modal-container,
:root.dark .modal-container {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
}

html.dark .modal-title,
:root.dark .modal-title {
  color: #f8fafc !important;
}

html.dark .modal-subtitle,
:root.dark .modal-subtitle {
  color: #94a3b8 !important;
}

html.dark .modal-form label,
:root.dark .modal-form label,
html.dark .form-group label,
:root.dark .form-group label {
  color: #e2e8f0 !important;
}

html.dark .modal-form input,
html.dark .modal-form select,
html.dark .modal-form textarea,
:root.dark .modal-form input,
:root.dark .modal-form select,
:root.dark .modal-form textarea,
html.dark .reg-input,
:root.dark .reg-input {
  background-color: #1e293b !important;
  border: 1.5px solid #334155 !important;
  color: #f8fafc !important;
}

html.dark .modal-form input:focus,
html.dark .modal-form select:focus,
html.dark .modal-form textarea:focus,
:root.dark .modal-form input:focus,
:root.dark .modal-form select:focus,
:root.dark .modal-form textarea:focus,
html.dark .reg-input:focus,
:root.dark .reg-input:focus {
  background-color: #0f172a !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* 3. Dropdown Options & Disabled Placeholders in Dark Mode */
html.dark select option,
:root.dark select option,
html.dark .reg-select option,
:root.dark .reg-select option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

html.dark select option:disabled,
:root.dark select option:disabled,
html.dark .reg-select option:disabled,
:root.dark .reg-select option:disabled {
  color: #94a3b8 !important;
}

/* 4. File Inputs in Dark Mode */
html.dark input[type="file"],
:root.dark input[type="file"],
html.dark .reg-file-input,
:root.dark .reg-file-input {
  background-color: #1e293b !important;
  border: 1.5px dashed #475569 !important;
  color: #cbd5e1 !important;
}

html.dark input[type="file"]::file-selector-button,
:root.dark input[type="file"]::file-selector-button,
html.dark .reg-file-input::file-selector-button,
:root.dark .reg-file-input::file-selector-button {
  background-color: #334155 !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
}

html.dark input[type="file"]::-webkit-file-upload-button,
:root.dark input[type="file"]::-webkit-file-upload-button,
html.dark .reg-file-input::-webkit-file-upload-button,
:root.dark .reg-file-input::-webkit-file-upload-button {
  background-color: #334155 !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
}

/* 5. Registration Dropzones, Radio Cards & Chips in Dark Mode */
html.dark .reg-upload-zone,
:root.dark .reg-upload-zone {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

html.dark .reg-upload-zone div,
:root.dark .reg-upload-zone div {
  color: #f1f5f9 !important;
}

html.dark .reg-upload-zone small,
:root.dark .reg-upload-zone small {
  color: #94a3b8 !important;
}

html.dark .file-chip,
:root.dark .file-chip {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
}

html.dark .file-chip span,
:root.dark .file-chip span {
  color: #f1f5f9 !important;
}

html.dark .radio-card,
:root.dark .radio-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .radio-card div,
:root.dark .radio-card div {
  color: #f1f5f9 !important;
}

html.dark .radio-card.active,
:root.dark .radio-card.active {
  background-color: rgba(37, 99, 235, 0.18) !important;
  border-color: #3b82f6 !important;
}

/* 6. Fix Inline Dark Text in Registration & Modal Containers */
html.dark .reg-modal-container [style*="color:#1e293b"],
:root.dark .reg-modal-container [style*="color:#1e293b"],
html.dark .modal-container [style*="color:#1e293b"],
:root.dark .modal-container [style*="color:#1e293b"] {
  color: #f1f5f9 !important;
}

html.dark .reg-modal-container [style*="color:#0f172a"],
:root.dark .reg-modal-container [style*="color:#0f172a"],
html.dark .modal-container [style*="color:#0f172a"],
:root.dark .modal-container [style*="color:#0f172a"] {
  color: #f8fafc !important;
}

html.dark .reg-modal-container [style*="color:#334155"],
:root.dark .reg-modal-container [style*="color:#334155"],
html.dark .modal-container [style*="color:#334155"],
:root.dark .modal-container [style*="color:#334155"] {
  color: #e2e8f0 !important;
}

html.dark .reg-modal-container [style*="color:#64748b"],
:root.dark .reg-modal-container [style*="color:#64748b"],
html.dark .modal-container [style*="color:#64748b"],
:root.dark .modal-container [style*="color:#64748b"] {
  color: #94a3b8 !important;
}

/* Event Modal Info Boxes (Light and Dark Mode) */
.modal-info-box {
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-info-box--neutral {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.modal-info-box--neutral h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.modal-info-box--blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.modal-info-box--blue h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
}

.modal-info-box--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}
.modal-info-box--green h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #166534;
}

/* Talent Pool information cards */
.tp-info-card {
  padding: clamp(1rem, 3vw, 1.35rem);
  margin: 1rem 0;
  border-radius: 12px;
}

.tp-info-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.35;
}

.tp-info-card__title::before {
  content: "";
  width: 3px;
  height: 1.2em;
  flex: 0 0 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.72;
}

.tp-info-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: inherit;
  line-height: 1.55;
  font-size: 0.95rem;
}

.tp-info-list__item {
  position: relative;
  min-width: 0;
  padding: 0.15rem 0 0.15rem 1.65rem;
  overflow-wrap: anywhere;
}

.tp-info-list__item::before {
  position: absolute;
  top: 0.2rem;
  left: 0;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.82;
}

.tp-info-list--eligibility .tp-info-list__item::before {
  content: "✓";
}

.tp-info-list--steps {
  counter-reset: tp-step;
}

.tp-info-list--steps .tp-info-list__item {
  counter-increment: tp-step;
}

.tp-info-list--steps .tp-info-list__item::before {
  content: counter(tp-step);
  border-radius: 5px;
  font-size: 0.7rem;
}

#program-detail-modal .tp-info-list {
  padding-left: 0;
}

@media (max-width: 480px) {
  .tp-info-card {
    margin: 0.75rem 0;
  }

  .tp-info-card__title {
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
  }

  .tp-info-list {
    gap: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Dark Mode Overrides for Event Modal Info Boxes */
html.dark .modal-info-box--neutral,
:root.dark .modal-info-box--neutral,
html.dark #program-detail-modal [style*="background:#f8fafc"],
:root.dark #program-detail-modal [style*="background:#f8fafc"] {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
html.dark .modal-info-box--neutral h4,
:root.dark .modal-info-box--neutral h4,
html.dark #program-detail-modal [style*="background:#f8fafc"] h4,
:root.dark #program-detail-modal [style*="background:#f8fafc"] h4 {
  color: #f8fafc !important;
}
html.dark .modal-info-box--neutral ul,
:root.dark .modal-info-box--neutral ul,
html.dark #program-detail-modal [style*="background:#f8fafc"] ul,
:root.dark #program-detail-modal [style*="background:#f8fafc"] ul {
  color: #cbd5e1 !important;
}

html.dark .modal-info-box--blue,
:root.dark .modal-info-box--blue,
html.dark #program-detail-modal [style*="background:#eff6ff"],
:root.dark #program-detail-modal [style*="background:#eff6ff"] {
  background: rgba(30, 58, 138, 0.28) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  color: #cbd5e1 !important;
}
html.dark .modal-info-box--blue h4,
:root.dark .modal-info-box--blue h4,
html.dark #program-detail-modal [style*="background:#eff6ff"] h4,
:root.dark #program-detail-modal [style*="background:#eff6ff"] h4 {
  color: #93c5fd !important;
}
html.dark .modal-info-box--blue ul,
:root.dark .modal-info-box--blue ul,
html.dark #program-detail-modal [style*="background:#eff6ff"] ul,
:root.dark #program-detail-modal [style*="background:#eff6ff"] ul {
  color: #bfdbfe !important;
}

html.dark .modal-info-box--green,
:root.dark .modal-info-box--green,
html.dark #program-detail-modal [style*="background:#f0fdf4"],
:root.dark #program-detail-modal [style*="background:#f0fdf4"] {
  background: rgba(20, 83, 45, 0.28) !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
  color: #cbd5e1 !important;
}
html.dark .modal-info-box--green h4,
:root.dark .modal-info-box--green h4,
html.dark #program-detail-modal [style*="background:#f0fdf4"] h4,
:root.dark #program-detail-modal [style*="background:#f0fdf4"] h4 {
  color: #86efac !important;
}
html.dark .modal-info-box--green ul,
:root.dark .modal-info-box--green ul,
html.dark #program-detail-modal [style*="background:#f0fdf4"] ul,
:root.dark #program-detail-modal [style*="background:#f0fdf4"] ul {
  color: #bbf7d0 !important;
}

/* 7. Button Outline in Dark Mode */
html.dark .btn-outline,
:root.dark .btn-outline {
  color: #f1f5f9 !important;
  border-color: #64748b !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark .btn-outline:hover,
:root.dark .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #94a3b8 !important;
  color: #ffffff !important;
}

/* 8. Helper Hints & Form Footers in Dark Mode */
html.dark .form-hint,
:root.dark .form-hint {
  color: #94a3b8 !important;
}

html.dark .auth-footer,
:root.dark .auth-footer {
  color: #94a3b8 !important;
}

html.dark .auth-footer a,
:root.dark .auth-footer a {
  color: #60a5fa !important;
}

/* 9. Wave Selection Cards in Step 2 for Dark Mode */
html.dark #wave-card-1 {
  background-color: rgba(37, 99, 235, 0.2) !important;
  border-color: #3b82f6 !important;
}

html.dark #wave-card-2 {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark #wave-card-1 div:first-of-type,
html.dark #wave-card-2 div:first-of-type {
  color: #f1f5f9 !important;
}

html.dark #wave-card-2 div:nth-of-type(2) {
  color: #e2e8f0 !important;
}

/* 10. Social IG Icon in Dark Mode */
html.dark .social-ig-icon,
:root.dark .social-ig-icon,
html.dark .instagram-icon,
:root.dark .instagram-icon {
  background-color: rgba(219, 39, 119, 0.2) !important;
  color: #f472b6 !important;
}


/* ==========================================================================
   MULTI-STEP REGISTRATION MODAL RESPONSIVE STYLING
   ========================================================================== */
#reg-step-indicator {
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(135deg, #1C3D6F, #2d6aa0) !important;
  padding: 1.15rem 3.75rem 1.15rem 1.75rem !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.reg-stepper-track {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}

#register-modal #modal-close {
  top: 1rem !important;
  right: 1rem !important;
  z-index: 30 !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#register-modal #modal-close:hover {
  background: rgba(239, 68, 68, 0.85) !important;
  border-color: rgba(239, 68, 68, 1) !important;
  transform: rotate(90deg) scale(1.05) !important;
}

.reg-step-dot {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.reg-step-dot .step-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

.reg-step-dot.active .step-circle {
  background: #ffffff !important;
  color: #1C3D6F !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25) !important;
}

.reg-step-dot span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease !important;
}

.reg-step-dot.active span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.reg-step-line {
  flex: 0.4 !important;
  display: flex !important;
  align-items: center !important;
}

.reg-step-line .step-line-bar {
  height: 2px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  width: 100% !important;
}

.reg-step-mobile-caption {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.45rem;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

/* Mobile Screens (Under 640px) */
@media (max-width: 640px) {
  #reg-step-indicator {
    padding: 0.9rem 3.5rem 0.9rem 1.15rem !important;
  }

  .reg-step-dot {
    flex: 0 0 auto !important;
    gap: 0 !important;
  }

  .reg-step-dot span {
    display: none !important; /* Hapus teks yang menumpuk di mobile */
  }

  .reg-step-line {
    flex: 1 !important;
    margin: 0 0.45rem !important;
  }

  .reg-step-dot .step-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.78rem !important;
  }

  .reg-step-mobile-caption {
    display: block !important;
  }

  .reg-modal-body {
    padding: 1.15rem 1rem 1.75rem !important;
    max-height: 80vh !important;
  }

  .reg-form-card {
    padding: 1.1rem 1rem !important;
  }

  #reg-step-2 [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   RESPONSIVE FOOTER ENHANCEMENTS
   ========================================================================== */
.footer-contact-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.footer-contact-link span {
  white-space: nowrap;
  word-break: keep-all;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: var(--primary-500, #1C3D6F);
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-contact-link:hover .footer-contact-icon {
  transform: scale(1.15);
  opacity: 1;
}

:root.dark .footer-contact-icon,
html.dark .footer-contact-icon {
  color: #38bdf8 !important;
}

@media (max-width: 640px) {
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    margin-bottom: 2rem !important;
  }

  .footer-col {
    width: 100% !important;
  }

  .footer-col h4 {
    font-size: 0.9rem !important;
    margin-bottom: 0.65rem !important;
  }

  .footer-col a {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.55rem !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .footer-col.footer-col-contact {
    margin-top: 0.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px dashed rgba(226, 232, 240, 0.9) !important;
  }

  :root.dark .footer-col.footer-col-contact,
  html.dark .footer-col.footer-col-contact {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .footer-col.footer-col-contact {
    grid-column: 1 / -1 !important;
    margin-top: 0.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px dashed rgba(226, 232, 240, 0.9) !important;
  }

  :root.dark .footer-col.footer-col-contact,
  html.dark .footer-col.footer-col-contact {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }
}

@media (min-width: 900px) {
  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
  }

  .footer-col.footer-col-contact {
    grid-column: auto !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}


/* ==========================================================================
   HERO LOGGED-IN ACCOUNT BUTTON & DASHBOARD PROFILE STYLING
   ========================================================================== */
.hero-interaction #btn-hero-auth.hero-btn-logged-in {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.45rem 1.25rem 0.45rem 0.65rem !important;
  border-radius: 100px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  color: var(--neutral-800) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  min-height: 48px !important;
}

.hero-interaction #btn-hero-auth.hero-btn-logged-in:hover {
  transform: translateY(-2px) !important;
  border-color: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18) !important;
  background: #ffffff !important;
}

.hero-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.hero-account-greeting {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-account-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.hero-account-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 0.25rem;
}

.hero-interaction #btn-hero-auth.hero-btn-logged-in:hover .hero-account-arrow {
  transform: translateX(3px);
  color: #2563eb;
}

/* Dark mode for Hero Account Button */
:root.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in,
html.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

:root.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in:hover,
html.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in:hover {
  background: rgba(30, 41, 59, 1) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.22) !important;
}

:root.dark .hero-account-greeting,
html.dark .hero-account-greeting {
  color: #94a3b8 !important;
}

:root.dark .hero-account-name,
html.dark .hero-account-name {
  color: #f8fafc !important;
}

:root.dark .hero-account-arrow,
html.dark .hero-account-arrow {
  color: #64748b !important;
}

:root.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in:hover .hero-account-arrow,
html.dark .hero-interaction #btn-hero-auth.hero-btn-logged-in:hover .hero-account-arrow {
  color: #38bdf8 !important;
}

/* Dashboard Profile Card Header */
.user-dashboard-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 0.9rem 1.15rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0;
}

.user-dashboard-profile-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-dashboard-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1C3D6F, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.user-dashboard-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
}

.user-dashboard-email {
  font-size: 0.8rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.btn-dashboard-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-dashboard-logout:hover {
  background: #fef2f2;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* Dark mode for dashboard profile header */
:root.dark .user-dashboard-profile-header,
html.dark .user-dashboard-profile-header {
  background: #0f172a;
  border-color: #334155;
}

:root.dark .user-dashboard-name,
html.dark .user-dashboard-name {
  color: #f1f5f9;
}

:root.dark .user-dashboard-email,
html.dark .user-dashboard-email {
  color: #94a3b8;
}

:root.dark .btn-dashboard-logout,
html.dark .btn-dashboard-logout {
  background: #1e293b;
  border-color: #7f1d1d;
  color: #f87171;
}

:root.dark .btn-dashboard-logout:hover,
html.dark .btn-dashboard-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #f87171;
}

/* ==========================================================================
   TALENT POOL SECTION STYLES
   ========================================================================== */
.talent-pool {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 5rem 0;
  position: relative;
}

:root.dark .talent-pool,
html.dark .talent-pool {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
}

.tp-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tp-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem;
  position: relative;
}

:root.dark .tp-header-card,
html.dark .tp-header-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.tp-header-bar {
  height: 10px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #1C3D6F 100%);
}

.tp-header-body {
  padding: 2.25rem 2rem 1.75rem 2rem;
}

.tp-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

:root.dark .tp-badge,
html.dark .tp-badge {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
}

.tp-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

:root.dark .tp-title,
html.dark .tp-title {
  color: #f8fafc;
}

.tp-tagline {
  color: #6366f1;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
}

:root.dark .tp-tagline,
html.dark .tp-tagline {
  color: #a5b4fc;
}

.tp-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

:root.dark .tp-description,
html.dark .tp-description {
  color: #cbd5e1;
  border-top-color: #334155;
}

.tp-description p {
  margin-bottom: 0.85rem;
}

.tp-description strong {
  color: #1e293b;
}

:root.dark .tp-description strong {
  color: #f1f5f9;
}

.tp-note {
  background: #f8fafc;
  border-left: 3px solid #6366f1;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #64748b;
  font-size: 0.86rem;
}

:root.dark .tp-note,
html.dark .tp-note {
  background: rgba(30, 41, 59, 0.6);
  border-left-color: #818cf8;
  color: #94a3b8;
}

.tp-required-info {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 600;
}

:root.dark .tp-required-info,
html.dark .tp-required-info {
  border-top-color: #334155;
  color: #f87171;
}

.tp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

:root.dark .tp-card,
html.dark .tp-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
}

.tp-card:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

:root.dark .tp-card:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.tp-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

:root.dark .tp-label,
html.dark .tp-label {
  color: #f1f5f9;
}

.tp-subtext {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

:root.dark .tp-subtext,
html.dark .tp-subtext {
  color: #94a3b8;
}

.tp-subtext strong {
  color: #0f172a;
}

:root.dark .tp-subtext strong {
  color: #f8fafc;
}

.tp-input {
  width: 100%;
  padding: 0.65rem 0.25rem;
  border: none;
  border-bottom: 1.5px solid #cbd5e1;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

:root.dark .tp-input,
html.dark .tp-input {
  color: #f8fafc;
  border-bottom-color: #475569;
}

.tp-input:focus {
  border-bottom-color: #4f46e5;
  border-bottom-width: 2px;
}

:root.dark .tp-input:focus {
  border-bottom-color: #818cf8;
}

.tp-input::placeholder {
  color: #94a3b8;
  font-style: normal;
}

:root.dark .tp-input::placeholder {
  color: #64748b;
}

/* Radio Group */
.tp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.tp-radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1e293b;
  user-select: none;
}

:root.dark .tp-radio-item,
html.dark .tp-radio-item {
  color: #e2e8f0;
}

.tp-radio-item input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #4f46e5;
  cursor: pointer;
}

.tp-input-inline {
  border: none;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  outline: none;
  width: 180px;
}

.tp-input-inline:focus {
  border-bottom-color: #4f46e5;
  border-bottom-width: 2px;
}

/* Footer Actions */
.tp-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0.5rem 0.25rem;
}

.tp-clear-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

:root.dark .tp-clear-btn,
html.dark .tp-clear-btn {
  color: #a5b4fc;
}

.tp-clear-btn:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* Success Card */
#talent-pool-modal .tp-success-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  color: #065f46;
}
#talent-pool-modal .tp-success-icon { color: #047857; margin-bottom: 0.75rem; }
#talent-pool-modal .tp-success-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
#talent-pool-modal .tp-success-description { max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.6; font-size: 0.95rem; }
#talent-pool-modal .tp-success-button {
  position: relative;
  min-height: 44px;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #047857;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#talent-pool-modal .tp-success-button:hover { background: #065f46; }
#talent-pool-modal .tp-success-button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
:root.dark #talent-pool-modal .tp-success-card { background: #064e3b; border-color: #34d399; color: #ecfdf5; }
:root.dark #talent-pool-modal .tp-success-icon { color: #6ee7b7; }
:root.dark #talent-pool-modal .tp-success-button { background: #047857; }
:root.dark #talent-pool-modal .tp-success-button:hover { background: #065f46; }
#talent-pool-modal .tp-success-card.is-celebrating .tp-success-icon { animation: tp-success-enter 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
#talent-pool-modal .tp-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
#talent-pool-modal .tp-confetti span {
  position: absolute;
  top: -12px;
  left: calc(var(--i) * 4%);
  width: 7px;
  height: 10px;
  background: #d8000b;
  border-radius: 2px;
  animation: tp-confetti-fall 1s ease-out both;
  animation-delay: calc(var(--i) * 17ms);
}
#talent-pool-modal .tp-confetti span:nth-child(3n) { background: #2d67bd; }
#talent-pool-modal .tp-confetti span:nth-child(3n + 1) { background: #d97706; }
@keyframes tp-success-enter { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tp-confetti-fall { from { opacity: 1; transform: translateY(0) rotate(0deg); } to { opacity: 0; transform: translateY(220px) rotate(240deg); } }
@media (prefers-reduced-motion: reduce) {
  #talent-pool-modal .tp-success-card.is-celebrating .tp-success-icon { animation: none; }
}
@media (max-width: 480px) {
  #talent-pool-modal .tp-success-button { width: 100%; }
}

/* Talent Pool Details Grid & Info Elements */
.tp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 1.25rem 0;
}

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

.tp-detail-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

:root.dark .tp-detail-col,
html.dark .tp-detail-col {
  background: #0f172a;
  border-color: #334155;
  box-shadow: none;
}

.tp-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.85rem 0;
}

:root.dark .tp-col-title,
html.dark .tp-col-title {
  color: #f1f5f9;
}

.tp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

:root.dark .tp-feature-list li,
html.dark .tp-feature-list li {
  color: #cbd5e1;
}

.tp-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.15rem;
  height: 1.15rem;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

:root.dark .tp-feature-list li::before,
html.dark .tp-feature-list li::before {
  background: rgba(22, 163, 74, 0.25);
  color: #4ade80;
}

.tp-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

:root.dark .tp-steps-list li,
html.dark .tp-steps-list li {
  color: #cbd5e1;
}

.tp-step-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

:root.dark .tp-step-num,
html.dark .tp-step-num {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.tp-gform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1.5px solid #c7d2fe;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #312e81;
}

:root.dark .tp-gform-banner,
html.dark .tp-gform-banner {
  background: rgba(30, 27, 75, 0.5);
  border-color: #4338ca;
  color: #c7d2fe;
}

.btn-tp-gform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4f46e5;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  white-space: nowrap;
}

.btn-tp-gform:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

@media (min-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE FORM MODALS & MOBILE SAFETY (Talent Pool & Webinar)
   ═══════════════════════════════════════════════════════════════ */
.modal-badge,
.modal-header .program-tag {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

@media (max-width: 768px) {
  .modal-form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  #talent-pool-modal .modal-container,
  #webinar-modal-form .modal-container,
  #program-detail-modal .modal-container,
  #essay-submit-modal .modal-container,
  .modal-container {
    width: 94% !important;
    max-width: 94vw !important;
    padding: 1.5rem 1.15rem !important;
    margin: 1rem auto !important;
    border-radius: 14px !important;
    max-height: 85vh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  .programs-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .program-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .modal-header-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  .modal-prog-img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
  }

  .timeline-list li {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }

  .timeline-list li strong {
    font-size: 0.85rem !important;
  }

  .timeline-list li span {
    font-size: 0.85rem !important;
  }

  .tp-field-group,
  .form-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-field-input,
  .reg-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari that cuts off view */
  }

  .modal-header {
    text-align: left !important;
    margin-bottom: 1.25rem !important;
  }

  .modal-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  #talent-pool-modal .modal-title {
    padding-right: 3rem;
  }

  .modal-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }
}

/* ==========================================================================
   TALENT POOL MULTI-STEP WIZARD, DRAFT BANNER & ACCORDION STYLES
   ========================================================================== */

/* Draft Alert Banner */
.tp-draft-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #166534;
  animation: tpFadeIn 0.3s ease;
}

:root.dark .tp-draft-alert,
html.dark .tp-draft-alert {
  background: rgba(22, 101, 52, 0.2);
  border-color: #15803d;
  color: #86efac;
}

.tp-draft-alert-btn {
  background: transparent;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tp-draft-alert-btn:hover {
  background: #dcfce7;
}

:root.dark .tp-draft-alert-btn,
html.dark .tp-draft-alert-btn {
  border-color: #22c55e;
  color: #86efac;
}

:root.dark .tp-draft-alert-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}

/* Stepper Wizard Indicator */
.tp-stepper-container {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

:root.dark .tp-stepper-container,
html.dark .tp-stepper-container {
  border-bottom-color: var(--neutral-800);
}

.tp-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.tp-stepper-track {
  position: absolute;
  top: 18px;
  left: 45px;
  right: 45px;
  height: 3px;
  background: var(--neutral-200);
  z-index: 1;
}

:root.dark .tp-stepper-track,
html.dark .tp-stepper-track {
  background: var(--neutral-700);
}

.tp-stepper-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-stepper-fill.step-2-active {
  width: 100%;
}

.tp-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.tp-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 2px solid var(--neutral-300);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

:root.dark .tp-step-circle,
html.dark .tp-step-circle {
  background: var(--neutral-800);
  border-color: var(--neutral-600);
  color: var(--neutral-400);
}

.tp-step-item.active .tp-step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.tp-step-item.completed .tp-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.tp-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-500);
  text-align: center;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tp-step-item.active .tp-step-label {
  color: #2563eb;
  font-weight: 700;
}

:root.dark .tp-step-item.active .tp-step-label {
  color: #38bdf8;
}

.tp-step-item.completed .tp-step-label {
  color: #10b981;
}

/* Step Panes */
.tp-step-pane {
  animation: tpSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes tpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Step 2 Jobdesk Accordion */
.tp-accordion-wrap {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.tp-accordion-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

:root.dark .tp-accordion-title,
html.dark .tp-accordion-title {
  color: #f8fafc !important;
}

.tp-accordion-hint {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

:root.dark .tp-accordion-hint,
html.dark .tp-accordion-hint {
  color: #94a3b8;
}

.tp-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tp-accordion-card {
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: var(--neutral-50);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root.dark .tp-accordion-card,
html.dark .tp-accordion-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(51, 65, 85, 0.3);
}

.tp-accordion-card.open {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

:root.dark .tp-accordion-card.open,
html.dark .tp-accordion-card.open {
  border-color: #60a5fa;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.15);
}

.tp-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.tp-accordion-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tp-division-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-direction {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

:root.dark .badge-direction,
html.dark .badge-direction {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-volunteer {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

:root.dark .badge-volunteer,
html.dark .badge-volunteer {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-mentoring {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

:root.dark .badge-mentoring,
html.dark .badge-mentoring {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.3);
}

.tp-accordion-header-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neutral-800);
}

:root.dark .tp-accordion-header-title,
html.dark .tp-accordion-header-title {
  color: #f8fafc !important;
}

.tp-accordion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

:root.dark .tp-accordion-arrow,
html.dark .tp-accordion-arrow {
  color: #94a3b8;
}

.tp-accordion-card.open .tp-accordion-arrow {
  transform: rotate(180deg);
  color: #2563eb;
}

:root.dark .tp-accordion-card.open .tp-accordion-arrow,
html.dark .tp-accordion-card.open .tp-accordion-arrow {
  color: #60a5fa;
}

.tp-accordion-body {
  display: none;
  padding: 0.85rem 1rem 1rem 1rem;
  border-top: 1px solid var(--neutral-200);
  background: #ffffff;
  font-size: 0.82rem;
  line-height: 1.5;
}

:root.dark .tp-accordion-body,
html.dark .tp-accordion-body {
  border-top-color: rgba(148, 163, 184, 0.15);
  background: rgba(30, 41, 59, 0.6);
}

.tp-accordion-card.open .tp-accordion-body {
  display: block;
}

/* Division Overview Intro inside Accordion */
.tp-division-intro {
  font-size: 0.81rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #cbd5e1;
}

:root.dark .tp-division-intro,
html.dark .tp-division-intro {
  color: #94a3b8;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.tp-jobdesk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-jobdesk-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tp-jobdesk-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tp-jobdesk-role {
  font-weight: 700;
  color: var(--neutral-800);
  font-size: 0.85rem;
}

:root.dark .tp-jobdesk-role,
html.dark .tp-jobdesk-role {
  color: #60a5fa !important;
}

.tp-quota-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:root.dark .tp-quota-badge,
html.dark .tp-quota-badge {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

#talent-pool-modal .tp-jobdesk-desc {
  text-align: justify;
}

#talent-pool-modal .tp-division-intro {
  text-align: justify;
}

.tp-jobdesk-desc {
  color: var(--neutral-600);
  font-size: 0.8rem;
  line-height: 1.45;
}

:root.dark .tp-jobdesk-desc,
html.dark .tp-jobdesk-desc {
  color: #cbd5e1;
}

/* Talent Pool control surfaces */
#talent-pool-modal {
  --tp-control-surface: #ffffff;
  --tp-control-border: #cbd5e1;
  --tp-control-text: #0f172a;
  --tp-control-placeholder: #64748b;
}

:root.dark #talent-pool-modal {
  --tp-control-surface: #1e293b;
  --tp-control-border: #334155;
  --tp-control-text: #f8fafc;
  --tp-control-placeholder: #94a3b8;
}

#talent-pool-modal .tp-field-input,
#talent-pool-modal .tp-field-textarea,
#talent-pool-modal .tp-field-select {
  background-color: var(--tp-control-surface) !important;
  border: 1.5px solid var(--tp-control-border) !important;
  color: var(--tp-control-text) !important;
  font-size: 1rem !important;
  line-height: 1.6;
}

#talent-pool-modal .tp-field-input::placeholder,
#talent-pool-modal .tp-field-textarea::placeholder {
  color: var(--tp-control-placeholder) !important;
  opacity: 1;
}

#talent-pool-modal .tp-field-input:focus,
#talent-pool-modal .tp-field-textarea:focus,
#talent-pool-modal .tp-field-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22) !important;
}

#talent-pool-modal .tp-field-input:-webkit-autofill {
  -webkit-text-fill-color: var(--tp-control-text);
  box-shadow: 0 0 0 1000px var(--tp-control-surface) inset !important;
}

#talent-pool-modal .tp-field-input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px var(--tp-control-surface) inset, 0 0 0 3px rgba(37, 99, 235, 0.22) !important;
}

/* Custom Inputs, Textareas & Selects - Matching Step 1 & Program Forms */
.tp-field-input,
.tp-field-textarea,
.tp-field-select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--neutral-900);
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tp-field-textarea {
  resize: vertical;
}

.tp-field-input:focus,
.tp-field-textarea:focus,
.tp-field-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background-color: #ffffff;
}

:root.dark .tp-field-input,
:root.dark .tp-field-textarea,
:root.dark .tp-field-select,
html.dark .tp-field-input,
html.dark .tp-field-textarea,
html.dark .tp-field-select {
  border-color: #334155 !important;
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

:root.dark .tp-field-input:focus,
:root.dark .tp-field-textarea:focus,
:root.dark .tp-field-select:focus,
html.dark .tp-field-input:focus,
html.dark .tp-field-textarea:focus,
html.dark .tp-field-select:focus {
  border-color: #3b82f6 !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* Field Validation & Inline Errors */
#talent-pool-modal .tp-field-input.is-invalid,
#talent-pool-modal .tp-field-textarea.is-invalid,
#talent-pool-modal .tp-field-select.is-invalid,
.tp-field-input.is-invalid,
.tp-field-textarea.is-invalid,
.tp-field-select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

:root.dark #talent-pool-modal .tp-field-input.is-invalid,
html.dark #talent-pool-modal .tp-field-input.is-invalid,
:root.dark .tp-field-input.is-invalid,
html.dark .tp-field-input.is-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.28) !important;
}

#talent-pool-modal .tp-upload-box.is-invalid,
.tp-upload-box.is-invalid {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

:root.dark #talent-pool-modal .tp-upload-box.is-invalid,
html.dark #talent-pool-modal .tp-upload-box.is-invalid,
:root.dark .tp-upload-box.is-invalid,
html.dark .tp-upload-box.is-invalid {
  border-color: #f87171 !important;
  background-color: rgba(248, 113, 113, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

.tp-field-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
  display: none;
  line-height: 1.35;
}

.tp-field-error.show {
  display: block;
}

:root.dark .tp-field-error,
html.dark .tp-field-error {
  color: #fca5a5;
}

:root.dark .tp-field-input::placeholder,
:root.dark .tp-field-textarea::placeholder,
html.dark .tp-field-input::placeholder,
html.dark .tp-field-textarea::placeholder {
  color: #94a3b8 !important;
}

/* Custom Dropdown Styling */
.tp-field-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
}

:root.dark .tp-field-select,
html.dark .tp-field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.tp-field-select optgroup {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1d4ed8;
  background: #f8fafc;
  padding: 0.4rem 0.2rem;
}

:root.dark .tp-field-select optgroup,
html.dark .tp-field-select optgroup {
  color: #60a5fa;
  background: #0f172a;
}

.tp-field-select option {
  color: var(--neutral-800);
  background: #ffffff;
  padding: 0.45rem 0.6rem;
  font-weight: 500;
}

:root.dark .tp-field-select option,
html.dark .tp-field-select option {
  color: #f8fafc !important;
  background-color: #1e293b !important;
}

.tp-field-select option[disabled],
:root.dark .tp-field-select option[disabled],
html.dark .tp-field-select option[disabled] {
  color: #94a3b8 !important;
}

/* Enhanced Talent Pool position controls */
#talent-pool-modal .tp-select-native-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#talent-pool-modal .tp-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--tp-control-border);
  border-radius: 8px;
  background: var(--tp-control-surface);
  color: var(--tp-control-text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

#talent-pool-modal .tp-select-trigger.is-placeholder { color: var(--tp-control-placeholder); }
#talent-pool-modal .tp-select-trigger:focus-visible,
#talent-pool-modal .tp-select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
#talent-pool-modal .tp-select-trigger[aria-invalid="true"] { border-color: #e11d48; }
#talent-pool-modal .tp-select-arrow {
  flex: 0 0 9px;
  height: 9px;
  margin: 0 4px 4px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
#talent-pool-modal .tp-select-trigger[aria-expanded="true"] .tp-select-arrow { transform: rotate(225deg); }
#talent-pool-modal .tp-select-menu {
  position: fixed;
  z-index: 10010;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--tp-control-border);
  border-radius: 10px;
  background: var(--tp-control-surface);
  color: var(--tp-control-text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}
#talent-pool-modal .tp-select-menu[hidden],
#talent-pool-modal .tp-select-error[hidden] { display: none; }
#talent-pool-modal .tp-select-group {
  padding: 0.8rem 0.65rem 0.45rem;
  color: #1e3a5f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
:root.dark #talent-pool-modal .tp-select-group { color: #e2e8f0; }
#talent-pool-modal .tp-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
#talent-pool-modal .tp-select-option:hover,
#talent-pool-modal .tp-select-option.is-active { background: rgba(59, 130, 246, 0.13); }
#talent-pool-modal .tp-select-option[aria-selected="true"] { font-weight: 700; color: #1d4ed8; }
:root.dark #talent-pool-modal .tp-select-option[aria-selected="true"] { color: #93c5fd; }
#talent-pool-modal .tp-select-option[aria-selected="true"]::after { content: '✓'; }
#talent-pool-modal .tp-select-option[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
#talent-pool-modal .tp-select-quota {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
:root.dark #talent-pool-modal .tp-select-quota { background: #1e3a5f; color: #bfdbfe; }
#talent-pool-modal .tp-select-error { color: #be123c; font-size: 0.8rem; margin-top: 0.3rem; }
:root.dark #talent-pool-modal .tp-select-error { color: #fda4af; }
@media (prefers-reduced-motion: reduce) {
  #talent-pool-modal .tp-select-arrow { transition: none; }
}

/* Step Navigation Footer */
.tp-nav-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-200);
}

:root.dark .tp-nav-footer,
html.dark .tp-nav-footer {
  border-top-color: rgba(148, 163, 184, 0.2);
}

.tp-nav-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-btn-submit {
  padding: 0.72rem 1.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  background: var(--gradient-main) !important;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(216, 0, 11, 0.28);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.tp-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 0, 11, 0.4);
}

:root.dark .tp-btn-submit,
html.dark .tp-btn-submit {
  background: var(--gradient-main) !important;
  box-shadow: 0 4px 14px rgba(216, 0, 11, 0.35);
}

:root.dark .tp-btn-submit:hover,
html.dark .tp-btn-submit:hover {
  box-shadow: 0 6px 20px rgba(216, 0, 11, 0.5);
}

.tp-btn-prev {
  padding: 0.68rem 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp-btn-reset {
  background: transparent;
  border: none;
  color: var(--neutral-500);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tp-btn-reset:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

:root.dark .tp-btn-reset,
html.dark .tp-btn-reset {
  color: #94a3b8;
}

:root.dark .tp-btn-reset:hover,
html.dark .tp-btn-reset:hover {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.15);
}

:root.dark .tp-field-select option,
html.dark .tp-field-select option {
  background-color: #1e293b;
  color: #f1f5f9;
}

@media (max-width: 640px) {
  .tp-stepper {
    max-width: 100%;
  }
  .tp-step-label {
    font-size: 0.72rem;
  }
  .tp-nav-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .tp-nav-footer-left {
    justify-content: space-between;
  }
  .tp-nav-footer button {
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Talent Pool: status dan edit mandiri peserta (memakai token situs, ikut mode gelap)
   ═══════════════════════════════════════════════════════════════ */
.tpa-section { margin-top: 1.5rem; }
.tpa-section:empty { display: none; }
.tpa-section .tpa-card + .tpa-card { margin-top: 1rem; }
.tpa-card { padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--neutral-200); border-radius: 12px; }
.tpa-title { margin: 0 0 0.15rem; font-size: 1.05rem; font-weight: 700; color: var(--neutral-900); }
.tpa-meta { margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--neutral-600); overflow-wrap: anywhere; }
.tpa-stages { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.9rem; padding: 0; list-style: none; }
.tpa-stage { padding: 0.25rem 0.6rem; font-size: 0.78rem; color: var(--neutral-600); background: var(--neutral-100); border-radius: 6px; }
.tpa-stage[aria-current="step"] { font-weight: 700; color: var(--white); background: var(--neutral-900); }
.tpa-status { margin: 0; }
.tpa-status strong { display: block; font-size: 0.98rem; color: var(--neutral-900); }
.tpa-status span { font-size: 0.88rem; line-height: 1.5; color: var(--neutral-700); }
.tpa-note { margin: 0.8rem 0 0; padding: 0.65rem 0.8rem; font-size: 0.85rem; line-height: 1.5; color: var(--neutral-800); background: var(--neutral-100); border-radius: 8px; }
.tpa-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tpa-btn { min-height: 40px; }
/* Email tampil tetapi tidak bisa diubah dari form: mengikuti akun saat mendaftar, dan hanya lewat verifikasi saat edit */
#talent-pool-modal .tp-field-input[readonly] { opacity: 0.7; cursor: not-allowed; }

/* Target sentuh minimal 44px untuk tombol tutup dan unggah berkas di layar kecil */
@media (max-width: 768px) {
  #talent-pool-modal .modal-close { width: 44px; height: 44px; }
  #talent-pool-modal .tp-upload-box .btn { min-height: 44px; }
}
@media (max-width: 560px) { .tpa-actions .btn { flex: 1 1 auto; } }

.program-card--archive-cta[hidden] { display: none; }
.program-card--archive-cta { background: #f7f3ed; border-color: #e5dfd5; color: #1c3d6f; box-shadow: none; }
.program-card--archive-cta:hover { border-color: #d0c6b6; }
.archive-preview { position: relative; flex: none; height: 200px; margin: 0 1.5rem; overflow: hidden; }
.archive-preview img { position: absolute; top: 28px; left: 50%; width: 58%; height: 150px; object-fit: cover; border: 5px solid #fff; border-radius: 6px; box-shadow: 0 6px 16px #1c3d6f26; filter: saturate(0.7); transition: transform 220ms ease; }
.archive-preview img:nth-child(1) { transform: translateX(-82%) rotate(-13deg); }
.archive-preview img:nth-child(2) { transform: translateX(-17%) rotate(12deg); }
.archive-preview img:nth-child(3) { transform: translateX(-50%) rotate(-3deg); }
.program-card--archive-cta:hover .archive-preview img:nth-child(3) { transform: translateX(-50%) translateY(-5px) rotate(1deg); }
.archive-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0.5rem 1.75rem 1.75rem; }
.archive-kicker { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-content h3 { margin: 0 0 1rem; font-size: clamp(1.75rem, 2.5vw, 2.4rem); line-height: 1.12; letter-spacing: -0.035em; color: #1c3d6f; }
.archive-content h3 span { color: #a4001f; }
.archive-content > p:not(.archive-kicker) { margin: 0 0 1rem; max-width: 35ch; font-size: 0.9rem; line-height: 1.6; color: #485469; }
.archive-content .archive-count { display: flex; align-items: baseline; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.archive-count strong { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #1c3d6f; }
.archive-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 48px; margin-top: 0.25rem; padding: 0.75rem 1rem; border: 1px solid #1c3d6f; border-radius: 10px; color: #fff; background: #1c3d6f; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.archive-link:hover { background: #142e56; }
.archive-link:focus-visible { outline: 3px solid #a4001f; outline-offset: 4px; }
:root.dark .program-card--archive-cta { background: #182536; border-color: #34445a; color: #c9ddf4; }
:root.dark .archive-content h3, :root.dark .archive-count strong { color: #e2e8f0; }
:root.dark .archive-content h3 span { color: #fda4af; }
:root.dark .archive-content > p:not(.archive-kicker) { color: #cbd5e1; }
@media (min-width: 769px) {
  #grid-upcoming { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
  #grid-upcoming[data-program-count="0"] .program-card--archive-cta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  #grid-upcoming[data-program-count="0"] .archive-preview { height: 260px; }
  #grid-upcoming[data-program-count="0"] .archive-preview img { top: 60px; }
  #grid-upcoming[data-program-count="0"] .archive-content { padding-top: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-preview img { transition: none; }
  .program-card--archive-cta { transition: none; }
  .program-card--archive-cta:hover { transform: none; }
  .program-card--archive-cta:hover .archive-preview img:nth-child(3) { transform: translateX(-50%) rotate(-3deg); }
}
