/* ===================== GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== SECTION ===================== */
.undergraduate-program-section {}

.undergraduate-program-div {
  padding: 100px 207px;
  background: url("../images/Rectangle 316 (1).png") no-repeat center/cover;
}

/* ===================== TOP TEXT ===================== */
.undergraduate-program-div-upper {
  padding-bottom: 45px;
  width: 703px;
}

.undergraduate-program-div-upper h3 {
  font-family: Merriweather;
  font-weight: 700;
  font-size: 36px;
  color: #1c3f94;
}

.undergraduate-program-div-upper span {
  color: #ee1b22;
}

.undergraduate-program-div-upper p {
  font-family: Poppins;
  font-weight: 500;
  font-size: 19px;
  padding-top: 20px;
  line-height: 25px;
  color: #1c3f94;
}

/* ===================== TWO CARDS ===================== */
.undergraduate-program-div-bottom {
  display: flex;
  justify-content: center;
  gap: 134px;
}

.undergraduate-program-div-bottom-left-layout,
.undergraduate-program-div-bottom-right-layout {
  width: 492px;
  height: 492px;
  background: url("../images/Rectangle 256 (1).png") no-repeat center/cover;
}

.content {
  height: 100%;
  padding: 0 25px;
  display: flex;
  flex-direction: column;
     justify-content: center;
}

/* ===================== CARD TEXT ===================== */
.top h5 {
  font-family: Merriweather;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.middle {
  display: flex;
  justify-content: space-between;
}

.middle ul li {
  list-style: none;
  padding-top: 20px;
  font-family: Poppins;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.bottom button {
  padding: 15px 30px;
  font-family: Poppins;
  font-weight: 600;
  font-size: 16px;
  background-color: #1c3f94;
  border-radius: 8px;
  color: #fff;
}

/* ============================================================
                    RESPONSIVE DESIGN
============================================================ */

/* ===================== LARGE TABLET (max-width: 1200px) ===================== */
@media (max-width: 1200px) {
  .undergraduate-program-div {
    padding: 80px 120px;
  }

  .undergraduate-program-div-bottom {
    gap: 60px;
  }
}

/* ===================== TABLET (max-width: 992px) ===================== */
@media (max-width: 1300px) {
  .undergraduate-program-div {
    padding: 60px 50px;
  }

  .undergraduate-program-div-upper {
    width: 100%;
    text-align: center;
  }

  .undergraduate-program-div-bottom {
    flex-direction: column;
    align-items: center;
    gap: 40px !important;
  }

  .undergraduate-program-div-bottom-left-layout,
  .undergraduate-program-div-bottom-right-layout {
    width: 100%;
    max-width: 500px;
    height: auto; /* auto height for mobile */
    padding: 40px 0;
  }

  .middle {
    gap: 20px;
  }
    .left-layout-heading img{
    width: 100%;
    height: auto;
  }
}

/* ===================== MOBILE (max-width: 768px) ===================== */
@media (max-width: 768px) {
  .undergraduate-program-div {
    padding: 40px 20px;
  }

  .undergraduate-program-div-upper h3 {
    font-size: 28px;
  }

  .undergraduate-program-div-upper p {
    font-size: 17px;
  }

  .content {
    padding: 0 20px;
  }

  .middle ul li {
    padding-top: 15px;
    font-size: 15px;
  }

  .top h5 {
    font-size: 22px;
  }
    .right-layout-bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
    .left-layout-heading img{
    width: 100%;
    height: auto;
  }
}

/* ===================== SMALL MOBILE (max-width: 500px) ===================== */
@media (max-width: 500px) {

  .undergraduate-program-div {
    padding: 30px 15px;
  }

  .undergraduate-program-div-bottom {
    gap: 15px !important; /* fixed 15px gap */
  }

  .content {
    padding: 0 15px;
  }

  .top h5 {
    font-size: 20px;
  }

  .middle {
    /*flex-direction: column;*/
    gap: 10px;
  }

  .middle ul li {
    padding-top: 10px;
  }

  .bottom button {
    width: 100%;
  }
    .right-layout-bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
    .left-layout-heading img{
    width: 100%;
    height: auto;
  }
}

/* ===================== EXTRA SMALL (max-width: 375px) ===================== */
@media (max-width: 375px) {

  .undergraduate-program-div-upper h3 {
    font-size: 24px;
  }

  .undergraduate-program-div-upper p {
    font-size: 15px;
    line-height: 22px;
  }

  .middle ul li {
    font-size: 14px;
  }

  .bottom button {
    padding: 12px;
    font-size: 14px;
  }

  .right-layout-bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .left-layout-heading img{
    width: 100%;
    height: auto;
  }
}