/* Class Pages Unified Styles */

/* Page Header */
.page-header {
  background-image: url("images/01 Home Page - Solid Picks/home-page-newsletter-smile-butterfly-wings.jpg");
  background-size: cover;
  background-position: center 10%;
  background-attachment: fixed;
  color: white;
  padding: 120px 0 100px;
  text-align: center;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(7, 27, 114, 0.3) 100%
  );
  pointer-events: none;
}

.header-overlay {
  position: relative;
  z-index: 1;
}

.header-content {
  animation: slideUp 1s ease-out;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Program Overview */
.program-overview {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.overview-header {
  text-align: center;
  margin-bottom: 4rem;
}

.overview-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #071b72;
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.2rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.program-highlights {
  margin-top: 3rem;
}

.highlight-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-item {
  text-align: center;
  width: 22%;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  min-width: 250px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: 200px;
}

.highlight-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #071b72, #0a1f7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}

.highlight-icon i {
  font-size: 2rem;
  color: white;
}

.highlight-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #071b72;
  flex-grow: 0;
}

.highlight-item p {
  color: #6b7280;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Sections */
.class-categories {
  padding: 60px 0;
}

.category-section {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.category-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.category-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 500px;
}

.category-section.reverse .category-content {
  direction: rtl;
}

.category-section.reverse .category-text {
  direction: ltr;
}

.category-image {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  height: 450px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(7, 27, 114, 0.8),
    rgba(245, 158, 11, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
}

.overlay-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.overlay-content span {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.category-text {
  padding: 0 2rem;
}

.category-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #071b72;
  margin-bottom: 1.5rem;
  position: relative;
}

.category-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #071b72, #0a1f7a);
  border-radius: 2px;
}

.category-text p {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.category-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: #f4f6f7;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid #f59e0b;
  transform: translateX(5px);
}

.feature-item i {
  font-size: 1.2rem;
  color: #071b72;
  width: 20px;
}

.feature-item span {
  font-weight: 500;
  color: #374151;
}

/* Program Info */
.program-info {
  padding: 80px 0;
  background: #f8fafc;
}

.info-header {
  text-align: center;
  margin-bottom: 4rem;
}

.info-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #071b72;
  margin-bottom: 1rem;
}

.info-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #071b72, #0a1f7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 1.8rem;
  color: white;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #071b72;
  margin-bottom: 1rem;
}

.info-card p {
  color: #6b7280;
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, #071b72, #0a1f7a);
  border-radius: 25px;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.cta-btn.primary {
  background: #f59e0b;
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-btn.primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Community Engagement Specific Styles */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.engagement-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.engagement-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.engagement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engagement-content {
  padding: 2rem;
}

.engagement-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #071b72;
  margin-bottom: 1rem;
}

.engagement-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Therapeutic Services Specific Styles */
.therapy-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.therapy-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.therapy-item.reverse {
  direction: rtl;
}

.therapy-item.reverse .therapy-content {
  direction: ltr;
}

.therapy-image {
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
}

.therapy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.therapy-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #071b72;
  margin-bottom: 1.5rem;
  position: relative;
}

.therapy-content h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #071b72, #0a1f7a);
  border-radius: 2px;
}

.therapy-content p {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .category-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .category-section.reverse .category-content {
    direction: ltr;
  }

  .category-image {
    order: 1;
    height: 350px;
  }

  .category-text {
    order: 2;
    padding: 0;
    text-align: center;
  }

  .category-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .therapy-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .therapy-item.reverse {
    direction: ltr;
  }

  .therapy-image {
    height: 250px;
  }
}

@media screen and (max-width: 1100px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .highlight-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .highlight-item {
    width: 100%;
    height: auto !important;
    min-height: 200px;
  }

  .category-features {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 250px;
    justify-content: center;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-text {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }

  .overview-header h2 {
    font-size: 2rem;
  }

  .category-text h2 {
    font-size: 2rem;
  }

  .lead-text {
    font-size: 1.1rem;
  }

  .info-card {
    padding: 2rem;
  }

  .cta-section {
    padding: 2rem;
  }

  .highlight-item {
    min-height: 180px;
    padding: 1.5rem;
    height: auto !important;
  }

  .highlight-item h3 {
    font-size: 1.1rem;
  }

  .highlight-item p {
    font-size: 0.9rem;
  }
}
