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

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #161625;
  --bg-card: #1c1c30;
  --text-primary: #e8e6e3;
  --text-secondary: #a0a0b0;
  --accent: #c9a84c;
  --accent-hover: #ddb94f;
  --divider: #2a2a40;
  --header-bg: rgba(15, 15, 26, 0.95);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
}

/* ── Header / Nav ── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-group img {
  width: 40px;
  height: auto;
}

.logo-group span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

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

.hero-photo img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  border: 3px solid var(--divider);
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hero-text .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Sections ── */

section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-divider {
  max-width: 960px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--divider);
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

section p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* ── Scholarship Details ── */

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--divider);
}

.detail-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

/* ── Biography ── */

.bio-attribution {
  margin-top: 2rem;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15rem;
}

/* ── Apply Section ── */

.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
}

.contact-info {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ── Footer ── */

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    gap: 1.5rem;
  }

  .hero-photo img {
    width: 160px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .logo-group span {
    font-size: 0.9rem;
  }

  nav.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--divider);
  }

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

  .apply-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.4rem;
  }

  section {
    padding: 2rem 1.25rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}
