/**
 * Shared Hero Styles for About, Programs, and Contact pages
 *
 * Implements the Modern Teal & Purple design system
 */

/* Base Hero Styles - Unified for all pages */
.hero-bg {
  color: var(--light-text);
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: linear-gradient(135deg, #0093FF 0%, #0089EE 30%, #007FE0 60%, #0073D1 100%);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"), linear-gradient(135deg, #0093FF 0%, #0089EE 30%, #007FE0 60%, #0073D1 100%);
  text-align: center;
}

/* Legacy classes removed - use .hero-bg instead */

/* Add a semi-transparent overlay to improve text readability */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Ensure content is above the overlay */
.hero-bg .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero content wrapper */
.hero-content {
  width: 100%;
  max-width: 800px;
  padding: 0 15px;
}

/* Hero Content Styles */
.hero-bg h1,
.hero-bg .display-4,
.hero-content h1,
.hero-content .display-4 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-size: 3.5rem; /* Increased font size */
  font-family: var(--font-heading) !important; /* Use variable from main.css */
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); /* Add text shadow for better readability */
}

.hero-bg .lead,
.hero-content .lead,
.hero-bg p,
.hero-content p {
  color: var(--light-text);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto; /* Center the lead text */
  opacity: 0.9;
  font-size: 1.5rem; /* Increased font size */
  line-height: 1.4;
  font-family: var(--font-body) !important; /* Use variable from main.css */
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

/* Hero Decoration and Animation Styles */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite ease-in-out;
}

.particle-1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  top: 20%;
  right: 10%;
  animation-duration: 25s;
}

.particle-2 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: 30%;
  left: 15%;
  animation-duration: 30s;
  animation-delay: 2s;
}

.particle-3 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  top: 40%;
  right: 20%;
  animation-duration: 20s;
  animation-delay: 1s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(50px, 25px);
  }
  50% {
    transform: translate(0, 50px);
  }
  75% {
    transform: translate(-50px, 25px);
  }
}

/* Text Gradient Effect */
.text-gradient {
  background: linear-gradient(90deg, #9c27b0, #3f51b5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Animation for scroll elements - moved to main.css */

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-bg {
    height: 300px; /* Slightly reduced height for tablets */
  }

  .hero-bg h1,
  .hero-bg .display-4,
  .hero-content h1,
  .hero-content .display-4 {
    font-size: 3rem;
    /* Font family is inherited from main styles */
  }

  .hero-bg .lead,
  .hero-content .lead,
  .hero-bg p,
  .hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    /* Font family is inherited from main styles */
  }

  .wave-divider svg {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    height: 280px; /* Further reduced height for small tablets */
  }

  .hero-bg h1,
  .hero-bg .display-4,
  .hero-content h1,
  .hero-content .display-4 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Font family is inherited from main styles */
  }

  .hero-bg .lead,
  .hero-content .lead,
  .hero-bg p,
  .hero-content p {
    font-size: 1.2rem;
    /* Font family is inherited from main styles */
  }
}

@media (max-width: 576px) {
  /* xs - Mobile phones (portrait) */
  .hero-bg {
    height: 250px; /* Smallest height for mobile */
  }

  .hero-bg h1,
  .hero-bg .display-4,
  .hero-content h1,
  .hero-content .display-4 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    /* Font family is inherited from main styles */
  }

  .hero-bg .lead,
  .hero-content .lead,
  .hero-bg p,
  .hero-content p {
    font-size: 1.1rem;
    max-width: 100%;
    line-height: 1.4;
    /* Font family is inherited from main styles */
  }

  .wave-divider svg {
    height: 50px;
  }
}