/* =============================================
   THE PEOPLE'S INITIATIVE – Main Stylesheet
   Color palette:
     Navy:  #1B2A6B
     Red:   #C8102E
     Light: #F4F6FA
     White: #FFFFFF
============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ----- CONTAINER ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.22s, transform 0.18s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-blue {
  background: linear-gradient(135deg, #1B2A6B 0%, #2a3f96 100%);
  color: #fff;
}
.btn-blue:hover {
  box-shadow: 0 6px 20px rgba(27,42,107,0.38);
  opacity: 1;
}
.btn-red {
  background: linear-gradient(135deg, #C8102E 0%, #e8273f 100%);
  color: #fff;
}
.btn-red:hover {
  box-shadow: 0 6px 20px rgba(200,16,46,0.38);
  opacity: 1;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 2px solid #dde2f0;
  box-shadow: 0 2px 16px rgba(27,42,107,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  width: auto;
  height: 58px;
  object-fit: contain;
  /* Drop shadow to make the white-bg logo pop on the white navbar */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: transform 0.2s;
}
.logo:hover .logo-img { transform: scale(1.04); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #C8102E;
  transition: width 0.25s;
}
.nav-link:hover { color: #1B2A6B; }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #1B2A6B;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 100%, rgba(200,16,46,0.22) 0%, transparent 60%),
    linear-gradient(90deg, rgba(10,16,58,0.90) 0%, rgba(10,16,58,0.60) 55%, rgba(10,16,58,0.30) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 580px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-title span {
  background: linear-gradient(135deg, #e8273f, #ff6b84);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Red accent bar below hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 6px;
  background: #C8102E;
  z-index: 3;
}

/* =============================================
   FEATURE CARDS
============================================= */
.features {
  padding: 64px 0;
  background: linear-gradient(160deg, #f0f3fa 0%, #f8f9fd 100%);
}

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

.feature-card {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-top: 3px solid #e4e8f0;
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s, background 0.25s;
}
.feature-card:hover {
  box-shadow: 0 16px 48px rgba(27,42,107,0.16);
  transform: translateY(-8px);
  border-top-color: #1B2A6B;
  background: #fafbff;
}
.feature-card.featured {
  border-top: 4px solid #C8102E;
}
.feature-card.featured:hover {
  border-top-color: #C8102E;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B2A6B;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2A6B;
  transition: color 0.2s;
}
.feature-link:hover { color: #C8102E; }
.feature-link.red { color: #C8102E; }
.feature-link.red:hover { color: #1B2A6B; }

/* Active nav link */
.nav-link.active { color: #1B2A6B; }
.nav-link.active::after { width: 100%; }

/* =============================================
   MAKE A DIFFERENCE
============================================= */
.difference {
  padding: 72px 0;
  background: #fff;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #1B2A6B;
  text-align: center;
  margin-bottom: 18px;
}
.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #C8102E, rgba(200,16,46,0.3));
}

.section-sub {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
}

.diff-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  display: block;
  cursor: pointer;
}

.diff-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.diff-card:hover img { transform: scale(1.09); }

.diff-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
}
.diff-overlay.blue { background: rgba(27,42,107,0.88); }
.diff-overlay.red  { background: rgba(200,16,46,0.88); }

.diff-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.arrows { font-size: 1.3rem; letter-spacing: -2px; }

/* =============================================
   NEWS
============================================= */
.news {
  padding: 72px 0;
  background: linear-gradient(160deg, #f4f6fb 0%, #fafbff 100%);
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2A6B;
  padding-bottom: 12px;
  margin-bottom: 36px;
  display: inline-block;
  position: relative;
}
.news-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C8102E, rgba(200,16,46,0));
}

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

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e8f0;
  transition: box-shadow 0.25s, transform 0.25s;
}
.news-card:hover {
  box-shadow: 0 14px 40px rgba(27,42,107,0.16);
  transform: translateY(-6px);
}

.news-img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-img {
  transform: scale(1.07);
}

.news-body {
  padding: 20px;
}

.news-headline {
  font-size: 1rem;
  font-weight: 700;
  color: #1B2A6B;
  margin-bottom: 6px;
}

.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e8eaf5;
  color: #1B2A6B;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 14px;
}

/* =============================================
   FOOTER
============================================= */
.footer {
  position: relative;
  background: linear-gradient(160deg, #080f2e 0%, #1a2660 100%);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid #C8102E;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 600px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 24px;
}

/* Newsletter form */
.footer-form-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.6); }

.email-row {
  display: flex;
  gap: 10px;
}
.email-row input { margin-bottom: 0; flex: 1; }

/* Social icons */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.social-icon:hover { opacity: 0.82; transform: scale(1.1); }
.social-icon svg { width: 22px; height: 22px; }

.social-icon.fb { background: #3b5998; }
.social-icon.tw { background: #1da1f2; }
.social-icon.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* Footer bottom bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom span { color: rgba(255,255,255,0.3); }

/* =============================================
   RESPONSIVE – TABLET  (max-width: 900px)
============================================= */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-card { aspect-ratio: 16/7; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* =============================================
   RESPONSIVE – MOBILE  (max-width: 640px)
============================================= */
@media (max-width: 640px) {

  /* Navbar */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 32px;
    gap: 20px;
    border-bottom: 2px solid #e4e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links .btn { width: 100%; text-align: center; }

  /* Hero */
  .hero { min-height: 420px; }
  .hero-content { padding-top: 48px; padding-bottom: 48px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: fit-content; }

  /* Feature cards */
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 44px 0; }

  /* Difference */
  .difference { padding: 48px 0; }
  .diff-grid { gap: 0; }
  .diff-card { aspect-ratio: 4/3; }

  /* News */
  .news { padding: 48px 0; }
  .news-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .email-row { flex-direction: column; }
  .email-row .btn { width: 100%; text-align: center; }
}

/* =============================================
   ACTIVE PETITIONS SLIDER
============================================= */
.petitions {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #f0f3fa 0%, #f8f9fd 100%);
}

/* Slider outer */
.slider-wrapper {
  position: relative;
  margin-top: 8px;
}

.slider-track-outer {
  overflow: hidden;
  border-radius: 10px;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each petition card */
.petition-card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 visible on desktop */
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}
.petition-card:hover {
  box-shadow: 0 16px 40px rgba(27,42,107,0.18);
  transform: translateY(-6px);
}

/* Petition image area */
.pet-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e8eaf0;
}
.pet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s;
}
.petition-card:hover .pet-img-wrap img { transform: scale(1.04); }

.pet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #1B2A6B, #2a3f96);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(27,42,107,0.3);
}

/* Card body */
.pet-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category tags */
.pet-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}
.tag-reform     { background: #e8eaf5; color: #1B2A6B; }
.tag-rights     { background: #fdecea; color: #C8102E; }
.tag-tax        { background: #fff4e0; color: #b45309; }
.tag-housing    { background: #e8f5e9; color: #1b6b3a; }
.tag-education  { background: #e3f2fd; color: #1565c0; }
.tag-labor      { background: #fce4ec; color: #880e4f; }
.tag-environment{ background: #e8f5e9; color: #2e7d32; }
.tag-health     { background: #e0f7fa; color: #006064; }
.tag-research   { background: #f3e5f5; color: #6a1b9a; }

.pet-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1B2A6B;
  margin-bottom: 10px;
  line-height: 1.35;
}

.pet-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.pet-funder {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 18px;
  line-height: 1.5;
}
.pet-funder strong { color: #444; }

.pet-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  align-self: flex-start;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #1B2A6B;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.15s;
}
.slider-btn:hover { background: #C8102E; transform: translateY(-50%) scale(1.08); }
.slider-btn:disabled { background: #aaa; cursor: default; transform: translateY(-50%); }

.slider-prev { left: -22px; }
.slider-next { right: -22px; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d0e0;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot.active {
  background: #1B2A6B;
  transform: scale(1.25);
}

/* Tablet: 2 visible */
@media (max-width: 900px) {
  .petition-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .slider-prev { left: -16px; }
  .slider-next { right: -16px; }
}

/* Mobile: 1 visible */
@media (max-width: 640px) {
  .petitions { padding: 48px 0 60px; }
  .petition-card { flex: 0 0 100%; }
  .slider-prev { left: -6px; }
  .slider-next { right: -6px; }
  .slider-btn { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* =============================================
   MODALS
============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,60,0.72);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  animation: modalIn 0.28s ease;
}
.modal-box--wide { max-width: 780px; }

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }

.modal-header {
  padding: 36px 36px 28px;
  border-radius: 12px 12px 0 0;
}
.modal-header.blue { background: linear-gradient(135deg, #1B2A6B 0%, #2a3f96 100%); }
.modal-header.red  { background: linear-gradient(135deg, #C8102E 0%, #e8273f 100%); }
.modal-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.modal-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.modal-body {
  padding: 32px 36px 36px;
}
.modal-lead {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 500;
}
.modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1B2A6B;
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.modal-body p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}
.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.modal-body ul li {
  font-size: 0.95rem;
  color: #444;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid #f0f2f7;
  line-height: 1.6;
}
.modal-body ul li:last-child { border-bottom: none; }
.modal-body ul li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #C8102E;
  font-weight: 700;
  font-size: 1.1rem;
}
.modal-body strong { color: #1B2A6B; }

.modal-quote {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 4px solid #C8102E;
  background: #F4F6FA;
  font-size: 1rem;
  font-style: italic;
  color: #333;
  border-radius: 0 6px 6px 0;
}

/* Success stat grid */
.success-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}
.success-stat {
  background: #1B2A6B;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  line-height: 1.3;
}

/* Job badges */
.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.job-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #e8eaf5;
  color: #1B2A6B;
}
.job-badge.green { background: #e8f5e9; color: #1b6b3a; }

/* Join form */
.join-form { margin-top: 16px; }
.join-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.join-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.join-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}
.join-field input,
.join-field select {
  padding: 10px 12px;
  border: 1.5px solid #d0d5e8;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.join-field input:focus,
.join-field select:focus { border-color: #1B2A6B; }

.join-notice {
  font-size: 0.88rem;
  margin-bottom: 12px;
  min-height: 20px;
  font-weight: 600;
}
.join-notice.success { color: #1b6b3a; }
.join-notice.error   { color: #C8102E; }

.join-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}

/* Mobile modals */
@media (max-width: 640px) {
  .modal-header { padding: 28px 22px 20px; }
  .modal-body { padding: 24px 22px 28px; }
  .modal-header h2 { font-size: 1.3rem; }
  .success-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .join-form-row { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITY – Scroll reveal fade-in
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
