/* Homepage Styles */

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 60vh;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-video-container {
    min-height: 80vh;
  }
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  object-fit: cover;
}

.hero-fallback-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-video {
    display: none;
  }

  .hero-fallback-image {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.6) 0%,
    rgba(10, 22, 40, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: 80px 0;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-content {
    min-height: 80vh;
    padding: 120px 0;
  }
}

.hero-title {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
  text-wrap: balance;
  max-width: 900px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

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

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

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

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.hero-cta-button {
  display: inline-block;
  background-color: #ffd046;
  color: #0a1628;
  padding: 16px 32px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-radius: 0;
}

.hero-cta-button:hover {
  background-color: #e6bb3e;
  color: #0a1628;
}

.hero-cta-button:focus-visible {
  outline: 2px solid #ffd046;
  outline-offset: 2px;
}

/* Track Record Section */
.track-record-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.track-record-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.track-record-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.75)
  );
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .track-record-overlay {
    padding: 6rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .track-record-overlay {
    padding: 8rem 2rem;
  }
}

.track-record-container {
  max-width: 1400px;
  margin: 0 auto;
}

.track-record-content {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

@media (min-width: 768px) {
  .track-record-content {
    padding: 3rem;
  }
}

.track-record-title {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .track-record-title {
    font-size: 3rem;
  }
}

.track-record-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffd046;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.6);
}

.track-record-description {
  font-size: 1.125rem;
  color: #ffffff;
  line-height: 1.75;
  margin-bottom: 3rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6);
}

.track-record-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  align-items: start;
}

@media (min-width: 640px) {
  .track-record-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .track-record-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.track-record-stat-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  padding: 0;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  align-items: flex-start;
}

.track-record-stat-item:hover,
.track-record-stat-item:focus-within {
  border-left-color: #ffd046;
}

.track-record-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.track-record-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd046;
  line-height: 1;
  margin: 0;
  text-align: left;
  width: 100%;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .track-record-stat-number {
    font-size: 2.5rem;
  }
}

/* Featured Programs Section */
.featured-programs-section {
  background-color: #ffffff;
  padding: 64px 0;
}

@media (min-width: 768px) {
  .featured-programs-section {
    padding: 96px 0;
  }
}

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

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 64px;
  }
}

.section-label {
  color: #0a1628;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: #0a1628;
}

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

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.programs-grid {
  display: grid;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.program-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 0;
}

.program-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 0;
}

.program-card:hover .program-image {
  transform: scale(1.05);
}

.program-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .program-content {
    padding: 32px;
  }
}

.program-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a1628;
  margin-bottom: 12px;
}

.program-title {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}

.program-title a {
  color: #0a1628;
  text-decoration: none;
  transition: color 0.2s ease;
}

.program-title a:hover {
  color: #ffd046;
}

.program-excerpt {
  color: #525252;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a1628;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: auto;
}

.program-link:hover {
  color: #ffd046;
}

.program-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.program-link:hover svg {
  transform: translateX(4px);
}

.program-link:focus-visible {
  outline: 2px solid #ffd046;
  outline-offset: 2px;
}

/* Event Gallery Section */
.event-gallery-section {
  background-color: #f5f5f5;
  padding: 40px 0 64px;
}

@media (min-width: 768px) {
  .event-gallery-section {
    padding: 56px 0 96px;
  }
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .event-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }

  .event-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.event-gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.event-gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .event-gallery-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1023px) {
  .event-gallery-item {
    aspect-ratio: 16 / 10;
  }
}

.event-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.event-gallery-item:hover .event-gallery-image,
.event-gallery-item:focus-within .event-gallery-image {
  transform: scale(1.05);
}

/* Home CTA Section */
.home-cta-section {
  background-color: #0a1628;
  padding: 64px 0;
  color: #ffffff;
}

@media (min-width: 768px) {
  .home-cta-section {
    padding: 96px 0;
  }
}

.cta-inner {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.cta-heading {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .cta-heading {
    font-size: 2.25rem;
  }
}

.cta-text {
  color: #e5e5e5;
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: #ffd046;
  color: #0a1628;
  padding: 16px 32px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-radius: 0;
}

.cta-button:hover {
  background-color: #e6bb3e;
  color: #0a1628;
}

.cta-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
