/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI',system-ui,Arial,sans-serif;
}
body{
  background:#f1f5f9;
  color:#0f172a;
}
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ================= HEADER (DESKTOP DEFAULT) ================= */
.header{
  background:linear-gradient(90deg,#0f4c81,#1e88e5);
  padding:12px 0;
  box-shadow:0 4px 18px rgba(0,0,0,.18);
  position:relative;
  z-index:1000;
}
.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  color:#fff;
  font-size:18px;
  font-weight:700;
}

/* DESKTOP NAV */
nav{
  display:flex;
  align-items:center;
}
nav a{
  color:#eaf4ff;
  margin-left:18px;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  position:relative;
}
nav a.active{
  color:#ffdd57;
  font-weight:600;
}
nav a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:2px;
  background:#ffdd57;
}
nav .btn{
  background:#fff;
  color:#1e88e5;
  padding:6px 16px;
  border-radius:18px;
  font-weight:600;
  margin-left:20px;
  transition:.3s;
}
nav .btn:hover{
  background:#eaf2ff;
}

/* HAMBURGER (HIDDEN ON DESKTOP) */
.menu-toggle{
  display:none;
  font-size:24px;
  color:#fff;
  cursor:pointer;
}

/* ================= HERO ================= */
.hero{
  background:linear-gradient(135deg,#1e88e5,#42a5f5);
  padding:90px 0;
  color:#fff;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:50px;
  align-items:center;
}
.hero-text h1{
  font-size:42px;
  line-height:1.25;
}
.hero-text span{
  color:#ffe082;
}
.hero-text p{
  margin:18px 0 28px;
}
.hero-buttons a{
  margin-right:14px;
}
.hero-img img{
  width:100%;
  border-radius:20px;
  box-shadow:0 25px 55px rgba(0,0,0,.35);
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-block;
  background:#fff;
  color:#1e88e5;
  padding:14px 34px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  transition:.3s;
}
.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 35px rgba(0,0,0,.35);
}
.btn-outline{
  display:inline-block;
  border:2px solid #fff;
  color:#fff;
  padding:14px 34px;
  border-radius:30px;
  text-decoration:none;
  font-size:14px;
  transition:.3s;
}
.btn-outline:hover{
  background:#fff;
  color:#1e88e5;
}

/* ================= FEATURES ================= */
.features{
  background:#fff;
  margin-top:-60px;
  border-radius:40px 40px 0 0;
  padding:70px 0;
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}
.feature{
  background:#f8fafc;
  padding:28px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}
.feature h3{
  color:#1e40af;
  margin-bottom:8px;
}

/* ================= COURSES ================= */
.courses{
  padding:70px 0;
}
.courses h2{
  text-align:center;
  font-size:28px;
  margin-bottom:40px;
}
.course-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.course-card{
  background:#fff;
  padding:20px;
  border-radius:16px;
  text-align:center;
  font-weight:600;
  box-shadow:0 12px 28px rgba(0,0,0,.1);
  transition:.25s;
}
.course-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

/* ================= ONLINE TEST ================= */
.live{
  background:#eaf2ff;
  padding:80px 0;
}
.live-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:50px;
  align-items:center;
}
.live img{
  width:100%;
  border-radius:20px;
  box-shadow:0 25px 55px rgba(0,0,0,.25);
}

/* ================= FOOTER ================= */
.footer{
  background:#0f4c81;
  color:#fff;
  text-align:center;
  padding:18px 0;
}

/* ================= TABLET ================= */
@media(max-width:900px){
  .hero-grid,
  .live-grid{
    grid-template-columns:1fr;
  }
  .course-grid,
  .features-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* ================= MOBILE ================= */
@media(max-width:600px){
  .menu-toggle{
    display:block;
  }

  /* hide desktop nav */
  nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#0f4c81;
    flex-direction:column;
    padding:20px;
  }

  /* open ONLY when active */
  nav.active{
    display:flex;
  }

  nav a{
    margin:12px 0;
    font-size:15px;
  }
  nav .btn{
    margin:14px 0 0;
  }

  .hero{
    padding:70px 0;
  }
  .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-text h1{
    font-size:30px;
  }

  .course-grid,
  .features-grid{
    grid-template-columns:1fr;
  }
}

/* ===== NAVBAR PREMIUM LOOK (SAFE OVERRIDE) ===== */
.header{
  background:linear-gradient(90deg,#0b3a6f,#1e88e5);
  box-shadow:0 10px 35px rgba(0,0,0,.28);
}

nav a{
  padding:6px 0;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#ffdd57;
  transition:.3s;
}

nav a:hover::after,
nav a.active::after{
  width:100%;
}

nav .btn{
  background:linear-gradient(135deg,#ffffff,#eaf2ff);
  box-shadow:0 6px 20px rgba(0,0,0,.3);
}

nav .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}

/* ===== ONLINE TEST SECTION POLISH ===== */
.live{
  background:linear-gradient(135deg,#eef4ff,#ffffff);
}

.live h2{
  font-size:28px;
  margin-bottom:12px;
}

.live ul li{
  margin-bottom:8px;
  font-size:15px;
}
