/* COLOR VARIABLES: ADJUSTED FOR A BRIGHTER AESTHETIC */
:root {
  /* Core Branding Colors */
  --tmf-orange: #f58220; /* Primary Accent */
  --tmf-deep: #221815;   /* Dark Brown/Deep Accent */
  --tmf-cream: #f4efe9; /* NEW: Dominant Light Background */
  --tmf-gray: #e3e0db;   /* Secondary Light Background/Border */

  /* Theme Colors */
  --tmf-bg: #05050b;       /* Original Dark Background (Used only for Header/Footer/Dark Sections) */
  --tmf-text: var(--tmf-dark-text); /* NEW: Default text color is dark */
  --tmf-dark-text: #111111; /* Dark text for light background */
  --tmf-light-text: #ffffff; /* Light text for dark background */
  --tmf-accent: var(--tmf-orange); 
}

/* FADE UP ANIMATION ON PAGE LOAD */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.page .section,
.page header,
.page .hero-grid > *,
.page .event-card {
  animation: fadeUp 0.8s ease-out forwards;
}

.page .hero {
  animation-delay: 0.1s;
}

.page .hero-grid > *:nth-child(1) {
  animation-delay: 0.2s;
}

.page .hero-grid > *:nth-child(2) {
  animation-delay: 0.4s;
}

.page .metrics {
  animation-delay: 0.3s;
}

/* Metric cards fade in on scroll */
.metrics .metric-card {
  opacity: 0;
}

.metrics .metric-card.fade-in {
  animation: fadeUp 0.8s ease-out forwards;
}

.metrics .metric-card.fade-in:nth-child(1) { animation-delay: 0s; }
.metrics .metric-card.fade-in:nth-child(2) { animation-delay: 0.3s; }
.metrics .metric-card.fade-in:nth-child(3) { animation-delay: 0.6s; }
.metrics .metric-card.fade-in:nth-child(4) { animation-delay: 0.9s; }

.page .video-section {
  animation-delay: 0.4s;
}

header {
  animation: fadeUp 0.6s ease-out forwards;
  z-index: 1000;
  position: relative;
}

/* DROPDOWN MENU STYLES */
.nav-item {
  position: relative;
}

/* Invisible bridge to maintain hover when moving to dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--tmf-deep);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  padding: 0.75rem 0;
  z-index: 1001;
}

/* Only use hover for devices that support it (not touch) */
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
}

/* For touch devices and when toggled via JS */
.nav-dropdown.show {
  display: flex;
  flex-direction: column;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown a:hover {
    background: var(--tmf-orange);
    color: #fff;
    padding-left: 2rem;
  }
}

.nav-dropdown a:active {
  background: var(--tmf-orange);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: none !important;
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .nav-item .nav-dropdown.mobile-show {
    display: flex !important;
    margin-top: 0;
  }

  .nav-dropdown a {
    padding: 0.5rem 1rem 0.5rem 2rem;
  }
}

/* BASE STYLES: ADJUSTED */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--tmf-cream); 
  color: var(--tmf-text);
  line-height: 1.5;
}

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

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

/* LAYOUT STYLES */
.page {
  min-height: 100vh;
  background: var(--tmf-cream); 
  color: var(--tmf-text);
}

.section {
  padding: 3.5rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 4vw;
  }
}

.inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* BUTTONS - Touch-friendly with minimum 44px touch target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--tmf-orange);
  color: var(--tmf-dark-text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2); 
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--tmf-orange);
  border: 2px solid var(--tmf-orange);
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--tmf-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.3);
}

/* NAVBAR STYLES: BRIGHT ORANGE FOR VISIBILITY */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--tmf-orange); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo Image Styling */
.nav-logo-mark,
.nav-logo-text {
    display: none !important; 
}

.nav-logo.logo-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

header .nav-logo img,
header .logo-image img,
.nav-logo.logo-image img,
.nav-logo.logo-image .tmf-logo,
.logo-image .tmf-logo {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
}

/* Footer logo sizing */
.footer-logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}


/* Desktop links (Kept light text on dark background) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-grow: 1;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--tmf-accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-donate {
  background: var(--tmf-deep);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s ease;
}

.nav-donate:hover {
  background: #fff;
  color: var(--tmf-dark-text);
}

/* Hamburger (light color on dark background) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile menu hidden by default on desktop */
.mobile-menu {
  display: none;
}

/* MOBILE STYLES */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-donate {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--tmf-orange);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    gap: 0.6rem;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    z-index: 900;
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateY(0);
  }

  .mobile-menu > a {
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
  }

  .mobile-menu > a.active {
    text-decoration: underline;
  }

  .mobile-menu-parent {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: default;
  }

  .mobile-submenu {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .mobile-submenu a {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
  }

  .mobile-footer {
    margin-top: auto;
    padding-bottom: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--tmf-light-text);
  }
}

/* page content padding */
main {
  padding-top: 72px;
}

/* TMFindex SECTION STYLES: MODIFIED */

/* HERO: Now uses a light background for a brighter landing */
.hero {
  background: linear-gradient(to bottom right, var(--tmf-cream) 0%, var(--tmf-gray) 100%);
  color: var(--tmf-dark-text);
  padding-top: 3.5rem;
}

.hero-kicker, .hero-subtitle, .hero-meta, .hero-note {
    opacity: 0.8;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.9rem;
  }
}

/* HERO CONTENT WRAPPER - Side-by-side layout on desktop */
.hero-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-image {
  flex: 0 0 35%;
  display: block;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    display: block;
    order: 1;
  }
}

@media (max-width: 768px) {
  .hero-content-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-image {
    max-width: 100%;
    width: 100%;
  }
  
  .hero-image img {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }
}

.hero-polaroids {
  position: relative;
  min-height: 260px;
  perspective: 1000px;
}

@media (min-width: 900px) {
  .hero-polaroids {
    min-height: 360px;
  }
}

.polaroid {
  position: absolute;
  width: 55%;
  aspect-ratio: 3 / 4;
  background: #ccc;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Polaroid frame and image styles */
.polaroid-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

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

/* Carousel positions - controlled by JavaScript */
.polaroid.position-center {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  z-index: 10;
}

.polaroid.position-left {
  transform: translate(-120%, -55%) rotate(-12deg) scale(0.85);
  z-index: 1;
}

.polaroid.position-right {
  transform: translate(20%, -55%) rotate(10deg) scale(0.85);
  z-index: 1;
}

/* Mobile: show 3 photos stacked like desktop */
@media (max-width: 767px) {
  .hero-polaroids {
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .polaroid {
    position: absolute;
    width: 45%;
    max-width: 160px;
    left: 50%;
    top: 50%;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-polaroids {
    min-height: 240px;
  }
  
  .polaroid {
    width: 42%;
    max-width: 140px;
  }
}

/* Very small phones (max-width: 375px) */
@media (max-width: 375px) {
  .hero-polaroids {
    min-height: 220px;
  }
  
  .polaroid {
    width: 40%;
    max-width: 120px;
  }
}


/* METRICS BAR: KEPT BRIGHT ORANGE FOR ENERGY */
.metrics {
  background: linear-gradient(to bottom, #f49c2a, #e15a16);
  color: #fff;
  text-align: left;
}

/* VIDEO SECTION: KEPT DARK FOR CINEMATIC CONTRAST */
.video-section {
  background: radial-gradient(circle at top, #28202b 0, var(--tmf-bg) 55%, #000 100%);
  color: var(--tmf-light-text);
  text-align: center;
}
.video-section .section-kicker {
    opacity: 0.85;
    text-align: left !important;
    display: block;
    width: 100%;
}
.video-section .section-title {
    text-align: center !important;
}
.video-section .section-subtitle {
    opacity: 0.85;
    text-align: center !important;
}

/* LETTER SECTION: NATURALLY LIGHT, NO CHANGE NEEDED */
.letter-section {
  background: var(--tmf-cream);
  color: var(--tmf-dark-text);
}

/* Letter section links styling */
.letter-section a {
  background-color: rgba(245, 130, 32, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.letter-section a:hover {
  background-color: rgba(245, 130, 32, 0.3);
  transform: translateY(-1px);
}

/* UPDATES SECTION: KEPT DARK FOR HIGH-CONTRAST EVENT CARDS */
.updates {
  background: #07040a;
  color: #fff;
}
.updates .updates-header p {
    color: var(--tmf-light-text);
}

/* CAROUSEL STYLES */
.carousel-container {
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    align-items: flex-start;
}

.event-card {
    flex: 0 0 100%;
    max-width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #131018;
    box-shadow: 0 18px 45px rgba(0,0,0,0.7);
    margin-right: 0;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 0 12px;
}

.nav-dot {
    height: 10px;
    width: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    display: block;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dot:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.nav-dot.active {
    background-color: var(--tmf-orange);
    width: 32px;
}

/* CAROUSEL CONTROLS (unified pill bar) */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    background: rgba(237, 230, 222, 0.65);
    border: none;
    border-radius: 100px;
    padding: 14px 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.carousel-ctrl-arrow {
    background: none;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tmf-orange);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.carousel-ctrl-arrow:hover {
    transform: scale(1.15);
}

.carousel-ctrl-arrow:active {
    transform: scale(0.92);
}

/* SCHOLARSHIP SECTION: KEPT DARK FOR A RICH, FOCUSED FEEL */
.scholarship {
  background: radial-gradient(circle at top left, #36222b 0%, var(--tmf-bg) 55%, #000 100%) !important;
  color: #fff;
  position: relative;
  z-index: 1;
}
.scholarship .scholarship-text p {
    color: var(--tmf-light-text);
}

/* FOOTER: KEPT DARK FOR FOUNDATION/TRUSTWORTHINESS (UPDATED FOR CENTERING) */
.site-footer {
  background: #030308;
  color: rgba(255,255,255,0.88);
  padding: 2.5rem 1.5rem 3.2rem;
}

/* Footer layout styles */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.3rem;
  /* ADDED: Center alignment for small screens */
  align-items: center; 
}

@media (min-width: 700px) {
  .footer-top {
    flex-direction: row;
    /* RESTORE: Spread items out on desktop */
    justify-content: space-between; 
    align-items: center;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--tmf-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.13);
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.86rem;
  opacity: 0.8;
  /* ADDED: Center the copyright and links vertically */
  align-items: center; 
  text-align: center; 
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    /* RESTORE: Spread items out on desktop */
    justify-content: space-between; 
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  /* ADDED: Center links on mobile */
  justify-content: center; 
}

/* HERO GRID */
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.hero-note {
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  text-align: center;
  padding: 1rem;
}

.metric-value {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* SECTION TITLES */
.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--tmf-orange);
  display: block;
  text-align: left;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* VIDEO SECTION */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* LETTER SECTION */
.letter-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.letter-inner h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.letter-inner h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.letter-inner p {
  margin-bottom: 1.25rem;
}

.letter-inner ul {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.letter-inner li {
  margin-bottom: 0.75rem;
}

.letter-signoff {
  margin-top: 2rem;
  font-style: italic;
}

/* UPDATES HEADER */
.updates-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.updates-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.updates-header p {
  opacity: 0.85;
}

/* EVENT CARD DETAILS */
.event-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-banner img,
.event-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  padding: 1.5rem 2rem 2rem;
  color: #ffffff;
}

.event-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tmf-orange);
  margin-bottom: 0.5rem;
}

.event-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.event-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.event-meta {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 1.25rem;
  color: #ffffff;
  line-height: 1.6;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-actions .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  flex: 1;
  min-width: 140px;
}

/* SCHOLARSHIP SECTION */
.scholarship-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .scholarship-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.scholarship-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.scholarship-photo img {
  width: 100%;
  height: auto;
}

.scholarship-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.scholarship-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ARTICLE LIST */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 1rem 0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-link {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.article-link:hover {
  color: var(--tmf-orange);
}

.article-link span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* ============================================
   IPAD / TABLET RESPONSIVE STYLES (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  /* Section padding for tablets */
  .section {
    padding: 4rem 3rem;
  }

  /* Navigation adjustments for iPad */
  .nav-inner {
    padding: 0.9rem 2rem;
  }

  .nav-links {
    gap: 1.2rem;
    font-size: 0.85rem;
  }

  .nav-donate {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero section for iPad */
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-polaroids {
    min-height: 280px;
  }

  .polaroid {
    width: 50%;
  }

  .polaroid-3 {
    width: 58%;
  }
  
  .polaroid-4 {
    width: 50%;
  }

  /* Metrics for iPad */
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  /* Video section for iPad */
  .video-wrapper {
    max-width: 90%;
    margin: 0 auto;
  }

  .video-section .section-kicker {
    text-align: left !important;
  }
  .video-section .section-title,
  .video-section .section-subtitle {
    text-align: center !important;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Letter section for iPad */
  .letter-inner {
    max-width: 85%;
    font-size: 1rem;
  }

  .letter-inner h2 {
    font-size: 1.6rem;
  }

  /* Event cards for iPad */
  .event-card {
    max-width: 100%;
  }

  .event-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .event-title {
    font-size: 1.35rem;
  }

  /* Scholarship section for iPad */
  .scholarship-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }

  .scholarship-text h2 {
    font-size: 1.6rem;
  }

  .scholarship-text p {
    font-size: 1rem;
  }

  /* Article list for iPad */
  .article-link {
    font-size: 0.95rem;
  }

  /* Footer for iPad */
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Buttons for iPad */
  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  /* Donation grid for iPad */
  .donation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Updates header for iPad */
  .updates-header h2 {
    font-size: 1.8rem;
  }
}

/* iPad Portrait specific adjustments (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
  .nav-links {
    gap: 0.9rem;
    font-size: 0.8rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .polaroid {
    width: 48%;
  }

  .polaroid-3 {
    width: 55%;
  }
  
  .polaroid-4 {
    width: 48%;
  }

  .scholarship-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .scholarship-photo {
    max-width: 70%;
    margin: 0 auto;
  }
}

/* iPad Pro and larger tablets (1024px - 1180px) */
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-links {
    gap: 1.4rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-polaroids {
    min-height: 340px;
  }

  .metric-value {
    font-size: 2.3rem;
  }
}

/* TERMS OF USE AND PRIVACY POLICY PAGES */
.terms-body {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffffff;
  padding-top: 0;
  min-height: 100vh;
}

.terms-navbar {
  position: static;
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 30px;
  z-index: 1000;
}

.terms-navbar .logo img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.terms-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 30px 40px;
}

.terms-content-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.terms-content-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--tmf-orange);
}

.terms-content-container .last-updated {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 2em;
  opacity: 0.8;
}

.terms-content-container p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.terms-content-container ul {
  list-style-type: none;
  padding-left: 0;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.terms-content-container ul li {
  position: relative;
  margin-bottom: 0.5em;
}

.terms-content-container ul li::before {
  content: "•";
  color: var(--tmf-orange);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.terms-content-container a {
  color: var(--tmf-orange);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.terms-content-container a:hover {
  opacity: 0.8;
}

.terms-content-container .contact-info {
  margin-top: 2em;
  padding: 1em 0;
  border-top: 1px solid #444;
}

.terms-content-container .contact-info address {
  font-style: normal;
  line-height: 1.8;
}

.terms-footer {
  background-color: rgba(10, 10, 10, 0.8);
  color: #999;
  padding: 20px 30px;
  max-width: 100%;
  text-align: center;
  border-top: 1px solid #444;
}

.terms-footer .footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}

.terms-footer .footer-links {
  margin: 10px 0;
}

.terms-footer .footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9em;
  transition: color 0.2s ease;
  font-weight: 600;
}

.terms-footer .footer-links a:hover {
  color: var(--tmf-orange);
}

.terms-footer .footer-links span {
  color: #555;
}

.terms-footer .copyright {
  margin-top: 5px;
  font-size: 0.8em;
}

/* PROGRAMS SECTION */
.programs-section {
  background: linear-gradient(135deg, #f8f4f0 0%, #ffffff 50%, #f8f4f0 100%);
  color: var(--tmf-dark-text);
  padding: 3rem 0;
}

.programs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.programs-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--tmf-dark-text);
}

.programs-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.program-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--tmf-orange);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(245, 130, 32, 0.2);
}

.program-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--tmf-dark-text);
  font-family: "Playfair Display", serif;
}

.program-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  opacity: 0.85;
  line-height: 1.6;
}

.btn-secondary {
  background-color: var(--tmf-orange);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #e67e1f;
  transform: translateY(-2px);
}

/* LEADERSHIP CAROUSEL */
.leadership-carousel {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

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

.carousel-btn {
  position: relative;
  background-color: var(--tmf-orange);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: bold;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background-color: #e67e1f;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  width: 100%;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0 4px;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.dot.active {
  background-color: var(--tmf-orange);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .leadership-carousel {
    flex-wrap: wrap;
    padding: 0 2rem;
  }
  
  .carousel-items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .leadership-carousel {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .carousel-btn {
    padding: 10px 12px;
    font-size: 1rem;
  }
  
  .carousel-items {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
}

/* RECIPIENTS CAROUSEL */
.recipients-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
}

.recipients-carousel .carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.recipients-carousel .carousel-slide {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
  padding: 2rem;
  min-height: 400px;
}

.recipients-carousel .carousel-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
  background: var(--tmf-orange);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.carousel-nav-btn:hover {
  background: #e67410;
  transform: scale(1.1);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* PROGRAMS SECTION - COOL BOXES DESIGN */
.programs-section {
  background: linear-gradient(135deg, var(--tmf-cream) 0%, #f9f7f3 100%);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.program-card {
  background: #ffffff;
  border: 2px solid #f0ebe4;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tmf-orange), #ff9d4c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.program-card:hover {
  border-color: var(--tmf-orange);
  box-shadow: 0 12px 35px rgba(245, 130, 32, 0.15);
  transform: translateY(-6px);
}

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

.program-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.program-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tmf-dark-text);
  margin: 0;
  line-height: 1.3;
}

.program-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.program-card .btn-secondary {
  margin-top: auto;
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .program-card {
    padding: 1.5rem;
  }
  
  .program-icon {
    font-size: 2.5rem;
  }
  
  .program-card h3 {
    font-size: 1.2rem;
  }
}

/* CAROUSEL CONTROLS - ARROWS AND DOTS BELOW CONTENT */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.carousel-controls .carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* LEADERSHIP CAROUSEL */
.leadership-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

/* ART CAROUSEL - Featured Artwork (Event Card Style) */
.art-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.art-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}

.art-event-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.15);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.athlete-banner {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

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

.art-event-body {
  padding: 3rem 2.5rem;
  text-align: center;
}

.art-event-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: block;
}

.art-event-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tmf-dark-text);
  margin: 0 0 0.5rem 0;
  font-family: "Playfair Display", serif;
}

.art-event-subtitle {
  font-size: 1.1rem;
  color: var(--tmf-dark-text);
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.art-event-meta {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tmf-dark-text);
  margin: 0;
}

.art-carousel-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.art-carousel-arrows .carousel-arrow {
  display: none;
}

.art-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Art Carousel - Responsive (tablet) */
@media (max-width: 768px) {
  .art-carousel-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .art-event-body {
    padding: 1.25rem 1rem;
  }
  
  .art-event-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
  }
  
  .art-event-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
  
  .art-event-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .art-event-meta {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .art-carousel-arrows {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .carousel-dots {
    gap: 0.4rem;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }
}

/* Art Carousel - Responsive (small mobile) */
@media (max-width: 480px) {
  .art-carousel-container {
    padding: 0 0.5rem;
  }

  .art-event-body {
    padding: 1rem 0.75rem;
  }
  
  .art-event-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.6px;
    margin-bottom: 0.3rem;
  }
  
  .art-event-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .art-event-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .art-event-meta {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .art-carousel-arrows {
    gap: 0.75rem;
  }
}

/* LEADERSHIP GRID SECTION */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.leadership-card {
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(245, 130, 32, 0.1);
}

.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--tmf-orange);
}

.leadership-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.leadership-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--tmf-dark-text);
  font-family: "Playfair Display", serif;
}

.leadership-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tmf-orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
}

.leadership-desc {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .leadership-card {
    padding: 1.5rem 1rem;
  }
  
  .leadership-card h4 {
    font-size: 1rem;
  }
}

/* DONATE PREVIEW SECTION - Keep kicker left-aligned on desktop */
#donate-preview .section-kicker {
  text-align: left !important;
}

/* VIDEO GRID STYLING */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.video-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(245, 130, 32, 0.2);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.video-title {
  padding: 1rem;
  background: var(--tmf-deep);
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

/* VIDEO CAROUSEL STYLING */
.video-carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 2rem auto 0;
  padding: 0;
}

.video-carousel {
  position: relative;
  border-radius: 12px;
}

.video-carousel-item {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-carousel-item.active {
  display: block;
  opacity: 1;
}

.video-carousel-item .video-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.video-carousel-item .video-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-carousel-item .video-title {
  padding: 1rem;
  background: var(--tmf-deep);
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
  border-radius: 0 0 12px 12px;
}

.video-carousel-wrapper .carousel-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-carousel-wrapper .carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--tmf-orange);
  border: 2px solid var(--tmf-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: #fff;
}

.video-carousel-wrapper .carousel-arrow:hover {
  background: #e0741c;
  border-color: #e0741c;
  transform: scale(1.1);
}

.video-carousel-wrapper .carousel-navigation {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.video-carousel-wrapper .nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(245, 130, 32, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-carousel-wrapper .nav-dot.active {
  background: var(--tmf-orange);
  transform: scale(1.2);
}

.video-carousel-wrapper .nav-dot:hover {
  background: var(--tmf-orange);
}

@media (max-width: 768px) {
  .video-carousel-wrapper {
    margin: 1.5rem 0 0;
    max-width: 100%;
  }
  
  .video-carousel-wrapper .carousel-arrow {
    width: 44px;
    height: 44px;
  }
  
  .video-carousel-wrapper .carousel-arrows {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .video-carousel-wrapper .carousel-navigation {
    margin-top: 1rem;
  }
  
  .video-carousel-item .video-title {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .video-carousel-wrapper .carousel-arrow {
    width: 38px;
    height: 38px;
  }
  
  .video-carousel-wrapper .carousel-arrows {
    gap: 0.75rem;
  }
  
  .video-carousel-wrapper .nav-dot {
    width: 9px;
    height: 9px;
  }
  
  .video-carousel-item .video-title {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
}

@media (min-width: 768px) {
  .terms-content-container {
    padding: 40px 40px 60px;
  }

  .terms-content-container h1 {
    font-size: 3rem;
  }

  .terms-navbar {
    padding: 25px 40px;
  }
  
  #donate-preview .section-kicker {
    text-align: left !important;
  }
}

/* APPLICATION FORM STYLES */
.application-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 100%;
}

#apply-mentee .application-form {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
}

#apply-mentor .form-group label {
  color: rgba(255, 255, 255, 0.9);
}

#apply-mentee .form-group label {
  color: var(--tmf-dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  color: var(--tmf-dark-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tmf-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-submit button {
  min-width: 250px;
  cursor: pointer;
}

.form-submit button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#apply-mentor .form-message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

#apply-mentor .form-message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Apple-inspired Donate CTA Section */
.donate-cta {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.donate-cta .inner {
  max-width: 680px;
  margin: 0 auto;
}

.donate-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--tmf-dark-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.donate-cta p {
  font-size: 1.15rem;
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.donate-cta .btn-donate {
  display: inline-block;
  background: var(--tmf-dark-text);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.donate-cta .btn-donate:hover {
  background: var(--tmf-orange);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .donate-cta {
    padding: 3.5rem 1.5rem;
  }
  
  .donate-cta h2 {
    font-size: 1.75rem;
  }
  
  .donate-cta p {
    font-size: 1rem;
  }
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: #1d1d1f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
  }
}

/* EVENT CARD MOBILE FIXES */
@media (max-width: 480px) {
  .event-body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .event-title {
    font-size: 1.15rem;
  }

  .event-subtitle {
    font-size: 0.85rem;
  }

  .event-meta {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .event-actions {
    gap: 0.75rem;
  }

  .event-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    min-width: 110px;
  }


  .nav-dot {
    height: 8px;
    width: 8px;
  }

  .nav-dot.active {
    width: 24px;
  }

  .carousel-controls {
    padding: 10px 16px;
    max-width: 100%;
  }

  .carousel-navigation {
    gap: 7px;
  }

  .updates-header h2 {
    font-size: 1.4rem;
  }

  .updates-header p {
    font-size: 0.85rem;
  }
}

/* DESKTOP COMPACT CARDS */
@media (min-width: 769px) {
  .carousel-container {
    max-width: 680px;
    margin: 0 auto;
  }

  .carousel-controls {
    max-width: 680px;
  }

  .event-banner {
    aspect-ratio: 2 / 1;
  }

  .event-body {
    padding: 1.25rem 1.75rem 1.5rem;
  }

  .event-title {
    font-size: 1.35rem;
  }

  .event-subtitle {
    font-size: 0.95rem;
  }

  .event-meta {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .event-actions .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    min-width: 120px;
  }

  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .leadership-card {
    padding: 1.5rem 1.25rem;
  }

  .leadership-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .leadership-card h4 {
    font-size: 1rem;
  }

  .leadership-role {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .leadership-desc {
    font-size: 0.8rem;
  }

}

/* LARGE SCREENS - Monitors (1200px+) */
@media (min-width: 1200px) {
  .inner {
    max-width: 1140px;
  }

  .hero-grid {
    gap: 4rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .metrics-grid {
    gap: 2rem;
  }

  .metric-value {
    font-size: 3rem;
  }
}

/* EXTRA LARGE SCREENS - Large Monitors & TVs (1600px+) */
@media (min-width: 1600px) {
  .inner {
    max-width: 1400px;
  }

  .section {
    padding: 5rem 2rem;
  }

  .hero-grid {
    gap: 5rem;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .metric-value {
    font-size: 3.5rem;
  }

  .metric-label {
    font-size: 1.1rem;
  }

  .carousel-container {
    max-width: 800px;
  }

  .carousel-controls {
    max-width: 800px;
  }

  .event-title {
    font-size: 1.5rem;
  }
}

/* 4K DISPLAYS & LARGE TVs (2000px+) */
@media (min-width: 2000px) {
  .inner {
    max-width: 1600px;
  }

  .section {
    padding: 6rem 3rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .metric-value {
    font-size: 4rem;
  }

  .carousel-container {
    max-width: 900px;
  }

  .carousel-controls {
    max-width: 900px;
  }
}
