/* --- 1. Variables & Global Reset --- */
:root {
  --primary-blue: #4a90e2;
  --success-green: #7ed321;
  --accent-yellow: #f8e71c;
  --text-dark: #2c3e50;
  --text-muted: #666;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  padding-top: 70px; /* Offset for the fixed glass header */
}

/* --- 2. Professional Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-blue);
}

/* --- 3. Page Hero Section --- */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--success-green)
  );
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* --- 4. Main Grid Layouts --- */
.container {
  max-width: 80%;
  margin: 2rem auto;
  padding: 0 2rem;
}

h2 {
  color: var(--primary-blue);
  margin: 4rem 0 2rem;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
}

/* Program & Age Group Cards */
.program-grid,
.age-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.program-card,
.age-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-top: 5px solid var(--success-green);
}

.program-card:hover,
.age-card:hover {
  transform: translateY(-10px);
}

.program-header {
  background: #f8f9fa;
  padding: 2rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.program-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  text-align: center;
}

.program-content,
.age-card p {
  padding: 2rem;
  color: var(--text-muted);
}

.placement-section {
    background-color: #fcfcfc;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1a1a1a;
}

/* The Grid that makes it look like one unit */
.placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: #ffffff; /* White "canvas" */
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Soft outer shadow */
}

/* Individual Card Styling */
.placement-card {
    padding: 25px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

.placement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #4a90e2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.placement-card h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.placement-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Highlight the long policy card to span 2 columns on big screens */
@media (min-width: 992px) {
    .highlight-card {
        grid-column: span 2;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 20px;
    }
}


/* --- 5. Feature Lists --- */
.program-features {
  list-style: none;
  margin: 1.5rem 0;
}

.program-features li {
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  position: relative;
  font-weight: 500;
}

.program-features li:before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* Highlight Box (Used for Calls to Action) */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-blue), #2980b9);
  color: white;
  padding: 3rem;
  border-radius: 15px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Ensure the grid takes up the full available width of the container */
.program-details {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 3rem;
    align-items: stretch; /* Makes both columns the same height */
    margin: 4rem 0;
}

.program-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text vertically if image is taller */
}

/* The Container for the image */
.program-image {
    width: 100%;
    height: 100%; /* Matches the height of the program-info box */
    min-height: 350px; /* Prevents it from being too small on some screens */
    border-radius: 15px;
    overflow: hidden; /* Clips the image to the border radius */
    box-shadow: var(--shadow);
}

/* The Actual Image Styling */
.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IMPORTANT: This fills the area without stretching the kids' faces */
    object-position: center;
    display: block;
}

/* Mobile Fix: Stack them on top of each other */
@media (max-width: 1024px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .age-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .page-header {
      padding: 2.5rem 1.5rem;
      border-radius: 0 0 30px 30px;
    }
    
    .page-header h1 {
      font-size: 2rem;
    }
    
    .page-header p {
      font-size: 0.95rem;
    }
    
    .program-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 1.5rem;
    }
    
    .program-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-image {
        height: 250px;
        order: -1;
    }
    
    .age-group-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .placement-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-header {
      padding: 2rem 1rem;
    }
    
    .page-header h1 {
      font-size: 1.6rem;
    }
    
    .page-header p {
      font-size: 0.9rem;
    }
    
    .program-grid {
      padding: 1rem;
      gap: 1rem;
    }
    
    .program-details {
      padding: 1rem;
    }
    
    .program-image {
      height: 200px;
    }
    
    .program-info h3 {
      font-size: 1.1rem;
    }
    
    .program-info p {
      font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header {
      padding: 1.5rem 0.75rem;
    }
    
    .page-header h1 {
      font-size: 1.3rem;
    }
    
    .page-header p {
      font-size: 0.85rem;
    }
    
    .program-grid {
      padding: 0.75rem;
      gap: 0.8rem;
    }
    
    .program-details {
      padding: 0.8rem;
    }
    
    .program-image {
      height: 150px;
    }
    
    .program-info h3 {
      font-size: 1rem;
    }
    
    .program-info p {
      font-size: 0.85rem;
    }
}

  .nav ul {
    display: none; /* Logic for mobile menu would go here */
  }

  .program-image {
    height: 250px;
  }
