/* Education Hero */
/* standardized hero height with min-height and flexbox centering */
.education-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6rem;
  overflow: hidden;
  padding: 3rem 2rem;
}

.education-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(255, 209, 102, 0.1) 100%);
  z-index: 0;
}

.education-background::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.education-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.education-hero-content h1 {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--mist-grey);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.education-hero-content p {
  font-size: 1.25rem;
  color: var(--emerald-green);
  animation: fadeInUp 1.2s ease-out;
}

/* Education Programs */
.education-programs {
  padding: 4rem 2rem;
  background-color: var(--deep-navy);
}

.programs-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.education-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.05) 0%, rgba(0, 119, 255, 0.05) 100%);
  border: 1px solid rgba(0, 183, 126, 0.2);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.education-card:hover {
  border-color: var(--emerald-green);
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.1) 0%, rgba(0, 119, 255, 0.1) 100%);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 183, 126, 0.15);
}

.education-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1) 0%, rgba(0, 119, 255, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.education-card.featured::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.card-header h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mist-grey);
}

.card-tagline {
  font-size: 0.95rem;
  color: var(--electric-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-description {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.card-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mist-grey);
  opacity: 0.85;
}

.education-card .btn {
  align-self: flex-start;
}

/* Coming Soon */
.coming-soon {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.08) 0%, rgba(0, 183, 126, 0.08) 100%);
  text-align: center;
}

.coming-soon h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 1rem;
  color: var(--mist-grey);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.875rem 1.25rem;
  background-color: rgba(11, 27, 50, 0.6);
  border: 1px solid rgba(0, 119, 255, 0.3);
  border-radius: 0.5rem;
  color: var(--mist-grey);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--electric-blue);
  background-color: rgba(0, 119, 255, 0.05);
}

.newsletter-form input::placeholder {
  color: var(--mist-grey);
  opacity: 0.5;
}

/* Added gallery section for program images */
.education-gallery {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.05) 0%, rgba(0, 119, 255, 0.05) 100%);
}

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

.gallery-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  text-align: center;
  color: var(--mist-grey);
  opacity: 0.7;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 183, 126, 0.2);
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--emerald-green);
  box-shadow: 0 15px 40px rgba(0, 183, 126, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Added workshops section with side-by-side layout */
.education-workshops {
  padding: 4rem 2rem;
  background-color: var(--deep-navy);
}

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

.workshops-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.workshops-subtitle {
  text-align: center;
  color: var(--mist-grey);
  opacity: 0.7;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.workshop-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.workshop-image {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 183, 126, 0.2);
}

.workshop-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.workshop-image:hover img {
  transform: scale(1.05);
}

.workshop-text h3 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--mist-grey);
  margin-bottom: 1rem;
}

.workshop-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mist-grey);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.workshop-list {
  list-style: none;
  padding: 0;
}

.workshop-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--mist-grey);
  font-size: 0.95rem;
}

.workshop-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--emerald-green);
  font-weight: bold;
}

.card-content {
  padding: 0;
}

@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: auto;
    height: 250px;
  }

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

  .programs-container {
    grid-template-columns: 1fr;
  }

  .education-hero-content h1 {
    font-size: 1.75rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
