/* Programs */
.programs-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff5e00 0%, #00d4ff 100%);
    color: #fff;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.programs-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%230066FF" opacity="0.2" d="M0,0 Q500,200 1000,0 L1000,1000 L0,1000 Z"/></svg>');
    background-size: cover;
}

.programs-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.programs-header h1 {
    color: #fff;
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 20px;
}
.programs-page-card {
    background: var(#4B5563);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.programs-page-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--shadow-bold);
}

.programs-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}
/* Container for all program cards */
.programs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;               /* space between cards */
  justify-content: center; /* center cards horizontally */
  padding: 2rem;           /* breathing room around section */
  background: #f9f9f9;     /* subtle background for contrast */
}

/* Individual program card */
.program-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* Program images */
.program-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Headings */
.program-card h2 {
  margin: 0 0 0.75rem;
  color: #222;
  font-size: 1.4rem;
}

/* Description text */
.program-card p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Details list */
.program-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.program-card li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #444;
}

/* Highlight Duration and Frequency */
.program-card li strong {
  color: #2e8b57; /* green shade */
  font-weight: 600;
  display: inline-block;
  min-width: 90px; /* aligns labels neatly */
}

/* Signup button */
.signup-btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.signup-btn:hover {
  background: #005fcc;
}

/* Responsive tweak for mobile */
@media (max-width: 768px) {
  .programs-container {
    flex-direction: column;
    align-items: center;
  }
  .program-card {
    max-width: 90%;
  }
}

/* ===== FIX FOR PROGRAMS GRID (Add to style.css) ===== */

/* The main container for all program cards */
.programs-grid {
  display: grid;
  /* Create a responsive grid: 1 column on mobile, 2 on tablet, 3 on desktop */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Space between cards */
  padding: 2rem 0; /* Vertical padding only */
  justify-items: center; /* Center cards in their grid cells */
}

/* Individual program card styling */
.program-card {
  background: var(--pure-white);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 380px; /* Prevents cards from getting too wide */
  width: 100%; /* Makes card fill the grid cell */
}

/* Hover effect for cards */
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-bold);
}

/* Ensure the card content is displayed as a column */
.program-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* Make the "Learn More" button sit at the bottom of the card */
.program-content .btn {
  margin-top: auto; /* This pushes the button down */
  align-self: flex-start; /* Aligns the button to the left */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* On tablets and below, use 2 columns */
  .programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  /* On mobile, stack cards in a single column */
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px; /* Optional: limits width on very small screens */
    margin: 0 auto; /* Centers the single column */
  }
}