/* =============================================
   Oscar S. Gonzalez Memorial Scholarship
   Color palette: Black #111, Gold #FFD700, White #FFFFFF
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #FFD700;
  --gold-dark: #C9A800;
  --black: #111111;
  --dark-bg: #1a1a1a;
  --light-bg: #f9f6ee;
  --white: #ffffff;
  --text: #222222;
  --text-light: #555555;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== HEADER ===================== */
header {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 4px;
}

.site-title {
  display: flex;
  flex-direction: column;
}

.title-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.title-sub {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* NAV */
nav { position: relative; }

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  font-size: 1.6rem;
  color: var(--gold);
  cursor: pointer;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  display: block;
  text-decoration: none;
}

.nav-links li a:hover {
  background: var(--gold);
  color: var(--black);
}

/* Mobile nav */
@media (max-width: 700px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--black);
    border: 1px solid var(--gold);
    border-radius: 4px;
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 200;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links li a { padding: 0.65rem 1.25rem; }
  .title-main { font-size: 0.9rem; }
  .title-sub { font-size: 0.65rem; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--black);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

.btn-large {
  font-size: 1.1rem;
  padding: 0.9rem 2.4rem;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--black);
  /* Fills the window, never taller than it, and resizes with the window. */
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Carousel: slides are stacked and cross-fade within the fixed hero height. */
.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 0.9s ease, visibility 0s;
}

/* Blurred fill of the same photo behind it — replaces black edges with a soft
   extension of the image, so the whole photo shows with no harsh bars. */
.hero-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.6);
  transform: scale(1.15); /* hide the soft transparent edge the blur creates */
}

/* A slide's photo — the WHOLE photo, scaled to fit inside the hero (never cropped). */
.hero-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

/* Navigation dots ("bubbles"). */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot:hover { transform: scale(1.15); }
.hero-dot.is-active { background: var(--gold); border-color: var(--gold); }

.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.eagle-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: var(--gold);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
}

.hero-desc {
  color: #e0e0e0;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  margin: 1.25rem 0 2rem;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero-images { display: none; }
  /* Branded slide 1 uses the mobile photo as a cover background when the split photos are hidden. */
  .hero-slide--branded { background: url('/static/images/hero-mobile.png') center top/cover no-repeat, var(--black); }
}

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: var(--dark-bg);
  min-height: 180px;
  display: flex;
  align-items: center;
}

.page-hero-overlay {
  background: rgba(0,0,0,0.55);
  width: 100%;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 700;
}

.page-hero p {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* ===================== SECTIONS ===================== */
.section-light { padding: 4rem 1.5rem; background: var(--light-bg); }
.section-dark  { padding: 4rem 1.5rem; background: var(--dark-bg); color: var(--white); }

.container {
  max-width: 1060px;
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--black);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem auto 0;
}

.section-dark .section-title { color: var(--white); }
.section-dark h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #ccc;
}

.section-light .lead { color: var(--text-light); }

/* ===================== MISSION CARDS ===================== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.mission-card {
  background: var(--white);
  border: 2px solid #e8e0c0;
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mission-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.mission-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ===================== SCHOOL CARD ===================== */
.school-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.school-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem 3rem;
  flex: 1 1 280px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.school-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

/* ===================== TIMELINE ===================== */
.timeline-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.timeline-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  flex: 1 1 140px;
  max-width: 200px;
}

.tl-date {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.tl-event {
  font-size: 0.88rem;
  color: #ddd;
  line-height: 1.4;
}

/* ===================== SUBMIT INSTRUCTIONS ===================== */
.submit-instructions {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  max-width: 600px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.submit-instructions h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.submit-instructions ol {
  color: #ddd;
  padding-left: 1.25rem;
  line-height: 2;
  font-size: 0.95rem;
}

.submit-instructions ol li {
  margin-bottom: 0.25rem;
}

.submit-email {
  color: var(--gold);
  font-weight: 600;
  word-break: break-all;
}

.submit-note {
  color: #aaa;
  font-size: 0.88rem;
  margin-top: 1rem;
  text-align: center;
}

.btn-large {
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
}

/* ===================== ABOUT PAGE ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
}

.about-img {
  width: 100%;
  max-width: 300px;
  border: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: block;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.service-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  background: var(--black);
  color: var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  border-left: 5px solid var(--gold);
  font-family: var(--font-heading);
}

.service-badge em {
  font-style: italic;
  color: #fff;
  font-size: 0.95rem;
}

.memorial-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  max-width: 700px;
  margin: 1rem auto;
  line-height: 1.7;
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  text-align: left;
}

/* ===================== APPLY PAGE ===================== */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.req-card {
  background: var(--white);
  border: 1px solid #ddd;
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.req-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.req-card ul {
  padding-left: 1.2rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===================== FORMS ===================== */
.apply-form, .contact-form {
  background: #1f1f1f;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 4px;
  color: var(--white);
  padding: 0.65rem 0.9rem;
  font-size: 0.97rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #777;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

.form-submit { text-align: center; margin-top: 1.5rem; }

/* ===================== CONTACT PAGE ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-info h2, .contact-form-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #e0d8b0;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

.contact-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-item strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
}

.contact-item a {
  color: var(--gold-dark);
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contact-item small {
  color: #999;
  font-size: 0.8rem;
}

.contact-card-info {
  background: var(--black);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  margin-top: 1.5rem;
}

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

.contact-card-info p {
  color: #ccc;
  font-size: 0.93rem;
  margin-bottom: 0.3rem;
}

.contact-form {
  background: #f5f1e3;
  border: 1px solid #e0d8b0;
}

.contact-form .form-group label { color: var(--black); }

.contact-form .form-group input,
.contact-form .form-group textarea {
  background: var(--white);
  border: 1px solid #ccc;
  color: var(--black);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--gold-dark);
}

/* ===================== THANK YOU PAGE ===================== */
.thankyou-icon {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--black);
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(255,215,0,0.35);
}

/* ===================== UPLOAD GRID ===================== */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #252525;
  border: 1.5px dashed #555;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-label:hover {
  border-color: var(--gold);
  background: #2b2b2b;
}

.upload-icon { font-size: 1.4rem; }

.upload-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.upload-hint {
  font-size: 0.78rem;
  color: #888;
}

.upload-item input[type="file"] {
  display: none;
}

.upload-status {
  font-size: 0.82rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  min-height: 1.2em;
}

.upload-status.ok  { color: #5dbb5d; }
.upload-status.err { color: #ff7070; }

/* ===================== 3-COLUMN FORM ROW ===================== */
.form-row--3 {
  grid-template-columns: 2fr 0.6fr 1fr;
}

@media (max-width: 600px) {
  .form-row--3 { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
}

/* ===================== TAB SELECTORS ===================== */
.tab-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.tab-select button {
  background: #2b2b2b;
  border: 1px solid #555;
  border-radius: 4px;
  color: #ccc;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  outline: none;
}

.tab-select button:hover {
  border-color: var(--gold);
  color: var(--white);
}

.tab-select button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 700;
}

.tab-other-input {
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 4px;
  color: var(--white);
  padding: 0.55rem 0.9rem;
  font-size: 0.97rem;
  font-family: var(--font-body);
  width: 100%;
}

.tab-other-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ===================== APPLICATION FORM SECTIONS ===================== */
.apply-form--sections {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 860px;
}

.form-section {
  margin-bottom: 1.75rem;
}

.form-section-heading {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.55rem 1rem;
  border-radius: 4px 4px 0 0;
  margin: 0;
}

.form-section-body {
  border: 1px solid #333;
  border-top: none;
  padding: 1.5rem 1.5rem 0.25rem;
  border-radius: 0 0 4px 4px;
  background: #1e1e1e;
}

.section-note {
  font-size: 0.88rem;
  color: #aaa;
  margin-bottom: 0.9rem;
  line-height: 1.65;
}

.field-hint {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.doc-list {
  color: #ccc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  line-height: 2;
  font-size: 0.92rem;
}

.form-actions {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.form-message {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.93rem;
}

.form-message.error {
  background: rgba(220,50,50,0.12);
  border: 1px solid rgba(220,50,50,0.35);
  color: #ff8a8a;
}

/* ===================== SUCCESS BOX ===================== */
.success-box {
  max-width: 640px;
  margin: 2rem auto;
  background: #1e1e1e;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.success-box h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.success-box p {
  color: #ccc;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  margin-top: 1.5rem;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--black);
  text-decoration: none;
}

/* ===================== APPLICATIONS CLOSED NOTICE ===================== */
.apps-closed-notice {
  max-width: 680px;
  margin: 2.5rem auto;
  background: #1a1a1a;
  border: 2px solid rgba(255,215,0,0.35);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.apps-closed-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.apps-closed-notice h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apps-closed-notice p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--black);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.footer-inner p {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-inner p:first-child { color: #ccc; }

/* ===================== RECIPIENTS ===================== */
.page-hero--recipients {
  background: linear-gradient(160deg, #222 0%, #111 100%);
}

/* Year accordions */
.recipient-accordion {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--white);
  overflow: hidden;
}
.recipient-accordion[open] { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }

.recipient-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  border-left: 4px solid var(--gold);
  user-select: none;
}
.recipient-summary::-webkit-details-marker { display: none; }
.recipient-summary:hover { background: var(--light-bg); }
.recipient-summary-year { flex: 1; }
.recipient-count {
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 1.6rem;
  text-align: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.recipient-chevron {
  color: var(--gold-dark);
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.recipient-accordion[open] .recipient-chevron { transform: rotate(180deg); }

.recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
/* Inside an accordion the grid is padded to the card edges instead. */
.recipient-accordion .recipient-grid { margin-top: 0; padding: 0 1.5rem 1.5rem; }

.recipient-card {
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

/* Cards are buttons that open the detail popup. */
.recipient-card--btn { display: block; width: 100%; cursor: pointer; font: inherit; color: inherit; }

.recipient-badge { color: var(--gold); font-size: 1.6rem; line-height: 1; margin-bottom: 0.4rem; }

.recipient-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  margin: 0 auto 0.85rem;
  display: block;
}
.recipient-photo--ph {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--gold);
  font-size: 2.8rem;
}

.recipient-view {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}

.recipient-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
}

.recipient-school {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.recipient-detail { color: var(--text-light); font-size: 0.9rem; margin-top: 0.6rem; line-height: 1.4; }

.recipient-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: #999;
  font-weight: 600;
}

/* Recipient detail popup (large, two-column) */
.rmodal { position: fixed; inset: 0; z-index: 1000; display: none; }
.rmodal.is-open { display: block; }
.rmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.rmodal-card {
  position: relative;
  z-index: 1;
  width: 92vw;
  max-width: 1000px;
  margin: 4vh auto;
  max-height: 92vh;
  overflow: auto;
  background: var(--white);
  border-radius: 14px;
  border-top: 6px solid var(--gold);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: rmodal-pop 0.18s ease-out;
}
@keyframes rmodal-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.rmodal-close {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); border: 1px solid #ddd;
  font-size: 1.5rem; line-height: 1; color: #333; cursor: pointer;
}
.rmodal-close:hover { background: #fff; color: #000; }
.rmodal-body { display: flex; gap: 2.5rem; padding: 2.5rem; align-items: center; }
.rmodal-photo-wrap { flex: 1 1 56%; min-width: 0; }
.rmodal-photo {
  max-width: 100%; max-height: 80vh;
  width: auto; height: auto;
  border-radius: 12px; border: 1px solid #e6e6e6;
  display: block; margin: 0 auto;
}
.rmodal-info { flex: 1 1 44%; text-align: left; }
.rmodal-year { color: var(--gold-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.rmodal-name { font-family: var(--font-heading); font-size: 2.2rem; color: var(--black); margin: 0.3rem 0 0.2rem; line-height: 1.1; }
.rmodal-school { color: var(--gold-dark); font-weight: 600; font-size: 1.05rem; margin-bottom: 1.5rem; }
.rmodal-detail { margin-top: 1rem; color: var(--text); font-size: 1.1rem; }
.rmodal-dlabel { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #999; font-weight: 600; margin-bottom: 0.15rem; }
@media (max-width: 760px) {
  .rmodal-card { width: 94vw; margin: 3vh auto; }
  .rmodal-body { flex-direction: column; gap: 1.25rem; padding: 1.75rem; text-align: center; }
  .rmodal-info { text-align: center; flex: none; width: 100%; }
  .rmodal-name { font-size: 1.7rem; }
}
