﻿@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-image {
    margin-top: 40px;
  }

  .hero-image::before {
    display: none;
  }

  #testimonialCarousel {
    padding: 0 40px;
  }

  .filter-sidebar {
    margin-bottom: 24px;
  }

  .bg-white-section .col-lg-3 {
    order: -1;
  }

  .course-card .card-body .card-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  #testimonialCarousel {
    padding: 0 20px;
  }

  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 120px 0 60px;
    text-align: center;
  }

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

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat h3 {
    font-size: 1.25rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .course-detail-hero h1 {
    font-size: 1.5rem;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item img {
    width: 80px;
    height: 55px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer .row > [class*="col-lg-2"] {
    width: 50%;
    flex: 0 0 50%;
  }

  .footer .row > .col-lg-3.col-md-6:first-child {
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer .row > .col-lg-3.col-md-6:first-child .social-links {
    justify-content: center;
  }

  .footer .row > .col-lg-3.col-md-6:last-child {
    width: 100%;
    flex: 0 0 100%;
  }

  .footer {
    padding: 48px 0 0;
  }

  .footer h6 {
    margin-bottom: 10px;
    font-size: 0.82rem;
  }

  .footer ul li a {
    font-size: 0.8rem;
  }

  .footer p {
    font-size: 0.82rem;
  }

  .stat-item h3 {
    font-size: 1.75rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .courses-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-row {
    gap: 8px;
  }

  .stat-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .category-chip {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .course-card .card-footer-custom {
    flex-direction: column;
    gap: 8px;
  }

  .course-card .card-footer-custom .btn-enroll {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .trusted-logos {
    gap: 24px;
  }

  .trusted-logos span {
    font-size: 1rem;
  }

  .footer .row > [class*="col-lg-2"] {
    width: 50%;
    flex: 0 0 50%;
  }

  .footer .row > [class*="col-lg-3"]:first-child {
    width: 100%;
    flex: 0 0 100%;
  }

  .payment-methods {
    flex-direction: column;
  }
}
