@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}
body {
  font-family: "Lato", sans-serif !important;
}

h1,
h2 {
  font-family: "Lato", sans-serif !important;
  font-weight: bold;
}

/* !navbar start */
.navbar,
.btn-enroll {
  font-family: "Lato", sans-serif;
}
.navbar-gradient {
  background: linear-gradient(to right, #0b2a68, #7a1a68, #b32025);
}
.btn-enroll {
  background: #fff;
  color: #000;
  border-radius: 25px;
  padding: 6px 18px;
  font-weight: 500;
}
.btn-enroll:hover {
  background: #f1f1f1;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* !navbar ends*/
/* !section 1 starts  */
.text-study {
  font-size: 100px;
  margin-bottom: 0 !important;
}
.text-uk {
  font-size: 130px !important;
  margin-top: 0 !important;
}
.btn-primary {
  background: linear-gradient(to right, #4c6ef5, #15aabf);
  border: none;
}
.custom-img-height {
  height: 80vh;
}
.custom-top-first {
  margin-top: 90px !important;
}
.custom-button-first button {
  padding: 10px 30px !important;
   position: relative;   
    z-index: 10; 
}
@media (max-width: 768px) {
  .custom-top-first {
    margin-top: 0px !important;
  }
  .custom-img-height {
    height: auto;
  }
  .text-study {
    font-size: 50px;
    margin-bottom: 0 !important;
  }
  .text-uk {
    font-size: 100px !important;
    margin-top: 0 !important;
  }
  .custom-button-first .apply-now-btn {
    padding: 10px 60px !important;
    border-radius: 50px;
    margin-bottom: 5px;
  }
}
#applyNowModal .modal-content {
  border-radius: 20px;  /* Change value for more/less curve */
  overflow: hidden;     /* Ensures inner sections follow rounded shape */
}

/* !section 1 ends*/
/* !section 2 start */
.why-section {
  background: url("./images/BG.png") no-repeat center center/cover;
  border-radius: 12px;
   height: 75vh;
  display: flex;
  align-items: center;
}
.square-card {
  height: 250px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
  clip-path: inset(0 round 20px);
  transition: background-color 0.3s ease-in-out;
}
.underline-blue {
  display: inline-block;
  border-bottom: 3px solid rgb(86, 86, 212);
  padding-bottom: 2px;
}
.underline-red {
  display: inline-block;
  border-bottom: 3px solid rgb(227, 8, 8);
  padding-bottom: 2px;
}
.square-card:hover {
  background-color: var(--bs-primary) !important;
  cursor: pointer;
}
.why-section .col-lg-6:first-child {
  display: flex;
  align-items: center; 
  justify-content: center; 
}
.why-section .boy-img {
  max-height: 70%;
  object-fit: cover;
  margin-top: 0; 
}
@media (max-width: 768px){
  .why-section{
    height: auto;
  }
  .why-section .col-lg-6:first-child {
    display: flex;
    justify-content: center;
  }

  .why-section .boy-img {
    max-height: none;  
    width: 100%;        
    height: auto;      
    object-fit: contain;
  }
}
/* !section 2 ends*/

/* !section 3 start */
.success-banner {
  background: url("./images/Design\ Element.png") no-repeat center;
  background-size: cover;
  border-radius: 15px;
}
.content-shift {
  margin-left: 120px;
}
.content-shift > p {
  font-size: 20px;
}
@media (max-width: 768px) {
  .content-shift {
    margin-left: 15px;
  }
}
/* !section 3 ends*/

/* !section 4 start */
.study-uk-section {
  background-image: url("./images/BG-topr.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.study-uk-section h2{
  margin-left: 70px ;
}
.custom-card2 {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: start;
  text-align: start;
  padding: 10px;
  background: url("./images/Card_2-topr.png") no-repeat center/contain;
  min-height: 350px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}
.custom-card-body {
  position: relative;
  padding: 50px;
  z-index: 2;
}
.custom-card2 .card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #013368 !important;
}
.custom-card2 .card-text {
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
  font-weight: 500;
  padding: 5px;
  text-align: justify;
  max-width: 100%;
  word-break: break-word;
}
.card-icon {
  height: 60px;
  width: 60px;
  margin-bottom: 10px;
  background-color: whitesmoke;
  border: 1px solid gainsboro;
  border-radius: 10px;
  padding: 5px;
  color: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  top: -20px;
}
.card-btn {
  padding: 20px 90px;
  font-size: 20px;
}
.custom-card2:hover {
  background-image: url(./images/Card_1-topr.png);
  cursor: pointer;
}
.study-uk-section .row {
  display: flex;
  flex-wrap: wrap;
}
.study-uk-section .row > [class*="col-"] {
  display: flex;
}
.study-uk-section .custom-card2 {
  flex: 1;
  display: flex;
}
.study-uk-section .custom-card-body {
  flex: 1;
}
/* Extra small devices (up to 320px wide) */
@media (max-width: 320px) {
  .custom-card2 {
    min-height: 350px !important;
    max-height: 350px !important;
  }
}
/* Small mobiles (321px to 767px wide) */
@media (min-width: 321px) and (max-width: 767px) {
  .study-uk-section{
    height: auto !important;
  }
  .custom-card2 {
    min-height: 400px !important;
    max-height: 400px !important;
  }
}

@media (max-width: 767px) {
 .study-uk-section{
    background: url("./images/BG.png") no-repeat center center/cover;
  border-radius: 12px;
   height: 105vh;
   text-align: center;
 }
 .study-uk-section h2{
  margin-bottom: 0 !important;
  margin-top: 15px !important;
  margin-left: 10px !important;
 }
 .custom-card2 {
    display: flex;
    align-items:center;
    background-size: contain !important; 
    background-repeat: no-repeat;
    background-position: center;
    overflow:hidden;
    margin-top: 0 !important;
  }

  .custom-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 12px !important;
    box-sizing: border-box;
    max-height: 100%; 
    overflow-y: auto;
  }

  .card-icon {
    height: 45px;
    width: 45px;
    margin-top: 5px !important;
    margin-bottom: 8px !important;
    top:0 !important;
  }

  .custom-card-body h5.card-title {
    font-size: 1.2rem !important; 
    margin-bottom: 8px !important;
  }

  .custom-card-body .card-text {
    font-size: 0.9rem !important; 
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    word-break: break-word;
  }
  .custom-card-body hr {
    margin: 4px 0 !important;
  }
  .card-btn {
    padding: 20px 18px;
    font-size: 14px;
    margin-bottom: 5px;
  }
}
/* Tablet screen */
@media (min-width: 768px) and (max-width: 991px) {
  .study-uk-section{
    height: auto;
  }
  .study-uk-section h2{
    margin-top: 50px !important;
  }
  .custom-card2 {
    min-height: 300px;
    max-height: 300px;
    background:none;
    border: 1px solid rgb(73, 73, 147);
    background-position: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 1px;
    margin-top: 20px !important;

  }
   
  .custom-card-body {
    width: 100%;
    padding: 20px !important;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .card-icon {
    height: 50px;
    width: 50px;
    margin-top: 5px;
    margin-bottom: 8px;
    top: 0 !important;
  }

  .custom-card2 .card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .custom-card2 .card-text {
    font-size: 1rem;
    word-break: break-word;
    max-width: 100%;
  }
  .card-btn{
    margin-bottom: 20px !important;
  }
}
/* !section 4 end*/
/* !section 5 start */
.card-icon2 {
  background-color: whitesmoke;
  border: 1px solid gainsboro;
  border-radius: 10px;
  padding: 5px;
  color: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  height:40px;
  width: 40px;
}
.courses-section {
  background: url("./images/BG-pc.png") no-repeat center center;
  background-size: cover;
  height: auto;
}
.course-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid gainsboro;
  height: 80px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.course-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.course-card .card-icon {
  margin-top: 8px;
}
.course-card p {
  line-height: 1.4 !important;
  font-size: 15px;
  padding-top: 10px;
  padding-left: 7px;
}
.course-card::before,
.course-card::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 50%;
  background-color: blue;
  top: 25%;
}
.course-card::before {
  left: 0;
}
.course-card::after {
  right: 0;
}
@media (max-width: 768px) {
  .courses-section {
    background: none !important;
    border: none !important;
  }
  .content-box {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
  }
}
/* Large screens (>= 992px) */
@media (min-width: 992px) {
  .courses-section {
    height: 80vh;            
    display: flex;            
    align-items: center;   
  }
}

.custom-carousel-btn {
  width: 45px;
  height: 45px;
  background-color: var(--bs-primary); 
  border: none;
  border-radius: 6px; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; 
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-carousel-btn:hover {
  background-color: #004085;
}

.custom-carousel-btn span {
  line-height: 1;
}
.gradient-btn {
  background: linear-gradient(to right, #4c6ef5, #15aabf);
  border: none;
  color: #fff; 
  transition: background 0.3s ease;
}

.gradient-btn:hover {
  opacity: 0.9;
}
/* !section 5 ends */

/* !section 6 start */
.university-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.university-card:hover {
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.1);
}
.university-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.university-logo {
  height: 50px !important;
  width: 50px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}
.apply-btn {
  border: 1px solid #e63946;
  color: #e63946;
  font-weight: 500;
  padding: 6px 50px;
  background: #fff;
  transition: all 0.3s ease;
}
.apply-btn:hover {
  background: #e63946;
  color: #fff;
}
.arrow-box {
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  background-color: rgb(176, 250, 176);
}
.arrow-icon {
  height: 50px;
  width: 50px;
}
.carousel-custom-controls .btn {
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.carousel-custom-controls .btn:hover {
  background-color: #dc3545;
  color: #fff;
}
@media (max-width: 767px) {
  .carousel .carousel-item {
    text-align: center;
  }
  .university-card {
    width: 90%;
    margin: auto;
    height: 400px !important;
  }
   .card-title{
    font-size: 15px !important;
  }
  .university-logo{
    height: 30px;
    width: 30px;
  }
}
.carousel-item {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.university-card .card-title {
  white-space: nowrap;
}
/* 

@media (max-width: 576px) {
  #studentModal .modal-dialog {
    margin: 7px;
  }
  #studentModal .modal-content {
    max-height: 80vh;
    margin-bottom: 20px;
    overflow-y: auto;
  }
}
 */
/*!section 6 ends */

/* !section 7 starts */
.courses-section2 {
  background-image: url(/images/BG-e2e.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.custom-card-hw {
  height: 200px;
  width: 50%;
  padding: 10px;
}
.course-card2 {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
  border: 1px solid gainsboro;
}
.course-card2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 70%;
  background-color: rgb(32, 67, 32);
  top: 15%;
  right: 0;
}
.course-card2::before {
  content: "";
  position: absolute;
  width: 15%;
  height: 2px;
  background-color: rgb(32, 67, 32);
  bottom: 0;
  left: 10%;
}
.guidance-section {
  padding: 20px 10px;
  background-image: url(./images/BG-e2e.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.guidance-title span {
  color: #d32f2f;
}
.guidance-card {
  border: 2px solid gainsboro !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.2s ease-in-out;
  min-height: 170px;
}
.guidance-card:hover {
  transform: translateY(-5px);
}
.guidance-card h5 {
  font-weight: 600;
}
.guidance-img {
  max-width: 100%;
  border-radius: 20px;
  height: 660px !important;
}
.guidance-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.2s ease-in-out;
}
.guidance-card:hover {
  transform: translateY(-3px);
}
.custom-height-guidence{
  height: 500px;
}
.custom-font-guidence{
  font-size: 23px;
}
@media (max-width: 767px) {
  .guidance-section {
    background: none !important;
    border: 1px solid #ddd;
    border-radius: 10px;
  }
  .guidance-section h2 img {
    height: 60px;
    width: 60px;
    margin-top: 10px;
  }
  .guidance-section .text-start {
    text-align: start !important;
  }
  .guidance-img {
    max-width: 100%;
    border-radius: 20px;
    height: auto !important;
  }
  .custom-height-guidence{
    height: 400px;
  }
  .custom-font-guidence{
    font-size: 16px;
  }
  .custom-height-mobile{
    height: 180px;
  }
}
.carousel-item {
  transition: transform 0.8s ease-in-out; /* adjust speed */
}
.btn-light:hover{
   background: linear-gradient(to right, #4c6ef5, #15aabf);
   color: white !important;

}
/* !section 7 ends */

/* !section 8 start*/
.student-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.university-logo {
  height: 30px;
  width: auto;
}
.uni-name {
  font-size: 14px;
  line-height: 1.2;
}
.data-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
}
#studentCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}
@media (max-width: 767px) {
  #studentCarousel .carousel-item {
    height: 400px !important;
  }
  #studentCarousel .card {
    min-height: 100%;
    padding: 1rem;
  }
  .university-logo {
    height: 35px !important;
  }
  .card-text{
    text-align:justify;
  }
  .uni-name {
    font-size: 14px !important;
  }
  .custom-arrange{
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap:12px
  }
}

/* !section 8 ends*/

/* !footer start */
.footer-height{
  height:410px;
}
.links-column::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #ffffff70;
}
@media (max-width: 767px) {
  .footer-height{
    height: auto !important;
    padding-bottom: 20px !important;
  }
  .links-column::before {
    display: none;
  }
  .footer-logo-col {
    width: 100%;
    text-align: center !important;
    margin-bottom: 1rem;
  }
  .footer-links-col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
  }
  .footer-links-col span.separator {
    display: inline-block;
    border-left: 1px solid #fff;
    height: 16px;
    margin: 0 0.5rem;
  }
  .footer-links-hr-top {
    display: block;
    width: 100%;
    border-top: 1px solid #fff;
    margin: 0.5rem 0;
  }
}
/* !footer ends */
/* Move modal up only on small screens */
@media (max-width: 767px) {
  .modal-dialog {
    margin: 2rem auto !important;   
  }
  .modal-dialog-centered {
    align-items: flex-start !important; 
  }
}
/* Only move modal up on small screens */
@media (max-width: 767px) {
  #studentModal .modal-dialog {
    margin: 3rem auto !important; /* top spacing */
  }
  #studentModal .modal-dialog-centered {
    align-items: flex-start !important;
  }
}
