@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root {
  --evm-red: #E8243C;
  --evm-blue: #1E90FF;
  --evm-green: #4CBB17;
  --evm-yellow: #FFB800;
  --evm-orange: #FF6B2B;
  --evm-purple: #8B5CF6;
  --evm-pink: #EC4899;
  --evm-teal: #14B8A6;
  --bg-primary: #FEFCE8;
  --bg-cream: #FFF8E7;
  --bg-soft: #F0FDF4;
  --text-dark: #1E293B;
  --text-mid: #475569;
  --text-light: #94A3B8;
  --white: #FFFFFF;
  --shadow-playful: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --radius-soft: 20px;
  --radius-round: 50px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   POPUP SYSTEM
   ═══════════════════════════════════════ */
.evm-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.evm-popup-overlay.active { opacity: 1; visibility: visible; }

.evm-popup {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2.5rem;
  max-width: 440px; width: 90%;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.evm-popup-overlay.active .evm-popup { transform: scale(1) translateY(0); }

.evm-popup::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--evm-red), var(--evm-yellow), var(--evm-green), var(--evm-blue));
}

.evm-popup-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.evm-popup-icon.success { background: #DCFCE7; }
.evm-popup-icon.error { background: #FEE2E2; }
.evm-popup-icon.info { background: #DBEAFE; }
.evm-popup-icon.warning { background: #FEF3C7; }

.evm-popup h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}
.evm-popup p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.evm-popup-actions { display: flex; gap: 0.75rem; justify-content: center; }

.evm-popup-btn {
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-round);
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.evm-popup-btn.primary {
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: var(--white);
}
.evm-popup-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,144,255,0.4); }
.evm-popup-btn.secondary { background: #F1F5F9; color: var(--text-mid); }
.evm-popup-btn.secondary:hover { background: #E2E8F0; }

.evm-popup-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: #F1F5F9; color: var(--text-mid);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.evm-popup-close:hover { background: #E2E8F0; transform: rotate(90deg); }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.5rem 2rem;
}

.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none;
}
.nav-logo img {
  height: 52px; width: auto;
  transition: transform 0.3s;
  background: transparent !important;
}
.navbar.scrolled .nav-logo img { height: 42px; }
.nav-logo:hover img { transform: rotate(-5deg) scale(1.05); }

.nav-logo-text {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: color 0.4s;
}
.navbar.scrolled .nav-logo-text { color: var(--text-dark); text-shadow: none; }
.nav-logo-text span { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }

.nav-links {
  display: flex; align-items: center; gap: 0.3rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500; font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-round);
  color: rgba(255,255,255,0.9);
  transition: all 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-1px);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  background: var(--evm-yellow);
  color: var(--text-dark);
}

.nav-links .nav-cta {
  background: var(--evm-yellow);
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  box-shadow: 0 4px 15px rgba(255,184,0,0.3);
}
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,184,0,0.5); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--white); border-radius: 3px;
  transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--text-dark); }

/* ═══════════════════════════════════════
   HERO SECTION (homepage)
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.floating-shape {
  position: absolute; border-radius: 50%; opacity: 0.12;
  animation: floatShape 20s ease-in-out infinite;
}
.floating-shape:nth-child(1) { width: 300px; height: 300px; background: var(--evm-red); top: 10%; left: -5%; animation-delay: 0s; }
.floating-shape:nth-child(2) { width: 200px; height: 200px; background: var(--evm-yellow); top: 60%; right: -3%; animation-delay: -5s; }
.floating-shape:nth-child(3) { width: 250px; height: 250px; background: var(--evm-green); bottom: -5%; left: 30%; animation-delay: -10s; }
.floating-shape:nth-child(4) { width: 180px; height: 180px; background: var(--evm-blue); top: 20%; right: 20%; animation-delay: -15s; }
.floating-shape:nth-child(5) { width: 120px; height: 120px; background: var(--evm-purple); top: 50%; left: 15%; animation-delay: -8s; }

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -40px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(40px, 30px) rotate(270deg); }
}

.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute; width: 4px; height: 4px;
  background: #fff; border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px; padding: 2rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-round);
  color: var(--evm-yellow);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--evm-green); border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.hero-logo-main {
  width: 160px; height: auto;
  margin-bottom: 1.5rem;
  animation: heroLogoIn 1s ease forwards;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  background: transparent !important;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--evm-yellow), var(--evm-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px; margin: 0 auto 2.5rem;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0;
}

.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--evm-yellow), var(--evm-orange));
  color: var(--text-dark);
  box-shadow: 0 6px 24px rgba(255,184,0,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(255,184,0,0.5); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); transform: translateY(-3px); }

.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: auto; }

/* ═══════════════════════════════════════
   PAGE HERO (sub-pages)
   ═══════════════════════════════════════ */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  animation: heroLogoIn 0.8s ease forwards;
}
.page-hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0;
}

/* ═══════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 550px;
  margin: 0 auto;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.empty-state h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.empty-state p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-round);
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--text-dark); line-height: 1.2;
}
.section-header p {
  color: var(--text-mid); font-size: 1.05rem;
  max-width: 550px; margin: 0.8rem auto 0;
}

/* ═══════════════════════════════════════
   PROJECT CARDS GRID
   ═══════════════════════════════════════ */
.projects-section {
  padding: 5rem 2rem;
  max-width: 1300px; margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2rem;
  text-decoration: none; color: var(--text-dark);
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-playful);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transition: height 0.4s ease;
}
.project-card:hover::before { height: 6px; }

.project-card.color-red::before { background: linear-gradient(90deg, var(--evm-red), var(--evm-pink)); }
.project-card.color-blue::before { background: linear-gradient(90deg, var(--evm-blue), var(--evm-purple)); }
.project-card.color-green::before { background: linear-gradient(90deg, var(--evm-green), var(--evm-teal)); }
.project-card.color-yellow::before { background: linear-gradient(90deg, var(--evm-yellow), var(--evm-orange)); }
.project-card.color-purple::before { background: linear-gradient(90deg, var(--evm-purple), var(--evm-pink)); }
.project-card.color-teal::before { background: linear-gradient(90deg, var(--evm-teal), var(--evm-blue)); }

.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
  transition: transform 0.3s;
}
.project-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.color-red .card-icon { background: #FEE2E2; }
.color-blue .card-icon { background: #DBEAFE; }
.color-green .card-icon { background: #DCFCE7; }
.color-yellow .card-icon { background: #FEF3C7; }
.color-purple .card-icon { background: #EDE9FE; }
.color-teal .card-icon { background: #CCFBF1; }

.project-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem;
}
.project-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.55; flex: 1; }
.card-arrow {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem; font-weight: 500; margin-top: 1.2rem;
  transition: gap 0.3s;
}
.project-card:hover .card-arrow { gap: 0.8rem; }

.color-red .card-arrow { color: var(--evm-red); }
.color-blue .card-arrow { color: var(--evm-blue); }
.color-green .card-arrow { color: var(--evm-green); }
.color-yellow .card-arrow { color: var(--evm-orange); }
.color-purple .card-arrow { color: var(--evm-purple); }
.color-teal .card-arrow { color: var(--evm-teal); }

/* ═══════════════════════════════════════
   FEATURES STRIP
   ═══════════════════════════════════════ */
.features-strip {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  padding: 4rem 2rem; color: var(--white);
}
.features-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem; text-align: center;
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.feature-num {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--evm-yellow), var(--evm-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.feature-item p { font-family: 'Fredoka', sans-serif; font-size: 0.95rem; opacity: 0.85; }

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonials-section {
  padding: 5rem 2rem;
  max-width: 1100px; margin: 0 auto;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2rem;
  box-shadow: var(--shadow-playful);
  position: relative;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card::before {
  content: '"';
  font-family: 'Baloo 2', cursive;
  font-size: 4rem;
  position: absolute; top: 0.5rem; left: 1.2rem;
  opacity: 0.08; line-height: 1;
}
.testimonial-card blockquote {
  font-size: 0.92rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 1.2rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--white);
}
.testimonial-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   CONTACT / FORMS
   ═══════════════════════════════════════ */
.contact-section { padding: 5rem 2rem; background: var(--bg-cream); }
.contact-inner {
  max-width: 700px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 3rem;
  box-shadow: var(--shadow-playful);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem; font-weight: 500; color: var(--text-dark);
}
.form-group input, .form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  resize: vertical; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--evm-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  align-self: flex-start;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: var(--white); border: none;
  border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,144,255,0.35); }

/* ═══════════════════════════════════════
   DONATIONS PAGE
   ═══════════════════════════════════════ */
.don-section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.don-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.don-why p { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }

.don-impacts { display: flex; flex-direction: column; gap: 1rem; }
.don-impact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white);
  border-radius: 16px; padding: 1.2rem;
  box-shadow: var(--shadow-playful);
  transition: transform 0.3s;
}
.don-impact-card:hover { transform: translateX(6px); }
.don-impact-icon { font-size: 1.8rem; flex-shrink: 0; }
.don-impact-card h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem;
}
.don-impact-card p { font-size: 0.85rem; color: var(--text-mid); margin: 0; }

.don-form-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2.5rem;
  box-shadow: var(--shadow-hover);
  position: relative; overflow: hidden;
}
.don-form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--evm-teal), var(--evm-blue));
}
.don-form-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem;
}
.don-form-card > p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 1.2rem; }

.don-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.don-amount-btn {
  padding: 0.75rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  color: var(--text-dark);
}
.don-amount-btn:hover { border-color: var(--evm-teal); background: #F0FDFA; }
.don-amount-btn.active {
  border-color: var(--evm-teal);
  background: var(--evm-teal);
  color: var(--white);
}

.don-separator {
  text-align: center; margin: 1.5rem 0;
  position: relative;
}
.don-separator::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: #E2E8F0;
}
.don-separator span {
  background: var(--white);
  padding: 0 1rem;
  position: relative;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px;
}

.don-note {
  font-size: 0.8rem; color: var(--text-light);
  text-align: center; margin-top: 1.2rem;
  line-height: 1.5;
}

.don-mobile-methods { display: flex; flex-direction: column; gap: 1rem; }
.don-mobile-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white);
  border-radius: 16px; padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-playful);
  border: 2px solid #E2E8F0;
  transition: all 0.3s ease;
}
.don-mobile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--evm-teal);
}
.don-mobile-logo {
  height: 48px; width: auto; max-width: 120px;
  object-fit: contain;
  background: transparent !important;
}
.don-mobile-info { display: flex; flex-direction: column; gap: 0.15rem; }
.don-mobile-info strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--text-dark);
}
.don-mobile-number {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--evm-teal);
  letter-spacing: 0.5px;
}

.don-payment-info { display: flex; flex-direction: column; gap: 1rem; }
.don-payment-method {
  display: flex; align-items: center; gap: 1rem;
  background: #F8FAFC;
  padding: 1rem 1.5rem;
  border-radius: 12px;
}
.don-payment-method span { font-size: 1.5rem; }
.don-payment-method strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem; display: block;
}
.don-payment-detail { font-size: 0.88rem; color: var(--text-mid); }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: var(--white); padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; background: transparent !important; }
.footer-brand p { font-size: 0.88rem; opacity: 0.7; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem; color: var(--evm-yellow);
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.88rem; padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }

.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem; opacity: 0.6;
}

/* ═══════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════ */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem; color: var(--white);
  text-decoration: none; padding: 0.8rem 2rem;
  border-radius: var(--radius-round); transition: background 0.3s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white); font-size: 2rem; cursor: pointer;
}

/* ═══════════════════════════════════════
   WHATSAPP FLOAT
   ═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
  animation: bounceIn 0.6s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════
   BANNERS (public)
   ═══════════════════════════════════════ */
.evm-banner {
  width: 100%;
  overflow: hidden;
  position: fixed;
  left: 0; right: 0;
  z-index: 999;
}
.evm-banner-top {
  top: 60px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.evm-banner-bottom {
  bottom: 0;
  background: linear-gradient(135deg, #0f3460, #1a1a2e);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.evm-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  text-align: center;
}
.evm-banner-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.6;
}
.evm-banner-video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
/* Push page content below fixed top banner */
body.has-banner-top .hero { padding-top: 140px; }
body.has-banner-top .page-hero { padding-top: 10rem; }
body.has-banner-top .forum-section { padding-top: 10rem; }
body.has-banner-top .forum-auth-section { padding-top: 10rem; }

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--evm-red), var(--evm-yellow), var(--evm-green), var(--evm-blue));
  z-index: 10001; width: 0%;
  transition: width 0.1s;
}

/* ═══════════════════════════════════════
   HARCELEMENT
   ═══════════════════════════════════════ */
.harcelement-intro { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.harcelement-message { background: var(--white); border-radius: var(--radius-soft); padding: 2.5rem; box-shadow: var(--shadow-playful); }
.harcelement-heart { font-size: 3rem; margin-bottom: 1rem; }
.harcelement-message h2 { font-family: 'Baloo 2', cursive; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; }
.harcelement-message p { color: var(--text-mid); line-height: 1.7; margin-bottom: 0.6rem; }

.harcelement-types { max-width: 900px; margin: 0 auto 3rem; }
.harcelement-types > h3, .harcelement-ressources > h3 {
  font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 600;
  text-align: center; margin-bottom: 1.5rem;
}
.harcelement-types-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.harcelement-type-card {
  background: var(--white); border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow-playful); text-align: center;
  transition: transform 0.3s;
}
.harcelement-type-card:hover { transform: translateY(-4px); }
.htc-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.harcelement-type-card h4 { font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.harcelement-type-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; }

.harcelement-form-section { max-width: 750px; margin: 0 auto 3rem; }
.harcelement-form-card {
  background: var(--white); border-radius: var(--radius-soft);
  padding: 2.5rem; box-shadow: var(--shadow-hover);
  position: relative; overflow: hidden;
}
.harcelement-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #7C3AED, #4F46E5, #2563EB);
}
.hf-header { text-align: center; margin-bottom: 2rem; }
.hf-header h2 { font-family: 'Baloo 2', cursive; font-size: 1.4rem; font-weight: 700; }
.hf-header p { color: var(--text-mid); font-size: 0.92rem; margin-top: 0.3rem; }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.radio-card-inner {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid #E2E8F0; border-radius: 12px;
  transition: all 0.25s; background: #FAFBFC;
}
.radio-card input:checked + .radio-card-inner {
  border-color: #7C3AED; background: #F5F3FF; color: #5B21B6;
}
.rc-icon { font-size: 1.1rem; }
.rc-text { font-family: 'Fredoka', sans-serif; font-size: 0.88rem; font-weight: 500; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-card { cursor: pointer; }
.check-card input { display: none; }
.check-card span {
  display: inline-block; padding: 0.5rem 1rem;
  border: 2px solid #E2E8F0; border-radius: 10px;
  font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 500;
  transition: all 0.25s; background: #FAFBFC;
}
.check-card input:checked + span {
  border-color: #7C3AED; background: #F5F3FF; color: #5B21B6;
}

.harcelement-form-card select {
  width: 100%; padding: 0.8rem 1rem;
  border: 2px solid #E2E8F0; border-radius: 12px;
  font-family: 'Quicksand', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.3s; background: #fff;
}
.harcelement-form-card select:focus { border-color: #7C3AED; }

.form-hint-public { display: block; font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; }

.harcelement-submit { text-align: center; margin-top: 1.5rem; }
.btn-harcelement-submit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: var(--white); border: none;
  border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
}
.btn-harcelement-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(124,58,237,0.45); }
.harcelement-assurance {
  font-size: 0.8rem; color: var(--text-light);
  margin-top: 0.8rem;
}

.harcelement-ressources { max-width: 700px; margin: 0 auto; }

/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-playful);
  transition: all 0.4s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.blog-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #F1F5F9;
}
.blog-card-img-default {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: linear-gradient(135deg, #FEF3C7, #FFEDD5);
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.blog-card-body h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.blog-card-body p {
  font-size: 0.88rem; color: var(--text-mid);
  line-height: 1.55; flex: 1;
}

.blog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 3rem;
}
.blog-page-btn {
  padding: 0.6rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-round);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-playful);
  transition: all 0.3s;
}
.blog-page-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.blog-page-info { font-size: 0.88rem; color: var(--text-light); }

/* Single post */
.post-section { padding: 3rem 2rem 5rem; max-width: 1200px; margin: 0 auto; }
.post-container { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

.post-content {
  background: var(--white);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-playful);
}
.post-hero-img img {
  width: 100%; height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}
.post-body {
  padding: 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.post-body h2 { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 600; margin: 1.5rem 0 0.8rem; color: var(--text-dark); }
.post-body h3 { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; font-weight: 600; margin: 1.2rem 0 0.6rem; }
.post-body p { margin-bottom: 1rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.post-body ul, .post-body ol { margin: 0.8rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--evm-blue); text-decoration: underline; }
.post-body blockquote {
  border-left: 4px solid var(--evm-yellow);
  margin: 1.2rem 0;
  padding: 0.8rem 1.2rem;
  background: #FEF9E7;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-mid);
}

.post-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding: 0 2.5rem 1.5rem;
}
.post-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-round);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
}
.post-btn-icon { font-size: 1.1rem; }
.post-btn-share {
  background: #25D366; color: var(--white);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.post-btn-share:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.post-btn-whatsapp {
  background: var(--white); color: #25D366;
  border: 2px solid #25D366;
}
.post-btn-whatsapp:hover { background: #F0FDF4; transform: translateY(-2px); }

.post-back { padding: 1.5rem 2.5rem 2.5rem; }

/* Post sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-playful);
}
.sidebar-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #F1F5F9;
}
.sidebar-post-link {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  border-bottom: 1px solid #F8FAFC;
  transition: padding-left 0.2s;
}
.sidebar-post-link:hover { padding-left: 6px; }
.sidebar-post-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.sidebar-post-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.sidebar-cta {
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 2px solid #BBF7D0;
}
.sidebar-cta p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .don-container { grid-template-columns: 1fr; }
  .post-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-content { padding: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
  .don-amounts { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════
   FORUM — AUTH SECTION
   ═══════════════════════════════════════ */
.forum-auth-section {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 3rem;
}
.forum-auth-container {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2.5rem;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-playful);
}
.forum-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.forum-auth-logo {
  height: 60px;
  margin-bottom: 0.8rem;
}
.forum-auth-header h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.forum-auth-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Choice buttons */
.forum-choice {
  display: flex; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.forum-choice-btn {
  flex: 1;
  padding: 0.9rem;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
}
.forum-choice-btn:hover, .forum-choice-btn.active {
  border-color: var(--evm-blue);
  background: #EFF6FF;
  color: var(--evm-blue);
}

/* Alerts */
.forum-alert {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.forum-alert-error { background: #FEE2E2; color: #991B1B; }
.forum-alert-success { background: #DCFCE7; color: #166534; }

/* Forms */
.forum-form { display: flex; flex-direction: column; gap: 1rem; }
.forum-form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.forum-form-group label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-dark);
}
.forum-form-group input,
.forum-form-group select,
.forum-form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s;
  background: #fff;
}
.forum-form-group input:focus,
.forum-form-group select:focus,
.forum-form-group textarea:focus {
  border-color: var(--evm-blue);
}
.forum-form-row {
  display: flex; gap: 0.75rem;
}
.forum-form-row .forum-form-group { flex: 1; }

/* Buttons */
.forum-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: #fff; border: none;
  border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.forum-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,144,255,0.3);
}
.forum-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem;
  background: #F1F5F9; color: #475569;
  border: none; border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.forum-btn-secondary:hover { background: #E2E8F0; }
.forum-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.5rem;
  background: #FEE2E2; color: #991B1B;
  border: none; border-radius: var(--radius-round);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.forum-btn-danger:hover { background: #FECACA; }

.forum-back-link {
  display: inline-block;
  color: var(--evm-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  margin-top: 1rem;
  transition: color 0.2s;
}
.forum-back-link:hover { color: var(--evm-purple); }

/* Code display */
.forum-code-display { text-align: center; }
.forum-code-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.forum-code-display h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem; margin-bottom: 0.5rem;
}
.forum-code-box {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem; font-weight: 700;
  letter-spacing: 8px;
  color: var(--evm-blue);
  background: #EFF6FF;
  border: 3px dashed var(--evm-blue);
  border-radius: 16px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  user-select: all;
}
.forum-code-hint {
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Rules */
.forum-rules h2 {
  font-family: 'Fredoka', sans-serif;
  text-align: center;
  margin-bottom: 1rem;
}
.forum-rules-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-mid);
  max-height: 400px;
  overflow-y: auto;
}
.forum-rules-box p { margin-bottom: 0.8rem; }
.forum-rules-box ol { padding-left: 1.5rem; }
.forum-rules-box li { margin-bottom: 0.5rem; }

/* ═══════════════════════════════════════
   FORUM — ROOMS
   ═══════════════════════════════════════ */
.forum-section {
  padding: 5.5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.forum-container {
  margin: 0 auto;
}
.forum-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.forum-top-left h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem; font-weight: 700;
}
.forum-top-left p {
  font-size: 0.88rem; color: var(--text-light);
}
.forum-top-right {
  display: flex; gap: 0.75rem;
}

/* Filters */
.forum-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.forum-filter-tag {
  padding: 0.4rem 0.9rem;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-mid);
  transition: all 0.2s;
  white-space: nowrap;
}
.forum-filter-tag:hover,
.forum-filter-tag.active {
  border-color: var(--evm-blue);
  background: #EFF6FF;
  color: var(--evm-blue);
}

/* Room cards */
.forum-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.forum-room-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-playful);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  display: block;
  border: 2px solid transparent;
}
.forum-room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--evm-blue);
}
.forum-room-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--evm-blue);
  margin-bottom: 0.4rem;
}
.forum-room-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.4rem;
}
.forum-room-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.forum-room-meta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.forum-empty, .forum-empty-chat {
  text-align: center;
  color: var(--text-light);
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}
.forum-loading {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

/* ═══════════════════════════════════════
   FORUM — CHAT
   ═══════════════════════════════════════ */
.forum-chat-layout {
  display: flex;
  gap: 0;
  min-height: 75vh;
  background: var(--white);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-playful);
  overflow: hidden;
}

/* Sidebar */
.forum-chat-sidebar {
  width: 280px;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  padding: 1.5rem;
  overflow-y: auto;
  flex-shrink: 0;
}
.forum-sidebar-close {
  display: none;
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none;
  font-size: 1.8rem; cursor: pointer;
  color: var(--text-light);
}
.forum-sidebar-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}
.forum-sidebar-block:last-of-type { border-bottom: none; }
.forum-sidebar-block h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.3rem;
}
.forum-sidebar-block h3 {
  font-size: 0.82rem;
  color: var(--evm-blue);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.forum-sidebar-block h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  margin-bottom: 0.5rem;
}
.forum-room-info-desc {
  font-size: 0.85rem; color: var(--text-mid);
  line-height: 1.5; margin-top: 0.5rem;
}
.forum-room-info-creator {
  font-size: 0.8rem; color: var(--text-light);
  margin-top: 0.4rem;
}

.forum-participants-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.forum-participants-list li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
}

.forum-files-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.forum-files-list li {
  display: flex; justify-content: space-between; align-items: center;
}
.forum-files-list a {
  font-size: 0.82rem; color: var(--evm-blue);
  text-decoration: none; font-weight: 500;
}
.forum-files-list a:hover { text-decoration: underline; }
.forum-file-size {
  font-size: 0.75rem; color: var(--text-light);
}
.forum-sidebar-empty {
  font-size: 0.82rem; color: var(--text-light);
}

.forum-sidebar-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer;
  margin-right: 0.8rem;
  color: var(--text-mid);
}

/* Chat main */
.forum-chat-main {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
}
.forum-chat-header {
  display: flex; align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  background: #FAFBFC;
}
.forum-chat-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 600;
}
.forum-chat-subject {
  font-size: 0.78rem; color: var(--evm-blue); font-weight: 500;
}

/* Messages */
.forum-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.8rem;
  max-height: 55vh;
  background: #FEFEFE;
}
.forum-message {
  max-width: 80%;
  background: #F1F5F9;
  border-radius: 16px 16px 16px 4px;
  padding: 0.8rem 1rem;
}
.forum-message-mine {
  align-self: flex-end;
  background: #EFF6FF;
  border-radius: 16px 16px 4px 16px;
}
.forum-message-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-bottom: 0.3rem;
}
.forum-message-header strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-dark);
}
.forum-message-time {
  font-size: 0.72rem; color: var(--text-light);
  white-space: nowrap;
}
.forum-message p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-mid);
  word-break: break-word;
}
.forum-message audio {
  width: 100%;
  max-width: 280px;
  height: 36px;
  margin-top: 0.3rem;
}

/* Input area */
.forum-chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E2E8F0;
  background: #FAFBFC;
}
.forum-input-row {
  display: flex; gap: 0.5rem; align-items: flex-end;
}
.forum-input-row textarea {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  outline: none;
  resize: none;
  max-height: 120px;
  transition: border-color 0.3s;
  line-height: 1.4;
}
.forum-input-row textarea:focus { border-color: var(--evm-blue); }
.forum-send-btn {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: #fff; border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.forum-send-btn:hover { transform: scale(1.1); }

.forum-input-actions {
  display: flex; gap: 0.5rem; margin-top: 0.5rem; align-items: center;
}
.forum-action-btn {
  padding: 0.4rem 0.7rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.forum-action-btn:hover { background: #E2E8F0; }
.forum-audio-status {
  display: flex; align-items: center; gap: 0.75rem;
}
.forum-audio-recording {
  font-size: 0.82rem; color: #DC2626; font-weight: 600;
  animation: audioPulse 1s infinite;
}
@keyframes audioPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.forum-audio-stop {
  padding: 0.35rem 0.8rem;
  background: #FEE2E2; color: #991B1B;
  border: none; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   FORUM — PROFILE
   ═══════════════════════════════════════ */
.forum-profile-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 2rem;
  box-shadow: var(--shadow-playful);
  margin: 1.5rem 0;
}
.forum-profile-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin: 0 auto 0.8rem;
}
.forum-profile-card h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem; font-weight: 700;
}
.forum-profile-role {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: #DBEAFE; color: #1E40AF;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  margin: 0.3rem 0;
}
.forum-profile-info {
  font-size: 0.88rem; color: var(--text-mid);
  margin-top: 0.5rem;
}
.forum-profile-date {
  font-size: 0.8rem; color: var(--text-light);
  margin-top: 0.3rem;
}

.forum-form-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-playful);
  margin-bottom: 1.2rem;
}
.forum-form-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   FORUM — RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .forum-chat-sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    z-index: 1000;
    transition: left 0.3s;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .forum-chat-sidebar.open { left: 0; }
  .forum-sidebar-close { display: block; }
  .forum-sidebar-toggle { display: block; }
  .forum-top-bar { flex-direction: column; align-items: flex-start; }
  .forum-form-row { flex-direction: column; }
  .forum-rooms-grid { grid-template-columns: 1fr; }
  .forum-message { max-width: 95%; }
  .forum-choice { flex-direction: column; }
}

/* Forum — Pending activation */
.forum-pending-box {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
.forum-pending-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.forum-pending-box h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 0.5rem;
}
.forum-pending-box p {
  font-size: 0.88rem;
  color: #78350F;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.forum-pending-contact {
  margin-top: 0.8rem;
  font-weight: 500;
}
.forum-pending-phone {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #92400E;
  text-decoration: none;
  background: #FDE68A;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.forum-pending-phone:hover {
  background: #FCD34D;
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   FORUM — TABLEAU BLANC
   ═══════════════════════════════════════ */
.wb-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.wb-overlay.active { opacity: 1; pointer-events: auto; }
.wb-container {
  width: 95vw;
  height: 90vh;
  max-width: 1100px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.wb-overlay.active .wb-container { transform: scale(1); }

/* Toolbar */
.wb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
  flex-wrap: wrap;
}
.wb-toolbar-left, .wb-toolbar-center, .wb-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wb-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.wb-sep {
  width: 1px;
  height: 24px;
  background: #CBD5E1;
  margin: 0 0.3rem;
}

/* Color buttons */
.wb-color-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.wb-color-btn:hover { transform: scale(1.15); }
.wb-color-btn.active { border-color: #1E293B; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1E293B; }

/* Tool buttons */
.wb-tool-btn {
  padding: 0.3rem 0.6rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.wb-tool-btn:hover { background: #EFF6FF; border-color: #93C5FD; }
.wb-tool-btn.active { background: #DBEAFE; border-color: #60A5FA; color: #1E40AF; }

/* Size buttons */
.wb-size-btn span {
  display: block;
  background: #1E293B;
  border-radius: 50%;
}

/* Action buttons */
.wb-cancel-btn {
  padding: 0.4rem 1rem;
  background: #F1F5F9;
  color: #475569;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.wb-cancel-btn:hover { background: #E2E8F0; }
.wb-send-btn {
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, var(--evm-blue), var(--evm-purple));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.wb-send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,144,255,0.3); }
.wb-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Canvas */
#whiteboardCanvas {
  flex: 1;
  cursor: crosshair;
  display: block;
  touch-action: none;
}

/* Drawing images in chat */
.forum-drawing-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  border: 2px solid #E2E8F0;
  margin-top: 0.3rem;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
}
.forum-drawing-img:hover {
  border-color: var(--evm-blue);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.forum-drawing-img.forum-drawing-zoom {
  max-width: none;
  max-height: none;
  width: 100%;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Responsive whiteboard */
@media (max-width: 768px) {
  .wb-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .wb-toolbar {
    padding: 0.4rem 0.6rem;
    gap: 0.3rem;
  }
  .wb-title { font-size: 0.82rem; }
  .wb-toolbar-left { display: none; }
  .wb-sep { display: none; }
  .wb-color-btn { width: 22px; height: 22px; }
  .wb-tool-btn { padding: 0.25rem 0.45rem; font-size: 0.78rem; }
  .wb-cancel-btn, .wb-send-btn { font-size: 0.78rem; padding: 0.35rem 0.8rem; }
}

/* Forum — Room action buttons (edit/delete) */
.forum-room-card {
  position: relative;
}
.forum-room-actions {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.forum-room-card:hover .forum-room-actions {
  opacity: 1;
}
.forum-room-action-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.forum-room-action-btn:hover {
  background: #EFF6FF;
  border-color: var(--evm-blue);
  transform: scale(1.1);
}
.forum-room-delete-btn:hover {
  background: #FEE2E2;
  border-color: #F87171;
}
@media (max-width: 768px) {
  .forum-room-actions {
    opacity: 1;
  }
}
