/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Programs Section */
.programs-section {
  background-color: #f5f5f5;
  padding: 70px 20px;
}

/* Wrapper to center the heading */
.programs-heading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 30px;
}

/* Heading Styles */
.programs-heading {
  font-size: 32px;
  font-weight: bold;
  color: #0e0e0e;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

/* Orange Lines - Matching the Image */
.programs-heading::before,
.programs-heading::after {
  content: "";
  position: absolute;
  height: 4px; /* Thickness of the line */
  background-color: #f49d1a; /* Orange color */
}

/* Upper-left line */
.programs-heading::before {
  width: 150px; /* Length of the line */
  top: -5px; /* Moves line above */
  left: -10px; /* Moves line to the left */
}

/* Lower-right line */
.programs-heading::after {
  width: 150px; /* Length of the line */
  bottom: -5px; /* Moves line below */
  right: -10px; /* Moves line to the right */
}


/* Container for Cards */
.container1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
  margin-top: 60px;
}

.container1 a {
  text-decoration: none;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px; /* Square shape */
  height: 190px; /* Square shape */
  border: 2px solid #f2d68d;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.card:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.card span {
  font-size: 18px;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 500;
}

/* Animation Effect */
.card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container1 {
    justify-content: center;
  }

  .card { 
    width: 140px; /* Keep square shape */
    height: 140px; /* Keep square shape */
  }

  .card img {
    width: 70px;
    height: 70px;
  }

  .card span {
    font-size: 14px;
  }

  .programs-heading {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .container1 {
    flex-direction: row;
    justify-content: center;
  }

  .card {
    width: 120px; /* Square shape */
    height: 120px; /* Square shape */
    max-width: 140px;
    margin: 10px auto;
  }

  .card img {
    width: 60px;
    height: 60px;
  }

  .card span {
    font-size: 12px;
  }
}
