/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html{
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --gold: #ffcc00;
  --blue1: rgba(1,98,136,0.85);
  --blue2: rgba(0,71,99,0.75);
  --dark: rgba(13,28,34,0.92);

  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
}

/* ================= BODY ================= */

body {
  color: #e5e7eb;
  overflow-x: hidden;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url("images/Hero-imggg.jpg");

  background-size: cover;
  background-position: center;

  position: relative;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue1), var(--blue2), var(--dark));
  z-index: 0;
}

body::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(255,204,0,0.10);
  border-radius: 50%;
  filter: blur(120px);
  top: -120px;
  right: -120px;
  z-index: 0;
}

/* ================= DESKTOP NAVBAR ================= */

.course-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;

  background: rgba(4,20,29,0.75);
  backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255,255,255,0.06);

  z-index: 2000;
}

.logo {
  height: 40px;
}

.navbar {
  display: flex;
  gap: 18px;
}

.navbar a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.25s;
}

.navbar a:hover {
  color: #ffcc00;
  background: rgba(255,204,0,0.08);
}

.logo-area {
  text-align: center;
}

.logo-area img {
  max-width: 50px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ================= LAYOUT ================= */

.course-layout {
  position: relative;
  z-index: 2;
  display: flex;
  padding-top: 70px;
  height: 100vh;
}

/* ================= LEFT COURSE SIDEBAR ================= */

.course-sidebar {
  width: 340px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

/* ================= MAIN ================= */

.course-container {
  flex: 1;
  padding: 25px 40px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

/* ================= MODULE SYSTEM ================= */

.module {
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.25s ease;
}

.module:hover {
  transform: translateY(-2px);
  border-color: rgba(255,204,0,0.25);
}

.module-header {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.module-header i {
  transition: 0.25s ease;
  color: rgba(255,255,255,0.6);
}

.module.active .module-header i {
  transform: rotate(45deg);
  color: var(--gold);
}

.module-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.35s ease;
  padding: 0 12px;
}

.module.active .module-content {
  max-height: 600px;
  padding: 10px 12px 14px;
}

/* ================= CHAPTER ================= */

.chapter {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.chapter:hover {
  background: rgba(255,204,0,0.08);
  border-color: rgba(255,204,0,0.20);
}

.chapter.active {
  background: rgba(255,204,0,0.12);
  border-color: rgba(255,204,0,0.45);
  color: #fff;
}

/* ================= HERO ================= */

.course-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
}

.course-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,204,0,0.12);
  color: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= PROGRESS ================= */

.progress-section {
  margin-top: 25px;
  padding: 15px;
  background: var(--glass);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(1,98,136,0.9), var(--gold));
  transition: width 0.35s ease;
}

/* ================= VIDEO ================= */

.video-wrapper {
  margin-top: 25px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

video {
  width: 100%;
  max-height: 460px;
  background: black;
}

/* ================= INFO GRID ================= */

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.info-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  transition: 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,204,0,0.25);
}

.info-card i {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ================= FOOTER ================= */

.course-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ================= SOFTWARE TITLE ================= */

.software-title {
  margin: 25px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,204,0,0.12), rgba(255,204,0,0.04));
  border: 1px solid rgba(255,204,0,0.15);
  color: #ffcc00;
  font-weight: 700;
}

/* ================= MENU TOGGLE ================= */

.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 45px;
  height: 45px;
  background: #ffcc00;
  color: #08131b;
  border-radius: 12px;
  z-index: 3000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* ================= OVERLAY ================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 2000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= MOBILE SIDEBAR (IMPORTANT FIX) ================= */

.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 280px;
  height: 100vh;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);

  border-right: 1px solid rgba(255,255,255,0.12);

  padding: 30px 20px;

  transform: translateX(-100%);
  transition: 0.3s ease;

  z-index: 2500;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-menu a {
  padding: 15px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s ease;
}

.sidebar-menu a:hover {
  background: rgba(255,204,0,0.12);
  color: #ffcc00;
}

/* ================= RESPONSIVE ================= */

@media (min-width: 901px) {
  .sidebar {
    transform: translateX(0) !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .overlay {
    display: none !important;
  }
}

@media (max-width: 900px) {

  .logo-area{
    margin-bottom: 40px;
  }

  .menu-toggle {
    display: flex;
  }

   .sidebar {
    display: block;
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .course-header{
    display: none;
  }

  .course-layout {
    flex-direction: column;
    height: auto;
  }

  .course-sidebar {
    width: 100%;
    max-height: 320px;
  }

  .course-container {
    padding: 18px;
  }

  .course-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PREMIUM LOCK SCREEN
========================= */

.premium-lock-screen{

  min-height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:40px;

  position:relative;

  overflow:hidden;
}

/* DARK OVERLAY */

.premium-lock-screen::before{

  content:"";

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      135deg,
      rgba(1,98,136,0.88),
      rgba(0,71,99,0.84),
      rgba(8,15,25,0.94)
    );

  z-index:1;
}

/* GOLD GLOW */

.premium-lock-screen::after{

  content:"";

  position:absolute;

  width:420px;
  height:420px;

  background:rgba(255,204,0,0.16);

  border-radius:50%;

  filter:blur(120px);

  top:-100px;
  right:-100px;

  z-index:1;
}


/* =========================
   LOCK BOX
========================= */

.lock-box{

  position:relative;

  z-index:2;

  width:100%;
  max-width:520px;

  padding:55px 45px;

  border-radius:32px;

  text-align:center;

  background:rgba(255,255,255,0.08);

  backdrop-filter:blur(24px);

  border:1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.05);
}


/* LOCK ICON */

.lock-box i{

  font-size:4rem;

  color:#ffcc00;

  margin-bottom:20px;

  text-shadow:0 10px 30px rgba(255,204,0,0.4);
}


/* TITLE */

.lock-box h1{

  font-size:2.4rem;

  margin-bottom:16px;

  color:white;
}


/* TEXT */

.lock-box p{

  color:rgba(255,255,255,0.75);

  line-height:1.7;

  margin-bottom:35px;

  font-size:1rem;
}


/* =========================
   BUTTONS
========================= */

.unlock-btn,
.back-dashboard{

  display:inline-flex;

  justify-content:center;
  align-items:center;

  width:100%;

  padding:16px 20px;

  border-radius:16px;

  text-decoration:none;

  font-weight:700;

  transition:0.3s ease;

  margin-bottom:14px;
}


/* GOLD BUTTON */

.unlock-btn{

  background:#ffcc00;

  color:#08131b;

  box-shadow:
    0 10px 30px rgba(255,204,0,0.28);
}

.unlock-btn:hover{

  transform:translateY(-4px);

  box-shadow:
    0 18px 40px rgba(255,204,0,0.4);
}


/* SECONDARY BUTTON */

.back-dashboard{

  background:rgba(255,255,255,0.06);

  color:white;

  border:1px solid rgba(255,255,255,0.1);
}

.back-dashboard:hover{

  background:rgba(255,255,255,0.1);

  transform:translateY(-2px);
}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .lock-box{

    padding:40px 25px;

    border-radius:24px;
  }

  .lock-box h1{

    font-size:1.8rem;
  }

}

/* ================= PREMIUM OVERLAY ================= */

.premium-overlay{
  position:fixed;
  inset:0;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:20px;

  background:
    linear-gradient(
      rgba(2,15,24,0.78),
      rgba(3,22,35,0.88)
    );

  backdrop-filter:blur(14px);

  z-index:99999;
}

/* ================= PREMIUM POPUP ================= */

.premium-popup{
  position:relative;

  width:100%;
  max-width:560px;

  padding:34px 34px;

  border-radius:30px;

  overflow:hidden;

  text-align:center;

  background:
    linear-gradient(
      135deg,
      rgba(7,65,90,0.92),
      rgba(4,40,56,0.96)
    );

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 25px 80px rgba(0,0,0,0.45),
    inset 0 1px 1px rgba(255,255,255,0.06);

  animation:popupShow .35s ease;
}

/* ================= BLUE GLOW ================= */

.premium-popup::before{
  content:"";

  position:absolute;

  width:240px;
  height:240px;

  border-radius:50%;

  background:rgba(0,174,255,0.14);

  filter:blur(90px);

  top:-120px;
  left:-60px;
}

/* ================= GOLD LIGHT ================= */

.premium-popup::after{
  content:"";

  position:absolute;

  width:180px;
  height:180px;

  border-radius:50%;

  background:rgba(255,204,0,0.12);

  filter:blur(80px);

  bottom:-70px;
  right:-50px;
}

/* ================= CONTENT ================= */

.premium-popup *{
  position:relative;
  z-index:2;
}

/* ================= ICON ================= */

.premium-icon{
  width:74px;
  height:74px;

  margin:0 auto 18px;

  display:flex;
  justify-content:center;
  align-items:center;

  border-radius:22px;

  font-size:2rem;

  background:
    linear-gradient(
      135deg,
      rgba(255,204,0,0.18),
      rgba(255,255,255,0.04)
    );

  border:1px solid rgba(255,204,0,0.16);

  box-shadow:
    0 10px 30px rgba(255,204,0,0.12);
}

/* ================= BADGE ================= */

.premium-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:9px 16px;

  border-radius:999px;

  margin-bottom:18px;

  background:rgba(0,174,255,0.10);

  border:1px solid rgba(0,174,255,0.16);

  color:#8ed8ff;

  font-size:0.78rem;
  font-weight:700;
  letter-spacing:1px;
}

/* ================= TITLE ================= */

.premium-popup h1{
  font-size:2rem;
  font-weight:800;

  line-height:1.2;

  margin-bottom:14px;

  color:#fff;
}

/* ================= TEXT ================= */

.premium-popup p{
  color:rgba(255,255,255,0.72);

  line-height:1.7;

  font-size:0.98rem;

  max-width:440px;

  margin:0 auto 28px;
}

/* ================= ACTIONS ================= */

.premium-actions{
  display:flex;
  gap:14px;
}

/* ================= BUY BUTTON ================= */

.premium-buy-btn{
  flex:1;

  padding:15px 18px;

  border-radius:16px;

  text-decoration:none;

  font-weight:700;

  color:#04131d;

  background:
    linear-gradient(
      135deg,
      #ffcc00,
      #ffd84d
    );

  transition:0.3s ease;

  box-shadow:
    0 12px 35px rgba(255,204,0,0.22);
}

.premium-buy-btn:hover{
  transform:translateY(-4px);

  box-shadow:
    0 18px 45px rgba(255,204,0,0.32);
}

/* ================= BACK BUTTON ================= */

.premium-back-btn{
  flex:1;

  padding:15px 18px;

  border-radius:16px;

  text-decoration:none;

  font-weight:600;

  color:#fff;

  background:rgba(255,255,255,0.05);

  border:1px solid rgba(255,255,255,0.08);

  transition:0.3s ease;
}

.premium-back-btn:hover{
  background:rgba(255,255,255,0.09);

  transform:translateY(-4px);
}

/* ================= ANIMATION ================= */

@keyframes popupShow{

  from{
    opacity:0;
    transform:translateY(20px) scale(0.96);
  }

  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* ================= MOBILE ================= */

@media(max-width:650px){

  .premium-popup{
    padding:28px 22px;
    border-radius:24px;
  }

  .premium-popup h1{
    font-size:1.6rem;
  }

  .premium-popup p{
    font-size:0.92rem;
  }

  .premium-actions{
    flex-direction:column;
  }

}