/* Section container */
.Programs {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #222;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #e67e22;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}


/* Cards container */
.programs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Card */
.Program {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.Program:hover {
  transform: translateY(-5px);
}

/* Image */
.Program img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Caption */
.caption {
  padding: 15px;
  font-size: 0.95rem;
  color: #444;
  background-color: #fff;
}



/* Medium screens (tablets, 768px and below) */
@media (max-width: 768px) {
  .Programs {
    padding: 40px 15px;
  }

  .section-heading {
    font-size: 2rem;
  }

  .programs-container {
    gap: 20px;
  }

  .Program {
    width: 90%;
    height: 90%;
  }

  .Program img {
    height: 450px;
  }

  .caption {
    font-size: 0.9rem;
    padding: 10px;
  }

  .play-button {
    font-size: 1.8rem;
    padding: 8px 12px;
  }

  .popup-close {
    top: -20px;
    right: -20px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}

/* Small screens (phones, 480px and below) */
@media(max-width:650px){
    .Programs{
        flex-direction: column;
    }

    .Program{
        flex-basis: 100%;
        margin: 20px;
    }
  
  .caption {
    font-size: 0.85rem;
  }
 
}
