/* -------------------------------
   YOUR ORIGINAL NAVBAR CSS (unchanged)
-------------------------------- */
.h111 {
  padding-top: 70px;
}

/* Simple Top Mini Nav */
.top-nav-mini {
  width: 100%;
  height: 70px;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  padding:18px 10px;
  position:sticky;top:0;z-index:999;
  box-shadow:0 4px 20px rgba(0,200,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.mini-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-logo {
  height: 55px;
}

.mini-title {
  font-size: 32px;
  font-weight: 700;
  background: #00C8FF;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

/* Back Button */
.mini-back {
  background: #fff;
  border: none;
  
  padding: 10px 40px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.mini-back:hover {
  transform: scale(1.07);
}

/* Mobile */
@media (max-width: 600px) {
  .mini-logo { height: 45px; }
  .mini-title { font-size: 26px; }
  .mini-back {
    padding: 6px 37px;
    font-size: 15px;
  }
}

/* Navbar */
header{
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  padding:18px 10px;
  position:sticky;top:0;z-index:999;
  box-shadow:0 4px 20px rgba(0,200,255,0.15);
}
.nav-links {
  transform: translateX(100%);
  transition: 0.3s ease-in-out;
}

.nav-links.active {
  transform: translateX(0%);
}

.navbar {
    position: fixed;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 500px 00px 5px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255,255,255,1);
}

.logo {
    font-weight: bold;
    color: var(--primary);
    display: flex;
}

.shcsn{
  box-shadow: 0 8px 20px white;
  height: 80px;
  width: 100px;
}

.title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, #5B2EFF, #00C8FF);
  -webkit-background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 20px 0;
  animation: glow 2s infinite alternate;
  margin-left: 20px;
  margin-top: 8px;
  margin-bottom: 5px;
}

@keyframes glow{
  from{opacity:0.8;}
  to{opacity:1;}
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    transition: 0.3s;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: #0A0A12;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        padding-top: 100px;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .burger {
        display: flex;
    }

    .shcsn{
      height: 60px;
      width: 80px;
    }
    .title{
      margin-top: 0%;
      font-size: 35px;
      margin-left: 20px;
      margin-top: 6px;
    }
}


/* ------------------------------------
   COURSE PAGE GLOBAL BASE CSS
------------------------------------ */

:root{
  --primary:#5B2EFF;
  --secondary:#ffffff;
  --text:#111;
  --muted:#6b6b6b;
  --card:#ffffff;
  --bg:#f7f9fc;
}

body{
  margin:0;
  padding-top:120px;
  background:var(--bg);
  font-family:Poppins, sans-serif;
}

/* Page container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:20px;
}

/* Heading */
.container h1{
  margin:0 0 10px;
  color:#000;
}

/* ------------------------------
   COURSE CARDS
------------------------------ */

.course-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.course-card{
  background:var(--card);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 5px 20px rgba(0,0,0,0.1);
  cursor:pointer;
  transition:0.3s;
}

.course-card:hover{
  transform:translateY(-5px);
}

.course-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.course-card .card-body{
  padding:15px;
}

.course-card h3{
  margin:0;
  font-size:18px;
  color:var(--primary);
}

.course-card p{
  margin:8px 0 0;
  font-size:14px;
  color:var(--muted);
}


/* ------------------------------
   TOP-SLIDE COURSE DETAILS POPUP
------------------------------ */

.top-popup{
  position:fixed;
  top:-120%;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:30px;
  transition:0.4s;
  z-index:9999;
}

.top-popup.show{
  top:0;
}

.top-box{
  width:94%;
  max-width:600px;
  background:white;
  border-radius:12px;
  box-shadow:0 10px 40px rgba(0,0,0,0.2);
  padding:15px;
  position:relative;
  animation:drop 0.4s ease;
}

@keyframes drop{
  from{transform:translateY(-80px);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

.top-box img{
  width:100%;
  height:220px;
  border-radius:10px;
  object-fit:cover;
}

.top-box h2{
  margin:10px 0 5px;
  font-size:22px;
  color:var(--primary);
}

.top-box p{
  font-size:15px;
  margin:8px 0;
}

.meta{
  margin:10px 0;
  font-weight:600;
  color:#333;
}

.details-wrap{
  background:#eef3ff;
  padding:12px;
  border-radius:10px;
  border-left:4px solid var(--primary);
  margin-top:10px;
}

.details-scroll{
  max-height:150px;
  overflow:auto;
  transition:max-height 0.3s;
}

.details-scroll.expanded{
  max-height:650px;
}

.read-more-row{
  text-align:right;
  margin-top:5px;
}

.read-more-btn{
  border:0;
  background:none;
  font-weight:600;
  color:var(--primary);
  cursor:pointer;
  padding:5px;
}

.popup-actions{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.apply-btn{
  flex:1;
  background:var(--primary);
  border:0;
  padding:12px;
  color:white;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.wa-btn{
  flex:1;
  text-align:center;
  padding:12px;
  background:#25D366;
  color:white;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
}

.popup-close{
  position:absolute;
  top:10px;
  right:10px;
  border:0;
  background:none;
  font-size:26px;
  cursor:pointer;
}


/* ------------------------------
   APPLY FORM POPUP
------------------------------ */

.form-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.form-overlay.show{
  display:flex;
}

.form-card{
  width:92%;
  max-width:450px;
  background:white;
  padding:20px;
  border-radius:12px;
  box-shadow:0 10px 40px rgba(0,0,0,0.25);
  position:relative;
}

.form-card h3{
  margin:0 0 15px;
  font-size:22px;
  color:var(--primary);
}

.form-card input,
.form-card textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #ccc;
  margin-top:12px;
  font-size:15px;
}

textarea{
  min-height:90px;
}

.submit-btn{
  width:100%;
  padding:12px;
  margin-top:15px;
  border:0;
  border-radius:10px;
  background:linear-gradient(90deg,#5B2EFF,#00C8FF);
  color:white;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}

/* Mobile adjustments */
@media(max-width:600px){
  .top-box img{height:180px;}
  body{padding-top:100px;}
}
