/* ==================================== */
/* === Consolidated & Corrected CSS === */
/* ==================================== */

/* ===== Filter Navbar ===== */
#programFilter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

#programFilter .nav-link {
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 25px;
  background: #fff;
  color: #3c2846;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#programFilter .nav-link:hover {
  background: #6c63ff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#programFilter .nav-link.active {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
}

/* ===== Program Container (Grid Layout) ===== */
.program-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: center;
  padding: 40px;
  /* background: #2e1f38; */
  position: relative;
}

/* ===== Program Card Styling ===== */
.program-card {
  position: relative;
  background: linear-gradient(135deg, #ca2e48, #cf3a5b);
  border-radius: 20px 20px 100px 100px;
  color: #fff;
  text-align: center;
  padding: 80px 25px 40px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  height: 400px;
  opacity: 1;
  transform: scale(1);
}

/* Hover effect */
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ===== Icon Circle ===== */
.program-card .icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 105px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===== Title & Paragraph ===== */
.program-card h3 {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.program-card p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f8f8f8;
}

/* ===== Animated filtering for cards ===== */
.program-card.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.program-card.hide .icon,
.program-card.hide h3,
.program-card.hide p,
.program-card.hide button {
  display: none;
}

/* ===== Left Features List (Left-aligned text) ===== */
.program-card ul {
  list-style: disc inside;
  margin: 0;
  padding-right: 20px;
  flex: 0 0 150px;      /* Fixed width for features column */
  text-align: left;      /* Align feature text to the left */
  color: #fff;           /* Ensure text color is visible */
}

.program-card ul li {
  margin-bottom: 8px;    /* Optional spacing between features */
}

/* ==================================== */
/* === Creative Placed Student CSS === */
/* ==================================== */

/* ==================================== */
/* === Placed Student Section CSS === */
/* ==================================== */

.placed-student-ca {
  padding: 60px 20px;
}

.ca-placed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.ca-placed-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
}

.ca-placed-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.ca-placed-img-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
}

.ca-placed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #a43141;
  transition: transform 0.3s ease;
}

.ca-placed-card:hover .ca-placed-img {
  transform: scale(1.05);
}

.ca-placed-info-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ca-placed-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.ca-placed-designation {
  font-size: 16px;
  color: #777;
  margin-bottom: 10px;
}

.ca-placed-at {
  font-size: 14px;
  color: #a43141;
  font-weight: 600;
  margin-top: 10px;
}

.ca-placed-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.ca-placed-company-logo img {
  width: 60%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .ca-placed-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* =============================== */
/* === Mobile Responsiveness ==== */
/* =============================== */

/* For tablets and smaller screens */
@media (max-width: 992px) {
  #programFilter {
    flex-wrap: wrap;
    gap: 10px;
  }

  .program-container {
    padding: 20px;
    gap: 20px;
  }

  .program-card {
    height: auto; /* let content expand naturally */
    padding: 70px 20px 30px;
  }

  .program-card .icon {
    width: 120px;
    height: 85px;
    top: -30px;
  }

  .program-card h3 {
    font-size: 1.1rem;
  }

  .program-card p {
    font-size: 0.9rem;
  }
}

/* For mobile screens */
@media (max-width: 576px) {
  #programFilter {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #programFilter .nav-link {
    width: 90%;
    text-align: center;
  }

  .program-container {
    grid-template-columns: 1fr; /* single column */
    padding: 15px;
  }

  .program-card {
    padding: 60px 15px 25px;
    border-radius: 20px; /* reduce top roundness */
  }

  .program-card .icon {
    width: 100px;
    height: 70px;
  }

  .program-card h3 {
    font-size: 1rem;
  }

  .program-card p {
    font-size: 0.85rem;
  }

  .ca-placed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ca-placed-card {
    padding: 15px;
  }

  .ca-placed-img-container {
    width: 120px;
    height: 120px;
  }

  .ca-placed-name {
    font-size: 18px;
  }

  .ca-placed-designation {
    font-size: 14px;
  }

  .ca-placed-company-logo img {
    width: 80%;
  }
}
