/* ---------- Global Reset ---------- */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(241, 231, 231);
}

/* ---------- TOP BAR ---------- */
    .top-bar {
      background: linear-gradient(90deg, #f76720, #f75524);
      /* background: #041c94; */
      /* background: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%); */
      /* background: radial-gradient( circle farthest-corner at 32.7% 49.8%,  rgba(28,88,238,1) 0%, rgba(0,39,137,1) 100.2% ); */
      color: #FFFFFF;
      padding: 4px 0;
      font-family: "Poppins", sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      position: relative;
      z-index: 1000;
    }

    /* ---------- FLEX CONTAINER ---------- */
    .bar-content {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 25px;
      text-align: center;
    }

    /* ---------- LINK STYLE ---------- */
    .bar-content a {
      color: #fff;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 500;
      transition: 0.3s;
      white-space: nowrap;
    }

    .bar-content a:hover {
      color: #ffe8db;
    }

    .bar-content i {
      font-size: 1.1rem;
    }

    /* ---------- LOGIN BUTTON ---------- */
    .login-btn {
      background: #fff;
      color: #f85f2f;
      border-radius: 25px;
      padding: 6px 16px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .login-btn:hover {
      background: #f85f2f;
      color: #fff;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      transform: translateY(-1px);
    }

    /* ---------- DESKTOP VIEW ---------- */
    .bar-text {
      display: inline;
    }

    /* ---------- MOBILE VIEW ---------- */
    @media (max-width: 768px) {
      .bar-content {
        gap: 18px;
        flex-wrap: nowrap;
        justify-content: center;
      }

      /* Hide text only for contact items, keep Login/Register same */
      .bar-content a:not(.login-btn) .bar-text {
        display: none;
      }

      .bar-content i {
        font-size: 1.25rem;
      }

      .login-btn {
        padding: 6px 14px;
        font-size: 0.9rem;
      }
    }
/* ---------- Navbar ---------- */
nav{
    width: 100%;
    height: 65px;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    backdrop-filter: blur(10px);

    position: relative;   /* default */
    top: auto;
    left: 0;

    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
nav.fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.35s ease;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.logo img {
    height: 35px;
}

/* Desktop Menu */
.navbar-menu {
    display: flex;
    align-items: center;   /* ✅ vertical alignment */
    gap: 18px;
}

.navbar-menu li {
    list-style: none;
    display: flex;         /* ✅ keeps li height same as link */
    align-items: center;
}

.navbar-menu li a {
    display: flex;         /* ✅ centers text inside */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    transition: 0.3s;
}
.navbar-menu a:hover{
    background: #e45a0a;
    color: #fff;
}

/* Mobile Toggle */
.nav-toggle{
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar{
    width: 28px;
    height: 3px;
    background: #000;
    margin: 4px 0;
    transition: .4s;
}

/* ------------ MOBILE VIEW ------------ */
@media(max-width: 768px){

    /* mobile nav container */
   .navbar-menu{
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;  
        height: 100vh;
        /* background: #fff; */
        background: linear-gradient( 135deg, #52E5E7 10%, #130CB7 100%);

        flex-direction: column;
        align-items: flex-start;

        padding-top: 120px; /* space for logo */
        padding-left: 30px;
        gap: 1.7rem;

        transition: .4s ease;
        box-shadow: none;
        overflow-y: auto;
        z-index: 9998;
    }

    .navbar-menu.active{
        left: 0; /* slide full width */
    }

    /* KEEP LOGO VISIBLE */
  nav {
    width: 100%;
    height: 65px;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.35s ease;
}

/* Smooth slide animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
    /* MENU LINKS BIGGER */
    .navbar-menu a{
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        padding: 2px 40px;
        width: 100%;
        text-transform: uppercase;
    }

    /* TOGGLE BUTTON ALWAYS VISIBLE */
    .nav-toggle{
        display: flex;
        z-index: 10000; /* above everything */
    }
    .navbar-menu.active{
        right: 0;
    }

    /* show toggle */
    .nav-toggle{
        display: flex;
    }

    /* Toggle → Cross */
    .nav-toggle.active .bar:nth-child(1){
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.active .bar:nth-child(2){
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3){
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Extra small phones ( ≤ 360px ) */
@media(max-width: 360px){
    nav{
        height: 70px;
        padding: 0 10px;
    }

    .logo img{
        height: 45px;
    }

    .navbar-menu{
        width: 85%;
        padding-left: 20px;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.carousel {
    
    z-index: 1;
}

/* ---------- Button Hover Effect ---------- */
.btn-success {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* rating section */
/* ================================
   EXCELLENCE SECTION – SOLID COLOR
================================ */

.excellent {
  margin-bottom: 20px;
  padding: 90px 40px;
  background: #1f3c88;   /* solid professional blue */
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Soft light background accents (NO gradient) */
.excellent::before,
.excellent::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(80px);
}

.excellent::before {
  width: 320px;
  height: 320px;
  background: #ffffff;
  top: -100px;
  left: -100px;
}

.excellent::after {
  width: 260px;
  height: 260px;
  background: #000000;
  bottom: -100px;
  right: -100px;
}

.excellent .row {
  justify-content: center;
}

/* ================================
   CARD DESIGN
================================ */

.excellence-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 36px 26px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle shine effect (solid white) */
.excellence-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.excellence-item:hover::before {
  opacity: 1;
}

.excellence-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* ================================
   ICON
================================ */

.excellence-item i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #ffffff;
  opacity: 0.9;
}

/* ================================
   TEXT
================================ */

.excellence-item h2 {
  font-size: 2.3rem;
  margin: 12px 0 6px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.excellence-item p {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.6;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .excellent {
    padding: 70px 20px;
  }

  .excellence-item {
    padding: 28px 20px;
  }

  .excellence-item h2 {
    font-size: 1.9rem;
  }

  .excellence-item i {
    font-size: 2.5rem;
  }
}

/* Counter Animation */
.counter {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Stars for Ratings */
.stars i {
  color: #FFD700;
  margin: 0 2px;
  font-size: 1rem;
}

/* popular courses section */
.country-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
}

.country-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.country-hero .container {
  position: relative;
  z-index: 2;
}

.flag-img {
  width: 80px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.uni-card {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uni-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step {
  background: #fff;
  transition: all 0.3s ease;
}

.step:hover {
  background: #FF4500;
  color: white;
}

.apply-section {
  background: linear-gradient(135deg, #ee825bff, #ff7300);
  color: white;
}

.apply-section .btn {
  background-color: white;
  color: #FF4500;
  font-weight: bold;
}

.apply-section .btn:hover {
  background-color: #333;
  color: white;
}
/* Popular Disciplines */
/* ====== PREMIUM COURSE CARD ====== */
/* ===== POPULAR DISCIPLINES – PREMIUM CARD ===== */
#populardecplan .course-card{
  position: relative;
  height: 145px;
  background: linear-gradient(145deg, #ffffff, #f1f4ff);
  border-radius: 20px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 22px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: all 0.45s ease;
  overflow: hidden;
}

/* subtle animated gradient layer */
#populardecplan .course-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(247,103,32,0.18),
    rgba(40,167,69,0.18)
  );
  opacity: 0;
  transition: 0.45s ease;
}

/* ICON STYLE */
#populardecplan .course-card i{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #20c997);
  /* background: white; */
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  margin-bottom: 12px;

  box-shadow: 0 8px 18px rgba(40,167,69,0.45);
  transition: all 0.45s ease;
}

/* TITLE */
#populardecplan .course-card h6{
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1c1c;
  letter-spacing: 0.4px;
  margin: 0;
  transition: color 0.4s ease;
}

/* ===== HOVER EFFECT ===== */
#populardecplan .course-card:hover{
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 20px 38px rgba(0,0,0,0.18);
}

#populardecplan .course-card:hover::before{
  opacity: 1;
}

#populardecplan .course-card:hover i{
  background: linear-gradient(135deg, #f76720, #f75524);
  transform: rotate(10deg) scale(1.15);
  box-shadow: 0 10px 24px rgba(247,103,32,0.55);
}

#populardecplan .course-card:hover h6{
  /* color: #f76720; */
  background-color: orangered;
  color: white;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media(max-width:768px){
  #populardecplan .course-card{
    height: 130px;
  }

  #populardecplan .course-card i{
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  #populardecplan .course-card h6{
    font-size: 0.85rem;
  }
}



/* Owl nav buttons */
/* .owl-nav button{
  position: absolute;
  top: 45%;
    background-color: orangered!important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.owl-nav .owl-prev{
  left: -50px;
  top: 20px;
}

.owl-nav .owl-next{
  right: -50px;
  top: 20px;
}

.owl-nav i{
  color: #000;
  font-size: 1rem;
} */



/* ==============================
   EXPAND FROM CENTER ON HOVER
============================== */

.circle-container{
  position:relative;
  width:200px;
  height:200px;
  margin:30px auto;
  border:2px dotted rgb(12, 74, 245);
  border-radius:50%;
  background:#b5bdc9;
  overflow:visible;
  transition:
    width 0.7s ease,
    height 0.7s ease,
    background 0.6s ease,
    border 0.6s ease;
}

/* Expand area smoothly */
.circle-container:hover{
  width:700px;
  height:700px;
  background:#f0c3af;
  border:none;
}

/* MAIN LOGO (CENTER) */
.main-logo{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(1);
  z-index:3;
  transition:transform 0.6s ease;
}
.circle-container:hover .main-logo{
  transform:translate(-50%, -50%) scale(0.85);
}

/* ALL ITEMS START COLLAPSED INSIDE LOGO */
.circle-item{
  position:absolute;
  top:50%;
  left:50%;
  width:110px;
  text-align:center;

  /* collapsed state */
  transform:translate(-50%, -50%) scale(0);
  opacity:0;

  pointer-events:none;
  transition:
    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s ease;
}

/* On hover → explode outward */
.circle-container:hover .circle-item{
  opacity:1;
  pointer-events:auto;
}

/* ===============================
   PERFECT SMALL CIRCLE
   Radius ≈ 65px
=============================== */

.circle-container:hover .item-1{ transform:translate(-100px, -65px) scale(1); }     /* top */
.circle-container:hover .item-2{ transform:translate(36px, -46px) scale(1); }   /* top-right */
.circle-container:hover .item-3{ transform:translate(-5px, 30px) scale(1); }     /* right */
.circle-container:hover .item-4{ transform:translate(-46px, 46px) scale(1); }    /* bottom-right */
.circle-container:hover .item-5{ transform:translate(-100px, 15px) scale(1); }     /* bottom */
.circle-container:hover .item-6{ transform:translate(-86px, -29px) scale(1); }   /* bottom-left */
.circle-container:hover .item-7{ transform:translate(-65px, 0px) scale(1); }    /* left */
.circle-container:hover .item-8{ transform:translate(-46px, -46px) scale(1); }  /* top-left */
.circle-container:hover .item-9{ transform:translate(-32px, -48px) scale(1); }  /* slight offset for 9th */

/* ICON STYLE */
.circle-icon{
  width:50px;
  height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#fff;
  margin:0 auto 10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
  transition:transform 0.4s ease;
}
.circle-item:hover .circle-icon{
  transform:scale(1.15);
}

/* MOBILE */
@media(max-width:768px){
  .circle-container{ display:none; }
}
.section-title{
  font-size: 27px;
  font-weight:700;
  text-align:center;
  margin-bottom:8px;
}

.section-subtitle{
  text-align:center;
  font-size:16px;
  color:#666;
  margin-bottom:10px;
}

footer{
  background: #050505;
  /* background: linear-gradient( 135deg, #6B73FF 10%, #000DFF 100%); */
}

/* popular course section start */
/* Section Styling */
.popular-courses {
  background: linear-gradient(135deg, #f9fafc, #eef3f9);
  overflow: hidden;
}

.text-gradient {
  background: linear-gradient(90deg, #007bff, #6610f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Course Cards */
.course-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.course-card h5 {
  font-weight: 600;
  padding: 1rem 0;
  color: #333;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}

/* Image and Overlay */
.course-img {
  position: relative;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.course-card:hover .course-img img {
  transform: scale(1.08);
}

.course-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover .overlay {
  opacity: 1;
}

/* Button */
.btn-view-more {
  background: linear-gradient(90deg, #007bff, #6610f2);
  color: #fff;
  border: none;
  padding: 5px 25px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background: linear-gradient(90deg, #6610f2, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* university card section */
.university-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.35s ease;
}

.university-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 1.0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 18px;
  text-align: center;
}

.overlay .logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3px;
  margin-bottom: 4px;

  object-fit: contain;   /* ✅ IMPORTANT */
}

.overlay p {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .card-actions {
    flex-direction: column;
    width: 100%;
  }
  .card-actions .btn {
    width: 100%;
  }
}

/* ==============================
   Student Reviews Section
============================== */
.student-reviews {
  background: linear-gradient(135deg, #f9fbfd 0%, #eef4ff 100%);
  font-family: 'Poppins', sans-serif;
}

.student-reviews h2 {
  font-size: 1.5rem;
  color: #1a237e;
  letter-spacing: 1px;
}

.student-reviews p {
  color: #555;
  font-size: .7rem;
}

/* ==============================
   Review Cards
============================== */
.review-card {
  background: #fff;
  border-radius: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.review-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
/* ==============================
   Student Photo
============================== */
.student-photo {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #3f51b5;
  box-shadow: 0 5px 15px rgba(63, 81, 181, 0.2);
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.review-card:hover .student-photo img {
  transform: scale(1.1);
}

/* ==============================
   Student Name & Course
============================== */
.review-card h5 {
  color: #1a237e;
  font-weight: 500;
}

.review-card small {
  color: #757575;
  font-style: italic;
}

/* ==============================
   Stars
============================== */
/* .stars i {
  font-size: .5rem;
  margin: 0 1px;
} */

/* ==============================
   Review Text
============================== */
.review-card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 10px;
  font-style: italic;
  position: relative;
}

.review-card p::before {
  content: "“";
  font-size: 3rem;
  color: #c5cae9;
  position: absolute;
  top: -15px;
  left: -10px;
}

.review-card p::after {
  content: "”";
  font-size: 3rem;
  color: #c5cae9;
  position: absolute;
  bottom: -25px;
  right: 5px;
}

/* ==============================
   Owl Carousel Customization
============================== */
/* .owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  background: #3f51b5;
  color: #fff !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 1;
  font-size: 1.2rem !important;
  transition: 0.3s;
}

.owl-carousel .owl-nav button:hover {
  background: #283593;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #b0bec5;
  display: block;
  border-radius: 50%;
  transition: 0.3s;
}

.owl-carousel .owl-dots .owl-dot.active span {
  background: #3f51b5;
  transform: scale(1.3);
} */

/* ==============================
   Responsive Design
============================== */
@media (max-width: 768px) {
  .student-reviews h2 {
    font-size: 1.6rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .review-card p {
    font-size: 0.9rem;
  }

  .student-photo {
    width: 80px;
    height: 80px;
  }
}

/* Popular Countries Section */
.popular-countries {
  background: #f9f9f9;
  transition: background 0.3s, color 0.3s;
}
/* Country Card */
.country-card {
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}
.country-card:hover {
  transform: scale(1.05);
}

.country-img {
  height: 250px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* Overlay effect */
.country-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
  transition: all 0.4s ease;
}
.country-card:hover .country-img::before {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

/* Country name text */
.country-name {
  position: relative;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 2;
  padding-bottom: 20px;
  text-transform: uppercase;
}
@media (max-width: 576px) {
  .country-card {
    padding: 10px;
  }
}

/* Flag box */
.flag-box {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  padding: 5px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-box img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}


/* Video testimonials section */

/* Video Testimonials Section */
.video-testimonials {
  background: #f8f9fa;
  transition: background 0.3s, color 0.3s;
}
/* Video Card */
.video-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.video-card:hover {
  transform: translateY(-5px);
}
.video-box iframe {
  border-radius: 15px 15px 0 0;
}

/* Video Info */
.video-info {
  padding: 15px;
}

.video-info h5 {
  color: #333;
}

.video-info p {
  color: #555;
  font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
  margin-top: 10px;
}
.social-icons a {
  color: #555;
  margin: 0 8px;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #007bff;
}

.faq-google {
  background: #f8f9fa;
  transition: background 0.3s, color 0.3s;
}

/* Underline below title */
.underline {
  width: 80px;
  height: 4px;
  background: #20c997;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Accordion styles */
.accordion-button {
  font-weight: 600;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.accordion-button:not(.collapsed) {
  background: #20c997;
  color: #fff;
}

/* Google Rating Card */
.google-rating-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rating-number {
  font-size: 6rem;
  font-weight: 700;
  color: #adb5bd;
  line-height: 1;
}

/* .stars i {
  color: #ffc107;
  font-size: 1.5rem;
} */

.google-text i {
  font-size: 1.6rem;
  background: linear-gradient(45deg, #4285F4, #EA4335, #FBBC05, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .rating-number {
    font-size: 4rem;
  }
  .google-rating-card {
    padding: 30px 15px;
  }
}

/* for the page community post */
.custom-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: #fff;
}
.custom-card:hover {
  transform: translateY(-5px);
}

/* Community Post Image */


/* video review section */
/* ==============================
   Video Slider Section
============================== */
.video-slider {
  background: linear-gradient(135deg, #eef2ff, #e3f2fd);
  font-family: 'Poppins', sans-serif;
}

.video-slider h2 {
  color: #1a237e;
  letter-spacing: 1px;
}

.video-slider p {
  color: #555;
}

/* ==============================
   Video Card
============================== */
.video-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid #e0e0e0;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* ==============================
   Video Wrapper (16:9)
============================== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-bottom: 3px solid #3f51b5;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

/* ==============================
   Video Info & Share Button
============================== */
.video-info h5 {
  color: #1a237e;
  font-weight: 600;
}

.share-btn {
  background: #3f51b5;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-btn i {
  margin-right: 6px;
}

.share-btn:hover {
  background: #283593;
}

/* ==============================
   Owl Carousel Custom
============================== */
/* #video-carousel .owl-nav button.owl-prev,
#video-carousel .owl-nav button.owl-next {
  background: #3f51b5;
  color: #fff !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem !important;
  transition: 0.3s;
}

#video-carousel .owl-nav button:hover {
  background: #283593;
}

#video-carousel .owl-dots .owl-dot span {
  background: #b0bec5;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

#video-carousel .owl-dots .owl-dot.active span {
  background: #3f51b5;
  transform: scale(1.3);
} */

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
  .video-info h5 {
    font-size: 1rem;
  }
  .share-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* university section */

/* ===== COURSE LIST PAGE STYLES ===== */

.course-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.course-banner .banner-img {
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
}
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.course-listing {
  background: linear-gradient(180deg, #f9fafc, #eef3f9);
  min-height: 100vh;
}

/* Filter Sidebar */
.filter-box {
  background: #fff;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
}
.filter-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.text-gradient {
  background: linear-gradient(90deg, #007bff, #6610f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(90deg, #007bff, #6610f2);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s ease;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #6610f2, #007bff);
  transform: translateY(-3px);
}

/* Course Card */
.course-card {
  background: #fff;
  border: 1px solid #eaeaea;
  overflow: hidden;
  transition: all 0.4s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover img {
  transform: scale(1.07);
}

.course-card .badge {
  font-size: 0.75rem;
  padding: 0.5em 0.7em;
  border-radius: 8px;
  font-weight: 600;
}

/* Buttons inside card */
.course-card .btn {
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}
.course-card .btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}
.course-card .btn-primary:hover {
  background-color: #0056b3;
}

.course-actions {
  gap: 8px;
}

/* Mobile view improvement */
@media (max-width: 576px) {
  .course-actions {
    flex-direction: column;     /* stack buttons */
  }

  .course-card .btn {
    width: 100%;                /* full width */
    padding: 8px 0;
    font-size: 0.85rem;
  }
}
/* ===== MOBILE FILTER SIDEBAR OFFSET ===== */
@media (max-width: 991.98px) {
  .filter-offcanvas {
    margin-top: 110px !important;
    width: calc(100% - 110px);
  }
}

/* ======= University Hero Section ======= */

/* ======= Filter Card ======= */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease-in-out;
}

.glass-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* ===============================
   FILTER OFFCANVAS FIX
================================ */

/* Prevent navbar overlap */
.filter-offcanvas {
  top: 85px;                     /* SAME height as navbar */
  height: calc(100% - 85px);
}

/* Scrollable body */
.filter-body {
  overflow-y: auto;
  padding-bottom: 90px;          /* space for button */
}

/* Fixed footer */
.filter-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

/* Mobile width */
@media (max-width: 991px) {
  .filter-offcanvas {
    width: 85%;
  }
}
/* Mobile Filter Button Fix */
.filter-btn {
  height: 46px;
  font-weight: 600;
  border-radius: 10px;
}

/* Extra polish for very small screens */
@media (max-width: 576px) {
  .filter-btn {
    font-size: 0.95rem;
  }
}


/* ======= University Cards ======= */
.uni-card {
  transition: all 0.3s ease;
  border-radius: 20px;
}

.uni-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.uni-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.uni-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #007bff;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
}

.uni-logo-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

/* ======= Buttons & Gradients ======= */
.btn-gradient {
  background: linear-gradient(45deg, #007bff, #00bfff);
  color: white;
  border: none;
  transition: 0.3s;
}

.btn-gradient:hover {
  opacity: 0.9;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

/* ======= Animations ======= */
.animate-fade {
  animation: fadeIn 1.2s ease-out;
}

.animate-slide {
  animation: slideUp 1.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* university details page */
/* ======= HERO SECTION ======= */
.university-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: brightness(55%); */
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 0;
  /* background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px); */
}

/* ======= HERO BOX ======= */
.hero-box {
  background: rgba(56, 56, 56, 0.171);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 900px;
  color: #fff;
  transition: all 0.4s ease;
}

.hero-box:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ======= LOGO ======= */
.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  object-fit: contain;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  transition: transform 0.4s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

/* ======= BUTTONS ======= */
.btn-primary {
  background: linear-gradient(45deg, #0066ff, #00bfff);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #fff;
  color: #007bff;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
  .university-hero {
    height: auto;
    padding: 60px 0;
  }
  .hero-box {
    padding: 25px;
    text-align: center;
  }
  .hero-logo {
    width: 90px;
    height: 90px;
  }
  .hero-box h1 {
    font-size: 1.75rem;
  }
  .hero-box p {
    font-size: 0.9rem;
  }
}


/* ======= CAPSULE BUTTONS ======= */
.capsule-btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}
.capsule-btn:hover {
  background: #e9f3ff;
  color: #007bff;
}
.capsule-btn.active, 
.capsule-btn[aria-expanded="true"] {
  background: linear-gradient(45deg, #007bff, #00bfff);
  color: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}

/* ======= SECTION CONTENT ======= */
.section-content {
  transition: all 0.5s ease;
}
.section-title {
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1rem;
}
.course-card {
  border-left: 4px solid #007bff;
  background: #fff;
  transition: 0.3s;
}
.course-card:hover {
  transform: translateY(-4px);
  background: #f1f8ff;
}

/* ======= COUNSELLING FORM ======= */
.counselling-form {
  top: 100px;
  border: 1px solid #eaeaea;
}
.counselling-form input, 
.counselling-form select, 
.counselling-form textarea {
  border: 1px solid #dee2e6;
  font-size: 14px;
}
.counselling-form .btn-gradient {
  background: linear-gradient(45deg, #007bff, #00bfff);
  border: none;
  color: #fff;
  transition: 0.3s;
}
.counselling-form .btn-gradient:hover {
  opacity: 0.9;
}

/* ======= ANIMATION ======= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ================================
   NEWSLETTER SECTION
================================ */

.newsletter-section {
  background-image: url('../img/news.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay */
.newsletter-overlay {
  background: rgba(0, 0, 0, 0.384);
  padding: 90px 15px;
}

/* Text */
.newsletter-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.newsletter-text {
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* ================================
   FORM
================================ */

.newsletter-input-wrapper {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  height: 52px;
  border-radius: 30px 0 0 30px;
  border: none;
  padding: 0 20px;
  font-size: 1rem;
}

.newsletter-btn {
  height: 52px;
  padding: 0 30px;
  /* border-radius: 0 30px 30px 0; */
  background: #006eff;
  color: #fff;
  font-weight: 600;
  border: none;
}

button .btn .newsletter-btn:hover {
  background: #e85d00;
}

/* ================================
   MOBILE FIX (IMPORTANT)
================================ */

@media (max-width: 768px) {
  .newsletter-title {
    font-size: 1.9rem;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    border-radius: 30px;
  }

  .newsletter-btn {
    height: 48px;
  }
}
