/* Hero Section */

.hero {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  background-image:
    linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
    url("../../img/heroes/hero-img-1.jpg");
  background-size: cover;
  background-position: center;
  animation: heroslider 24s infinite ease-in-out;
}

@keyframes heroslider {
  /* Image 1 */
  0%,
  12.5% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-1.jpg");
  }
  /* Image 2 */
  16.6%,
  29.1% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-2.jpg");
  }
  /* Image 3 */
  33.3%,
  45.8% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-3.jpg");
  }
  /* Image 4 */
  50%,
  62.5% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-4.jpg");
  }
  /* Image 5 */
  66.6%,
  79.1% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-5.jpg");
  }
  /* Image 6 */
  83.3%,
  95.8% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-6.jpeg");
  }
  /* Flawless wrap back to Image 1 */
  100% {
    background-image:
      linear-gradient(rgba(11, 17, 59, 0.5), rgba(11, 17, 59, 0.9)),
      url("../../img/heroes/hero-img-1.jpg");
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--accent-gold);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* STATS / IMPACT STRIP */

.stats-strip {
  background-color: var(--primary-navy-light);
  color: var(--white);
  padding: 40px 20px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
}

/* ACADEMIES SECTION */

.academics {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.academics a {
  align-self: center;
  margin-top: 30px;
  margin-bottom: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-navy-light);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.card h3 {
  color: var(--primary-navy);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  color: var(--text-gray);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.card .academic-list {
  text-align: start;
}

/* FOUNDATION & VISION */

.foundation {
  background-color: var(--primary-navy-light);
  padding: 40px 20px;
}

.foundation-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.foundation-text {
  flex: 1;
}

.foundation-text h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.foundation-text p {
  color: var(--bg-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.foundation-image {
  flex: 1;
  text-align: center;
  /* background: var(--primary-navy); */
  padding: 40px;
  border-radius: 8px;
}

.foundation-image img {
  max-width: 100%;
  height: auto;
  border: 4px solid var(--accent-gold);
  width: 300px;
}

/* Partners */

.partners h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

/* Partners Container Area */
.partners-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden; /* Cuts off extra logos outside the frame */
  border-radius: 8px;
  margin-bottom: 50px;
}

/* The Sliding Track */
.partner-slider {
  display: flex;
  gap: 200px; /* Your layout spacing */
  align-items: center;
  flex-wrap: nowrap;
  width: max-content; /* Prevents logos from being compressed */

  /* Triggers the seamless crawl animation */
  animation: continuousCrawl 30s linear infinite;
}

.partner-slider img {
  width: 200px;
  flex-shrink: 0;
}

/* The Seamless Animation Path */
@keyframes continuousCrawl {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Moves by exactly half the track width (the first full set of logos) */
    transform: translateX(-50%);
  }
}

/* Page Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .foundation-container {
    flex-direction: column;
  }
}