/********** Template CSS **********/
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
}
body, html {
    overflow-x: hidden;
}



h1, h2, h3,h4 {
  font-weight: 700;
  font-family: 'Lato', sans-serif !important;
}

:root {
    --primary: #2492eb;
    --light: #F0FBFC;
    --dark: #071d2f;
}
.bg-primary {
    background-color: #2492eb !important;
}
.text-primary {
    color: #2492eb !important;
}
.btn-primary {
    color: #000;
    background-color: #2492eb;
    border-color: #2492eb;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}
h2{
    font-size: 1.9rem !important;
}
.dropdown-item:hover{
    background-color: #2492eb;
    color: #fff;
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
.accordion-button {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Accordion Item - On Hover */
.accordion-button:hover {
    background-color: #1d438d;
    color:#fff;
    cursor: pointer;
}
/* Accordion Content */
.accordion-body {
    padding: 20px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
   
}
/* Responsive for small screens */
@media (max-width: 767px) {
    .accordion-button {
        font-size: 14px;
        padding: 12px;
    }

    h2.mb-5 {
        font-size: 24px;
    }
}
/* Accordion Section Container */
.accordion-item {
    margin-bottom: 10px;
}

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}
.btn:hover {
    background-color: #2492eb !important;
    border-color: #2492eb !important;
    color: #fff !important;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}

.form-control:focus {
    color: #52565b;
    background-color: #fff;
    border-color: #2492eb;
  
    box-shadow: 0 0 0 0.25rem rgb(6 187 204 / 25%);
}
form .form-control,
form .btn {
    outline: none !important;
    box-shadow: none !important;
}

form .form-control:focus,
form .btn:focus,
form .btn:active,
form .btn:focus-visible {
    outline: auto !important;
    box-shadow: auto !important;
    border: auto !important;
    
}


/* Section Background */
.how-works-section {
    position: relative;
    padding-bottom: 120px;
    background: #f7faff; /* soft light blue */
}

/* Bottom Curve Decoration */
.how-works-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('https://i.ibb.co/9yHcp2y/curve-bottom.png') no-repeat center bottom;
    background-size: cover;
    opacity: 0.6;
}


/* country  */




/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.dropdown-menu {
   
    background: rgba(255, 255, 255, 0.75) !important;}
    
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@keyframes highlightEntry {
    0% {
      opacity: 0;
      transform: translateX(100px) rotate(0deg);
    }
    50% {
      opacity: 1;
      transform: translateX(0) rotate(3deg); /* slight tilt */
    }
    70% {
      transform: translateX(0) rotate(-3deg); /* opposite tilt */
    }
    100% {
      transform: translateX(0) rotate(0deg); /* settle */
    }
  }
  
  .highlight-animate {
    animation: highlightEntry 1.6s ease-out forwards;
  }
  
  
/*** Header carousel ***/
.dropdown-submenu {
    position: relative;
}

/* Hide by default */

/* State submenu – MATCHES navbar dropdown */
.state-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;

    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
}


/* Show only on hover */
.dropdown-submenu:hover .state-menu {
    display: block;
}

/* Optional arrow */
.state-link::after {
    content: "›";
    float: right;
    font-weight: bold;
}

.header-carousel .owl-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

.no-lines::before,
.no-lines::after {
    display: none !important;
}

/*** Service ***/
/* Horizontal Scroll Row */
.service-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

/* Hide scrollbar */
.service-row::-webkit-scrollbar {
    height: 0;
}

/* Service Box */
/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    text-align: center;
}

/* Service Box Base */
.service-item {
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.5s;
    background: #ffffff; /* default for odd items */
}

/* EVEN NUMBERS BLUE BACKGROUND */
.service-item:nth-child(even) {
    background: #1d438d;
    color: white;
}

.service-item:nth-child(even) h5,
.service-item:nth-child(even) p {
    color: white !important;
}

/* Images */
.service-item img {
    height: 60px;
    margin-bottom: 12px;
}

/* Hover (for all items) */
.service-item:hover {
    transform: translateY(-18px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Hover colors - even stay blue, odd turn blue */
.service-item:hover {
    background: #1d438d;
    color: #fff;
}

.service-item:hover h5,
.service-item:hover p {
    color: #fff !important;
}

/* STAIR EFFECT */
.service-item:nth-child(odd) {
    transform: translateY(-18px); /* UP */
}

.service-item:nth-child(even) {
    transform: translateY(18px); /* DOWN */
}

/* Hover overrides stairs */
.service-item:hover {
    transform: translateY(-35px);
}

/* Responsive */
@media(max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
.exam-section-dark {
    border-radius: 20px;      /* reduce or increase as needed */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.exam-section-dark .wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.exam-section-dark h2 {
    line-height: 1.3; /* reduces height created by big line spacing */
}

.apply-now {
    max-height: 280px;      /* reduce image height */
    object-fit: contain;
}



/* Limit to 5 lines height */
.limit-lines {
   
    overflow: hidden;
    position: relative;
}

/* Smooth fade bottom */
.limit-lines::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30px;
    width: 100%;
   
}

/* 2 column list in same width */
.columns-2 {
    columns: 2;
}

/* Responsive small screens */
@media (max-width: 768px) {
    .footer-columns .col-md-4 {
        margin-bottom: 20px;
    }
}





.flute{
    margin-bottom:0.5rem;
}
/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}
.country-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.slide-item {
    min-width: 300px;
    flex: 0 0 auto;
}

.course-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 22px;
    padding: 10px 14px;
    border-radius: 50%;
    position: absolute;
    top: 40%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.slider-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}
.slider-btn.prev { left: -20px; }
.slider-btn.next { right: -20px; }



/*** Team ***/
.team-item img {
    height: 230px !important;
    object-fit: cover;
}


.team-item {
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.team-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;    /* start outside */
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(0deg);
    transition: 0.8s;
}

.team-item:hover::before {
    left: 100%;   /* move shine to right */
}

.uni-slider-wrapper {
    position: relative;
    width: 100%;
}

.uni-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    transition: transform 0.4s ease;
}

.uni-slider::-webkit-scrollbar {
    display: none;
}

.uni-card {
    min-width: 23%;   /* 👈 4 cards visible (23% + gap = perfect) */
}

/* Icon Button */
.uni-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #fff !important;
    transition: .3s;
}

.uni-icon-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* Center Bar Above Text */
.icon-bar {
    margin-top: -23px;
    display: flex;
    justify-content: center;
}

/* Arrows Below */
.uni-arrow-btn {
    background: rgba(0,0,0,0.07);
    border: none;
    padding: 10px 18px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

.uni-arrow-btn:hover {
    background: rgba(0,0,0,0.15);
}
.photo-grid {
    display: grid;

    gap: 15px;
    grid-auto-rows: 220px; /* Increase this to enlarge boxes */
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Large image spans 2 rows */
.item-large {
    grid-row: span 2;
}


/* Background image */
.service-bg-section {
    background: url('https://mbbsgroup.com/assets/images/homepage/poppular-univercity.jpg') 
                center center / cover no-repeat;
    padding: 80px 0;
    position: relative;
}

/* Optional dark overlay for readability */
.service-bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25); /* Light dark overlay */
    backdrop-filter: blur(2px);
}

.service-bg-section .container {
    position: relative; /* So cards stay above overlay */
    z-index: 2;
}

/* Service card base */
.service-card-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    height: 100;
    box-shadow: 0 10px 25px rgb(0 0 0 / 12%);

}

.service-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* services */
.white-icon-card {
    background: #2492eb !important; /* soft pastel light blue */
    border-color: #e2e6ff !important;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card .icon-wrap img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

.service-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: #555;
}

.service-card-box {
  
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card-box:hover {
    transform: scale(1.05);   /* 🔥 little zoom */
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
.back-to-top{
    border: none;
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* buttons */

.address p {
    color: #000000;
    font-size: 16px;
    margin: 15px 0;
}

.call-on {
    margin: 15px 0;
}

.call-on p,
.inquary p {
    color: #000000;
    font-size: 18px;
}

.call-on a,
.inquary a {
    color: #000000;
    font-size: 16px;
}

.socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.socials img {
    width: 32px;
    height: 32px;
    transition: 0.3s;
}

.socials img:hover {
    transform: scale(1.15);
}



.other-link {
    display: flex;
    margin-top: 10px;
}

.other-link>div {
    margin-right: 10px;

}

.other-link>div a {
    font-size: 14px;
    color: #000000;
    padding-right: 10px;
    border-right: 0.5px solid #707070;
}

.other-link div:last-child a {
    border: 0;
}

.link-item .link-hd p {
    color: #1d438d;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.link-item .link-hd {
    margin-bottom: 12px;
}

.link-item div a {
    color: #000000;
    font-size: 14px;
    margin-bottom: 7px;
    width: fit-content !important;
    display: block;


}

footer a:hover {
    color: #2492eb;
}

.copyright {
    background: #1d438d;
    padding: 5px 0;
    margin-top: 40px;
}

.copyright p {
    font-size: 14px;
    color: #fff;
}

.need-help a {
    color: #000;
    display: flex;
    align-items: end;
}

.need-help a img {
    margin-left: 5px;
}

.prov-feed a {
    color: #000;
    text-decoration: underline;
    margin: 42px 0 0 40px;
    display: block;
    letter-spacing: 0.56px;
    font-style: italic;
}

/* footer css */



.testimonial-fixed-box {
    height: 200px;
    /* Fixed height */
    display: flex;
    /* Flexbox */
    flex-direction: column;
    /* Vertical alignment */
    justify-content: center;
    /* Center vertically */
    text-align: center;
    /* Center text horizontally */
    padding: 20px;
    /* Keep nice spacing */
    background: #f8f9fa;
    /* Same as bg-light */
    border-radius: 8px;
    /* Optional: softer corners */
}
footer {
        background: #EDF2F4;
        margin-top: 50px;
        padding-top: 50px;
    }

    .footer-title {
        font-size: 20px;
        color: #fff !important;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer-list li a {
        color: #fff !important;
        text-decoration: none;
        font-size: 14px;
        display: block;
        padding: 2px 0;
        transition: 0.2s;
    }


.footer-title {
    font-size: 20px;
    color: #1d438d !important;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-list li a {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 2px 0;
    transition: 0.2s;
}

.custom-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    padding: 0;
    background: none;
    border: none;
}

.custom-close-btn::before {
    content: "✕";
    font-size: 16px;
    color: #000;
}

/* Blog page */
    .blog-img {
    height: 400px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     object-position: top center;
}
