*, *::before, *::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --green:#2E7D5B;
  --green-light:#4CAF7A;
  --green-pale:#E3ECE7;
  --green-border:rgba(46,125,91,0.14);
  --bg:#F5F7F6;
  --card:#ffffff;
  --card-tint:#E3ECE7;
  --text:#1F2A2E;
  --text-mid:rgba(31,42,46,0.55);
  --text-soft:rgba(31,42,46,0.38);
  --shadow:0 2px 16px rgba(31,42,46,0.07);
  --shadow-md:0 6px 32px rgba(31,42,46,0.09);
  --r:14px;
  --r-sm:10px;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

/* NAV */

nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:200;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 3rem;
  background:rgba(245,247,246,0.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--green-border);
}

.nav-logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.nav-logo-mark{
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Playfair Display',serif;
  font-size:.95rem;
  font-weight:700;
  color:#fff;
}

.nav-logo-text{
  font-weight:600;
  font-size:.9rem;
  color:var(--text);
}

.nav-logo-text span{
  color:var(--green);
}

.nav-links{
  display:flex;
  gap:2rem;
  list-style:none;
  align-items:center;
}

.nav-links a{
  color:var(--text-mid);
  text-decoration:none;
  font-size:.8rem;
  font-weight:500;
}

.nav-links a:hover{
  color:var(--green);
}

.nav-cta{
  background:var(--green)!important;
  color:#fff!important;
  padding:.52rem 1.2rem;
  border-radius:8px;
}

/* =========================================
   MOBILE NAVBAR
========================================= */

.hamburger{
  display:none;
  border:none;
  background:var(--green);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  font-size:20px;
  cursor:pointer;
}

@media(max-width:768px){

  #nav{
    padding:16px 20px;
    position:relative;
  }

  .nav-links{
    display:none;

    position:absolute;

    top:80px;
    left:20px;
    right:20px;

    background:#fff;

    flex-direction:column;

    padding:20px;

    border-radius:16px;

    box-shadow:0 20px 50px rgba(0,0,0,.12);

    gap:18px;
  }

  .nav-links.active{
    display:flex;
  }

  .hamburger{
    display:block;
  }

}

/* COURSE PLAYER */

.course-page{
  padding-top:72px;
}

.course-player-section{
  padding:3rem;
  background:
    linear-gradient(135deg,#f0f5f2 0%,#F5F7F6 50%,#eaf2ee 100%);
}

.course-player-grid{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 360px;
  gap:1.5rem;
  align-items:start;
}

.video-area{
  min-width:0;
}

.course-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(46,125,91,0.08);
  border:1px solid rgba(46,125,91,0.18);
  color:var(--green);
  padding:6px 14px;
  border-radius:100px;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.course-label span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green-light);
}

.video-area h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(2.3rem,4vw,3.7rem);
  line-height:1.1;
  margin-bottom:.8rem;
}

.video-area h1 span{
  color:#2E7D5B;
}

.course-subtitle{
  color:var(--text-mid);
  line-height:1.8;
  max-width:680px;
  margin-bottom:1.4rem;
}

.main-video-card{
  background:#fff;
  border-radius:20px;
  padding:1rem;
  border:1px solid rgba(31,42,46,0.07);
  box-shadow:var(--shadow-md);
}

.video-topbar{
  display:flex;
  justify-content:space-between;
  color:var(--green);
  font-size:.8rem;
  font-weight:600;
  margin-bottom:.8rem;
}

.video-box{
  height:460px;
  border-radius:16px;
  overflow:hidden;
  background:#000;
}

.video-box video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.lesson-details{
  margin-top:1rem;
  background:#fff;
  border:1px solid rgba(31,42,46,0.07);
  border-radius:18px;
  padding:1.5rem;
  box-shadow:var(--shadow);
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  align-items:flex-start;
}

.sec-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--green);
  margin-bottom:.8rem;
}

.sec-eyebrow::before{
  content:'';
  width:18px;
  height:2px;
  background:var(--green-light);
}

.lesson-details h2{
  font-family:'Playfair Display',serif;
  font-size:1.8rem;
  margin-bottom:.6rem;
}

.lesson-details p{
  color:var(--text-mid);
  line-height:1.8;
}

.btn-primary,
.mark-read-btn{
  background:var(--green);
  color:#fff;
  border:none;
  padding:.85rem 1.4rem;
  border-radius:var(--r-sm);
  font-weight:500;
  font-size:.875rem;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(46,125,91,.3);
  white-space:nowrap;
}

/* SIDEBAR */

.course-sidebar{
  position:sticky;
  top:92px;
}

.progress-box,
.modules-box{
  max-height:800px;
  overflow-y:auto;
  background:#fff;
  border:1px solid rgba(31,42,46,0.07);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.progress-box{
  padding:1.3rem;
  margin-bottom:1rem;
}

.progress-top{
  display:flex;
  justify-content:space-between;
  margin-bottom:.9rem;
}

.progress-top span{
  color:var(--green);
  font-size:.75rem;
  font-weight:600;
  text-transform:uppercase;
}

.progress-top strong{
  font-size:1.4rem;
}

.progress-track{
  height:8px;
  background:var(--green-pale);
  border-radius:100px;
  overflow:hidden;
  margin-bottom:.8rem;
}

.progress-fill{
  width:0%;
  height:100%;
  background:var(--green);
  border-radius:100px;
  transition:.4s ease;
}

.progress-box p{
  color:var(--text-soft);
  font-size:.8rem;
}

.modules-box{
  overflow:hidden;
}

.modules-box h3{
  padding:1.2rem 1.3rem;
  border-bottom:1px solid rgba(31,42,46,0.07);
  font-size:1rem;
}

.module-group{
  border-bottom:1px solid rgba(31,42,46,0.07);
}

.module-title{
  width:100%;
  background:#fff;
  border:none;
  text-align:left;
  padding:1rem 1.3rem;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
}

.module-title span{
  display:block;
  color:var(--green);
  font-size:.7rem;
  margin-bottom:.25rem;
}

.chapter-items{
  display:none;
  padding:.3rem;
  background:var(--bg);
}

.module-group.active .chapter-items{
  display:block;
}

.chapter-item{
  width:100%;
  border:none;
  background:transparent;
  text-align:left;
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.75rem .9rem;
  border-radius:10px;
  color:var(--text-mid);
  cursor:pointer;
  font-size:.82rem;
}

.chapter-item:hover,
.chapter-item.active{
  background:#fff;
  color:var(--green);

  box-shadow:var(--shadow);
}

.chapter-item.active span{
  color:var(--green);
}

.chapter-item.completed span{
  color:var(--green);
}

/* NOTES */

.max-w{
  max-width:1100px;
  margin:0 auto;
}

section{
  padding:6rem 3rem;
}

.sec-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.8rem,3vw,2.6rem);
  line-height:1.12;
  margin-bottom:3rem;
}

.fc-notes{
  background:#fff;
}

.notes-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
}

.note-card{
  background:var(--bg);
  border:1px solid rgba(31,42,46,.06);
  border-radius:16px;
  padding:1.6rem;
}

.note-card h3{
  margin-bottom:.6rem;
}

.note-card p{
  color:var(--text-mid);
  margin-bottom:1rem;
}

.note-card a{
  display:inline-block;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  padding:.7rem 1rem;
  border-radius:8px;
  font-size:.85rem;
}

/* CERTIFICATE */

.fc-certificate{
  background:var(--bg);
}

.certificate-grid{
  display:grid;
  grid-template-columns:1fr 500px;
  gap:3rem;
  align-items:center;
}

.certificate-content p{
  color:var(--text-mid);
  line-height:1.8;
}

.certificate-content ul{
  margin-top:1.5rem;
}

.certificate-content li{
  margin-bottom:.7rem;
}

.certificate-card{
  background:#fff;
  border-radius:20px;
  padding:1.5rem;
  box-shadow:var(--shadow-md);
}

.certificate-inner{
  border:3px solid var(--green);
  border-radius:14px;
  padding:3rem 2rem;
  text-align:center;
}

.certificate-inner span{
  color:var(--green);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:2px;
}

.certificate-inner h3{
  font-family:'Playfair Display',serif;
  font-size:2rem;
  margin:1rem 0;
}

.certificate-inner h4{
  font-size:1.5rem;
  margin:1rem 0;
}

.certificate-inner strong{
  display:block;
  margin-top:2rem;
  color:var(--green);
}

/* CTA */

.fc-cta{
  background:#fff;
}

.cta-card{
  background:linear-gradient(135deg,var(--green),var(--green-light));
  border-radius:20px;
  padding:3rem;
  text-align:center;
  color:#fff;
  box-shadow:var(--shadow-md);
}

.cta-card h2{
  font-family:'Playfair Display',serif;
  font-size:2.4rem;
  margin-bottom:1rem;
}

.cta-card p{
  max-width:560px;
  margin:0 auto 1.8rem;
  line-height:1.8;
  opacity:.88;
}

.cta-card .btn-primary{
  background:#fff;
  color:var(--green);
}

/* FOOTER */

.footer{
  width:100%;
  background:#1F2A2E;
  padding:70px 20px 40px;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  text-align:center;
}

.footer-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
  color:#fff;
  font-size:28px;
  font-weight:700;
}

.footer-logo span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--green);
}

.footer p{
  color:rgba(255,255,255,.65);
  margin-bottom:25px;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:35px;
  margin-bottom:30px;
}

.footer-links a{
  color:rgba(255,255,255,.8);
  text-decoration:none;
}

.footer-links a:hover{
  color:var(--green-light);
}

.footer small{
  display:block;
  color:rgba(255,255,255,.45);
  font-size:14px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:20px;
}

/* RESPONSIVE */

@media(max-width:980px){

  nav{
    padding:.9rem 1.4rem;
  }

  .nav-links{
    display:none;
  }

  .course-player-section{
    padding:2rem 1.4rem;
  }

  .course-player-grid{
    grid-template-columns:1fr;
  }

  .course-sidebar{
    position:static;
  }

  .video-box{
    height:330px;
  }

  .lesson-details{
    flex-direction:column;
  }

  .notes-grid{
    grid-template-columns:1fr 1fr;
  }

  .certificate-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:620px){

  section{
    padding:4rem 1.4rem;
  }

  .notes-grid{
    grid-template-columns:1fr;
  }

  .video-box{
    height:240px;
  }

  .footer-links{
    flex-direction:column;
    gap:16px;
  }

}