* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* SECTION BACKGROUND */
.eligibility-section {
  padding: 80px 70px;
  width: 100%;
  background: url("../images/Rectangle\ 461.png");
}

/* MAIN CONTAINER */
.eligibility-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* IMPORTANT for responsiveness */
}

/* LEFT SIDE */
.eligibility-left {
  flex: 1 1 350px; /* responsive flexible width */
  min-width: 300px;
}

.eligibility-title {
  color: #fff;
  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
  padding-bottom: 25px;
}

.eligibility-title span {
  color: #ee1b22;
}

.eligibility-list {
  list-style: none;
  padding-left: 0px;
}

.eligibility-list li {
  color: #fff;

  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;

  font-family: Poppins;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
}

.eligibility-list li::before {
  content: "✔";
  color: #ee1b22;

  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
}

/* RIGHT WHITE CARD */
.course-structure-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 725px;
  flex: 1 1 400px; /* responsive width */
  min-width: 320px;
}

/* TITLE */
.course-title {
  margin-bottom: 20px;

  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
  color: #1e4490;
}

.course-title span {
  color: #ee1b22;
}

/* SEMESTER GRID */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.course-box {
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #1e4490;
  font-size: 18px;
  color:#1e4490;
  background: #f8faff;
  width: 100%;
  text-align: left;
  display: block;
  transition: 0.2s;
}

.course-box:hover,
.course-box:focus {
  background: #ee1b22;

  color: #fff;
  border-color: #ee1b22;
}

.dropdown-menu {
  width: 100%;
  border-radius: 10px;
  padding: 0;
  margin-top: 8px;
}

/* Dropdown content panel */
.course-dropdown {
  display: none;
  padding: 12px 16px;
  margin-top: 8px;
  background: #eef3ff;
  border-left: 3px solid #1e4490;
  border-radius: 8px;
  font-size: 16px;
  color: #1e4490;
  animation: fadeIn 0.3s ease-out;
}

/* simple fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-box:hover {
  background: #ee1b22;

  color: #fff;
  border-color: #ee1b22;
}

/* ---------------------------
   RESPONSIVE BREAKPOINTS
----------------------------*/

/* on very large screens center both items */
@media (min-width: 1600px) {
  .eligibility-container {
    justify-content: center;
    gap: 60px; /* perfect spacing between left and right */
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .eligibility-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }

  .course-structure-card {
    width: 100%;
  }

  element.style {
  }
  .eligibility-list li {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;

    line-height: 26px;
    letter-spacing: 0%;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .eligibility-section {
    padding: 50px 25px;
  }

  .eligibility-title {
    font-size: 25px;
  }

  .course-grid {
    grid-template-columns: 1fr; /* 1 per row */
  }

  .course-box {
    font-size: 16px;
  }
  .course-title {
    font-size: 18px;
  }
}
