/* ================================================================
   index.astro — Home page only styles
   Reuses global tokens from global.css; adds page-specific rules.
================================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, rgba(39, 121, 158, 0.28) 0%, rgba(39, 121, 158, 0) 34%),
    radial-gradient(circle at 82% 20%, rgba(214, 167, 82, 0.2) 0%, rgba(214, 167, 82, 0) 26%),
    linear-gradient(135deg, #07121f 0%, #0a1828 48%, #10233a 100%);
  color: var(--white);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 12vh, 9rem) var(--gutter) clamp(2.75rem, 7vh, 5rem);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}

@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

/* ---- Hero background carousel ---- */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,18,31,0.56) 0%, rgba(7,18,31,0.4) 34%, rgba(7,18,31,0.1) 62%, rgba(7,18,31,0.2) 100%),
    linear-gradient(180deg, rgba(7,18,31,0.04) 0%, rgba(7,18,31,0.1) 38%, rgba(7,18,31,0.48) 100%);
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transform: scale(1.04) translate3d(0%, 0%, 0);
  filter: brightness(0.9) saturate(0.98) contrast(1.02);
  animation: heroSlideDrift 12000ms linear infinite alternate;
  transition: opacity 900ms ease;
  will-change: opacity, transform;
}

.hero-bg-slide--active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@keyframes heroSlideDrift {
  0%   { transform: scale(1.04) translate3d(0%, 0%, 0); }
  100% { transform: scale(1.1)  translate3d(-1.6%, 1.2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide,
  .hero-bg-slide--active {
    animation: none;
    transform: none;
    transition: opacity 200ms linear;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-copy .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.hero-headline__white {
  color: #ffffff;
}

.hero h1 em {
  font-style: italic;
  color: #f5cf7a;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.hero-stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-stat-value {
  font-family: var(--font-mono);
}

.hero-stat span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-aside {
  flex-shrink: 0;
}

.hero-aside-card {
  background: linear-gradient(180deg, rgba(7, 19, 33, 0.58) 0%, rgba(7, 19, 33, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  max-width: 320px;
}

.hero-aside-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.hero-aside-copy {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}

.hero-aside-copy strong {
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: clamp(5.25rem, 10vh, 6rem) 1.25rem clamp(2.25rem, 5.5vh, 3.5rem);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    display: none;
  }

  .hero-stats {
    gap: 12px;
    padding-top: 18px;
  }

  .hero-stat strong {
    font-size: 1.8rem;
  }

  .hero-stat span {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .hero-stat {
    flex: 1 1 0;
  }

  .hero-stat strong {
    font-size: 1.9rem;
    margin-bottom: 6px;
  }

  .hero-stat span {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
    padding: clamp(5rem, 9vh, 5.5rem) 1rem clamp(2rem, 4.5vh, 2.5rem);
    border-radius: 0 0 var(--r-md) var(--r-md);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.3rem);
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
  }

  .hero-stat {
    flex: 1 1 0;
    text-align: left;
  }

  .hero-stat strong {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .hero-stat span {
    font-size: 0.65rem;
  }
}

/* ---- Trust Band ---- */
.trust-band {
  position: relative;
  z-index: 2;
  width: min(var(--max-w), calc(100% - 28px));
  margin: 1rem auto 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.97), rgba(242, 234, 218, 0.97));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.trust-band__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.trust-band__items a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 32, 53, 0.05);
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-mid);
  transition: transform 180ms, background 180ms, color 180ms;
  white-space: nowrap;
  text-decoration: none;
}

.trust-band__items a:hover {
  transform: translateY(-1px);
  background: rgba(13, 32, 53, 0.09);
  color: var(--navy);
}

.trust-band__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(13, 32, 53, 0.08);
  font-size: 0.9rem;
  line-height: 1;
}

.trust-band__badge-image {
  object-fit: contain;
  border-radius: 8px;
}

.trust-band__label {
  white-space: nowrap;
}

/* ---- Section head (aligned with Next's .section-head) ---- */
.section-head {
  margin-bottom: 3.25rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-head h2 em {
  font-style: italic;
  color: var(--navy-light);
}

.section-head--about {
  text-align: center;
}

.section-head--about h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
}

.section-head--about h2 em {
  color: var(--navy-light);
}


.section-head--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
}

.section-head--split > div {
  width: 100%;
  text-align: center;
}

.section-lead {
  font-size: 0.97rem;
  line-height: 2;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.mobile-lines .mobile-line {
  display: block;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
}

.mobile-lines--lock .mobile-line {
  white-space: nowrap;
}

/* ---- Community / About ---- */
.community-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto 0;
  padding: 0 1.5rem;
}

/* ---- Community Join ---- */
.community-join-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}

.community-join-inner {
  display: block;
}

.community-join-card {
  position: relative;
  max-width: 920px;
  min-height: 500px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.community-join-card__media,
.community-join-card__overlay {
  position: absolute;
  inset: 0;
}

.community-join-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-join-card__overlay {
  background:
    linear-gradient(180deg, rgba(13, 32, 53, 0.16) 0%, rgba(13, 32, 53, 0.28) 26%, rgba(13, 32, 53, 0.82) 100%),
    linear-gradient(90deg, rgba(21, 144, 185, 0.12) 0%, rgba(56, 193, 164, 0.14) 100%);
}

.community-join-card__layer {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 22px;
}

.community-join-card__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-mono);
    text-wrap: normal;
}

.community-join-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: min(100%, 560px);
  max-width: 560px;
  min-width: 0;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 19, 33, 0.58) 0%, rgba(7, 19, 33, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  color: #ffffff;
}

.community-join-card__text {
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.community-join-card__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  white-space: normal;
  text-wrap: normal;
}

.community-join-card__title em {
  font-style: italic;
  color: #f5ead4;
}

.community-join-card__intro-copy {
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.88;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
}

.community-join-card__content .mobile-line {
  display: block;
  overflow-wrap: anywhere;
}

/* ---- Events section ---- */
.events-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto 0;
  padding: 0 1.5rem;
}

.event-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
}

.event-category-card {
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.event-category-card--intro {
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.event-category-title {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.event-category-copy {
  max-width: 100%;
}

.event-category-copy--intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Home block cards */
.home-block-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms, box-shadow 240ms;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.home-block-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.home-block-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.home-block-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-block-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
}

.home-block-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.home-block-card__title {
  font-family: var(--font-sans-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.section-head--centered {
  text-align: center;
}

.section-lead--supporters {
  margin: 24px auto 0;
  max-width: 600px;
}

.home-block-card__excerpt {
  font-family: var(--font-sans-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-block-card__empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-block-card__cta {
  margin-top: auto;
  padding: 12px 16px 16px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* Desktop: category description row first, block cards second */
@media (min-width: 769px) {
  .event-categories-grid .event-category-card {
    order: 1;
  }

  .event-categories-grid .home-block-card {
    order: 2;
  }
}

@media (max-width: 768px) {
  .event-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Universities section ---- */
.universities-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto 0;
  padding: 0 1.5rem;
}

.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.uni-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  height: 230px;
}

.uni-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}

.uni-image-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 2rem;
}

.uni-body {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uni-name {
  font-family: var(--font-sans-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uni-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  text-align: right;
}

.uni-cta {
  text-align: center;
}

/* ---- Donation section ---- */
.donation-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto 0;
  padding: 0 1.5rem;
}

.donation-inner {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.donation-head {
  margin-bottom: 32px;
}

.donation-eyebrow {
  color: var(--gold-light);
}

.donation-head h2,
.donation-head h2 em {
  color: #ffffff;
}

.donation-head h2 em {
  color: var(--gold-light);
}

.donation-copy {
  margin-top: 16px;
}

.donation-lead {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.donation-lead--last {
  margin-bottom: 0;
}

.donation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.donation-download-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f5ead4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.donation-download-link:hover {
  color: #ffffff;
}

.donation-inquiry-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: 28px auto 0;
  padding: 0 1.5rem;
}

.donation-inquiry-collapse {
  overflow: hidden;
  transition: max-height 360ms ease, opacity 240ms ease;
  max-height: 1800px;
  opacity: 1;
}

.donation-inquiry-collapse-hidden {
  max-height: 0;
  opacity: 0;
}

.donation-inquiry-inner {
  margin: 28px auto 0;
  max-width: 1120px;
  padding: 42px 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(14, 35, 67, 0.08);
  box-shadow: 0 18px 42px rgba(14, 35, 67, 0.08);
}

.donation-inquiry-head {
  margin-bottom: 28px;
}

.donation-inquiry-lead {
  margin-top: 18px;
}

.donation-inquiry-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 26px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 242, 233, 0.94) 100%);
  border: 1px solid rgba(14, 35, 67, 0.08);
  box-shadow: 0 12px 28px rgba(14, 35, 67, 0.08);
}

.donation-inquiry-frame {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  height: 1100px;
  min-height: 1040px;
  border: none;
  display: block;
}

/* ---- Supporters section ---- */
.supporters-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto 0;
  padding: 0 1.5rem;
}

.supporter-marquee {
  padding: 26px 0;
  border-top: 1px solid rgba(13, 32, 53, 0.1);
  border-bottom: 1px solid rgba(13, 32, 53, 0.1);
  margin-bottom: 3.25rem;
}

.supporter-marquee__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.375rem;
}

.supporter-sponsor-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(200px, 28vw, 320px);
  min-height: 140px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 241, 231, 0.94) 100%);
  border: 1px solid rgba(13, 32, 53, 0.08);
  box-shadow: 0 18px 40px rgba(13, 32, 53, 0.08);
}

.supporter-sponsor-card img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.supporter-sponsor-card p {
  margin: 0.875rem 0 0;
  font-family: var(--font-sans-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
}

.supporter-sponsor-card a {
  text-decoration: none;
  color: inherit;
}

/* ---- Contact section ---- */
.contact-section {
  width: min(var(--max-w), calc(100% - 28px));
  margin: var(--section-gap) auto var(--section-gap);
  padding: 0 1.5rem;
}

.contact-inner {
  display: block;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform 300ms, box-shadow 300ms, border-color 300ms;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.contact-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-icon-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Fallback: keep hero stats styling independent from scoped CID matching. */
.hero .hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .hero-stat {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.hero .hero-stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero .hero-stat span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .donation-inner {
    padding: 40px 18px;
  }

  .donation-head h2.mobile-lines {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .donation-head h2.mobile-lines .mobile-line {
    white-space: nowrap;
  }

  .donation-head .section-lead {
    max-width: 100%;
  }

  .donation-head .donation-message-lines .mobile-line {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .donation-head .donation-message-lines {
    font-size: clamp(0.72rem, 3vw, 0.86rem);
    line-height: 1.75;
    letter-spacing: -0.01em;
  }

  .donation-inquiry-section {
    width: 100%;
  }

  .donation-inquiry-inner {
    padding: 22px 14px;
  }

  .donation-inquiry-card {
    width: 100%;
    padding: 12px 10px;
    border-radius: 16px;
  }

}

@media (max-width: 768px) {
  .hero .hero-stats {
    gap: 12px;
    padding-top: 18px;
  }

  .hero .hero-stat strong {
    font-size: 1.8rem;
  }

  .hero .hero-stat span {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .hero .hero-stats {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .hero .hero-stat {
    flex: 1 1 0;
  }

  .hero .hero-stat strong {
    font-size: 1.9rem;
    margin-bottom: 6px;
  }

  .hero .hero-stat span {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 960px) {
  .trust-band,
  .community-section,
  .community-join-section,
  .events-section,
  .universities-section,
  .donation-section,
  .donation-inquiry-section,
  .supporters-section,
  .contact-section {
    width: min(var(--max-w), calc(100% - 32px));
    padding-left: 0;
    padding-right: 0;
  }

  .community-join-card {
    min-height: 460px;
  }

  .community-join-card__content {
    width: min(100%, 680px);
    max-width: 680px;
  }

  .uni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .supporter-sponsor-card {
    width: min(100%, 320px);
  }
}

@media (max-width: 768px) {
  .trust-band {
    margin-top: 0.75rem;
    padding: 14px 12px;
  }

  .trust-band__items {
    gap: 0.4rem;
  }

  .trust-band__items a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .community-section,
  .community-join-section,
  .events-section,
  .universities-section,
  .supporters-section,
  .contact-section,
  .donation-section,
  .donation-inquiry-section {
    width: calc(100% - 24px);
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .section-head h2 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .section-lead {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .community-join-card {
    min-height: 420px;
    border-radius: var(--r-lg);
  }

  .community-join-card__layer {
    padding: 14px;
  }

  .community-join-card__content {
    width: 100%;
    max-width: none;
    padding: 18px 16px;
    gap: 10px;
    border-radius: 16px;
  }

  .community-join-card__title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.2;
  }

  .community-join-card__intro-copy {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .uni-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .uni-body {
    padding: 0.85rem 0.95rem;
  }

  .donation-head {
    margin-bottom: 24px;
  }

  .donation-inquiry-head {
    margin-bottom: 20px;
  }

  .supporter-marquee {
    padding: 14px 0;
    margin-bottom: 2.2rem;
  }

  .supporter-marquee__group {
    gap: 0.9rem;
  }

  .supporter-sponsor-card {
    width: 100%;
    min-height: 120px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .supporter-sponsor-card img {
    height: 56px;
  }

  .supporter-sponsor-card p {
    margin-top: 0.6rem;
    font-size: 0.82rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.5rem;
  }

  .contact-card {
    padding: 1.25rem 1rem;
  }

  .contact-icon {
    font-size: 1.9rem;
    margin-bottom: 0.7rem;
  }

  .contact-card h3 {
    font-size: 1rem;
  }

  .contact-card p {
    font-size: 0.86rem;
  }
}

@media (max-width: 480px) {
  .trust-band__items a {
    font-size: 0.76rem;
  }

  .community-join-card {
    min-height: 390px;
  }

  .community-join-card__title {
    font-size: clamp(1.35rem, 7.2vw, 1.8rem);
  }

  .community-join-card__intro-copy {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .donation-inner {
    padding: 30px 14px;
  }

  .donation-inquiry-inner {
    padding: 16px 10px;
  }

  .donation-inquiry-card {
    padding: 8px;
    border-radius: 14px;
  }

}
