:root {
  --ink: #17211c;
  --muted: #63736a;
  --green: #173d31;
  --green-2: #2f7a61;
  --rose: #c45b81;
  --rose-dark: #8d315b;
  --blush: #f8e1e9;
  --cream: #f7f8ef;
  --paper: #ffffff;
  --line: #dde6da;
  --gold: #d7ad55;
  --sky: #dfeef4;
  --shadow: 0 24px 70px rgba(23, 61, 49, 0.14);
  --soft-shadow: 0 16px 40px rgba(23, 61, 49, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 238, 244, 0.72), transparent 380px),
    var(--cream);
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 239, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(23, 61, 49, 0.11);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 61, 49, 0.22);
}

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

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: rgba(47, 122, 97, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 61, 49, 0.25), transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.hero-art {
  grid-column: 2;
  grid-row: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.82rem;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.button {
  border: 0;
  border-radius: 8px;
  min-height: 50px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: white;
  box-shadow: 0 16px 32px rgba(196, 91, 129, 0.26);
}

.button.primary:hover {
  background: var(--rose-dark);
}

.button.secondary {
  background: var(--paper);
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(23, 61, 49, 0.08);
}

.button.danger,
.delete-button {
  background: rgba(181, 93, 134, 0.12);
  color: var(--rose-dark);
  border: 1px solid rgba(181, 93, 134, 0.22);
}

.button.full {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  border: 1px solid rgba(23, 61, 49, 0.14);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--green);
  font-weight: 800;
}

.hero-art {
  min-height: 550px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.18), rgba(23, 33, 28, 0.02)),
    url("../education-hero.png") center / cover;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "Scholarship support, organized clearly.";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  width: min(360px, calc(100% - 52px));
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #fff;
  color: var(--green);
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(23, 33, 28, 0.18);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(23, 33, 28, 0.38));
  pointer-events: none;
}

.orbit {
  display: none;
}

.orbit-one {
  width: 310px;
  height: 310px;
  right: 64px;
  top: 150px;
}

.orbit-two {
  width: 190px;
  height: 190px;
  right: 124px;
  top: 210px;
  background: rgba(247, 226, 234, 0.12);
}

.hero-card {
  position: absolute;
  z-index: 2;
  width: min(265px, calc(100% - 50px));
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.hero-card span,
.hero-card strong {
  display: block;
}

.hero-card span {
  color: var(--rose-dark);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-card strong {
  margin-top: 6px;
  color: var(--green);
  font-size: 1.05rem;
}

.mini-stat {
  left: 26px;
  top: 26px;
  bottom: auto;
}

.mini-deadline {
  right: 26px;
  top: 26px;
  bottom: auto;
}

.quick-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 60px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-panel article,
.scholarship-card,
.checker,
.application-form,
.application-panel,
.auth-card,
.application-record,
.phase-grid article,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.quick-panel article {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-panel article:hover,
.scholarship-card:hover,
.auth-card:hover,
.application-form:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(23, 61, 49, 0.13);
}

.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blush);
  color: var(--rose-dark);
  font-weight: 900;
}

.quick-panel h2,
.quick-panel p {
  margin-bottom: 0;
}

.quick-panel h2 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.quick-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 84px 0;
}

.section.muted {
  background: #eef3e9;
}

.section-heading {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  text-align: left;
  width: auto;
  margin: 0;
}

.section-heading h2,
.application-panel h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.section-heading p,
.application-panel p,
.contact p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.scholarship-grid,
.phase-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scholarship-card {
  padding: 26px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scholarship-card.featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--green);
  color: #fff;
}

.scholarship-card.featured p,
.scholarship-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blush), #fff4d8);
  color: var(--rose-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scholarship-card.featured .tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.scholarship-card h3 {
  font-size: 1.45rem;
  margin: 18px 0 10px;
}

.scholarship-card p,
.scholarship-card li {
  color: var(--muted);
  line-height: 1.65;
}

.scholarship-card ul {
  padding-left: 19px;
  margin: 16px 0 24px;
}

.text-button {
  align-self: flex-start;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(181, 93, 134, 0.12);
  color: var(--rose-dark);
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.featured .text-button {
  background: #fff;
  color: var(--green);
}

.eligibility-layout,
.application-layout,
.account-grid,
.verification-layout,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 30px;
  align-items: start;
}

.checker,
.application-form,
.application-panel,
.auth-card {
  padding: 26px;
}

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

.verification-layout {
  grid-template-columns: 0.9fr minmax(320px, 520px);
}

.auth-card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.auth-card .button + .button {
  margin-top: 10px;
}

label {
  display: block;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d3dfd4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(181, 93, 134, 0.14);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.result-box,
.success-message {
  margin-top: 16px;
  padding: 16px;
  min-height: 58px;
  border-radius: 8px;
  background: #f8f2ea;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.result-box.positive,
.success-message.show {
  background: rgba(59, 111, 88, 0.1);
  color: var(--green);
  border-color: rgba(59, 111, 88, 0.2);
}

.result-box.warning {
  background: rgba(181, 93, 134, 0.11);
  color: var(--rose-dark);
  border-color: rgba(181, 93, 134, 0.24);
}

.success-message.warning {
  background: rgba(181, 93, 134, 0.11);
  color: var(--rose-dark);
  border-color: rgba(181, 93, 134, 0.24);
}

.captcha-box {
  padding: 14px;
  border-radius: 8px;
  background: #eef6f2;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

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

.application-panel {
  position: sticky;
  top: 100px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 48%),
    var(--green);
  color: #fff;
}

.application-panel .eyebrow,
.application-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.signed-in-box {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  line-height: 1.5;
}

.account-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.account-preview div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.account-preview span,
.account-preview strong {
  display: block;
}

.account-preview span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-preview strong {
  color: #fff;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.timeline span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(181, 93, 134, 0.2);
}

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

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

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

.phase-grid h3 {
  margin-bottom: 10px;
  color: var(--rose-dark);
}

.phase-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  align-items: center;
}

.contact-card {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.contact-card a,
.contact-card span {
  padding: 14px;
  border-radius: 8px;
  background: #f8f2ea;
  color: var(--green);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.home-story {
  background: #eef3e9;
}

.home-story .section-heading {
  width: min(1180px, calc(100% - 32px));
  margin-bottom: 24px;
}

.story-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.story-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.story-grid p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.04rem;
}

.story-grid p:last-child {
  margin-bottom: 0;
}

footer {
  min-height: 88px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--rose-dark);
  font-weight: 900;
}

.admin-page {
  min-height: calc(100vh - 76px);
}

.admin-nav {
  position: static;
  display: flex;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.admin-layout .auth-card {
  max-width: 620px;
}

.admin-layout h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.admin-help {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.admin-actions label {
  margin-bottom: 0;
  min-width: 210px;
}

.dashboard-top h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 8px;
}

.dashboard-top p {
  color: var(--muted);
}

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

.application-record {
  padding: 24px;
}

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.record-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.record-head h3 {
  margin: 12px 0 6px;
  font-size: 1.45rem;
}

.record-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.status-select {
  max-width: 190px;
}

.delete-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.status-record .tag {
  font-size: 0.9rem;
}

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

.record-grid div,
.statement-box,
.empty-state {
  padding: 14px;
  border-radius: 8px;
  background: #f8f2ea;
}

.record-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-grid dd {
  margin: 5px 0 0;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.statement-box {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.statement-box p {
  margin: 8px 0 0;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links a {
    width: 100%;
    padding: 13px 14px;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .hero,
  .eligibility-layout,
  .application-layout,
  .account-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-art {
    grid-column: 1;
    grid-row: 2;
    min-height: 420px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .quick-panel,
  .scholarship-grid,
  .phase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .application-panel {
    position: static;
  }

  .admin-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions label,
  .admin-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 64px;
    gap: 28px;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-art::before {
    left: 24px;
    top: 28px;
    font-size: clamp(2.25rem, 13vw, 3.8rem);
  }

  .hero-card {
    left: 22px;
    right: auto;
  }

  .mini-stat {
    bottom: 100px;
  }

  .mini-deadline {
    bottom: 26px;
  }

  .quick-panel,
  .scholarship-grid,
  .phase-grid,
  .story-grid,
  .record-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .record-head,
  .dashboard-top {
    display: grid;
  }

  .record-actions,
  .status-select {
    max-width: none;
    width: 100%;
  }

  .quick-panel {
    margin-top: -22px;
  }

  .section {
    padding: 50px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1.02;
  }

  .section-heading h2,
  .application-panel h2,
  .contact h2,
  .dashboard-top h2 {
    font-size: clamp(1.8rem, 10vw, 2.55rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .application-form,
  .application-panel,
  .auth-card,
  .application-record,
  .quick-panel article,
  .story-grid article,
  .contact-card {
    padding: 20px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}
