﻿/* Root + Reset */
:root {
  --mitfa-blue: #0046c7;
  --mitfa-deep-blue: #001b4f;
  --mitfa-light-blue: #e6eefc;
  --mitfa-accent-gold: #f5b400;
  --mitfa-text: #222222;
  --mitfa-muted: #666666;
  --mitfa-background: #f5f7fb;
  --mitfa-border: #d7dcef;
  --mitfa-radius-lg: 14px;
  --mitfa-radius-md: 10px;
  --mitfa-radius-sm: 6px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-chip: 0 2px 6px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mitfa-text);
  background-color: var(--mitfa-background);
  line-height: 1.6;
}

/* Links */

a {
  color: var(--mitfa-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Top Bar */

.top-bar {
  background: linear-gradient(90deg, var(--mitfa-deep-blue), #4818a8);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 6%;
  font-size: 0.85rem;
}

.top-link {
  color: #ffffff;
  text-decoration: none;
  margin-right: 1.25rem;
}

.top-link:last-child {
  margin-right: 0;
}

.top-link:hover,
.top-link:focus {
  text-decoration: underline;
}

.top-right-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header / Branding – logo as the visual header */

.site-header {
  background: radial-gradient(circle at top, #ffffff 0, #eef0ff 40%, #fdf1ff 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 6% 0.9rem;
}

.logo-link {
  display: inline-block;
}

.logo {
  max-width: 420px;
  height: auto;
  display: block;
}

/* Keep title/tagline for accessibility, hide visually */

.branding-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Main Navigation */

.main-nav {
  padding: 0.4rem 6% 0.9rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--mitfa-deep-blue);
  font-size: 0.92rem;
  font-weight: 600;
  background-color: #f0f3ff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-chip);
}

.main-nav a:hover,
.main-nav a:focus {
  background: linear-gradient(90deg, var(--mitfa-blue), #7b1fa2);
  color: #ffffff;
  text-decoration: none;
}

/* Active nav link */

.main-nav a.active {
  background: linear-gradient(90deg, var(--mitfa-blue), #7b1fa2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Layout */

main {
  padding: 2rem 6% 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero Section (Splash Page) */

.hero {
  background: radial-gradient(circle at top left, #ffffff 0, #f3f2ff 40%, var(--mitfa-light-blue) 100%);
  border-radius: var(--mitfa-radius-lg);
  padding: 2rem 2.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Color wash using more of the original palette */

.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: conic-gradient(
    from 140deg,
    #ff6b00,
    #ff005b,
    #ffb300,
    #00c6ff,
    #7b1fa2,
    #ff6b00
  );
  opacity: 0.18;
  mix-blend-mode: multiply;
  filter: saturate(120%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  /* Move the entire intro text block to 4 lines below the logo */
  margin-top: calc(1.6em * 4);
}

.hero h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: var(--mitfa-deep-blue);
}

.hero p {
  margin-bottom: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ff6b00, #ff005b);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.btn.ghost {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--mitfa-deep-blue);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn.ghost:hover,
.btn.ghost:focus {
  background-color: #ffffff;
  text-decoration: none;
}

.btn.full {
  width: 100%;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Donation Section (Home) */

.donation-sectio
