/* ============================================
   YLASS — Young Leaders Academy of South Sudan
   Stylesheet — Steel Blue Brand Identity
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-brand: #A8C4D0;
  --color-brand-light: #C4DAE3;
  --color-brand-lighter: #E4EFF4;
  --color-brand-pale: #F0F6F9;
  --color-brand-dark: #6A9AAE;
  --color-brand-deeper: #4D8296;

  --color-dark: #151820;
  --color-dark-medium: #2a2f3a;
  --color-dark-soft: #3d4350;

  --color-bg: #ffffff;
  --color-bg-tint: #F4F8FA;
  --color-bg-alt: #EDF3F6;
  --color-text: #1c1f26;
  --color-text-secondary: #4a5568;
  --color-text-muted: #8494a7;
  --color-border: #dce4ea;
  --color-white: #ffffff;
  --color-memorial: #8b4c5a;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --nav-height: 76px;
  --container-width: 1200px;
  --section-padding: 104px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(21, 24, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(21, 24, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(21, 24, 32, 0.1);
  --shadow-xl: 0 20px 60px rgba(21, 24, 32, 0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* --- Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 68px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-brand-deeper);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--color-dark);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-dark-medium);
  border-color: var(--color-dark-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21, 24, 32, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: rgba(21, 24, 32, 0.25);
}

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

.btn-large {
  padding: 18px 42px;
  font-size: 17px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(21, 24, 32, 0.06), var(--shadow-sm);
}

.nav.scrolled .nav-links li a {
  color: var(--color-text-secondary);
}

.nav.scrolled .nav-links li a:hover {
  color: var(--color-dark);
  background: var(--color-bg-tint);
}

.nav.scrolled .nav-links li a.active {
  color: var(--color-brand-deeper);
}

.nav.scrolled .hamburger,
.nav.scrolled .hamburger::before,
.nav.scrolled .hamburger::after {
  background: var(--color-dark);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  transition: opacity var(--transition);
}

.logo-img:hover {
  opacity: 0.85;
}

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

.nav-links li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links li a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links li a.active {
  color: var(--color-white);
  font-weight: 600;
}

.nav-cta {
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  margin-left: 8px !important;
}

.nav-cta:hover {
  background: var(--color-brand-lighter) !important;
  transform: translateY(-1px);
}

.nav.scrolled .nav-cta {
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

.nav.scrolled .nav-cta:hover {
  background: var(--color-dark-medium) !important;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 48px) 24px 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #8AAFBD 0%, #A8C4D0 25%, #B8D1DB 50%, #A0BFCC 75%, #8AAFBD 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(21, 24, 32, 0.06) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-dark-soft);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 62px);
  color: var(--color-dark);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-dark-soft);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-dark);
  display: inline;
}

.hero-stat-suffix {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-dark);
}

.hero-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  opacity: 0.6;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 1.5s;
}

.hero-scroll a {
  color: var(--color-dark-soft);
  opacity: 0.4;
  transition: opacity var(--transition);
  animation: bounce 2s ease infinite;
  display: block;
}

.hero-scroll a:hover {
  opacity: 0.8;
}

/* --- About Section --- */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-story h3,
.about-mission h3 {
  font-size: 26px;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-story p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.85;
}

.objectives {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.objective {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.objective-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-brand-lighter);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-deeper);
}

.objective h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.objective p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Program Section --- */
.program {
  background: var(--color-bg-tint);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.program-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.program-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.program-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Impact Section --- */
.impact {
  background: var(--color-bg);
}

.university-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 72px;
}

.university-tag {
  padding: 10px 24px;
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  transition: all var(--transition);
}

.university-tag:hover {
  background: var(--color-brand);
  color: var(--color-dark);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.impact-vision h3 {
  text-align: center;
  font-size: 28px;
  color: var(--color-dark);
  margin-bottom: 40px;
}

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

.vision-card {
  padding: 36px;
  background: var(--color-bg-tint);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.vision-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.vision-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-brand);
  display: block;
  margin-bottom: 8px;
}

.vision-card h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.vision-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Students Section --- */
.students {
  background: var(--color-bg-tint);
}

.cohort {
  margin-bottom: 64px;
}

.cohort:last-child {
  margin-bottom: 0;
}

.cohort-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-brand);
  display: inline-block;
}

.cohort-year {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 16px;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.student-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 32px;
}

.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 1;
}

.student-card:hover::before {
  transform: scaleX(1);
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Student Photo — Circle */
.student-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 20px;
  border: 3px solid var(--color-brand-light);
  box-shadow: 0 4px 12px rgba(21, 24, 32, 0.08);
}

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

.student-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #8AAFBD, #A8C4D0);
}

.student-photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.55;
}

/* Student Info */
.student-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.student-university {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-brand-deeper);
  margin-bottom: 6px;
}

.student-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.student-school {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.student-bio {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  flex: 1;
  text-align: center;
}

.student-bio em {
  color: var(--color-text-muted);
  font-size: 12px;
}

.student-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-deeper);
  margin-top: 12px;
  text-decoration: none;
  transition: color var(--transition);
}

.student-link:hover {
  color: var(--color-dark);
}

/* Memorial Card */
.student-card.memorial {
  border-color: rgba(139, 76, 90, 0.2);
  background: linear-gradient(180deg, #fff, #fdf5f7);
}

.student-card.memorial::before {
  background: var(--color-memorial);
  transform: scaleX(1);
}

.memorial-photo {
  background: linear-gradient(150deg, #6a3d4a, #8b4c5a) !important;
  border-color: rgba(139, 76, 90, 0.25) !important;
}

.student-memorial {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-memorial);
  margin-top: 12px;
  font-style: italic;
}

/* --- Founders Section --- */
.founders {
  background: var(--color-bg);
}

.founders-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.founder-card {
  text-align: center;
  padding: 44px;
  min-width: 280px;
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.founder-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(150deg, #8AAFBD, #A8C4D0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.founder-avatar span {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
}

.founder-card h3 {
  font-size: 22px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.founder-role {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-brand-deeper);
  margin-bottom: 4px;
}

.founder-school {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* --- Apply Section --- */
.apply {
  background: linear-gradient(160deg, #8AAFBD 0%, #A8C4D0 30%, #B8D1DB 60%, #A0BFCC 100%);
  position: relative;
  overflow: hidden;
}

.apply::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(21, 24, 32, 0.04) 0%, transparent 50%);
}

.apply-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.apply .section-label {
  color: var(--color-dark-soft);
}

.apply .section-title {
  color: var(--color-dark);
}

.apply-desc {
  font-size: 17px;
  color: var(--color-dark-soft);
  line-height: 1.8;
  margin-bottom: 36px;
}

.apply-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
  margin-bottom: 44px;
}

.apply-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 500;
}

.apply-highlight svg {
  color: var(--color-dark);
  flex-shrink: 0;
}

/* --- Support Section --- */
.support {
  background: var(--color-bg-tint);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.support-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.support-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.support-list {
  display: flex;
  flex-direction: column;
}

.support-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.support-list li:last-child {
  border-bottom: none;
}

.support-item {
  font-size: 15px;
  color: var(--color-text);
}

.support-cost {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}

.support-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--color-dark);
}

.support-total span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}

.support-total-amount {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand-deeper);
}

.support-info h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.support-info > p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.support-impact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.support-impact-stat {
  background: var(--color-brand-lighter);
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.support-impact-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  display: block;
  margin-bottom: 4px;
}

.support-impact-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.support-contact {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.support-contact a {
  color: var(--color-brand-deeper);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-contact a:hover {
  color: var(--color-dark);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links-group h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group li,
.footer-links-group a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Solid Nav (for subpages) --- */
.nav-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(21, 24, 32, 0.06), var(--shadow-sm);
}

.nav-solid .nav-links li a {
  color: var(--color-text-secondary);
}

.nav-solid .nav-links li a:hover {
  color: var(--color-dark);
  background: var(--color-bg-tint);
}

.nav-solid .nav-links li a.active {
  color: var(--color-brand-deeper);
  font-weight: 600;
}

.nav-solid .hamburger,
.nav-solid .hamburger::before,
.nav-solid .hamburger::after {
  background: var(--color-dark);
}

.nav-solid .nav-cta {
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

.nav-solid .nav-cta:hover {
  background: var(--color-dark-medium) !important;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 64px) 24px 64px;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #8AAFBD 0%, #A8C4D0 25%, #B8D1DB 50%, #A0BFCC 75%, #8AAFBD 100%);
  z-index: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(21, 24, 32, 0.06) 0%, transparent 50%);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero .hero-label {
  opacity: 1;
  animation: none;
}

.page-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--color-dark);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.page-hero-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--color-dark-soft);
  line-height: 1.8;
}

/* --- Resource Quick Nav --- */
.resource-nav-section {
  background: var(--color-bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--nav-height);
  z-index: 99;
}

.resource-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.resource-nav-link {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: all var(--transition);
}

.resource-nav-link:hover {
  background: var(--color-brand-lighter);
  color: var(--color-dark);
  border-color: var(--color-brand);
}

/* --- Resource Sections --- */
.resource-section {
  background: var(--color-bg);
}

.resource-section-alt {
  background: var(--color-bg-tint);
}

/* --- Resource Cards Grid --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.resource-section-alt .resource-card {
  background: var(--color-white);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.resource-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.resource-card-header h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.resource-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.resource-badge-free {
  background: #e6f4ea;
  color: #1a7f37;
}

.resource-badge-freemium {
  background: #fff3e0;
  color: #b45309;
}

.resource-badge-paid {
  background: var(--color-brand-lighter);
  color: var(--color-brand-deeper);
}

.resource-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-deeper);
  margin-top: auto;
  transition: color var(--transition);
}

.resource-card:hover .resource-link {
  color: var(--color-dark);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Scroll Fade-In */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .logo-img {
    height: 40px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(21, 24, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li a {
    font-size: 20px;
    padding: 14px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-cta {
    margin-top: 16px;
    margin-left: 0 !important;
    text-align: center !important;
  }

  /* Hero Mobile */
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 24px);
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 32px;
  }

  .hero-stat-suffix {
    font-size: 24px;
  }

  /* Program Grid */
  .program-grid {
    grid-template-columns: 1fr;
  }

  /* Vision Grid */
  .vision-grid {
    grid-template-columns: 1fr;
  }

  /* Students Grid */
  .students-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  /* Resources Grid */
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-nav-link {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Support Grid */
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-impact-stats {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Founders */
  .founders-grid {
    gap: 24px;
  }

  .founder-card {
    padding: 28px;
    min-width: auto;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-stat-label {
    margin-top: 0;
  }

  .students-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .apply-highlights {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .university-showcase {
    gap: 8px;
  }

  .university-tag {
    padding: 8px 16px;
    font-size: 13px;
  }
}
