/* Programs Page Specific Styles */
.programs-hero {
  background: linear-gradient(135deg, #001787 0%, #0066cc 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.programs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.programs-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.programs-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.program-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #001787, #0066cc);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 23, 135, 0.15);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #001787, #0066cc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.program-card h3 {
  color: #001787;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.program-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.intro-section {
  background: #f8f9fa;
  padding: 3rem 0;
  text-align: center;
}

.intro-section h2 {
  color: #001787;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Force 2 columns at medium viewports to prevent 3-1 orphan layout */
@media screen and (min-width: 737px) and (max-width: 1280px) {
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Force 4 columns at large viewports */
@media screen and (min-width: 1281px) {
  .benefits-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefits-list li {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-left: 3px solid #001787;
}

.benefits-list strong {
  color: #001787;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media screen and (max-width: 736px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .programs-hero h1 {
    font-size: 2rem;
  }

  .programs-hero p {
    font-size: 1.1rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .program-card {
    padding: 1.5rem;
  }

  .intro-section h2 {
    font-size: 1.8rem;
  }
}

/* Icon animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.program-icon {
  animation: float 3s ease-in-out infinite;
}

.program-card:nth-child(2) .program-icon {
  animation-delay: 0.5s;
}

.program-card:nth-child(3) .program-icon {
  animation-delay: 1s;
}

.program-card:nth-child(4) .program-icon {
  animation-delay: 1.5s;
}

.program-card:nth-child(5) .program-icon {
  animation-delay: 2s;
}

.program-card:nth-child(6) .program-icon {
  animation-delay: 2.5s;
}

.program-card:nth-child(7) .program-icon {
  animation-delay: 3s;
}

.program-card:nth-child(8) .program-icon {
  animation-delay: 3.5s;
}
