/* ============================================
   Learning Station — Responsive Breakpoints
   ============================================ */

/* ----------------------------------------
   LAPTOP / SMALL DESKTOP (≤ 1200px)
   ---------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --space-section: clamp(4rem, 6vw, 6rem);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ----------------------------------------
   TABLET (≤ 992px)
   ---------------------------------------- */
@media (max-width: 992px) {
  /* Navigation — Mobile Menu */
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--clr-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    transition: right 0.4s var(--ease-smooth);
    z-index: 100;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: var(--fs-h4);
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--clr-white) !important;
  }

  .site-nav a::after {
    background: var(--clr-dark) !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    margin-left: auto;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--clr-white);
    border-radius: 10px;
    transition: all 0.3s linear;
  }

  .site-header.scrolled .hamburger span {
    background-color: var(--clr-dark);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--clr-white);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--clr-white);
  }

  /* Mobile menu overlay */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* About Preview */
  .about-preview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-preview__image-frame img {
    height: 380px;
  }

  /* Statistics */
  .statistics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ----------------------------------------
   MOBILE (≤ 767px)
   ---------------------------------------- */
@media (max-width: 767px) {
  :root {
    --nav-height: 68px;
    --nav-height-scrolled: 60px;
    --space-section: clamp(3.5rem, 6vw, 5rem);
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding-top: var(--nav-height);
  }

  .hero__content {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero__buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero__floating-item {
    opacity: 0.6;
  }

  .hero__floating-item:nth-child(n+6) {
    display: none;
  }

  /* About Preview */
  .about-preview__image-frame img {
    height: 300px;
  }

  .about-preview__content {
    padding: 0;
    text-align: center;
  }

  .about-preview__highlights {
    align-items: center;
  }

  /* Statistics */
  .statistics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-lg) var(--space-sm);
  }

  .stat-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .stat-card__number {
    font-size: var(--fs-h2);
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-lg);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-lg);
  }

  .testimonial-card__text {
    font-size: var(--fs-body);
  }

  /* CTA */
  .cta-banner__content h2 {
    font-size: var(--fs-h2);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Back to top */
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  /* Page hero */
  .page-hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }
}

/* ----------------------------------------
   SMALL MOBILE (≤ 480px)
   ---------------------------------------- */
@media (max-width: 480px) {
  .hero__floating-item:nth-child(n+4) {
    display: none;
  }

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

  .stat-card__number {
    font-size: var(--fs-h3);
  }

  .stat-card__label {
    font-size: var(--fs-xs);
  }

  .testimonials__controls {
    gap: var(--space-sm);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand {
    text-align: center;
  }
}

/* ----------------------------------------
   LANDSCAPE ORIENTATION (short height)
   ---------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  }

  .hero__content {
    padding: var(--space-md);
  }

  .hero__badge {
    margin-bottom: var(--space-sm);
  }

  .hero__subtitle {
    margin-bottom: var(--space-md);
  }
}

/* ----------------------------------------
   HOMEPAGE REDESIGN RESPONSIVE FIXES
   ---------------------------------------- */
@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .why-us-image {
    order: -1;
  }
  .experience-layout {
    grid-template-columns: 1fr;
  }
  .experience-image {
    order: -1;
    margin-bottom: var(--space-xl);
  }
  .trainer-badge {
    bottom: -15px;
    right: 15px;
    left: 15px;
    text-align: center;
    justify-content: center;
  }
  .success-grid {
    grid-template-columns: 1fr;
  }
  /* Trainer Page Fixes */
  .trainer-profile {
    grid-template-columns: 1fr;
  }
  .trainer-sidebar {
    order: -1;
  }
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-banner__tagline {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-banner__actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .hero-banner__actions .btn {
    width: 100%;
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .quote-primary {
    font-size: var(--fs-body-lg);
  }
}

@media (max-width: 480px) {
  .audience-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */
@media print {
  .navbar,
  .hero__floating,
  .hero__wave,
  #scroll-progress,
  #back-to-top,
  .hamburger,
  .mobile-overlay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section--dark,
  .statistics {
    background: #f5f5f5;
    color: #000;
  }
}


@media (max-width: 992px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .course-learn .feature-list, .included-grid {
    grid-template-columns: 1fr;
  }
  .course-info-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
