 body {
   font-family: 'Poppins', sans-serif;
    margin: 0;
   
    height: 1000px;
}
.head {
    background-color: #000000;
    padding: 1px 0; /* thinner strip */
}
.head1 {
    list-style: none;
    display: flex;
    justify-content: left;
    gap: 30px;
    margin: 0;
    padding: 6px 20px; }
.head1 a {
    text-decoration: none;
    color: white;
    font-size: smaller;
    font-weight: normal;
}
.head1 a:hover {
    color: black;
    background-color: white;
    transition: 0.3s ease-in-out;
    padding: 5px 10px;
    border-radius: 5px;
}
@media (max-width: 480px) {
    .head{
        display: none;
    }
    
}

       nav {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    position: sticky;  /* ✅ Make it sticky */
    top: 0;            /* ✅ Stick to the top */
    z-index: 1000;     /* ✅ Ensure it stays above all content */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


        .nav-left {
            font-size: 22px;
            font-weight: 700;
            color: #0406ae;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-left i {
            color: #0c0058;
        }

        .nav-center {
            position: relative;
        }

        .nav-center button {
            background: none;
            border: none;
            color: rgb(0, 0, 0);
            font-size: 16px;
            cursor: pointer;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 4px;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-center button:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #fff;
            color: #000;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            padding: 25px;
            border-radius: 12px;
            width: 90vw;
            max-width: 1000px;
            z-index: 100;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            border-top: 4px solid #0033ff;
        }

        .dropdown-column h4 {
            margin-bottom: 15px;
            font-size: 16px;
            color: #1a1a2e;
            border-bottom: 2px solid #c9d0ff;
            display: inline-block;
            padding-bottom: 5px;
        }

        .dropdown-column a {
            display: block;
            text-decoration: none;
            color: #555;
            font-size: 14px;
            margin: 8px 0;
            transition: 0.2s;
            padding: 4px 0;
        }

        .dropdown-column a:hover {
            color: #2563eb;
            transform: translateX(5px);
        }

        .nav-center:hover .dropdown {
            display: grid;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .login-btn, .signup-btn {
            padding: 8px 20px;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }

        .login-btn {
            background: transparent;
            border: 1px solid white;
            color: #0026ff;
            font-weight: normal;
        }

        .login-btn:hover {
            background-color:rgb(0, 0, 148);
            color: white;
            transition: 0.3s ease-in-out;
        }

        .signup-btn {
            background-color: white;
            border: 1px solid #0004ff;
            color: #1a1a2e;
            font-weight: normal;
        }

        .signup-btn:hover {
            background-color: #000d84;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
        }

        .free-courses:hover {
            background-color: rgba(255, 215, 0, 0.1);
        }

        /* Mobile Toggle Button */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: rgb(0, 0, 0);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .mobile-toggle:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* Left Side Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -70%;
            width: 70%;
            height: 100vh;
            background: linear-gradient(to bottom, #ffffff, #f0f8ff);
            z-index: 1000;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            overflow-y: auto;
            padding: 20px 0;
        }

        .mobile-menu.active {
            left: 0;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 10px;
        }

        .mobile-menu-header .logo {
            font-size: 20px;
            font-weight: 700;
            color: #1a1a2e;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mobile-menu-header .logo i {
            color: #2563eb;
        }

        .mobile-close {
            background: none;
            border: none;
            font-size: 22px;
            color: #64748b;
            cursor: pointer;
            transition: color 0.3s;
        }

        .mobile-close:hover {
            color: #2563eb;
        }

        .mobile-menu-item {
            border-bottom: 1px solid #e2e8f0;
        }

        .mobile-menu-header-item {
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 500;
            color: #1a1a2e;
            transition: background-color 0.2s;
        }

        .mobile-menu-header-item:hover {
            background-color: #f1f5f9;
        }

        .mobile-menu-header-item i {
            transition: transform 0.3s;
            color: #64748b;
        }

        .mobile-menu-header-item.active i {
            transform: rotate(180deg);
            color: #2563eb;
        }

        .mobile-dropdown {
            background-color: #f8fafc;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .mobile-dropdown.active {
            max-height: 500px;
        }

        .mobile-dropdown a {
            display: block;
            padding: 12px 35px;
            color: #475569;
            text-decoration: none;
            border-bottom: 1px solid #e2e8f0;
            transition: all 0.2s;
            font-size: 14px;
        }

        .mobile-dropdown a:hover {
            background-color: #e0f2fe;
            color: #2563eb;
            padding-left: 40px;
        }

        .mobile-dropdown a i {
            margin-right: 10px;
            width: 18px;
            text-align: center;
            color: #64748b;
        }

        .mobile-auth {
            display: flex;
            padding: 20px;
            gap: 10px;
            border-bottom: 1px solid #e2e8f0;
        }

        .mobile-auth button {
            flex: 1;
            padding: 12px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            border: none;
        }

        .mobile-login {
            background: transparent;
            border: 1px solid #2563eb !important;
            color: #2563eb;
        }

        .mobile-login:hover {
            background-color: #dbeafe;
        }

        .mobile-signup {
            background-color: #2563eb;
            color: white;
        }

        .mobile-signup:hover {
            background-color: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
        }

        .mobile-free {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #2563eb;
            font-weight: 600;
            padding: 15px 20px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #e2e8f0;
        }

        .mobile-free:hover {
            background-color: #f1f5f9;
        }

        .mobile-free i {
            font-size: 18px;
        }

        /* Overlay when mobile menu is open */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }

        .overlay.active {
            display: block;
        }

        /* ---- Responsive ---- */
        @media (max-width: 1024px) {
            nav {
                padding: 12px 3%;
            }
            
            .dropdown {
                width: 95vw;
                gap: 20px;
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
            }
            
            .nav-center, .nav-right {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .dropdown {
                grid-template-columns: 1fr;
            }
           
            .mobile-auth {
                flex-direction: column;
            }
        }

    /* === Responsive Preloader === */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    #preloader.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    #preloader h1 {
      color: #012250;
      letter-spacing: 2px;
      text-align: center;
      animation: fadeText 2s ease-in-out infinite alternate;
      font-size: clamp(1.8rem, 6vw, 3rem); /* responsive text size */
    }

    @keyframes fadeText {
      0% { opacity: 1; transform: scale(1); }
      100% { opacity: 0.6; transform: scale(1.05); }
    }

    /* Optional loader circle below text */
    .loader-circle {
      margin-top: 25px;
      width: 40px;
      height: 40px;
      border: 4px solid #142a9b;
      border-top: 4px solid transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    body {
      background: #fff;
      color: #333;
      overflow-x: hidden;
    }

    /* === Section === */
    .courses-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
        padding: 10px 20px;
        padding-left: 12%;
      flex-wrap: wrap;
      gap: 110px;
    }

    .courses-left {
      position: relative;
      flex: 1;
      min-width: 320px;
    }

    .main-img {
      width: 100%;
      border-bottom-right-radius: 200px;
      border-top-left-radius: 200px;
      overflow: hidden;
    }

    .main-img img {
      width: 100%;
      height: auto;
      display: block;
    }

    .floating-img {
      position: absolute;
      border-radius: 50%;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .float1 {
      width: 150px;
      height: 150px;
      top: 10%;
      right: -60px;
      border-top-left-radius: 150px;
      border-top-right-radius: 150px;
      border-bottom-left-radius: 0;
    }

    .float2 {
      width: 90px;
      height: 90px;
      bottom: -40px;
      right: 20%;
    }

    .floating-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .courses-right {
      flex: 1;
      min-width: 300px;
    }

    .courses-right h4 {
      color: #0008a5;
      font-weight: 300;
      margin-bottom: 10px;
    }

    .courses-right h1 {
      font-size: 2.2rem;
      line-height: 1.0;
      font-weight: 400;
      color: #1b1b1b;
      margin-bottom: 15px;
    }

    .courses-right p {
      font-size: 0.95rem;
      color: #555;
      margin-bottom: 20px;
      max-width: 400px;
    }

    .read-btn {
      background-color: #02006e;
      color: white;
      padding: 12px 28px;
      border: none;
      border-radius: 6px;
      font-weight: 500;
      text-decoration: none;
      transition: 0.3s ease;
      display: inline-block;
    }

    .read-btn:hover {
      background-color: #040c19;
      transform: translateY(-2px);
    }

    @media (max-width: 992px) {
      .courses-section {
        flex-direction: column;
        text-align: left;
        gap: 20px;
        padding-left:4%;
      }

      .courses-right {
        order: -1;
      }

      .courses-right p {
        margin: 0 auto 25px;
      }

      .main-img ,.floating-img , .floating-img float2 {
        border-radius: 5px;
        display: none;
      }

      .float1 {
        right: 10%;
        top: -20px;
      }

      .float2 {
        bottom: -30px;
        left: 30%;
      }
    } .card-container {
    padding: 20px 20px;
     display: flex;
    justify-content: center;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
   justify-content: center;
    max-width: 1500px;
  }

  .card {
    background: white;
    border-radius: 20px;
    width: 320px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }

  .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .card-header {
    padding: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    padding-bottom: 0px;
  }


  .card-header span {
    display: inline-block;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 10px;
    margin-right: 5px;
    font-weight: 600;
  }

  .card-header .circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #000;
    opacity: 0.3;
  }

  .card h2 {
    font-size: 22px;
    margin-top: 10px;
  }

  .card p {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
  }

  .card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 0 0 20px 20px;
    margin-top: 10px;
    transition: transform 0.3s ease;
  }

  .card:hover img {
    transform: scale(1.05);
  }

  /* Button inside card */
  .card .card-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.3);
    color: #000;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  }

  .card .card-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  .cards {
    background-color: #f1f6ff;
  }

  /* Mobile carousel */
  @media (max-width: 768px) {
    .card-container {
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      gap: 15px;
      padding: 0 15px;
      justify-content: left;
    }

    .card-container::-webkit-scrollbar {
      height: 6px;
    }

    .card-container::-webkit-scrollbar-thumb {
      background: rgba(0,0,0,0.2);
      border-radius: 3px;
    }

    .card {
      flex-shrink: 0;
      min-width: 90%; /* show 1 card at a time */
      scroll-snap-align: start;
    }
    
  }
  .university {
    padding-top: 10px;
    padding-left: 10px;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    padding-bottom: 10px;
  }
  .courses-university-container {max-width:1200px;margin:0px auto;padding:0 20px;}
.courses-university-title {text-align:center;font-size:2rem;margin-bottom:40px;}

/* Course Section */
.courses-university-section {margin-bottom:30px;}
.courses-university-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;}
.courses-university-header h2 {font-size:1.5rem;color:#333;}
.courses-university-show-more-btn {
    background:#007bff;color:white;padding:10px 20px;border:none;border-radius:8px;font-size:0.9rem;cursor:pointer;transition:0.3s;
}
.courses-university-show-more-btn:hover {background:#0056b3;}

/* Carousel */
.courses-university-carousel {
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}
.courses-university-carousel::-webkit-scrollbar {height:8px;}
.courses-university-carousel::-webkit-scrollbar-thumb {background:#ccc;border-radius:4px;}
.courses-university-carousel::-webkit-scrollbar-track {background:#f0f0f0;border-radius:4px;}

/* Card - 4 per view */
.courses-university-card {
    flex: 0 0 calc((100% - 60px)/4); /* 4 cards per row + 3 gaps */
    background:white;
    border-radius:16px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
    overflow:hidden;
    transition:all 0.3s ease;
}
.courses-university-card:hover {transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,0.15);}
.courses-university-card img {width:100%;height:160px;object-fit:cover;}
.courses-university-content {padding:20px;}
.courses-university-content h3 {font-size:1.1rem;margin-bottom:10px;color:#222;}
.courses-university-content p {font-size:0.9rem;color:#555;margin-bottom:10px;}
.courses-university-duration {font-size:0.85rem;color:#777;}
.courses-university-view-link {color:#007bff;text-decoration:none;font-weight:500;}
.courses-university-view-link:hover {text-decoration:underline;}

/* Path Section */
.courses-university-path-container {
    display:flex;
    flex-wrap:wrap;
   
    border-radius:16px;
    padding:10px;}
.courses-university-path-left {flex:1;min-width:280px;margin-right:20px;}
.courses-university-path-left h1 {font-size:2rem;margin-bottom:10px;}
.courses-university-path-left p {font-size:1rem;color:#555;}
.courses-university-path-right {flex:1;min-width:280px;}
.courses-university-path-right p {font-size:1rem;color:#333;margin-bottom:20px;}
.courses-university-path-btn {
    background:#007bff;color:white;padding:10px 20px;border:none;border-radius:25px;font-size:1rem;cursor:pointer;transition:0.3s;
}
.courses-university-path-btn:hover {background:#0056b3;}

/* Responsive */
@media(max-width:900px){
    .courses-university-card { flex: 0 0 calc((100% - 40px)/2); } /* 2 cards */
}
@media(max-width:600px){
    .courses-university-title{font-size:1.6rem;}
    .courses-university-card { flex: 0 0 100%; } /* 1 card */
    .courses-university-path-container {flex-direction:column;}
    .courses-university-path-left, .courses-university-path-right {margin-right:0;margin-bottom:20px;}
}