/* ===== General Reset & Typography ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0b0b0f;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Programs Section ===== */
.programs-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #0b0b0f, #1c1c22);
  overflow: hidden;
}

/* Red Accent Strip */
.accent-strip {
  height: 6px;
  width: 100px;
  background: linear-gradient(90deg, #ff1e1e, #ff4f4f);
  margin: 0 auto 2rem auto;
  border-radius: 3px;
}

/* Eyebrow & Section Title */
.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff4f4f;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}

.lead {
  font-size: 1.2rem;
  color: #ccc;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* ===== Programs Grid ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* Program Card */
.program-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

/* Card Image & Overlay */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.program-card:hover .card-image img {
  transform: scale(1.1);
}

/* Overlay with Icon, Title, Text, Button */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11,11,15,0.9), transparent);
  color: #fff;
  padding: 2rem;
  opacity: 0;
  transform: translateY(50%);
  transition: all 0.5s ease;
}

.program-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-overlay .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card-overlay p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ddd;
}

/* Card Button */
.btn-card {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #ff1e1e;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255,30,30,0.4);
}

.btn-card:hover {
  background: #ff4f4f;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255,79,79,0.6);
}

/* ===== Particles ===== */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,79,79,0.3);
  border-radius: 50%;
  animation: floatParticles 8s linear infinite;
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-100px) translateX(20px); opacity: 1; }
  100% { transform: translateY(0) translateX(-20px); opacity: 0.5; }
}
/* ===== Stats + CTA Section (White Background) ===== */
.program-stats-section {
  background-color: #fff;
  color: #111; /* dark text */
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.program-stats-section .program-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Glossy Glass Stat Cards */
.stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08); /* subtle transparency */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 180px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* contain gloss effect */
}

/* Glossy overlay sheen */
.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.05) 60%
  );
  transform: rotate(25deg);
  opacity: 0.25;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stat-card:hover::before {
  opacity: 0.5; /* brighter shine on hover */
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff1e1e; /* red accent */
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-card p {
  font-size: 1rem;
  color: #111;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* CTA */
.program-stats-section .programs-cta {
  text-align: center;
}

.program-stats-section .programs-cta h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111;
}

.program-stats-section .programs-cta p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.program-stats-section .btn-cta {
  background: linear-gradient(90deg, #ff1e1e, #ff4f4f);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 79, 79, 0.4);
}

.program-stats-section .btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(255, 79, 79, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-card {
    width: 100%;
  }
}
/* Blur effect on body when modal opens */
body.modal-active {
  filter: blur(6px);
  overflow: hidden;
}

/* Modal overlay */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal card */
.modal-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 14px;
  padding: 2rem;
  max-width: 600px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #ff5555;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
