.title-institute{
    display: flex;
    justify-content: space-between;
    margin: 0 85px;
}
.title-institute p{
    margin-top: 30px;
    font-size: 16px;
    font-weight: 600px;
    line-height: 25px;
}
.institution-banner{
    display: block;
  width: 100%;
  border-radius: 25px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}
.bg-institution{
    position: relative;
}
.bg-institution div {
    position: absolute;
    top: 20px;
    width: 30%;
    right: 6%;
    text-align: right;
}
.banner-title p{
    font-weight: 300;
    font-size: 16px;
    text-align: center;
}
.banner-title h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0px;
    text-align: center;
}

/* tab csss */
#institution {
    margin: 50px 0px;
}
#institution .active[data-tab-content] {
    display: block;
    color: #000000;
  }
  #institution .tab.active {
    color: #000000;
    font-weight: 600;
    border-color: #000000;
  }
  
  #institution [data-tab-content] {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
  }
  
  #institution .active[data-tab-content] {
    visibility: visible;
    opacity: 1;
    height: auto;
  }
  
  /* ---------------------------------- */
  .common-tab {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .common-tab li {
    border-bottom: 2px solid #6e6d6d;
    font-size: 16px;
    cursor: pointer;
    line-height: 25px;
    font-weight: 400;
    color: #434343;
  }
  /* ------------------------------ */
  .insti-hosp{
    position: relative;
    margin: 50px 0;
  }
  .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent); */
    background: linear-gradient( to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 100%);
    border-radius: 30px;
  }
  .overlay-in {
    position: absolute;
    bottom: 50px;
    left: 50px;
}
.overlay-in h3 {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Call-to-Action Button */
.overlay-in a {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 16px;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.3s;
}
.hosp-p p{
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    padding: 0 10rem;
    margin-bottom: 50px;
}
.inst-section{
    background-color: #F5F5F7;
}
.grid-inst{
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
}
.gridinst_sub {
    background-color: #fff;
    padding: 50px;
    border-radius: 12px;
    display: grid;
    grid-template-rows: auto 1fr auto; /* Text at top, space in middle, image at bottom */
    align-items: start;
    height: auto;
}

/* Ensure the image stays at the bottom */
.gridinst_sub img {
    margin-top: 15px;
    align-self: end; /* Pushes image to the bottom */
    width: 100%; /* Responsive */
    /* max-height: 250px; */
    object-fit: contain;
}
.gridinst_sub_sp {
    background-color: #fff;
    padding: 0px;
    border-radius: 12px;
    display: grid;
    grid-template-rows: auto 1fr auto; /* Text at top, space in middle, image at bottom */
    align-items: start;
    height: auto;
}

/* Ensure the image stays at the bottom */
.gridinst_sub_sp img {
    margin-top: 15px;
    align-self: end; /* Pushes image to the bottom */
    width: 100%; /* Responsive */
    /* max-height: 250px; */
    object-fit: contain;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.gridinst_sub_sp p {
    padding: 20px 50px;
}
.gridinst_sub_sp p:first-of-type {
    margin-top: 30px;
  }
.grid-inst-sec{
    margin-top: 20px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
}
.gridinst_sub-sec{
    align-self:start;
    background-color: #fff;
    border-radius: 12px;
    height: 100%;
}
.gridinst_sub-sec p {
    padding: 30px 50px;
}
.gridinst_sub-sec img{
    height: 444px;
    width: 100%;
    object-fit: cover;
}
/* First row - Top corners rounded */
.gridinst_sub-sec img:nth-child(odd) {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Second row - Bottom corners rounded */
.gridinst_sub-sec img:nth-child(even) {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
/* tab css ends */
.hosp-tab{
    margin: 0px 50px;
}
@media (max-width: 1199px) {
    .banner-title h3{
        margin: 10px 0px;
    }
    .institution-banner {
        height: 350px;
    }
    .title-institute{
        margin: 0 50px;
    }
}
@media (max-width: 991px) {
    .bg-institution div {
        top: 10px;
        width: 60%;
        right: 4%;
    }
    .institution-banner {
        height: 350px;
    }
    .banner-title h3{
        margin: 2px 0px;
    }
    .banner-title p {
        margin: 2px 0px;
    }
    .hosp-tab {
        margin: 0px 0px;
    }
    .insti-hosp {
        margin: 50px 30px;
    }
    .gridinst_sub{
        border-radius: 0;
    }
    .gridinst_sub-sec img:nth-child(odd){
        border-radius: 0;
    }
    .gridinst_sub-sec img:nth-child(even){
        border-radius: 0;
    }
    .hosp-p p{
        padding: 0 5rem;
    }
    .grid-inst{
        grid-template-columns: 1fr; /* Two equal columns */
        gap: 15px;
    }
    .grid-inst-sec{
        margin-top:0;
        grid-template-columns: 1fr; /* Two equal columns */
        gap: 0;
    }
    .gridinst_sub-sec{
        border-radius: 0;
    }
    .gridinst_sub img{
        width: 100%;
        object-fit: cover;
    }
    .institution-banner {
        height: auto;
        /* object-fit: cover;
        object-position: right; */
    }
    .title-institute {
        margin: 0 45px;
    }
}
@media (max-width: 767px) {
    .title-institute p{
        display:none;
    }
    .grid-inst{
        grid-template-columns: 1fr; /* Two equal columns */
        gap: 15px;
    }
    .grid-inst-sec{
        grid-template-columns: 1fr; /* Two equal columns */
        gap: 15px;
    }
    .gridinst_sub img{
        width: 100%;
        object-fit: cover;
    }
    .institution-banner {
        height: auto;
        /* object-fit: cover;
        object-position: right; */
    }
}
@media (max-width: 499px) {
    .title-institute{
        margin: 0 15px;
        display: flex;
        justify-content: flex-start;
    }
    .institution-banner {
        height: 350px;
        object-fit: cover;
        object-position: right;
    }
    .bg-institution div {
        top: 10px;
        width: auto;
        right: 4%;
    }
    .hosp-p p{
        padding: 0 2rem;
    }
    .banner-title p {
        margin: 5px 30px;
    }
 
    .gridinst_sub-sec img:nth-child(even) {
        height: 350px;
    }
    .gridinst_sub-sec img:nth-child(odd) {
        height: 350px;
    }
    .banner-title h3 {
        margin: 15px 0px;
    }
    /* tab css */
    /* tab mobile */
  .common-tab {
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents items from wrapping */
    gap: 15px;
  }

  /* Hide scrollbar (optional) */
  .common-tab::-webkit-scrollbar {
    display: none;
  }
  .tab.active {
    background-color: #e2e4ff;
    border: 2px solid #1f2b6c;
    color: #1f2b6c;
  }
  .common-tab li {
    color: #1f2b6c;
    border: 2px solid #1f2b6c;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 2rem;
  }
   /* tab ends */
}