/* ============================================
   CSCD - Responsive Stylesheet
   ============================================ */

@media (max-width: 1399.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 1199.98px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .all-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .training-process-steps::before {
    display: none;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0.5rem 0 0.5rem 1rem;
    display: none;
  }

  .nav-item.mega-dropdown.show .mega-menu {
    display: block;
  }

  .about-experience-badge {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  .hero-content {
    padding: 7rem 0 5rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .stats-section {
    margin-top: -2rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .page-hero {
    padding: 7rem 0 3rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }

  [data-theme="dark"] .navbar-collapse {
    background: var(--light-gray);
  }

  .nav-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    justify-content: center;
  }

  .top-bar .d-none.d-lg-block {
    display: none !important;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-width: auto;
  }

  .process-steps-row .process-step {
    margin-bottom: 2rem;
  }

  .cta-section {
    text-align: center;
    padding: 2rem;
  }

  .cta-section .text-lg-end {
    text-align: center !important;
    margin-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .all-courses-grid {
    grid-template-columns: 1fr;
  }

  .training-process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content .hero-subtitle {
    font-size: 1rem;
  }

  .hero-features {
    gap: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-experience-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -2rem;
    margin-left: auto;
    margin-right: 1rem;
    width: fit-content;
  }

  .brand-text span {
    display: none;
  }

  .footer {
    text-align: center;
  }

  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .back-to-top {
    bottom: 90px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .search-popup {
    padding-top: 10vh;
  }

  .search-popup-input {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .cookie-consent .row {
    text-align: center;
  }

  .cookie-consent .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }

  .filter-tabs {
    gap: 0.35rem;
  }

  .filter-tab {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .error-code {
    font-size: 5rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .testimonial-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    font-size: 0.75rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand-logo-img {
    height: 42px;
    max-width: 140px;
  }

  .brand-text h5 {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 6rem 0 4rem;
  }

  .category-card-image {
    height: 150px;
  }

  .course-card-image {
    height: 160px;
  }

  .team-card-image {
    height: 220px;
  }

  .gallery-item img {
    height: 200px;
  }

  .salary-highlight .amount {
    font-size: 2rem;
  }
}

/* Course detail responsive */
@media (max-width: 991.98px) {
  .detail-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 3rem 0 2.5rem;
  }

  .detail-cta-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .detail-cta-btns {
    justify-content: center;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-big-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .learn-list {
    grid-template-columns: 1fr;
  }

  .detail-cta-btns {
    flex-direction: column;
  }

  .detail-cta-btns .btn,
  .detail-cta-btns .btn-detail-wa,
  .detail-cta-btns .btn-detail-white,
  .detail-hero-actions .btn,
  .detail-hero-actions .btn-detail-wa {
    width: 100%;
    justify-content: center;
  }

  .stats-grid,
  .stories-big-grid {
    grid-template-columns: 1fr;
  }

  .stories-hero {
    padding: 4rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
