/* =========================================================
   TABLETS (≤ 992px)
   ========================================================= */
@media (max-width: 992px) {

  /* Global spacing */
  .container {
    padding: 0 16px;
  }

  /* Navbar */
  .navbar {
    padding: 12px 0;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 35px;
  }

  .hero-image {
    margin-top: 30px;
  }

  /* Sections */
  .courses-section,
  .testimonials,
  .cta-section {
    padding: 80px 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

@media (min-width: 768px){
  .navigation-link{
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero-image {
    display: none;
  }
}

@media (min-width: 1000px) {
  .hero {
  height: 70vh;
  margin-bottom: 15vh;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2vh;
  margin-top: 20vh;
}

.logo {
  height: 48px;          /* slightly taller on large screens */
}

.hero-image img{
  max-height: 55vh;
  max-width: 70vh;
}
}
/* =========================================================
   MOBILE (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {

  /* Typography */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Navigation */
  .nav-menu {
    top: 70px;
    padding: 25px;
  }

  .nav-link {
    font-size: 1.05rem;
  }

  .nav-auth {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero{
    Height: 80vh;
    margin-top: 10vh;
    margin-bottom: 10vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .illustration-circle {
    width: 190px;
    height: 190px;
  }

  .illustration-person {
    font-size: 4.8rem;
  }

  .floating-card {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  /* Cards & Grids */
  .features-grid,
  .courses-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul {
    align-items: center;
  }

  /* Forms */
  .form-container {
    padding: 40px 25px;
  }
}

/* =========================================================
   SMALL MOBILE (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {

  /* Buttons */
  .btn {
    width: 100%;
    max-width: 320px;
  }

  .btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding-top: 10vh;
    margin-bottom: 10vh;
    height: 80vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 22px;
  }

  /* Page header */
  .page-header {
    padding: 120px 20px 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Floating theme toggle */
  .theme-toggle {
    bottom: 15px;
    right: 15px;
    font-size: 1.2rem;
  }
  .course-footer{
    flex-direction: column;
    gap: 12px;
  }
}

/* ===================================================
   responsive.css — All @media Breakpoints
   Import LAST so overrides cascade correctly.
   Depends on: all other stylesheets
   =================================================== */

/* ── ≤ 1000px – tablet/small desktop ─────────────── */
@media (max-width: 1000px) {

  /* Mobile nav drawer */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-auth    { display: none; }
  .nav-toggle  { display: flex; }

  /* Hero */
  .hero-title        { font-size: 2.2rem; }

  /* Illustration */
  .hero-illustration { width: 280px; height: 280px; }
  .illustration-circle { width: 200px; height: 200px; }
  .illustration-person { font-size: 5rem; }
  .floating-card       { width: 50px; height: 50px; font-size: 1.5rem; }

  /* Sections */
  .section-title    { font-size: 2rem; }

  /* Footer collapses to single column */
  .footer-grid      { grid-template-columns: 1fr; text-align: center; }

  /* Inner pages */
  .page-header h1   { font-size: 2.2rem; }

  /* Testimonials stacks */
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── ≤ 992px – tablet ────────────────────────────── */
@media (max-width: 992px) {

  /* Hero stacks vertically */
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle  { margin: 0 auto 35px; }
  .hero-buttons   { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .hero-image     { margin-top: 40px; }
  .hero-title     { font-size: 2.8rem; }

  /* Footer two-column */
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── ≤ 768px – mobile ────────────────────────────── */
@media (max-width: 768px) {

  /* Hamburger visible, menu hidden until opened */
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  }

  body.dark-mode .nav-menu {
    background: #1e1710;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .nav-menu.open { display: flex; flex-direction: row; justify-content: space-around;}

  .nav-links{display:flex; flex-direction: column;}

  /* Relative positioning so dropdown can anchor */
  .nav-container { position: relative; flex-wrap: wrap; }

  /* Dropdown goes full-width on mobile */
  .profile-dropdown {
    position: fixed;
    top: 64px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    border-radius: 16px;
  }

  .footer-brand{
    display: flex;

    justify-content: center;
    align-items: center;
    margin-bottom: 20px
  }
}

/* ── ≤ 480px – small mobile ──────────────────────── */
@media (max-width: 480px) {

  .nav-link{flex-direction: column;}


  /* Hero buttons stack */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats   { flex-direction: column; gap: 25px; }

  /* Buttons */
  .btn-lg { padding: 14px 30px; font-size: 1rem; }

  /* Courses single column */
  .courses-grid { grid-template-columns: 1fr; }

  /* Hide trigger name in tiny viewports */
  .trigger-name { display: none; }
}

/* ── ≤ 400px – very small mobile ─────────────────── */
@media (max-width: 400px) {
  .profile-dropdown { left: 0.5rem; right: 0.5rem; }
}

/* ── ≥ 768px – course card max-width cap ─────────── */
@media (min-width: 768px) {
  .course-card { max-width: 420px; }
}
/* ── Logo responsive sizes ───────────────────────── */
@media (max-width: 768px) {
  .logo { height: 38px; }
}

@media (max-width: 480px) {
  .logo { height: 32px; }
}