:root {
  --ink: #17211c;
  --muted: #5d6a62;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dfe5dc;
  --green: #0f7c4a;
  --green-deep: #075a36;
  --gold: #d6a238;
  --red: #b53a2f;
  --blue: #315e8a;
  --shadow: 0 22px 60px rgba(17, 31, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(251, 250, 245, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 174px;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(7, 90, 54, 0.18);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 45, 30, 0.12);
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 20px);
  color: #2d3a33;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--green);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solid-button,
.ghost-button,
.glass-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.solid-button {
  color: white;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(15, 124, 74, 0.22);
}

.solid-button:hover,
.ghost-button:hover,
.glass-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  border-color: var(--line);
  color: var(--green-deep);
  background: white;
}

.glass-button {
  border-color: rgba(255, 255, 255, 0.62);
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.danger-button {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(181, 58, 47, 0.18);
}

.large {
  min-height: 50px;
  padding-inline: 24px;
}

.full-width {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-anchor {
  scroll-margin-top: 82px;
}

.page-hero {
  display: grid;
  min-height: 54vh;
  padding: 140px clamp(18px, 4vw, 56px) 86px;
  align-items: end;
  color: white;
  background:
    linear-gradient(90deg, rgba(7, 45, 30, 0.88), rgba(7, 45, 30, 0.42)),
    url("assets/images/magasf-hero-campus.jpg") center / cover;
}

.page-hero > div {
  width: min(900px, 100%);
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

.about-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 45, 30, 0.88), rgba(7, 45, 30, 0.34)),
    url("assets/images/magasf-mentor-library.jpg") center / cover;
}

.scholarship-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 45, 30, 0.88), rgba(7, 45, 30, 0.34)),
    url("assets/images/magasf-lecture-hall.jpg") center / cover;
}

.impact-page-hero,
.donate-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 45, 30, 0.88), rgba(7, 45, 30, 0.34)),
    url("assets/images/magasf-testimonial-mentor.jpg") center / cover;
}

.contact-page-hero {
  min-height: 42vh;
}

.hero {
  position: relative;
  display: flex;
  min-height: 72vh;
  align-items: end;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(rgba(7, 45, 30, 0.16), rgba(7, 45, 30, 0.72)),
    url("assets/images/magasf-campus-books.jpg") center 42% / cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  content: "";
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 20%, rgba(214, 162, 56, 0.32), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(830px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 140px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd575;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero p {
  max-width: 700px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.quick-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -72px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-panel article {
  padding: 26px;
  background: white;
}

.quick-panel strong,
.quick-panel span {
  display: block;
}

.quick-panel strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.quick-panel span {
  color: var(--muted);
}

.content-section,
.process-section,
.form-section,
.donation-section,
.values-band {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.compact {
  margin-bottom: 28px;
}

.split-layout,
.scholarship-layout,
.form-section,
.donation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  width: min(1120px, 100%);
  margin-inline: auto;
  align-items: start;
}

.story-block,
.mission-grid article,
.scholarship-card,
.eligibility-panel,
.app-form,
.contact-grid article,
.contact-form,
.people-grid article,
.story-card-grid article,
.news-grid article,
.document-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 36px rgba(23, 33, 28, 0.07);
}

.story-block {
  padding: clamp(26px, 4vw, 44px);
}

.inline-image-placeholder {
  display: grid;
  min-height: 220px;
  margin-bottom: 24px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 124, 74, 0.72), rgba(49, 94, 138, 0.38)),
    url("assets/images/magasf-mentor-library.jpg")
      center / cover;
  font-weight: 900;
}

.inline-image-placeholder span,
.story-photo span {
  display: none;
}

.story-block p,
.scholarship-card p,
.eligibility-panel,
.form-copy p,
.donation-content p,
.people-grid p,
.story-card-grid p,
.news-grid p {
  color: var(--muted);
}

.mission-grid {
  display: grid;
  gap: 16px;
}

.mission-grid article {
  padding: 24px;
}

.mission-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 900;
}

.values-band {
  background: #f1f5ed;
}

.value-grid,
.feature-grid,
.steps,
.contact-grid,
.people-grid,
.story-card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 36px rgba(23, 33, 28, 0.07);
}

.feature-card p {
  color: var(--muted);
}

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.home-updates-section {
  background: #f7faf6;
}

.image-band {
  display: grid;
  min-height: 460px;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 56px);
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.88), rgba(23, 33, 28, 0.32)),
    url("assets/images/magasf-lecture-hall.jpg") center / cover;
}

.image-band-copy {
  width: min(620px, 100%);
}

.image-band-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.value-grid article,
.steps article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(15, 124, 74, 0.16);
  border-radius: 8px;
  background: white;
}

.value-grid p,
.steps p {
  color: var(--muted);
}

.people-section,
.stories-section,
.news-section {
  padding: clamp(70px, 10vw, 110px) clamp(18px, 4vw, 56px);
}

.people-grid article,
.news-grid article {
  padding: 24px;
}

.news-grid.has-featured-announcement {
  align-items: stretch;
}

.news-grid .announcement-banner-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  min-height: 250px;
  overflow: hidden;
  border: 0;
  color: white;
  background:
    linear-gradient(110deg, rgba(7, 90, 54, 0.96), rgba(9, 53, 43, 0.86) 58%, rgba(211, 153, 31, 0.88)),
    url("assets/images/magasf-lecture-hall.jpg") center / cover;
  box-shadow: 0 24px 56px rgba(7, 90, 54, 0.2);
}

.news-grid .announcement-banner-copy {
  max-width: 760px;
}

.news-grid .announcement-chip {
  display: inline-flex;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  color: #17211c;
  background: #ffd979;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-grid .announcement-banner-card h3 {
  max-width: 820px;
  margin-bottom: 12px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.news-grid .announcement-banner-card p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.news-grid .announcement-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.news-grid .announcement-meta-line span {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-grid .announcement-countdown {
  display: grid;
  min-width: 172px;
  min-height: 172px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.news-grid .announcement-countdown strong {
  color: white;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.9;
}

.news-grid .announcement-countdown span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  text-transform: uppercase;
}

.news-grid .announcement-mini-card small {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-deep);
  font-weight: 900;
}

.announcement-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portrait-placeholder,
.news-icon,
.document-grid span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.portrait-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(15, 124, 74, 0.86), rgba(214, 162, 56, 0.76)),
    url("https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=500&q=80")
      center / cover;
}

.partners-band {
  padding: 48px clamp(18px, 4vw, 56px);
  background: #17211c;
  color: white;
}

.partners-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
}

.partners-inner h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.logo-grid span {
  display: grid;
  min-height: 88px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.scholarship-card {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 38px);
}

.scholarship-image {
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(10, 38, 26, 0.08), rgba(10, 38, 26, 0.34)),
    url("assets/images/magasf-computer-lab.jpg") center / cover;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5c3d00;
  background: #ffe7ad;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.soft {
  color: var(--green-deep);
  background: #dceee4;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.eligibility-panel {
  padding: 26px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 7px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.process-section {
  background: white;
}

.steps article span {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 900;
}

.document-panel {
  display: grid;
  gap: 22px;
  width: min(1120px, 100%);
  margin: 28px auto 0;
  padding: clamp(22px, 4vw, 34px);
}

.document-panel h3 {
  margin-bottom: 0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.document-grid article {
  min-height: 128px;
  padding: 14px;
  border: 1px dashed #cad5cc;
  border-radius: 8px;
  background: #f9fbf7;
}

.document-grid span {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  background: var(--blue);
}

.document-grid strong {
  display: block;
  font-size: 0.86rem;
}

.story-card-grid article {
  overflow: hidden;
}

.story-photo {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: white;
  background:
    linear-gradient(rgba(10, 38, 26, 0.12), rgba(10, 38, 26, 0.45)),
    url("assets/images/magasf-computer-lab.jpg")
      center / cover;
  font-weight: 900;
}

.story-photo-two {
  background:
    linear-gradient(rgba(10, 38, 26, 0.12), rgba(10, 38, 26, 0.45)),
    url("assets/images/magasf-mentor-library.jpg")
      center / cover;
}

.story-photo-three {
  background:
    linear-gradient(rgba(10, 38, 26, 0.12), rgba(10, 38, 26, 0.45)),
    url("assets/images/magasf-community-mentorship.jpg")
      center / cover;
}

.story-card-grid article div:last-child {
  padding: 22px;
}

.form-section {
  align-items: center;
}

.form-section.alternate {
  background: #f3f7f0;
}

.form-copy {
  max-width: 510px;
}

.app-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.compact-form {
  max-width: 520px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cad5cc;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 124, 74, 0.13);
}

.form-attempted input:invalid,
.form-attempted select:invalid,
.form-attempted textarea:invalid {
  border-color: var(--red);
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(181, 58, 47, 0.12);
}

label.required-field::after {
  width: fit-content;
  margin-top: -2px;
  color: var(--red);
  content: "Required";
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

textarea {
  min-height: 140px;
  padding: 12px 13px;
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green-deep);
  font-weight: 800;
}

.text-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(251, 250, 245, 0.92), rgba(241, 245, 237, 0.86)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=80")
      center / cover fixed;
}

.admin-auth {
  background:
    linear-gradient(120deg, rgba(16, 36, 27, 0.9), rgba(16, 36, 27, 0.68)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80")
      center / cover fixed;
}

.auth-header {
  position: relative;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: clamp(38px, 7vw, 86px) clamp(18px, 4vw, 56px);
  place-items: center;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 60px);
  width: min(1040px, 100%);
  align-items: center;
}

.auth-panel-wide {
  width: min(1120px, 100%);
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
}

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

.auth-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.auth-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.admin-auth .auth-copy h1,
.admin-auth .auth-copy p {
  color: white;
}

.auth-form {
  background: rgba(255, 255, 255, 0.96);
}

.auth-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  color: var(--muted);
  list-style: none;
}

.auth-list li {
  position: relative;
  padding-left: 24px;
}

.auth-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.auth-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.check-field {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.check-field input {
  width: 16px;
  min-height: 16px;
}

.donation-section {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.88), rgba(23, 33, 28, 0.44)),
    url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=80")
      center / cover;
  color: white;
}

.donation-content {
  width: min(620px, 100%);
}

.donation-content p {
  color: rgba(255, 255, 255, 0.84);
}

.donation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.donation-options button {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

.donation-options button:hover,
.donation-options button.selected {
  border-color: var(--gold);
  background: rgba(214, 162, 56, 0.34);
}

.news-section {
  background: #f1f5ed;
}

.news-icon {
  background: var(--red);
}

.contact-grid article {
  padding: 24px;
}

.contact-grid p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 24px auto 0;
  padding: clamp(22px, 4vw, 34px);
}

.dashboard-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3ec;
}

.admin-dashboard-body {
  background: #eef1f4;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: white;
}

.dashboard-brand {
  min-width: 0;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: var(--green-deep);
  background: #e7f2eb;
}

.dashboard-sidebar .ghost-button {
  margin-top: auto;
}

.dashboard-main {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 46px);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.dashboard-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.dashboard-section {
  scroll-margin-top: 24px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dashboard-stat-grid article,
.dashboard-card,
.program-card,
.admin-action-grid article,
.upload-list article,
.notice-list article,
.review-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 36px rgba(23, 33, 28, 0.07);
}

.dashboard-stat-grid article {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 20px;
}

.dashboard-stat-grid span,
.muted-copy,
.timeline-list p,
.notice-list p,
.admin-action-grid p,
.program-card p,
.review-detail-grid span,
.review-side-panel p,
.eligibility-review-grid p {
  color: var(--muted);
}

.dashboard-stat-grid strong {
  font-size: 1.55rem;
}

.dashboard-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 32px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.card-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.timeline-list article > span {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.timeline-list h3,
.timeline-list p,
.notice-list p,
.admin-action-grid p,
.program-card p {
  margin-bottom: 0;
}

.dashboard-form {
  display: grid;
  gap: 16px;
}

.application-form {
  display: grid;
  gap: 24px;
}

.application-form .dashboard-card {
  gap: 18px;
}

.declaration-check {
  align-items: start;
  color: var(--ink);
}

.declaration-check input {
  margin-top: 4px;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-body {
  min-height: 100vh;
  background: #f3f6fa;
}

.application-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: white;
}

.application-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.application-shell {
  padding: clamp(18px, 3vw, 34px);
}

.application-alert {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #f0bb32;
  border-radius: 8px;
  color: #5f5330;
  background: #fff3c8;
}

.application-alert.small {
  margin-bottom: 22px;
}

.application-alert span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #8b4c00;
  background: #ffdd8c;
  font-weight: 900;
}

.application-alert p {
  margin: 0;
  font-size: 0.92rem;
}

.application-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.application-stepper {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 14px 22px 22px 0;
  border-right: 1px solid #8b918d;
}

.application-stepper a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.application-stepper strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #e9e9ec;
  font-size: 0.9rem;
}

.application-stepper a.active strong,
.application-stepper a:hover strong {
  color: #63003f;
  background: #e3c8d8;
}

.application-stepper span {
  display: grid;
  color: #26342e;
  font-size: 0.93rem;
  font-weight: 800;
}

.application-stepper small {
  color: #9a6500;
  font-weight: 900;
}

.qualification-button {
  width: fit-content;
  margin-top: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #f1a333;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: left;
}

.qualification-button small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
}

.application-workspace {
  display: grid;
  gap: 28px;
}


.application-stage {
  display: grid;
  gap: 22px;
  scroll-margin-top: 22px;
}

.application-stage[hidden] {
  display: none;
}

.application-stage-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #cfdcd6;
  border-radius: 8px;
  background: linear-gradient(110deg, #ffffff, #eff8f3);
}

.application-stage-heading h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.application-stage-heading p {
  margin: 0;
  max-width: 760px;
  color: #466158;
}

.application-help-card {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #cfdcd6;
  border-radius: 8px;
  background: #f5faf7;
}

.application-help-card strong,
.application-help-card small {
  display: block;
}

.application-help-card strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.application-help-card small {
  margin-top: 5px;
  color: #56665f;
  line-height: 1.45;
}
.application-section-panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d6dce2;
  border-radius: 4px;
  background: white;
  scroll-margin-top: 22px;
}

.application-section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dce2e7;
}

.application-section-heading h1,
.application-section-heading h2 {
  margin-bottom: 2px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.application-section-heading p {
  margin: 0;
  color: #415a7a;
  font-size: 0.9rem;
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #720045;
  font-size: 0.8rem;
  font-weight: 900;
}

.form-fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0 0 22px;
  padding: 22px 18px;
  border: 1px solid #ccd4dc;
  border-radius: 4px;
}

.form-fieldset.soft {
  background: #f8fafc;
}

.form-fieldset legend {
  padding: 0 8px;
  color: #720045;
  font-size: 0.92rem;
  font-weight: 900;
}

.form-grid-2,
.form-grid-3,
.form-grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.section-actions .solid-button,
.application-actions .solid-button,
.application-actions .ghost-button {
  background: #720045;
  box-shadow: none;
}

.application-actions .ghost-button {
  border-color: #720045;
  color: #720045;
  background: white;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}

.program-choice-table {
  display: grid;
  gap: 10px;
}

.subject-grade-list {
  display: grid;
  gap: 12px;
}

.subject-row {
  padding-top: 12px;
  border-top: 1px dashed #ccd4dc;
}

.program-choice-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  gap: 10px;
  align-items: center;
}

.program-choice-row.header {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.mini-button {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #3c73ff;
  border-radius: 4px;
  color: #2f60dc;
  background: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.attachment-grid input[type="file"] {
  padding: 9px;
  background: #f4f4f4;
}

.confirmation-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #ccd4dc;
  border-radius: 4px;
  background: #f8fafc;
}

.upload-list,
.notice-list,
.admin-action-grid {
  display: grid;
  gap: 12px;
}

.management-list {
  display: grid;
  gap: 12px;
}

.admin-management-form {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.upload-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.upload-list button {
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-deep);
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.notice-list article,
.admin-action-grid article,
.program-card {
  padding: 18px;
}

.management-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.management-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #edf7f1;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.table-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #5c3d00;
  background: #ffe7ad;
  font-size: 0.78rem;
  font-weight: 900;
}

.table-action {
  color: var(--green-deep);
  font-weight: 900;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 18px;
}

.review-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-detail-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.review-detail-grid strong {
  font-size: 1.02rem;
}

.review-side-panel {
  align-content: start;
}

.review-score {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: var(--green);
}

.review-score strong {
  font-size: 2rem;
}

.eligibility-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.eligibility-review-grid article {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.eligibility-review-grid article > span {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green);
}

.eligibility-review-grid article > span::after {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.document-review-list {
  display: grid;
  gap: 10px;
}

.document-review-list article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.document-review-list span {
  color: var(--green-deep);
  font-weight: 900;
}

.document-review-list button {
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-deep);
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-rule-grid,
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.document-rule-grid article,
.payment-method-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.document-rule-grid strong,
.document-rule-grid span,
.payment-method-card span,
.payment-method-card small {
  display: block;
}

.document-rule-grid span,
.payment-method-card small {
  color: var(--muted);
}

.document-upload-form {
  display: grid;
  gap: 12px;
}

.document-upload-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.85fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.document-upload-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.document-upload-item input[type="file"] {
  padding: 9px;
  background: white;
}

.upload-status {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5c3d00;
  background: #ffe7ad;
  font-size: 0.78rem;
  font-weight: 900;
}

.upload-status.uploaded {
  color: var(--green-deep);
  background: #dceee4;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(320px, 1fr);
  gap: 18px;
}

.payment-breakdown {
  display: grid;
  gap: 12px;
}

.payment-breakdown div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.payment-method-card {
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.payment-method-card input {
  width: 18px;
  min-height: 18px;
}

.payment-method-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 124, 74, 0.1);
}

.site-footer {
  color: white;
  background: #0c1712;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(160px, 0.62fr));
  gap: clamp(24px, 4vw, 54px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 40px;
}

.footer-logo {
  width: fit-content;
  margin-bottom: 18px;
  color: white;
}

.footer-brand p,
.footer-contact p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
  max-width: 420px;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin: 0;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
  }

  .site-header.nav-open .site-nav {
    flex-direction: column;
    gap: 4px;
  }

  .quick-panel,
  .split-layout,
  .scholarship-layout,
  .form-section,
  .donation-section,
  .auth-panel,
  .auth-panel-wide {
    grid-template-columns: 1fr;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
  }

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

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

  .review-layout,
  .review-detail-grid,
  .eligibility-review-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .application-stepper {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid #d6dce2;
    padding: 0 0 20px;
  }

  .form-grid-3,
  .form-grid-4,
  .program-choice-row,
  .attachment-grid,
  .document-rule-grid,
  .payment-method-grid,
  .document-upload-item {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid,
  .steps,
  .contact-grid,
  .people-grid,
  .story-card-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partners-inner,
  .document-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 78vh;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 118px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .quick-panel,
  .value-grid,
    .steps,
    .field-row,
    .contact-grid,
    .donation-options,
    .people-grid,
    .story-card-grid,
    .news-grid,
    .partners-inner,
    .logo-grid,
    .document-grid,
    .dashboard-stat-grid,
    .admin-action-grid,
    .document-review-list article,
    .application-stepper,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .program-choice-row,
    .attachment-grid,
    .document-rule-grid,
    .payment-method-grid,
    .document-upload-item {
    grid-template-columns: 1fr;
  }

  .upload-status {
    justify-self: start;
  }

  .application-topbar,
  .application-topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .form-row-between {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-topbar,
  .card-header,
  .upload-list article {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Vibrant MAGASF imagery additions */
.visual-story-section,
.campus-gallery-section,
.testimonial-section,
.donor-impact-visual {
  padding: clamp(58px, 8vw, 105px) clamp(18px, 4vw, 56px);
}

.visual-story-grid,
.campus-gallery-grid,
.testimonial-grid,
.scholarship-journey-band,
.donor-impact-visual {
  display: grid;
  gap: 18px;
}

.visual-story-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-story-card,
.gallery-frame,
.journey-image,
.donor-impact-photo,
.testimonial-photo {
  min-height: 270px;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 42px rgba(8, 26, 18, 0.14);
}

.visual-story-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 360px;
  padding: 22px;
  color: white;
}

.visual-story-card::before,
.gallery-frame::before,
.journey-image::before,
.donor-impact-photo::before,
.testimonial-photo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 45, 30, 0.04), rgba(7, 45, 30, 0.56));
}

.visual-story-card span {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  border-radius: 999px;
  color: #123325;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.visual-campus-books {
  background-image: url("assets/images/magasf-campus-books.jpg");
}

.visual-lecture {
  background-image: url("assets/images/magasf-lecture-hall.jpg");
}

.visual-mentor {
  background-image: url("assets/images/magasf-testimonial-mentor.jpg");
}

.campus-gallery-section {
  background: #f6fbf7;
}

.campus-gallery-grid {
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
}

.gallery-frame-large {
  grid-row: span 2;
  min-height: 520px;
}

.scholarship-journey-band {
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  align-items: center;
  margin: 34px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f1f7f2);
}

.journey-copy p:not(.eyebrow),
.donor-impact-copy p,
.testimonial-card span {
  color: var(--muted);
}

.donor-impact-visual {
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  background: #fff9e8;
}

.donor-impact-photo {
  min-height: 430px;
}

.testimonial-section {
  background: linear-gradient(135deg, #f8fbf6, #fff6df);
}

.testimonial-card {
  overflow: hidden;
  border: 1px solid rgba(20, 74, 48, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(8, 26, 18, 0.08);
}

.testimonial-photo {
  min-height: 240px;
  border-radius: 0;
  box-shadow: none;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 24px 24px 16px;
  color: #12251b;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.testimonial-card div:last-child {
  display: grid;
  gap: 3px;
  padding: 0 24px 24px;
}

.featured-testimonial {
  transform: translateY(-16px);
  border-color: rgba(214, 162, 56, 0.42);
}

.testimonial-photo-one,
.story-photo-one {
  background-image: linear-gradient(rgba(10, 38, 26, 0.08), rgba(10, 38, 26, 0.45)), url("assets/images/magasf-campus-books.jpg");
}

.testimonial-photo-two,
.story-photo-two {
  background-image: linear-gradient(rgba(10, 38, 26, 0.08), rgba(10, 38, 26, 0.45)), url("assets/images/magasf-testimonial-mentor.jpg");
}

.testimonial-photo-three,
.story-photo-three {
  background-image: linear-gradient(rgba(10, 38, 26, 0.08), rgba(10, 38, 26, 0.45)), url("assets/images/magasf-lecture-hall.jpg");
}

@media (max-width: 900px) {
  .visual-story-grid,
  .testimonial-grid,
  .scholarship-journey-band,
  .donor-impact-visual,
  .campus-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-frame-large {
    grid-row: auto;
    min-height: 340px;
  }

  .featured-testimonial {
    transform: none;
  }
}


/* Production usability refinements */
.application-guide-note,
.field-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.application-guide-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #fff8e3;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

.application-stepper a.complete strong {
  color: white;
  background: var(--green);
}

.application-stepper a.complete small {
  color: var(--green-deep);
}

.application-stepper a.missing strong {
  color: white;
  background: var(--red);
}

.application-stepper a.missing small {
  color: var(--red);
}


.application-stepper a.unsaved strong {
  color: #1b251f;
  background: var(--gold);
}

.application-stepper a.unsaved small {
  color: #9a6500;
}

.section-save-hint {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 157, 31, 0.45);
  border-radius: 8px;
  color: #6e4b00;
  background: #fff8df;
  font-size: 0.88rem;
  font-weight: 800;
}

.section-save-hint[hidden] {
  display: none;
}

.section-actions .solid-button.needs-save {
  box-shadow: 0 0 0 4px rgba(216, 157, 31, 0.18), 0 12px 26px rgba(0, 88, 52, 0.18);
}

.file-input-actions.file-input-missing {
  border-color: rgba(181, 58, 47, 0.8);
  background: #fff4f2;
  box-shadow: 0 0 0 4px rgba(181, 58, 47, 0.12);
}

.field-missing > span,
.field-missing strong {
  color: var(--red);
}

.field-missing::after {
  content: "Required document missing";
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8c1f19;
  background: #ffe6e2;
  font-size: 0.78rem;
  font-weight: 900;
}
.application-section-panel.section-attempted:has(:invalid) {
  border-color: rgba(181, 58, 47, 0.45);
  box-shadow: 0 0 0 4px rgba(181, 58, 47, 0.08);
}

.document-review-list.empty article,
.empty-document-state {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px;
  border-style: dashed;
  background: #fffaf0;
}

.empty-document-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.document-review-item.verified span {
  color: var(--green);
}

.document-review-item.rejected span,
.document-review-item.update-failed span {
  color: var(--red);
}

.document-review-list button:disabled,
[data-download-all-documents]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.logo-full-asset {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.hero-logo {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(4, 19, 12, 0.22);
}

.footer-logo .brand-mark {
  background: #ffffff;
}

/* Sponsor inquiry and honor pledge */
.sponsor-inquiry-section,
.honor-pledge-section {
  padding: clamp(58px, 8vw, 105px) clamp(18px, 4vw, 56px);
}

.sponsor-inquiry-section {
  background: linear-gradient(135deg, #f7fbf6, #fff8e4);
}

.privacy-guarantee-box {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(15, 124, 74, 0.18);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(8, 26, 18, 0.08);
}

.privacy-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.privacy-guarantee-box h2,
.sponsor-inquiry-form h2 {
  margin-top: 0;
}

.privacy-guarantee-box p:not(.eyebrow),
.sponsor-inquiry-form p:not(.eyebrow) {
  color: var(--muted);
}

.sponsor-inquiry-form {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(8, 26, 18, 0.08);
}

.sponsor-options {
  align-content: start;
}

.honor-pledge-section {
  background: #0c1712;
  color: white;
}

.honor-pledge-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.honor-pledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.honor-pledge-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.honor-pledge-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #10231a;
  background: var(--gold);
  font-weight: 900;
}

.honor-pledge-grid p {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .honor-pledge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .privacy-guarantee-box {
    grid-template-columns: 1fr;
  }
}

.dashboard-note {
  color: var(--muted);
  font-weight: 700;
}

.sponsor-inquiry-admin-card .management-meta {
  align-items: start;
}

.nav-alert-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-size: 0.74rem;
  font-weight: 900;
}

.dashboard-nav a.has-unread-notifications {
  color: #7a0610;
  background: #fff0d7;
  box-shadow: inset 4px 0 0 #d49a23;
}

.notification-alert {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #d49a23;
  border-radius: 8px;
  color: #332400;
  background: #fff3c8;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(126, 82, 0, 0.1);
}

.notification-alert[hidden] {
  display: none;
}

.notification-alert > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-weight: 900;
}

.notification-alert strong,
.notification-alert p {
  margin: 0;
}

.notification-alert p {
  margin-top: 2px;
  color: #5f5330;
}

#notifications.has-unread-notifications {
  border-color: #d49a23;
  box-shadow: 0 0 0 4px rgba(212, 154, 35, 0.16), var(--shadow);
}

.notification-item {
  position: relative;
}

.notification-item.is-unread {
  border-color: #d49a23;
  background: #fffaf0;
  box-shadow: inset 5px 0 0 #d49a23;
}

.notification-item.is-unread strong {
  color: #003d26;
}

.notification-item.is-read {
  opacity: 0.76;
}

.notification-state {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-item.is-read .notification-state {
  color: #5f6f68;
  background: #e7ece9;
}

.notification-item small {
  display: block;
  margin-top: 10px;
  color: #66756e;
  font-weight: 700;
}
.student-dashboard-overview {
  display: grid;
  gap: 20px;
}

.student-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.student-application-card,
.next-action-card,
.application-flow-card {
  border-color: #cfdcd6;
}

.student-application-card .card-header {
  align-items: flex-start;
}

.application-meta-grid,
.student-status-grid,
.student-dashboard-grid {
  display: grid;
  gap: 12px;
}

.application-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.application-meta-grid div,
.student-status-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: #f8fbf9;
}

.application-meta-grid span,
.student-status-grid span {
  display: block;
  margin-bottom: 7px;
  color: #62746c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-meta-grid strong,
.student-status-grid strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.student-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-status-grid article {
  background: #ffffff;
}

.next-action-card {
  align-content: start;
  background: linear-gradient(145deg, #ffffff, #eff8f3);
}

.next-action-card h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.next-action-card p:not(.eyebrow) {
  color: #4f625a;
}

.my-application-panel,
.student-payment-panel {
  overflow: hidden;
}

.my-application-summary,
.student-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.student-payment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-application-summary article,
.student-payment-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fbf9);
}

.my-application-summary span,
.student-payment-grid span {
  display: block;
  margin-bottom: 8px;
  color: #62746c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-application-summary strong,
.student-payment-grid strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.my-application-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: #f7fbf6;
}

.payment-amount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #1d2b23;
  background: #ffe3a0;
  font-weight: 900;
}

.student-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-dashboard-card {
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
}

.compact-dashboard-card h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 1.1rem;
}

.compact-dashboard-card p {
  margin: 0;
  color: #607269;
}

.student-progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.student-progress-track::before,
.student-progress-track::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 7%;
  height: 4px;
  border-radius: 999px;
}

.student-progress-track::before {
  right: 7%;
  background: #dce6e1;
}

.student-progress-track::after {
  width: var(--progress-fill, 0%);
  max-width: 86%;
  background: linear-gradient(90deg, #14834f, var(--gold));
  box-shadow: 0 8px 18px rgba(20, 131, 79, 0.18);
}

.student-progress-track article {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 174px;
  padding: 18px;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 35, 27, 0.06);
}

.student-progress-track article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #cbd8d1;
  box-shadow: 0 0 0 1px #cbd8d1;
}

.student-progress-track h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.student-progress-track p {
  margin: 0;
  color: #53685f;
  font-size: 0.94rem;
  line-height: 1.5;
}

.student-progress-track article.complete {
  border-color: rgba(20, 131, 79, 0.28);
  background: linear-gradient(180deg, #ffffff, #f3fbf6);
}

.student-progress-track article.complete > span {
  background: #14834f;
  box-shadow: 0 0 0 1px #14834f, 0 8px 18px rgba(20, 131, 79, 0.22);
}

.student-progress-track article.complete > span::after {
  content: "";
  width: 8px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.student-progress-track article.current {
  border-color: rgba(212, 154, 35, 0.55);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: 0 16px 34px rgba(212, 154, 35, 0.13);
}

.student-progress-track article.current > span {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px rgba(212, 154, 35, 0.16);
}

.student-progress-track article.current > span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1b251f;
}

.student-progress-track article.pending {
  background: #fff;
}


@media (max-width: 760px) {
  .student-progress-track {
    grid-template-columns: 1fr;
  }

  .student-progress-track::before,
  .student-progress-track::after {
    top: 24px;
    bottom: 24px;
    left: 35px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .student-progress-track::after {
    height: var(--progress-fill, 0%);
    max-height: calc(100% - 48px);
  }

  .student-progress-track article {
    min-height: auto;
    grid-template-columns: 46px 1fr;
    align-items: start;
  }
}
@media (max-width: 980px) {
  .student-command-grid,
  .student-dashboard-grid,
  .application-meta-grid,
  .student-status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .student-command-grid,
  .student-dashboard-grid,
  .application-meta-grid,
  .student-status-grid,
  .my-application-summary,
  .student-payment-grid,
  .my-application-action-row,
  .compact-dashboard-card {
    grid-template-columns: 1fr;
  }
}
.student-profile-card {
  gap: 20px;
}

.profile-summary-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: linear-gradient(110deg, #ffffff, #f2faf6);
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #075a36;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-summary-head h3,
.profile-summary-head p {
  margin: 0;
}

.profile-summary-head h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.profile-summary-head p {
  margin-top: 3px;
  color: #607269;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-detail-grid div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: #fff;
}

.profile-detail-grid span {
  display: block;
  margin-bottom: 7px;
  color: #62746c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-detail-grid strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-note-box {
  padding: 16px;
  border: 1px solid #cfdcd6;
  border-radius: 8px;
  background: #f8fbf9;
}

.profile-note-box strong,
.profile-note-box p {
  margin: 0;
}

.profile-note-box strong {
  color: var(--ink);
}

.profile-note-box p {
  margin-top: 5px;
  color: #607269;
}

@media (max-width: 980px) {
  .profile-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .profile-summary-head,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.payment-lock-notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-color: #d49a23;
  background: #fff8e6;
}

.payment-lock-notice[hidden] {
  display: none;
}

.payment-lock-notice h2,
.payment-lock-notice p {
  margin: 0;
}

.payment-lock-notice p:not(.eyebrow) {
  margin-top: 5px;
  color: #5f5330;
}

.payment-form-locked {
  opacity: 0.65;
}

.payment-form-locked input,
.payment-form-locked button {
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .payment-lock-notice {
    align-items: stretch;
    flex-direction: column;
  }
}
.application-inline-select {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin: 0 0 18px;
}

.form-fieldset[hidden],
[data-alternative-qualification][hidden],
[data-alevel-fields][hidden] {
  display: none;
}

.result-upload-card,
.dashboard-document-grid article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  background: #fbfdfb;
}

.result-upload-card p,
.dashboard-document-grid span {
  margin: 4px 0 0;
  color: var(--muted);
}

.result-upload-card input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  background: white;
}

.document-proof-panel {
  border-color: #b8d2c4;
  background: #f7fbf8;
}

.optional-text {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dashboard-document-grid article {
  grid-template-columns: 1fr auto;
}

.dashboard-document-grid strong {
  color: var(--green-deep);
}

.dashboard-document-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dashboard-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.dashboard-document-actions .mini-button {
  min-height: 36px;
}

@media (max-width: 720px) {
  .result-upload-card,
  .dashboard-document-grid,
  .dashboard-document-grid article {
    grid-template-columns: 1fr;
  }
}
.file-input-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.danger-button {
  color: #9f241f;
  border-color: #efc7c4;
  background: #fff7f6;
}

.locked-note {
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .file-input-actions {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .section-actions,
  .application-actions {
    justify-content: stretch;
  }

  .file-input-actions > *,
  .section-actions > *,
  .application-actions > * {
    width: 100%;
  }
}
.payment-method-grid-clean {
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, 0.85fr);
  gap: 16px;
}

.payment-method-card-featured {
  min-height: 168px;
}

.payment-brand-strip {
  width: min(300px, 100%);
  height: 116px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.payment-detail-row {
  align-items: start;
}

.phone-prefix-field {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.phone-prefix-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 124, 74, 0.1);
}

.phone-prefix-field span {
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: #eaf4ee;
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.phone-prefix-field input {
  border: 0;
  border-radius: 0;
  min-height: 56px;
}

.phone-prefix-field input:focus {
  outline: none;
  box-shadow: none;
}

.field-invalid,
.phone-prefix-field:has(.field-invalid) {
  border-color: #c5362f !important;
  box-shadow: 0 0 0 4px rgba(197, 54, 47, 0.1) !important;
}

.financial-need-grid {
  align-items: stretch;
}

.financial-need-grid > label {
  display: grid;
  grid-template-rows: auto minmax(56px, auto) minmax(42px, auto);
  align-content: start;
}

.financial-need-grid select,
.financial-need-grid input {
  min-height: 56px;
}

.financial-need-grid .field-help {
  min-height: 40px;
}

@media (max-width: 760px) {
  .payment-method-grid-clean {
    grid-template-columns: 1fr;
  }
}
.route-choice-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.route-choice-panel legend {
  padding: 0 8px;
  color: var(--wine);
  font-weight: 900;
}

.route-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-choice-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.route-choice-card input {
  appearance: none;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  border: 2px solid #9aa79f;
  border-radius: 4px;
  background: white;
}

.route-choice-card input:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px white;
}

.route-choice-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 124, 74, 0.1);
}

.route-choice-card span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .news-grid .announcement-banner-card {
    grid-template-columns: 1fr;
  }

  .news-grid .announcement-countdown {
    width: 100%;
    min-height: 132px;
  }

  .route-choice-grid {
    grid-template-columns: 1fr;
  }

  .queue-controls {
    grid-template-columns: 1fr;
  }

  .queue-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
.queue-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.7fr) minmax(140px, 0.5fr);
  gap: 12px;
  margin: 22px 0 12px;
}

.queue-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-controls input,
.queue-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
  font-weight: 700;
  text-transform: none;
}

.queue-controls input:focus,
.queue-controls select:focus {
  outline: 2px solid rgba(15, 124, 74, 0.22);
  border-color: var(--green);
}

.queue-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.queue-pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-pagination .mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .queue-controls {
    grid-template-columns: 1fr;
  }

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

.payment-verification-shell table td {
  vertical-align: middle;
}

.payment-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-status-pending {
  background: #ffe7ad;
  color: #5c3d00;
}

.payment-status-confirmed {
  background: #dceee4;
  color: var(--green-deep);
}

.payment-status-failed {
  background: #f7d8d5;
  color: #8d211a;
}
.payment-state-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-left: 6px solid var(--green);
  background: #f7fbf6;
}

.payment-state-card[hidden] {
  display: none;
}

.payment-state-card h2,
.payment-state-card p {
  margin: 0;
}

.payment-state-card p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
}

.payment-state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
}

.payment-awaiting-card {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.payment-awaiting-card .payment-state-icon {
  background: var(--gold);
  color: #1a251f;
}

@media (max-width: 760px) {
  .payment-state-card {
    grid-template-columns: 1fr;
  }
}

.applicant-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .applicant-type-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean selectable cards for applicant type and education route choices. */
.route-choice-card {
  position: relative;
  grid-template-columns: 1fr;
  padding: 16px 18px 16px 58px;
}

.route-choice-card input {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 22px;
  min-height: 22px;
  margin: 0;
}

.route-choice-card input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.route-choice-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.route-choice-card.required-field::after {
  content: none;
}

.continuing-student-panel[hidden],
[data-new-applicant-section][hidden] {
  display: none;
}

/* Refined student auth portal. */
.auth-portal-main {
  min-height: calc(100vh - 72px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(5, 82, 48, 0.92), rgba(15, 124, 74, 0.7) 46%, rgba(209, 160, 42, 0.84)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=82") center / cover fixed;
}

.auth-portal-shell {
  display: grid;
  grid-template-columns: minmax(320px, 450px) minmax(320px, 430px);
  gap: 28px;
  width: min(1020px, 100%);
  align-items: stretch;
}

.auth-register-shell {
  grid-template-columns: minmax(360px, 600px) minmax(300px, 390px);
}

.auth-card,
.auth-guide-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(4, 35, 21, 0.24);
}

.auth-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.98);
}

.auth-card-brand {
  width: fit-content;
}

.auth-card-brand .brand-mark {
  width: 56px;
  height: 56px;
}

.auth-card-heading h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
}

.auth-card-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.auth-form-card {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-form-card input,
.auth-form-card select {
  min-height: 52px;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-primary-button,
.auth-secondary-button {
  min-height: 54px;
  justify-content: center;
  font-size: 1rem;
}

.auth-primary-button {
  background: var(--green);
}

.auth-secondary-button {
  background: #ffffff;
}

.auth-helper-row {
  gap: 12px;
  align-items: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.auth-guide-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 46px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.auth-guide-card .eyebrow,
.auth-guide-card h2,
.auth-guide-card p,
.auth-guide-card strong,
.auth-guide-card small {
  color: #ffffff;
}

.auth-guide-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.auth-guide-intro {
  margin: 0;
  font-weight: 700;
  line-height: 1.7;
}

.auth-process-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.auth-process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.auth-process-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #143021;
  background: var(--gold);
  font-weight: 900;
}

.auth-process-list small {
  display: block;
  margin-top: 3px;
  line-height: 1.55;
  opacity: 0.92;
}

.auth-guide-cta {
  display: inline-flex;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 8px;
  color: #143021;
  background: var(--gold);
  font-weight: 900;
}

.auth-support-note {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-support-note span {
  line-height: 1.55;
}

@media (max-width: 920px) {
  .auth-portal-main {
    min-height: auto;
    padding: 22px 14px 34px;
    background-attachment: scroll;
  }

  .auth-portal-shell,
  .auth-register-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-card {
    order: 1;
    border-radius: 14px;
    padding: 22px;
  }

  .auth-guide-card {
    order: 2;
    border-radius: 14px;
    padding: 22px;
  }

  .auth-card-heading h1,
  .auth-guide-card h2 {
    font-size: 2rem;
  }

  .auth-form-card .field-row {
    grid-template-columns: 1fr;
  }

  .auth-helper-row {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-process-list {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .auth-header {
    padding-inline: 12px;
  }

  .auth-card,
  .auth-guide-card {
    padding: 18px;
  }

  .auth-card-brand .brand-mark {
    width: 48px;
    height: 48px;
  }

  .auth-form-card input,
  .auth-form-card select,
  .auth-primary-button,
  .auth-secondary-button {
    min-height: 50px;
  }

  .auth-process-list li {
    grid-template-columns: 36px 1fr;
  }
}

.ghost-mini-button {
  color: var(--green-deep);
  border-color: rgba(7, 90, 54, 0.28);
  background: #ffffff;
}

.ghost-mini-button:hover {
  background: #eef7f1;
}

.solid-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.auth-form .form-message:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(15, 124, 74, 0.18);
  border-radius: 8px;
  background: #eef7f1;
  line-height: 1.45;
}

.payment-network-notice {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(222, 168, 38, 0.45);
  border-radius: 8px;
  color: #5c3d00;
  background: #fff7df;
  font-size: 0.9rem;
  line-height: 1.45;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.password-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 124, 74, 0.1);
}

.password-field input {
  border: 0;
  border-radius: 0;
  min-height: 52px;
  box-shadow: none;
}

.password-field input:focus {
  outline: none;
  box-shadow: none;
}

.password-toggle {
  min-width: 58px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--green-deep);
  background: #eef7f1;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #dceee4;
}

.password-toggle-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
}

.password-toggle-icon::before {
  content: "";
  position: absolute;
  inset: 5px 2px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%;
  transform: rotate(45deg);
}

.password-toggle-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.password-toggle.is-visible .password-toggle-icon::before {
  border-color: currentColor;
}

.password-toggle.is-visible .password-toggle-icon::after {
  left: 3px;
  top: 11px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-38deg);
}
.contact-grid-secretariat {
  grid-template-columns: minmax(280px, 760px);
  justify-content: center;
}

.regional-secretariat-card h3 {
  margin-bottom: 8px;
}

.secretariat-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.secretariat-contact-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.secretariat-contact-list dt {
  color: var(--green-deep);
  font-weight: 900;
}

.secretariat-contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}







/* Urgent public announcement presentation */
.announcement-header-strip {
  position: sticky;
  top: 76px;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 56px);
  color: white;
  background: linear-gradient(90deg, #063f84, #075a36 62%, #d3991f);
  box-shadow: 0 16px 34px rgba(7, 90, 54, 0.18);
}

.announcement-header-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.announcement-header-strip span,
.announcement-header-strip p,
.announcement-header-strip a {
  font-size: 0.84rem;
  font-weight: 900;
}

.announcement-header-strip span {
  padding: 5px 9px;
  border-radius: 4px;
  color: #11241c;
  background: #ffd453;
  text-transform: uppercase;
}

.announcement-header-strip strong {
  color: white;
}

.announcement-header-strip p {
  margin: 0;
  padding: 7px 10px;
  border-radius: 4px;
  color: #11241c;
  background: white;
  white-space: nowrap;
}

.announcement-header-strip a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.news-grid .announcement-banner-card {
  position: relative;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.62fr);
  gap: 0;
  min-height: 380px;
  padding: 0;
  border-radius: 8px;
  color: white;
  background: #073f8f;
  box-shadow: 0 28px 60px rgba(6, 63, 132, 0.22);
}

.news-grid .announcement-banner-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 24px;
  background: #ffd453;
  transform: skewX(-12deg);
  transform-origin: top;
  z-index: 2;
}

.news-grid .announcement-banner-copy {
  max-width: none;
  padding: clamp(28px, 5vw, 46px);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #043179, #075a9c 56%, #073f8f);
}

.news-grid .announcement-chip {
  min-height: 32px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: #ffd453;
}

.news-grid .announcement-banner-card h3 {
  max-width: 620px;
  color: white;
  font-size: clamp(2.25rem, 4.4vw, 4.4rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-grid .announcement-banner-card p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.news-grid .announcement-countdown-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 112px));
  gap: 10px;
  margin: 22px 0 18px;
}

.news-grid .announcement-countdown-row div {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 10px;
  border-radius: 6px;
  color: #043179;
  background: white;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.12);
}

.news-grid .announcement-countdown-row strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.news-grid .announcement-countdown-row span {
  color: #556274;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-grid .announcement-meta-line {
  align-items: center;
}

.news-grid .announcement-meta-line span {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.13);
}

.news-grid .announcement-meta-line a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  border-radius: 4px;
  color: #11241c;
  background: #ffd453;
  font-weight: 900;
}

.news-grid .announcement-banner-photo {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(7, 63, 143, 0.08), rgba(7, 63, 143, 0)),
    url("assets/images/magasf-campus-books.jpg") center / cover;
}

@media (max-width: 900px) {
  .announcement-header-strip {
    position: static;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .announcement-header-strip p,
  .announcement-header-strip a {
    justify-self: start;
  }

  .news-grid .announcement-banner-card {
    grid-template-columns: 1fr;
  }

  .news-grid .announcement-banner-card::after {
    display: none;
  }

  .news-grid .announcement-banner-photo {
    min-height: 220px;
    order: -1;
  }

  .news-grid .announcement-countdown-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .news-grid .announcement-countdown-row {
    grid-template-columns: 1fr;
  }
}

.announcement-header-strip {
  transition: transform 180ms ease, opacity 180ms ease;
}

.announcement-header-strip.is-hidden-on-scroll {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
}

.governance-image-card {
  overflow: hidden;
  padding: 0;
}

.governance-image-card picture,
.governance-image-card img {
  display: block;
  width: 100%;
}

.governance-image-card picture {
  aspect-ratio: 16 / 10;
  background: #e8efe9;
}

.governance-image-card img {
  height: 100%;
  object-fit: cover;
}

.governance-image-card > div {
  padding: 22px 24px 24px;
}

.governance-image-card h3 {
  margin-bottom: 8px;
}

/* Public card polish: scholarship journey, documents, and institutional cards */
.process-section {
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 162, 56, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f3 100%);
}

.scholarship-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: min(1240px, 100%);
  align-items: stretch;
}

.scholarship-steps article {
  position: relative;
  min-height: 238px;
  padding: 26px 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 124, 74, 0.14);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 247, 0.96));
  box-shadow: 0 18px 42px rgba(20, 37, 28, 0.08);
}

.scholarship-steps article::before {
  position: absolute;
  right: -24px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(15, 124, 74, 0.07);
  content: "";
}

.scholarship-steps article:nth-child(2n) {
  border-top-color: var(--green);
}

.scholarship-steps article:nth-child(3n) {
  border-top-color: var(--blue);
}

.scholarship-steps article span {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 10px 22px rgba(15, 124, 74, 0.22);
  font-size: 0.94rem;
  font-weight: 900;
}

.scholarship-steps article:nth-child(2n) span {
  background: linear-gradient(135deg, #9b7420, var(--gold));
  box-shadow: 0 10px 22px rgba(214, 162, 56, 0.23);
}

.scholarship-steps article:nth-child(3n) span {
  background: linear-gradient(135deg, #1f466c, var(--blue));
  box-shadow: 0 10px 22px rgba(49, 94, 138, 0.20);
}

.scholarship-steps h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.scholarship-steps p {
  margin: 0;
  color: #4d5e55;
  font-size: 0.94rem;
  line-height: 1.62;
}

.document-panel-polished {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.4fr);
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 56px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 124, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 37, 28, 0.10);
}

.document-panel-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(7, 90, 54, 0.95), rgba(15, 124, 74, 0.86)),
    url("assets/images/magasf-campus-books.jpg") center / cover;
  color: #ffffff;
}

.document-panel-copy .eyebrow,
.document-panel-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.document-panel-copy h3 {
  max-width: 420px;
  color: #ffffff;
}

.document-panel-copy p:not(.eyebrow) {
  max-width: 460px;
  margin-top: 12px;
}

.document-panel-polished .compact-document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.document-panel-polished .document-grid article {
  position: relative;
  min-height: 214px;
  padding: 22px;
  border: 1px solid rgba(15, 124, 74, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbf7);
  box-shadow: 0 12px 28px rgba(20, 37, 28, 0.06);
}

.document-panel-polished .document-grid article::after {
  position: absolute;
  right: 18px;
  top: 20px;
  color: rgba(15, 124, 74, 0.18);
  content: "Required";
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-panel-polished .document-grid span,
.feature-card .news-icon,
.value-grid article span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #244a70);
  box-shadow: 0 12px 26px rgba(49, 94, 138, 0.18);
  font-weight: 900;
}

.document-panel-polished .document-grid strong {
  max-width: 190px;
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.35;
}

.document-panel-polished .document-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature-card,
.eligibility-panel,
.value-grid article,
.people-grid article:not(.governance-image-card),
.story-card-grid article {
  border: 1px solid rgba(15, 124, 74, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  box-shadow: 0 18px 42px rgba(20, 37, 28, 0.08);
}

.feature-card,
.value-grid article,
.people-grid article:not(.governance-image-card),
.story-card-grid article {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.value-grid article:hover,
.people-grid article:not(.governance-image-card):hover,
.story-card-grid article:hover,
.scholarship-steps article:hover,
.document-panel-polished .document-grid article:hover {
  border-color: rgba(15, 124, 74, 0.28);
  box-shadow: 0 22px 54px rgba(20, 37, 28, 0.12);
  transform: translateY(-2px);
}

.eligibility-panel {
  position: relative;
  overflow: hidden;
}

.eligibility-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), var(--gold));
  content: "";
}

@media (max-width: 1180px) {
  .scholarship-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .scholarship-steps,
  .document-panel-polished,
  .document-panel-polished .compact-document-grid {
    grid-template-columns: 1fr;
  }

  .scholarship-steps article {
    min-height: auto;
  }

  .document-panel-copy {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .scholarship-steps article,
  .document-panel-polished .document-grid article {
    padding: 20px;
  }

  .scholarship-steps article span,
  .document-panel-polished .document-grid span {
    width: 44px;
    height: 44px;
  }
}

/* WhatsApp contact button and admin setting controls */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 14px 16px;
  border: 1px solid rgba(15, 124, 74, 0.18);
  border-radius: 8px;
  background: #f7fbf6;
  color: var(--ink);
  font-weight: 800;
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #118c4f, #075a36);
  box-shadow: 0 18px 40px rgba(7, 90, 54, 0.28);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  box-shadow: 0 24px 54px rgba(7, 90, 54, 0.34);
  transform: translateY(-2px);
}

.whatsapp-float span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #075a36;
  background: #ffffff;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.whatsapp-float strong {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 8px 14px 8px 8px;
  }

  .whatsapp-float span {
    width: 32px;
    height: 32px;
  }
}

/* Impact story cards: authentic image treatment and alignment polish */
.polished-testimonial-grid {
  align-items: stretch;
  gap: clamp(18px, 2.5vw, 26px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.polished-testimonial-grid .testimonial-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 124, 74, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  box-shadow: 0 22px 50px rgba(8, 26, 18, 0.10);
}

.polished-testimonial-grid .featured-testimonial {
  transform: none;
}

.testimonial-photo-image {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #edf3ec;
}

.testimonial-photo-image::before {
  display: none;
}

.testimonial-photo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polished-testimonial-grid .testimonial-card blockquote {
  flex: 1;
  padding: 24px 24px 18px;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.58;
}

.polished-testimonial-grid .testimonial-card div:last-child {
  margin-top: auto;
  padding: 0 24px 24px;
}

.polished-testimonial-grid .testimonial-card strong {
  color: var(--green-deep);
}

.polished-testimonial-grid .testimonial-card span {
  color: #59685f;
}

@media (max-width: 900px) {
  .polished-testimonial-grid .testimonial-card {
    min-height: auto;
  }

  .testimonial-photo-image {
    aspect-ratio: 16 / 10;
  }
}

/* Contact page polish */
.contact-page-hero {
  min-height: clamp(360px, 46vh, 520px);
  padding-top: clamp(110px, 12vw, 150px);
  padding-bottom: clamp(58px, 8vw, 90px);
  background:
    linear-gradient(90deg, rgba(7, 45, 30, 0.92), rgba(7, 45, 30, 0.56), rgba(7, 45, 30, 0.20)),
    url("assets/images/magasf-campus-books.jpg") center 45% / cover;
}

.contact-page-hero h1 {
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  line-height: 0.96;
}

.enhanced-contact-section {
  padding-top: clamp(42px, 6vw, 76px);
  background:
    radial-gradient(circle at 10% 20%, rgba(214, 162, 56, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfaf5 0%, #f3f7f0 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.contact-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.enhanced-secretariat-card,
.enhanced-contact-form,
.contact-support-list article {
  border: 1px solid rgba(15, 124, 74, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  box-shadow: 0 22px 52px rgba(20, 37, 28, 0.09);
}

.enhanced-secretariat-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
}

.enhanced-secretariat-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), var(--gold));
  content: "";
}

.contact-card-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 16px 32px rgba(15, 124, 74, 0.20);
  font-weight: 900;
}

.enhanced-secretariat-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.62rem);
}

.secretariat-contact-list a {
  color: inherit;
}

.contact-support-list {
  display: grid;
  gap: 12px;
}

.contact-support-list article {
  padding: 18px 20px;
}

.contact-support-list strong,
.contact-support-list span {
  display: block;
}

.contact-support-list strong {
  margin-bottom: 4px;
  color: var(--green-deep);
}

.contact-support-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.enhanced-contact-form {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
}

.form-intro {
  max-width: 620px;
  margin-bottom: 8px;
}

.form-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.form-intro p:not(.eyebrow) {
  color: var(--muted);
}

.enhanced-contact-form input,
.enhanced-contact-form textarea {
  background: #ffffff;
}

.enhanced-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.enhanced-contact-form .solid-button {
  width: 100%;
  min-height: 54px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-support-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .contact-page-hero {
    min-height: 330px;
    padding-inline: 18px;
    background-position: center;
  }

  .contact-page-hero h1 {
    max-width: 320px;
  }

  .contact-page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .enhanced-contact-section {
    padding-inline: 14px;
  }

  .contact-support-list {
    grid-template-columns: 1fr;
  }

  .enhanced-secretariat-card,
  .enhanced-contact-form {
    padding: 22px;
  }

  .enhanced-contact-form .field-row {
    grid-template-columns: 1fr;
  }
}

.hidden-form-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.student-directory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-directory-summary article {
  min-height: 104px;
  padding: 18px;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcf9 0%, #eef7f1 100%);
  box-shadow: 0 16px 34px rgba(10, 49, 32, 0.06);
}

.student-directory-summary span,
.student-contact-stack small,
.student-directory-shell small,
.muted-table-text {
  color: var(--muted);
}

.student-directory-summary span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.student-directory-summary strong {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.student-directory-shell table td {
  vertical-align: middle;
}

.student-contact-stack {
  display: grid;
  gap: 4px;
}

.student-contact-stack span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.application-status-no-application,
.payment-status-no-request {
  background: #edf2ee;
  color: #52645a;
}

.application-status-draft,
.application-status-pending,
.payment-status-pending {
  background: #ffe7ad;
  color: #5c3d00;
}

.application-status-submitted,
.application-status-under-review,
.application-status-more-information-requested {
  background: #dbeafe;
  color: #17406d;
}

.application-status-approved,
.application-status-awarded,
.payment-status-confirmed {
  background: #dceee4;
  color: var(--green-deep);
}

.application-status-rejected,
.payment-status-failed {
  background: #f7d8d5;
  color: #8d211a;
}

@media (max-width: 900px) {
  .student-directory-summary {
    grid-template-columns: 1fr;
  }
}
