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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f8fc;
  color: #162554;
}

a {
  text-decoration: none;
}

/* HEADER */
.site-header {
  height: 12vh;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #eceff7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.brand-logo {
  width: 104px;
  height: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 38px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text p {
  margin-top: 8px;
  font-size: 12px;
  color: #182650;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.blue {
  color: #0b2f9f;
}

.red {
  color: #e31c25;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  color: #111d48;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}

.main-nav .active {
  color: #1d48ea;
}

.main-nav .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 99px;
  background: #1d48ea;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid #dbe2f0;
  border-radius: 10px;
  background: #ffffff;
  color: #122e92;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* DONATE BUTTON */
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #122e92;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.donate-heart {
  font-size: 20px;
  line-height: 1;
}

/* HERO */
.hero {
  height: 56vh;
  min-height: 420px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #0b1638;
  position: relative;
  display: flex;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 24, 70, 0.92) 0%, rgba(9, 24, 70, 0.74) 36%, rgba(9, 24, 70, 0.12) 74%);
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 0 44px;
  color: white;
}

.hero-text {
  max-width: 490px;
}

.hero-text h2 {
  font-size: clamp(2.7rem, 4.4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero-text p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.45;
  max-width: 450px;
}

/* BUTTONS */
.buttons {
  margin-top: 24px;
  display: flex;
  gap: 18px;
}

.btn-primary,
.btn-secondary {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #2452ea;
  color: #ffffff;
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.play-icon {
  margin-right: 12px;
  font-size: 18px;
}

/* MISSION SECTION */
.mission {
  display: flex;
  gap: 28px;
  height: 32vh;
  min-height: 220px;
  padding: 26px 42px;
  background: #f7f8fc;
}

.left {
  width: 29%;
  padding-top: 2px;
}

.subtitle {
  color: #1d48ea;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.left h3 {
  font-size: clamp(2.25rem, 3.8vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #162554;
}

.line {
  width: 44px;
  height: 3px;
  background: #e31c25;
  margin: 16px 0 14px;
}

.left p {
  margin-top: 0;
  line-height: 1.5;
  font-size: 12px;
  color: #2f3b63;
  max-width: 300px;
}

.link {
  display: inline-block;
  margin-top: 14px;
  color: #1d48ea;
  font-size: 13px;
  font-weight: 700;
}

/* CARDS */
.cards {
  display: flex;
  gap: 24px;
  width: 71%;
}

.card {
  background: #ffffff;
  padding: 22px 20px 18px;
  border-radius: 14px;
  text-align: center;
  width: 100%;
  min-height: 0;
  box-shadow: 0 10px 26px rgba(18, 46, 146, 0.08);
}

.icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.blue {
  color: #2452ea;
}

.icon.red {
  color: #e31c25;
}

.card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #162554;
}

.card p {
  font-size: 12px;
  line-height: 1.45;
  color: #2f3b63;
  margin-bottom: 14px;
}

.card a {
  color: #1d48ea;
  font-size: 12px;
  font-weight: 700;
}

.contributors-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 420px) minmax(320px, 0.9fr);
  align-items: center;
  gap: 28px;
  padding: 28px 42px 40px;
  background: #eef3ff;
}

.contributors-copy {
  max-width: 560px;
}

.contributors-copy h3 {
  font-size: 34px;
  line-height: 1.05;
  color: #162554;
}

.contributors-copy p:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: #31406d;
  max-width: 48ch;
}

.contributors-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
}

.join-btn {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: #2452ea;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.contributors-note {
  font-size: 13px;
  line-height: 1.5;
  color: #42517e;
}

.live-contributors {
  align-self: stretch;
  padding: 20px;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 46, 146, 0.08);
}

.live-contributors-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.live-contributors-header h4 {
  margin-top: 4px;
  color: #162554;
  font-size: 20px;
  line-height: 1.1;
}

.live-contributors-header strong {
  color: #122e92;
  font-size: 28px;
  line-height: 1;
}

.live-contributors-status {
  color: #42517e;
  font-size: 13px;
  line-height: 1.5;
}

.live-contributors-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.live-contributor-card {
  padding: 12px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  background: #f9fbff;
}

.live-contributor-card h5 {
  color: #162554;
  font-size: 14px;
  line-height: 1.2;
}

.live-contributor-card p {
  margin-top: 5px;
  color: #536180;
  font-size: 12px;
  line-height: 1.35;
}

.donor-campaign {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  grid-column: 1 / -1;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 46, 146, 0.08);
}

.donor-campaign-copy h4 {
  margin-top: 4px;
  color: #162554;
  font-size: 28px;
  line-height: 1.05;
}

.donor-campaign-copy p {
  margin-top: 12px;
  max-width: 54ch;
  color: #31406d;
  font-size: 14px;
  line-height: 1.55;
}

.donor-campaign-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 10px;
  background: #e31c25;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.gofundme-widget {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f9fbff;
}

.gofundme-widget .gfm-embed {
  min-height: 420px;
}

.donor-progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  border-radius: 10px;
  background: #f9fbff;
}

.donor-progress-stats {
  display: grid;
  gap: 14px;
}

.donor-progress-stats span {
  display: block;
  color: #57658a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-progress-stats strong {
  display: block;
  margin-top: 4px;
  color: #122e92;
  font-size: 28px;
  line-height: 1;
}

.donor-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5fb;
}

.donor-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #e31c25;
}

.verified-donors {
  padding: 18px;
  border-radius: 10px;
  background: #f9fbff;
}

.verified-donors-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.verified-donors-header h5 {
  color: #162554;
  font-size: 18px;
  line-height: 1.1;
}

.verified-donors-header strong {
  color: #122e92;
  font-size: 24px;
  line-height: 1;
}

.verified-donors-list {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
}

.verified-donor-card {
  padding: 12px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  background: #ffffff;
}

.verified-donor-card h6 {
  color: #162554;
  font-size: 14px;
  line-height: 1.2;
}

.verified-donor-card p {
  margin-top: 5px;
  color: #536180;
  font-size: 12px;
  line-height: 1.35;
}

.join-modal[hidden] {
  display: none;
}

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 34, 0.78);
}

.join-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.join-modal-dialog h3 {
  font-size: 30px;
  line-height: 1.05;
  color: #162554;
}

.join-intro {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #48577f;
}

.join-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef3ff;
  color: #122e92;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.join-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.join-form label {
  display: grid;
  gap: 8px;
}

.join-form span {
  font-size: 13px;
  font-weight: 700;
  color: #162554;
}

.join-form input,
.join-form select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe2f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  color: #162554;
}

.join-submit {
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #122e92;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.join-success {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1f8b3a;
}

.join-error {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #c51f2d;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 34, 0.84);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1260px);
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #000000;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: -18px;
  right: -8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #122e92;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.modal-open {
  overflow: hidden;
}

/* PROJECTS PAGE */
.projects-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 56px 42px;
  background:
    linear-gradient(90deg, rgba(9, 24, 70, 0.94) 0%, rgba(9, 24, 70, 0.76) 48%, rgba(9, 24, 70, 0.28) 100%),
    url("assets/images/dayufl.PNG");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.projects-hero-copy {
  max-width: 680px;
}

.projects-hero .subtitle {
  color: #8fb1ff;
}

.projects-hero h2 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.projects-hero p {
  margin-top: 18px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 42px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border: 1px solid #e3e8f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 46, 146, 0.08);
}

.project-card.featured {
  border-top: 5px solid #e31c25;
}

.project-meta {
  color: #1d48ea;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card h3 {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.1;
  color: #162554;
}

.project-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #34436f;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 18px;
  color: #2f3b63;
  font-size: 14px;
  line-height: 1.4;
}

.project-status {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #122e92;
  font-size: 12px;
  font-weight: 800;
}

/* NEWS PAGE */
.news-hero {
  padding: 64px 42px 42px;
  background: #eef3ff;
}

.news-hero-copy {
  max-width: 820px;
}

.news-hero h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #162554;
}

.news-hero p:last-child {
  margin-top: 18px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: #31406d;
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
}

.news-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(18, 46, 146, 0.14);
  background: #dbe2f0;
}

.news-mode-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #122e92;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(6, 12, 34, 0.22);
}

.news-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-story {
  padding: 6px 0;
}

.news-story h3 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #162554;
}

.news-story p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #34436f;
}

.news-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.news-donate-link {
  color: #1d48ea;
  font-size: 13px;
  font-weight: 800;
}

/* ADMIN CONTRIBUTORS PAGE */
.admin-page {
  min-height: calc(100vh - 90px);
  background: #f6f8fc;
}

.admin-hero {
  padding: 54px 42px 28px;
  background: #eef3ff;
}

.admin-hero h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  color: #162554;
}

.admin-hero p:last-child {
  margin-top: 16px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: #31406d;
}

.contributors-admin {
  padding: 32px 42px 52px;
}

.contributors-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-label {
  color: #57658a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contributors-admin-header strong {
  display: block;
  margin-top: 4px;
  color: #122e92;
  font-size: 34px;
  line-height: 1;
}

.admin-refresh {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #122e92;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-status {
  padding: 18px 0;
  color: #42517e;
  font-size: 15px;
}

.contributors-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3e8f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 46, 146, 0.08);
}

.contributors-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.contributors-table th,
.contributors-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f8;
  text-align: left;
  vertical-align: top;
}

.contributors-table th {
  background: #f9fbff;
  color: #162554;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contributors-table td {
  color: #2f3b63;
  font-size: 14px;
  line-height: 1.4;
}

.contributors-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1200px) {
  .site-header {
    height: auto;
    padding: 20px 24px;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    gap: 22px;
    flex-wrap: wrap;
  }

  .mission {
    flex-direction: column;
    height: auto;
    padding: 40px 24px 48px;
  }

  .left,
  .cards {
    width: 100%;
  }

  .cards {
    gap: 24px;
  }

  .contributors-section {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 40px;
  }

  .donor-campaign {
    grid-template-columns: 1fr;
  }

  .projects-list {
    grid-template-columns: 1fr;
    padding: 32px 24px 40px;
  }

  .news-feature {
    grid-template-columns: 1fr;
    padding: 32px 24px 44px;
  }

  .admin-hero,
  .contributors-admin {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 460px;
    background-size: cover;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-text h2 {
    font-size: 46px;
  }

  .buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards {
    flex-direction: column;
  }

  .left h3 {
    font-size: 48px;
  }

  .projects-hero {
    min-height: 520px;
    padding: 48px 24px;
  }

  .projects-hero h2 {
    font-size: 44px;
  }

  .news-hero {
    padding: 48px 24px 34px;
  }

  .news-hero h2,
  .news-story h3 {
    font-size: 42px;
  }

  .news-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
