/* =========================================================
   YAHWEH HILLS UNIVERSITY — styles.css
   Aesthetic: Refined Prestige · Forest Green & Antique Gold
   ========================================================= */

/* ===== RESET & ROOT ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* === Crimson Palette (from logo) === */
  --crimson-deep:   #2a0606;
  --crimson-dark:   #5a0f0f;
  --crimson-mid:    #7c1414;
  --crimson:        #8e1a1a;
  --crimson-light:  #a82424;

  /* === Gold Palette (from logo) === */
  --gold:           #c9a010;
  --gold-mid:       #d4aa30;
  --gold-light:     #e8c355;
  --gold-bright:    #f2d060;
  --gold-pale:      #fdf3d0;

  /* === Neutrals === */
  --cream:         #faf6ee;
  --white:         #ffffff;
  --text-dark:     #1a0505;
  --text-mid:      #3d2020;
  --text-muted:    #7a5a5a;
  --border:        rgba(201,160,16,0.28);

  /* === Aliases for easy swap === */
  --green-dark:    var(--crimson-deep);
  --green-mid:     var(--crimson-dark);
  --green-light:   var(--crimson-mid);
  --green-accent:  var(--crimson-light);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.18);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.crest-ring {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(201,160,16,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-text {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:0.6; } 50% { opacity:1; } }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.2rem 0;
}

#navbar.scrolled {
  background: rgba(42,6,6,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--crimson-deep);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ===== LOGO IMAGE STYLES ===== */
.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,160,16,0.5);
  background: #1a0505;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 0 16px rgba(201,160,16,0.5);
}

.footer-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,160,16,0.4);
  background: #1a0505;
  flex-shrink: 0;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(201,160,16,0.5);
  background: rgba(42,6,6,0.5);
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(201,160,16,0.3));
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 8px 32px rgba(201,160,16,0.3)); }
  50%      { filter: drop-shadow(0 8px 48px rgba(201,160,16,0.55)); }
}

.logo-emblem.small { width: 38px; height: 38px; font-size: 0.85rem; }

.logo-text { display: flex; flex-direction: column; }

.logo-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(201,160,16,0.1);
}

.btn-apply {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,160,16,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(174,30,30,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(42,6,6,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 120% 120% at 50% 50%, #6b1010 0%, #2a0606 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42,6,6,0.35) 0%, rgba(42,6,6,0.82) 100%);
}

/* Sunburst from logo */
.hero-sunburst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: slowSpin 60s linear infinite;
  transform-origin: center;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }

.floating-shapes { position: absolute; inset: 0; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(201,160,16,0.06);
  animation-delay: 0s;
}

.shape-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: rgba(142,26,26,0.12);
  animation-delay: -3s;
}

.shape-3 {
  width: 300px; height: 300px;
  top: 40%; left: 40%;
  background: rgba(201,160,16,0.04);
  animation-delay: -6s;
}

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 2rem;
  padding-top: 6rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-title .gold {
  color: var(--gold-light);
  font-weight: 600;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201,160,16,0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 1.75rem 3rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,160,16,0.2);
  border-radius: var(--radius-lg);
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(201,160,16,0.3);
}

.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  z-index: 2;
  animation: bounceScroll 2s ease-in-out infinite;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

@keyframes bounceScroll {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS (SHARED) ===== */
.section {
  padding: 7rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.section-title.center { text-align: center; }

.section-title em {
  font-style: italic;
  color: var(--crimson-light);
}

.gold-bar {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 2rem;
}

.gold-bar.center-bar {
  margin-left: auto;
  margin-right: auto;
}

.body-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.section-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.commitment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.commit-icon {
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-main {
  background: var(--crimson-deep);
  color: var(--white);
}

.card-main h3 { color: var(--gold-light); }
.card-main p  { color: rgba(255,255,255,0.75); }

.card-secondary {
  background: var(--gold-pale);
  color: var(--text-dark);
}

.card-secondary h3 { color: var(--crimson-dark); }
.card-secondary p  { color: var(--text-mid); }

.card-accent {
  background: var(--crimson-mid);
  color: var(--white);
}

.card-accent h3 { color: var(--gold-light); }
.card-accent p  { color: rgba(255,255,255,0.8); }

/* ===== HISTORY ===== */
.history {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.history-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  color: rgba(90,15,15,0.04);
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.timeline {
  position: relative;
  margin-top: 4rem;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,160,16,0.1));
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-item .timeline-year {
  text-align: right;
  grid-column: 1;
}

.timeline-item .timeline-dot {
  grid-column: 2;
}

.timeline-item .timeline-content {
  grid-column: 3;
}

.timeline-item.reverse .timeline-year {
  text-align: left;
  grid-column: 3;
  order: 3;
}

.timeline-item.reverse .timeline-dot {
  grid-column: 2;
  order: 2;
}

.timeline-item.reverse .timeline-content {
  grid-column: 1;
  order: 1;
  text-align: right;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--crimson-mid);
  border: 3px solid var(--gold);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.timeline-dot.active {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,160,16,0.2);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ===== FACULTIES ===== */
.faculties {
  background: var(--white);
}

.faculty-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--green-dark);
}

.tab-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--gold-light);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.faculty-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  cursor: default;
}

.program-card:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-card:hover h4 { color: var(--gold-light); }
.program-card:hover p  { color: rgba(255,255,255,0.7); }

.program-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.program-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color var(--transition);
}

.program-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: color var(--transition);
}

/* Business Tab */
.business-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.biz-section {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.biz-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.biz-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.biz-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.biz-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.4;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: var(--crimson-deep);
  overflow: hidden;
  padding: 8rem 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(168,36,36,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 50%, rgba(42,6,6,0.5) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner .section-eyebrow { color: var(--gold-light); }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-title em {
  font-style: italic;
  color: var(--gold-light);
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-input {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.875rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(201,160,16,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.cta-input::placeholder { color: rgba(255,255,255,0.4); }

.cta-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.cta-msg {
  min-height: 1.4rem;
  font-size: 0.875rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.cta-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson-light);
  box-shadow: 0 0 0 3px rgba(142,26,26,0.1);
}

.btn-primary.full-width {
  width: 100%;
  justify-content: center;
}

.form-success-msg {
  text-align: center;
  font-size: 0.875rem;
  color: var(--crimson-light);
  min-height: 1.4rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 5rem 0 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-links-group h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-group ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links-group ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(201,160,16,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

/* ===== MOTTO RIBBON ===== */
.motto-ribbon {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-dark), var(--crimson-deep));
  border-top: 1px solid rgba(201,160,16,0.2);
  border-bottom: 1px solid rgba(201,160,16,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: opacity var(--transition), top var(--transition);
  font-family: var(--font-body);
  font-weight: 500;
}

.ribbon-dot { color: var(--gold); opacity: 0.6; }

#navbar.scrolled ~ .motto-ribbon {
  top: 60px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-grid.two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .timeline::before { left: 1.5rem; }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .timeline-item .timeline-year,
  .timeline-item.reverse .timeline-year {
    display: none;
  }

  .timeline-item .timeline-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item .timeline-content,
  .timeline-item.reverse .timeline-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--green-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    z-index: 1001;
  }

  .nav-links.open { right: 0; }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hamburger { display: flex; }
  .btn-apply { display: none; }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item .timeline-dot,
  .timeline-item.reverse .timeline-dot { display: none; }
  .timeline::before { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }
  .contact-form { padding: 1.75rem; }
}



/* =========================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   Yahweh Hills University
   ========================================================= */

/* Prevent accidental horizontal scrolling */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1024px) {

  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .btn-apply {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .hero-stats {
    margin-top: 3rem;
  }

  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-grid.two-col {
    gap: 3rem;
  }

  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {

  /* ---------- Navbar ---------- */

  #navbar {
    padding: 0.75rem 0;
  }

  #navbar.scrolled {
    padding: 0.6rem 0;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .nav-logo {
    min-width: 0;
    gap: 0.55rem;
  }

  .nav-logo-img {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-main {
    font-size: 0.95rem;

    /* Prevent the university name from making
       the navbar too wide */
    white-space: nowrap;
  }

  .logo-sub {
    font-size: 0.48rem;
    letter-spacing: 0.08em;

    white-space: nowrap;
  }

  /* ---------- Hamburger ---------- */

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1003;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .hamburger span {
    width: 24px;
  }

  /* ---------- Mobile menu ---------- */

  .nav-links {
    position: fixed;

    top: 0;
    right: -100%;

    width: min(82vw, 330px);
    height: 100dvh;

    padding: 6rem 1.5rem 2rem;

    background: rgba(42, 6, 6, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: stretch;

    gap: 0.4rem;

    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);

    transition: right 0.35s ease;

    z-index: 1002;

    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;

    font-size: 1rem;

    padding: 0.9rem 1rem;

    border-radius: 8px;

    color: rgba(255,255,255,0.85);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(201,160,16,0.12);
    color: var(--gold-light);
  }

  .btn-apply {
    display: none;
  }


  /* =====================================================
     MOTTO RIBBON
     ===================================================== */

  .motto-ribbon {
    top: 62px;

    font-size: 0.55rem;

    letter-spacing: 0.12em;

    gap: 0.45rem;

    padding: 0.3rem 0.5rem;

    white-space: nowrap;
  }

  #navbar.scrolled ~ .motto-ribbon {
    top: 54px;
  }


  /* =====================================================
     HERO
     ===================================================== */

  .hero {
    min-height: 100svh;

    padding-bottom: 2rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;

    padding: 7rem 1.25rem 0;
  }

  .hero-logo {
    width: 110px;
    height: 110px;

    margin-bottom: 1.2rem;

    border-width: 2px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;

    letter-spacing: 0.16em;

    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);

    line-height: 1.05;

    margin-bottom: 1.25rem;
  }

  .hero-desc {
    font-size: 0.9rem;

    line-height: 1.7;

    max-width: 500px;

    margin-bottom: 1.75rem;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;

    gap: 0.75rem;

    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .btn-primary,
  .btn-ghost {
    min-height: 48px;

    padding: 0.8rem 1.5rem;

    font-size: 0.85rem;
  }


  /* =====================================================
     HERO STATS
     ===================================================== */

  .hero-stats {
    width: calc(100% - 2rem);

    margin-top: 2.25rem;

    padding: 1.25rem 1rem;

    flex-direction: column;

    gap: 1rem;

    border-radius: 16px;
  }

  .stat {
    width: 100%;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.62rem;

    letter-spacing: 0.06em;
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }

  .scroll-down {
    display: none;
  }


  /* =====================================================
     GENERAL SECTIONS
     ===================================================== */

  .section {
    padding: 4rem 0;
  }

  .section-container {
    width: 100%;

    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section-eyebrow {
    font-size: 0.62rem;

    letter-spacing: 0.18em;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 2.7rem);

    line-height: 1.1;
  }

  .body-text {
    font-size: 0.9rem;

    line-height: 1.8;
  }


  /* =====================================================
     ABOUT
     ===================================================== */

  .section-grid.two-col {
    grid-template-columns: 1fr;

    gap: 2.5rem;
  }

  .commitment-list {
    gap: 1rem;
  }

  .commitment-list li {
    font-size: 0.88rem;

    gap: 0.6rem;
  }

  .about-visual {
    gap: 1rem;
  }

  .about-card {
    padding: 1.4rem;

    border-radius: 16px;
  }

  .about-card-icon {
    font-size: 1.8rem;
  }

  .about-card h3 {
    font-size: 1.2rem;
  }

  .about-card p {
    font-size: 0.85rem;
  }


  /* =====================================================
     HISTORY / TIMELINE
     ===================================================== */

  .history-bg-text {
    font-size: 5rem;

    opacity: 0.6;

    top: 15%;
  }

  .timeline {
    margin-top: 2.5rem;

    padding-left: 1rem;
  }

  .timeline::before {
    display: block;

    left: 0;

    width: 2px;
  }

  .timeline-item,
  .timeline-item.reverse {
    display: grid;

    grid-template-columns: 14px minmax(0, 1fr);

    gap: 1rem;

    margin-bottom: 2rem;

    align-items: start;
  }

  .timeline-item .timeline-year,
  .timeline-item.reverse .timeline-year {
    display: none;
  }

  .timeline-item .timeline-dot,
  .timeline-item.reverse .timeline-dot {
    display: block;

    grid-column: 1;

    grid-row: 1;

    width: 12px;
    height: 12px;

    margin-top: 1.2rem;
  }

  .timeline-item .timeline-content,
  .timeline-item.reverse .timeline-content {
    grid-column: 2;

    grid-row: 1;

    text-align: left;

    order: initial;

    min-width: 0;
  }

  .timeline-content {
    padding: 1.25rem;

    border-radius: 12px;
  }

  .timeline-content h3 {
    font-size: 1.15rem;
  }

  .timeline-content p {
    font-size: 0.84rem;

    line-height: 1.7;
  }


  /* =====================================================
     FACULTIES
     ===================================================== */

  .faculty-tabs {
    width: 100%;

    flex-direction: column;

    gap: 0.65rem;

    margin-bottom: 2rem;
  }

  .tab-btn {
    width: 100%;

    padding: 0.8rem 1rem;

    font-size: 0.82rem;

    min-height: 48px;
  }

  .faculty-intro {
    font-size: 0.9rem;

    line-height: 1.75;

    margin-bottom: 2rem;
  }


  /* =====================================================
     PROGRAMS
     ===================================================== */

  .programs-grid {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .program-card {
    padding: 1.35rem;

    border-radius: 14px;
  }

  .program-icon {
    font-size: 2rem;

    margin-bottom: 0.75rem;
  }

  .program-card h4 {
    font-size: 1.1rem;
  }

  .program-card p {
    font-size: 0.84rem;
  }


  /* =====================================================
     BUSINESS PROGRAMS
     ===================================================== */

  .business-sections {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .biz-section {
    padding: 1.35rem;

    border-radius: 14px;
  }

  .biz-section-title {
    font-size: 1.1rem;
  }

  .biz-list {
    gap: 0.65rem;
  }

  .biz-list li {
    font-size: 0.85rem;
  }


  /* =====================================================
     CTA / APPLICATION
     ===================================================== */

  .cta {
    padding: 4rem 0;
  }

  .cta-inner {
    width: 100%;
  }

  .cta-title {
    font-size: clamp(2rem, 9vw, 2.7rem);

    line-height: 1.1;
  }

  .cta-desc {
    font-size: 0.9rem;

    line-height: 1.7;
  }

  .cta-form {
    width: 100%;

    flex-direction: column;

    gap: 0.75rem;
  }

  .cta-input {
    width: 100%;

    min-height: 50px;
  }

  .cta-form .btn-primary {
    width: 100%;

    justify-content: center;

    min-height: 50px;
  }

  .cta-features {
    flex-direction: column;

    align-items: center;

    gap: 0.6rem;
  }


  /* =====================================================
     CONTACT
     ===================================================== */

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 2rem;
  }

  .contact-info {
    width: 100%;
  }

  .contact-item {
    gap: 0.75rem;

    padding: 0.75rem 0;
  }

  .contact-icon {
    flex-shrink: 0;
  }

  .contact-item h4 {
    font-size: 0.95rem;
  }

  .contact-item p {
    font-size: 0.82rem;

    word-break: break-word;
  }

  .contact-form {
    width: 100%;

    padding: 1.25rem;

    border-radius: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;

    min-height: 48px;

    font-size: 16px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .btn-primary.full-width {
    min-height: 50px;
  }


  /* =====================================================
     FOOTER
     ===================================================== */

  .footer-top {
    padding: 3.5rem 0 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;

    gap: 2rem;

    padding: 0 1.15rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    gap: 0.6rem;
  }

  .footer-logo-img {
    width: 46px;
    height: 46px;
  }

  .footer-tagline {
    font-size: 0.82rem;

    max-width: 100%;
  }

  .footer-links-group h5 {
    margin-bottom: 0.8rem;
  }

  .footer-links-group ul {
    gap: 0.55rem;
  }

  .footer-links-group ul a {
    font-size: 0.82rem;
  }

  .footer-bottom {
    padding: 1.25rem 1rem;

    flex-direction: column;

    text-align: center;

    gap: 0.4rem;
  }

  .footer-bottom p {
    font-size: 0.72rem;
  }


  /* =====================================================
     BACK TO TOP
     ===================================================== */

  .back-to-top {
    width: 42px;
    height: 42px;

    right: 1rem;
    bottom: 1rem;

    font-size: 1rem;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-main {
    font-size: 0.85rem;
  }

  .logo-sub {
    font-size: 0.42rem;
  }

  .hamburger {
    width: 40px;
    height: 40px;
  }

  .motto-ribbon {
    font-size: 0.46rem;

    letter-spacing: 0.08em;

    gap: 0.3rem;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-logo {
    width: 95px;
    height: 95px;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-desc {
    font-size: 0.84rem;
  }

  .hero-stats {
    width: calc(100% - 1.5rem);

    padding: 1.1rem 0.75rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.56rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .body-text {
    font-size: 0.86rem;
  }

  .about-card {
    padding: 1.2rem;
  }

  .timeline {
    padding-left: 0.75rem;
  }

  .timeline-item,
  .timeline-item.reverse {
    grid-template-columns: 12px minmax(0, 1fr);

    gap: 0.75rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }

  .program-card {
    padding: 1.15rem;
  }

  .biz-section {
    padding: 1.15rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* =========================================================
   VERY SMALL PHONES — 320px
   ========================================================= */

@media (max-width: 360px) {

  .logo-main {
    font-size: 0.78rem;
  }

  .logo-sub {
    display: none;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-eyebrow {
    font-size: 0.55rem;
  }

  .hero-desc {
    font-size: 0.8rem;
  }

  .hero-stats {
    width: calc(100% - 1rem);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .motto-ribbon {
    font-size: 0.4rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

  .nav-link,
  .tab-btn,
  .btn-primary,
  .btn-ghost,
  .btn-apply {
    -webkit-tap-highlight-color: transparent;
  }

  .program-card:hover,
  .about-card:hover,
  .timeline-content:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .nav-link,
  .tab-btn,
  .btn-primary,
  .btn-ghost {
    min-height: 44px;
  }
}


/* =========================================================
   REDUCE MOTION FOR USERS WHO PREFER IT
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}