/* ======= RESET ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======= NAVBAR ======= */
header {
  background-color: #007bff;
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 20px;
}

nav a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #ffeb3b;
}

/* ======= TOGGLE BUTTON (MOBILE) ======= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ======= HERO SECTION ======= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 25px;
}

.hero a {
  background-color: #ffc107;
  color: #000;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.hero a:hover {
  background-color: #ffca2c;
}

/* ======= FEATURES SECTION ======= */
.features {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 40px;
}

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

.feature {
  background: white;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.home-content h2{
  color: #007bff;
}
.course-preview h2{
  color: #007bff;
}
.btn.secondary{
  color: #f1f1f1;
  background-color: #007bff;
}

/* ======= FOOTER ======= */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: 50px;
}

footer a {
  color: #ffc107;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

/* ======= MOBILE RESPONSIVE ======= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: hwb(211 0% 0%);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    text-align: center;
    margin: 15px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
  section {
    padding: 10px;
  }
  .home-content h2{
  color: #007bff;
}
}

/* ======= LESSONS PAGE ======= */
.lesson-layout {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 20px;
  padding: 0 20px;
}
.feature-card {
  margin-top: 10px;
}

.btn {
  margin-top: 10px;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  width: 250px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.sidebar h2 {
  color: #007bff;
  margin-bottom: 15px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 12px;
}

.sidebar a {
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #007bff;
}

/* Lesson Content */
.lesson-content {
  flex: 1;
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lesson-card {
  background-color: #f1f8ff;
  padding: 20px;
  border-left: 5px solid #007bff;
  border-radius: 6px;
  margin-top: 20px;
}

.lesson-card h2 {
  color: #007bff;
  margin-bottom: 10px;
}

.lesson-card p {
  margin-bottom: 10px;
}

.tip {
  margin-bottom: 20px;
}

.example {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* ======= MOBILE VIEW ======= */
@media (max-width: 900px) {
  .lesson-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar ul {
    display: none;
  }

  .sidebar.active ul {
    display: block;
  }

  .sidebar h2 {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 6px;
  }
  .home-content h2{
  color: #007bff;
}
.course-preview h2{
  color: #007bff;
}
}

/* ======= LESSON DETAIL PAGE ======= */
.lesson-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lesson-header h1 {
  color: #007bff;
  margin-bottom: 10px;
}

.lesson-body .example {
  background-color: #f8faff;
  border-left: 5px solid #007bff;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.speak-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 8px;
}

.speak-btn:hover {
  background-color: #0056b3;
}

.tip {
  background-color: #fff8e1;
  border-left: 5px solid #ffc107;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn.secondary {
  background-color: #6c757d;
}

.btn.secondary:hover {
  background-color: #5a6268;
}

/* ======= MOBILE ======= */
@media (max-width: 700px) {
  .lesson-nav {
    flex-direction: column;
    gap: 10px;
  }
}

.ad-container {
  text-align: center;
  margin: 20px 0;
}

.ad-placeholder {
  background: #f1f1f1;
  border: 1px dashed #ccc;
  color: #555;
  padding: 20px;
  font-size: 14px;
  border-radius: 8px;
}

/* ====== MOBILE STYLES ====== */

/* ===== Overlay ===== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}
.overlay.show {
  display: block;
}

/* ===== Lesson Toggle ===== */
.lesson-toggle {
  display: none;
  background: #0078d7;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

/* ===== Mobile Styles ===== */
/* ================= MOBILE NAV ================= */
@media (max-width: 900px) {
  /* Header menu */
  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #007bff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin: 15px 0;
  }

  /* Lesson layout */
  .lesson-layout {
    flex-direction: column;
  }

  /* Lesson toggle button */
  .lesson-toggle {
    display: block;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    margin-bottom: 15px;
    cursor: pointer;
  }

  /* Sidebar (hidden by default) */
  .sidebar {
    display: none;
    width: 100%;
  }

  .sidebar.show {
    display: block;
  }

  section {
    padding: 10px;
  }
  .course-preview h2{
  color: #007bff;
}
}

/* ===========================
   ABOUT & CONTACT PAGES
=========================== */

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

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  color: #555;
}

/* Page content */
.page-content {
  font-size: 16px;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 22px;
  margin: 30px 0 10px;
  color: #04aa6d;
}

.page-content p {
  margin-bottom: 15px;
  color: #333;
}

.page-content ul {
  margin-left: 20px;
}

.page-content ul li {
  margin-bottom: 8px;
}

/* ===========================
   CONTACT FORM
=========================== */

.contact-form {
  max-width: 500px;
  margin-top: 30px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 18px;
  font-family: inherit;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #04aa6d;
}

/* Submit button */
.contact-form .btn {
  padding: 12px 24px;
  font-size: 16px;
}

/* Contact info box */
.contact-info {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #04aa6d;
  border-radius: 8px;
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 15px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 28px;
  }

  .page-container {
    padding: 30px 15px;
  }
}

/* ===== FIX: SHOW LESSON LIST ON MOBILE ===== */
@media (max-width: 900px) {
  .sidebar.show ul {
    display: block;
  }
}

.testimonial {
  padding: 20px;
}

.course-preview {
  padding: 20px;
  margin: 20px;
}

section {
    padding: 10px;
  }

.hero {
  display: flex;
  padding: 20px;
  margin: 20px;
  border-radius: 20px;
}

.hero-content {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.herop {
  max-width: 700px;
  margin: 0 auto;
}

section {
  padding: 30px 15px;
}

.ad-container {
  display: none;
}
