/* ====== THEME VARIABLES ====== */
:root {
  /* === Colors === */
  --bg-color: #f9f9f9;
  --text-color: #333;
  --card-bg: #f9f9f9;
  --nav-bg: #f4f4f4;
  --nav-link: #222;
  --nav-link-hover: #e0e0e0;
  --theme-toggle-color: #555;
  --theme-toggle-hover: #F5AB1E;
  --link-color: #245799;
  --border-color: #EEE;
  --footer-text-color: #ddd;

  /* === Spacing === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* === Font Sizes === */
  --font-xs: 0.8rem;
  --font-sm: 1rem;
  --font-md: 1.25rem;
  --font-lg: 1.5rem;
  --font-xl: 2rem;
  --font-xxl: 3rem;
  --font-xxxl: 4rem;

  /* === Transitions === */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html.dark-mode {
  --bg-color: #111;
  --text-color: #eee;
  --card-bg: #111;
  --nav-bg: #222;
  --nav-link: #eee;
  --nav-link-hover: #333;
  --theme-toggle-color: #eee;
  --theme-toggle-hover: #F5AB1E;
  --link-color: #245799;
  --border-color: #222;
  --footer-text-color: #222;
}

/* ====== RESET AND BASE STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Teachers', sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--theme-toggle-hover);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
  margin-top: clamp(1.5rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

h3 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}

p {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  margin-bottom: clamp(0.375rem, 1vw, 0.75rem);
  margin-top: clamp(0.375rem, 1vw, 0.75rem);
}

/* ====== NAVIGATION ====== */
.navbar-wide {
  background-color: var(--nav-bg);
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  position: sticky;
  top: 10px;
  margin: 0 auto;
  border-radius: 9999px;
  width: 100%;
  max-width: 1200px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(2.75rem, 5vw, 3.25rem);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.navbar-wide .navbar-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.navbar-wide ul {
  list-style: none;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}

.navbar-wide li a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.25rem);
  padding: clamp(0.25rem, 1vw, 0.4rem) clamp(0.5rem, 1.5vw, 0.8rem);
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.navbar-wide li a:hover {
  background-color: var(--nav-link-hover);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--theme-toggle-color);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  cursor: pointer;
  padding: clamp(0.25rem, 1vw, 0.4rem) clamp(0.3rem, 1vw, 0.5rem);
  transition: opacity 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  color: var(--theme-toggle-hover);
}

/* ====== MOBILE NAVIGATION ====== */
.navbar-skinny {
  display: none;
}

@media (max-width: 930px) {
  .navbar-wide {
    display: none;
  }

  .navbar-skinny {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    width: clamp(3rem, 10vw, 3.75rem);
    height: clamp(3rem, 10vw, 3.75rem);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }

  .menu-toggle {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
    background-color: var(--bg-color);
    border: none;
    color: var(--nav-link);
    width: 100%;
    height: 100%;
    cursor: pointer;
	z-index: 10001;
  }

  .skinny-menu {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: clamp(3rem, 10vw, 3.75rem) 0 1rem;
    z-index: 9999;
  }

  .skinny-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .skinny-menu a {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 600;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 4vw, 1.5rem);
    display: block;
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .skinny-menu a:hover {
    background-color: var(--nav-link-hover);
  }
}

#theme-toggle-skinny {
  background: none;
  border: none;
  color: var(--theme-toggle-color);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  cursor: pointer;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 4vw, 1.5rem);
  transition: opacity 0.3s ease, color 0.3s ease;
}

#theme-toggle-skinny:hover {
  color: var(--theme-toggle-hover);
}

/* ====== HEADER AND SECTIONS ====== */
.title {
  text-align: center;
  margin: clamp(1rem, 5vw, 2rem) auto;
}

.eli-logo {
  width: clamp(180px, 75vw, 400px);
  height: auto;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

section {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

/* ====== PROGRAM INFORMATION ====== */
.convergence-map {
  display: block;
  margin: 1rem auto 0;
  width: 100%;
  max-width: clamp(300px, 80vw, 480px);
  height: auto;
}

/* ====== COMMUNITY SECTION ====== */
.current-cohort {
  width: 98%;
  padding: 0;
}

.community-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

@media (max-width: 500px) {
  .community-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .community-button {
    width: clamp(100px, 50vw, 200px);
  }
}

.community-button {
  background-color: var(--nav-bg);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--nav-link);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.community-button:hover,
.community-button.active {
  background-color: var(--nav-link-hover);
}

.community-description {
  text-align: center;
  margin-bottom: 2rem;
}

.community-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  padding-left: 0;
  padding-right: 0;
  margin-top: 1rem;
  padding-bottom: 2rem;
}

.community-card-content {
  background-color: var(--card-bg);
  padding: clamp(0.5rem, 2vw, 1rem);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  width: 100%;
}

.community-photo {
  width: clamp(180px, 40vw, 300px);
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.community-info {
  flex: 1;
  min-width: 0;
}

.community-info h3 {
  margin-bottom: clamp(0.75rem, 2vw, 2rem);
}

.community-info p {
  word-wrap: break-word;
}

.community-box {
  background-color: var(--card-bg);
  border: 4px solid var(--border-color);
  border-radius: 20px;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

@media (max-width: 800px) {
  .community-card-content {
    flex-direction: column;
    text-align: center;
  }

  .community-photo {
    max-width: 400px;
    max-height: 400px;
  }
}

.community-map-box {
  display: none;
}

#eli-map {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

@media (min-width: 1500px) {
  .community-card-container {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
	padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
  }

  .community-map-box {
    display: block;
    flex-grow: 1;
    min-width: 0;
    height: auto;
    border-radius: 12px;
    background-color: var(--card-bg);
    border: 4px solid var(--border-color);
    overflow: hidden;
  }
}

/* ====== SWIPER.JS CAROUSEL ====== */
.swiper {
  width: 1000px;
  max-width: 100%;
  flex-shrink: 0;
  padding: clamp(0.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--link-color) !important;
  transition: color 0.3s ease;
  font-size: clamp(1rem, 4vw, 2rem);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: var(--theme-toggle-hover) !important;
}

/* ====== LEARN MORE ABOUT X ====== */
.learn-more-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--link-color);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  transition: color var(--transition);
}

.learn-more-button:hover,
.learn-more-button:focus {
  color: var(--theme-toggle-hover);
}

.person-overlay.hidden {
  display: none;
}

.person-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px) brightness(0.8);
  background-color: rgba(0, 0, 0, 0.3);
}

.overlay-content {
  position: relative;
  width: 90%;
  max-height: 90vh;
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 12px;
  z-index: 20001;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* ====== APPLICATION SECTION ====== */
.apply-button {
  background-color: var(--link-color);
  color: #FFF;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.apply-button:hover {
  background-color: var(--theme-toggle-hover);
  color: #000;
}

.apply-button:focus,
.apply-button:active {
  background-color: var(--link-color);
  color: #FFF;
  outline: none;
}

@media (max-width: 500px) {
  .apply-button {
    font-size: 1.1rem;
    padding: 0.65rem 1.25rem;
  }
}

/* ====== FAQ ====== */
.faq {
  max-width: clamp(400px, 80vw, 800px);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.faq-item {
  border-bottom: 3px solid var(--border-color);
}

.faq-item:first-of-type {
  border-top: 3px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  text-align: left;
  padding: clamp(0.75rem, 2vw, 1.25rem) var(--space-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  transition: background-color var(--transition-slow);
}

.faq-question:hover {
  background-color: var(--nav-link-hover);
}

.faq-question .arrow {
  display: inline-block;
  transition: transform var(--transition-slow) ease;
}

.faq-answer {
  display: none;
  padding: 0 var(--space-sm);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.faq-item.open .faq-answer {
  display: block;
  padding: var(--space-md);
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-answer p {
  margin: 0;
  font: inherit;
}

/* ====== FOOTER ====== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--footer-text-color);
  background: none;
  border: none;
}

