  .child_cols h2 {
    display: inline-block;          /* Shrink to text width */
    position: relative;
    font-size: 28px;
    font-weight: 700;
    color: #222;                     /* Dark text */
    padding-bottom: 10px;            /* Space for underline */
    margin: 25px 0;
    text-transform: uppercase;
}

/* Underline with gradient */
.child_cols h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;                     /* Length of underline */
    height: 4px;                      /* Thickness */
    background: linear-gradient(90deg, #ff6b6b, #ffb86c);
    border-radius: 2px;
}

/* Optional: subtle shadow */
.child_cols h2 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.gradient.scholarship {
margin-bottom: 10px !important;
}

  .child_cols h3 {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #222;                     /* Dark text */
/*    margin: 20px 0;
*/    text-transform: uppercase;
    letter-spacing: 1px;             /* Slight spacing for elegance */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow */
}

  .scholarship_block 
  {
  margin-top:20px;
  margin-bottom:20px;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:24px;
  }

  .scholarship-card
  {
    box-shadow:0 5px 15px rgba(0,0,0,.3); padding:15px; display:flex; flex-direction:column; width:100%;
  }

.read-more-wrap {
margin-top:auto;
}

.master_card_row
{
padding-bottom:50px;
}

.master_card_row .child_cols
{
margin-bottom: 20px;
}


    .university_title
    {
    font-size: 16px !important;
     margin-top: 5px !important; 
    margin-bottom: 10px !important;
    font-weight: bold !important;
    line-height: 23px;
    }
    .utf_star_rating_section-2
    {
        border:none !important;
    }

    .scholarship_block p, .scholarship_block {
         font-size: 14px;
         padding-bottom: 0;
         text-align: -webkit-center;
    }

    .scholarship_block .country_count
    {
    border-radius: 100%;
    background-color: #182D66;
    text-align: center;
    font-size: 23px;
    color: white;
    padding: 16px 0px;
    font-weight: 700;
    width: 60px;
    height: 60px;
    }


/* Overlay */
#popupOverlay {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

/* Popup box */
#popupBox {
  display: none;
  position: fixed;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;  /* Max height */
  padding: 25px 30px;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  color: #333;
  overflow-y: auto; /* Scroll when content is long */
}

/* Close button */
#popupBox .close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}
#popupBox .close-popup:hover {
  color: #ff4b2b;
}

/* Title */
#popupTitle {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  text-align: center;
}

/* Description */
#popupContent {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}