/* ==========================================================================
   AFFINITY SKY — PREMIUM MOBILE & TABLET UI/UX OPTIMIZATIONS
   Breakpoints: 1200px, 1024px, 768px, 480px, 360px
   Mobile UX: 48px Touch Targets, Horizontal Filter Swiping,
   2x2 Stat Cards, Adaptive WhatsApp Popup, Mobile Glass Drawer
   ========================================================================== */

/* --- Laptops & Small Desktops (<= 1200px) --- */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }
  
  .country-grid,
  .universities-grid,
  .scholarships-grid,
  .services-grid,
  .courses-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* --- Tablets Landscape & Small Laptops (<= 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 94px;
  }

  .nav-logo-img {
    height: 64px;
  }

  .section {
    padding: 72px 0;
  }
  
  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-bento-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-bento-title {
    font-size: 2.85rem;
  }

  .hero-bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 640px;
  }

  .bento-main-card {
    order: -1; /* Display the majestic campus showcase at the top */
    min-height: 380px;
  }

  .hero-grid,
  .hero-grid-clean {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content-clean {
    align-items: center;
  }

  .hero-content-clean .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge,
  .hero-feature-pills,
  .hero-destination-pills,
  .hero-cta-group,
  .hero-trust-bar,
  .hero-content-clean .hero-cta-group {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-matcher-console {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-orbital-badge {
    display: none;
  }

  .nav-brand-text {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(201, 164, 107, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--accent);
  }
  
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* --- Tablets Portrait & Large Mobile Phones (<= 768px) --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
  }
  @supports not (overflow-x: clip) {
    html, body {
      overflow-x: hidden;
    }
  }

  :root {
    --header-height: 88px;
  }

  .nav-logo-img {
    height: 58px;
  }
  
  .nav-topbar {
    display: none;
  }

  .header-master.scrolled {
    transform: none;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.2;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .section-sm {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-bento-title {
    font-size: 2.35rem;
    line-height: 1.2;
  }

  .hero-bento-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-trust-ticker {
    font-size: 0.74rem;
    gap: 8px;
    padding: 6px 14px;
  }

  .bento-main-card {
    min-height: 320px;
    border-radius: 20px;
  }

  .bento-floating-glass {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    gap: 10px;
  }

  .bento-floating-glass .hero-student-avatar {
    width: 32px;
    height: 32px;
  }

  .bento-feature-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .hero-feature-pills {
    gap: 8px;
  }

  .hero-feature-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-form-card {
    padding: 26px 20px;
  }

  .hero-form-title {
    font-size: 1.3rem;
  }
  
  .country-grid,
  .universities-grid,
  .scholarships-grid,
  .services-grid,
  .courses-grid,
  .blog-grid,
  .stories-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  
  .timeline-track {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  /* Horizontal swipeable filter pills on touch devices */
  .univ-filter-pills,
  .courses-filter-wrap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding: 6px 4px 12px 4px;
    margin-bottom: 24px;
    scrollbar-width: none; /* Firefox */
  }

  .univ-filter-pills::-webkit-scrollbar,
  .courses-filter-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-pill,
  .course-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    font-size: 0.84rem;
    padding: 8px 16px;
    white-space: nowrap;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .consultation-box {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }
  
  .testimonial-card {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }
  
  .testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonial-author-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Universal Inline Grid Overrides */
  .stats-grid,
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .about-pillars-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .partners-marquee-section {
    padding: 16px 0;
  }

  .partners-marquee-track {
    gap: 24px;
    animation-duration: 22s;
  }

  .marquee-item {
    font-size: 0.9rem;
  }

  .univ-card-media,
  .scholarship-card-media {
    height: 135px;
  }

  .country-pane-banner,
  .country-deep-banner {
    height: 190px;
  }

  /* 2-column inline layouts override */
  .country-hero-grid,
  .country-overview-grid,
  .country-detail-columns,
  .contact-layout-grid,
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  /* Critical grid children protection against CSS Grid minmax(auto, 1fr) overflow */
  .stats-grid > *,
  .about-pillars-grid > *,
  .universities-grid > *,
  .process-grid > *,
  .country-hero-grid > *,
  .country-overview-grid > *,
  .country-detail-columns > *,
  .contact-layout-grid > *,
  [style*="grid-template-columns"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Stat-box mobile sizing */
  .stat-box {
    padding: 14px 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .stat-box > * {
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
  }

  /* Override large inline card paddings on mobile */
  .consultation-box,
  .card[style*="padding: 40px"],
  [style*="padding: 40px"],
  [style*="padding: 36px"],
  [style*="padding: 44px"] {
    padding: 24px 16px !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stories-trust-strip {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 18px;
  }

  .stories-trust-stats {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .stories-trust-stat {
    width: 100%;
    justify-content: center;
  }

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

/* --- Mobile Smartphones (<= 480px) --- */
@media (max-width: 480px) {
  :root {
    --header-height: 82px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 44px 0;
  }

  .nav-logo-img {
    height: 52px;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
  }
  
  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-badge {
    padding: 6px 14px;
    margin-bottom: 18px;
  }

  .hero-badge-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .hero-badge-text {
    font-size: 0.8rem;
  }

  .hero-matcher-console {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .matcher-title {
    font-size: 1.25rem;
  }

  .matcher-country-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-dest-chip {
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  .hero-bento-title {
    font-size: 1.95rem;
  }

  .hero-bento-ctas .btn {
    width: 100%;
  }

  .bento-main-card {
    min-height: 280px;
  }

  .bento-stat-num {
    font-size: 1.95rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px;
  }

  .btn {
    min-height: 46px; /* Mobile touch target standard */
    font-size: 0.9rem;
    padding: 12px 18px;
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
  }

  .btn-lg {
    min-height: 50px;
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-box {
    padding: 16px 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-suffix {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .univ-search-bar {
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    gap: 10px;
  }

  .univ-search-input {
    font-size: 0.92rem;
  }

  .country-card,
  .univ-card,
  .scholarship-card,
  .service-card,
  .course-card,
  .blog-card,
  .card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .univ-card-media,
  .scholarship-card-media,
  .service-card-media,
  .course-card-media,
  .country-univ-media,
  .scholarship-page-media {
    margin: -20px -16px 16px -16px !important;
    height: 140px;
  }

  .card [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .card [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Modal on Mobile */
  .modal-box {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }

  /* WhatsApp Widget Mobile UI */
  .whatsapp-widget-container {
    bottom: 18px;
    right: 16px;
  }

  .whatsapp-trigger-btn {
    width: 54px;
    height: 54px;
  }

  .whatsapp-trigger-btn svg {
    width: 30px;
    height: 30px;
  }

  .whatsapp-teaser-bubble {
    max-width: calc(100vw - 40px);
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .whatsapp-chat-box {
    width: calc(100vw - 32px);
    bottom: 68px;
    right: 0;
    max-height: 480px;
    border-radius: var(--radius-lg);
  }

  .whatsapp-chat-body {
    max-height: 260px;
    padding: 14px 12px;
  }

  .whatsapp-chip {
    font-size: 0.78rem;
    padding: 10px 12px;
    min-height: 42px;
  }

  .back-to-top-btn {
    bottom: 18px;
    right: 78px;
    width: 44px;
    height: 44px;
  }
}

/* --- Tiny Screens (<= 360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .stats-grid,
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-trust-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .btn {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
  }
}

/* --- Mobile Drawer Menu Modern UX --- */
.mobile-drawer {
  background: #FFFFFF;
  border-left: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.22);
}

.mobile-dest-card {
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-row {
  -webkit-tap-highlight-color: transparent;
}


/* ==========================================================================
   Hero 3-Slide Carousel & Country Standalone Pages Responsive
   ========================================================================== */

/* Laptops & Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .hero-carousel-section,
  .hero-slider-wrapper,
  .hero-slider-track,
  .hero-slide {
    min-height: 680px;
  }

  .hero-slide-title {
    font-size: 2.85rem;
  }

  .hero-slider-arrow.prev {
    left: 18px;
  }

  .hero-slider-arrow.next {
    right: 18px;
  }

  .country-hero-grid,
  .country-overview-grid,
  .country-detail-columns {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Tablets Portrait & Large Mobile (<= 768px) */
@media (max-width: 768px) {
  .hero-carousel-section,
  .hero-slider-wrapper,
  .hero-slider-track,
  .hero-slide {
    min-height: 600px;
    min-height: calc(100svh - var(--header-height));
  }

  .hero-slide-bg {
    transform: none !important;
  }

  .hero-slide-overlay {
    background: linear-gradient(180deg, 
      rgba(255, 255, 255, 0.96) 0%, 
      rgba(253, 250, 244, 0.92) 35%, 
      rgba(255, 255, 255, 0.88) 75%, 
      rgba(255, 255, 255, 0.98) 100%
    ) !important;
  }

  .hero-slide-container {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 85px;
  }

  .hero-slide-title {
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--text-heading) !important;
    text-shadow: none !important;
    word-break: normal;
  }

  .hero-slide-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted) !important;
    margin-bottom: 20px;
  }

  .hero-slide-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
    width: 100%;
  }

  .slide-chip {
    min-width: 0;
    margin: 0;
    padding: 7px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-heading) !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--border-gold) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slider-arrow {
    display: none !important;
  }

  .hero-slider-dots {
    padding: 6px 10px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid var(--border-gold) !important;
  }

  .hero-dot {
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--text-muted) !important;
  }

  .hero-dot:hover,
  .hero-dot.active {
    color: var(--text-heading) !important;
    background: rgba(197, 160, 89, 0.18) !important;
  }

  .hero-dot .dot-label {
    display: none !important;
  }

  .dot-progress-bar {
    width: 22px;
    background: rgba(0, 0, 0, 0.12) !important;
  }

  .country-hero-section {
    padding-top: calc(var(--header-height) + 20px) !important;
    padding-bottom: 40px !important;
  }
}

/* Mobile Smartphones (<= 480px) */
@media (max-width: 480px) {
  .hero-carousel-section,
  .hero-slider-wrapper,
  .hero-slider-track,
  .hero-slide {
    min-height: 560px;
    min-height: calc(100svh - var(--header-height));
  }

  .hero-slide-overlay {
    background: linear-gradient(180deg, 
      rgba(255, 255, 255, 0.96) 0%, 
      rgba(253, 250, 244, 0.92) 30%, 
      rgba(255, 255, 255, 0.90) 70%, 
      rgba(255, 255, 255, 0.98) 100%
    ) !important;
  }

  .hero-slide-container {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 75px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slide-title {
    font-size: 1.68rem;
    line-height: 1.22;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-heading) !important;
    text-shadow: none !important;
    word-break: normal;
  }

  .hero-slide-subtitle {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-muted) !important;
  }

  /* 2x2 Highlight Grid on Mobile */
  .hero-slide-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
    width: 100%;
  }

  .slide-chip {
    min-width: 0;
    margin: 0;
    padding: 7px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-heading) !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--border-gold) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slide-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .hero-slide-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  /* Hide arrows on mobile touchscreens to avoid covering text */
  .hero-slider-arrow {
    display: none;
  }

  .hero-slider-pagination {
    bottom: 24px;
  }

  .hero-slider-dots {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid var(--border-gold) !important;
    padding: 6px 12px;
    gap: 8px;
  }

  .hero-dot {
    padding: 6px 12px;
    font-size: 0.76rem;
    gap: 6px;
    color: var(--text-muted) !important;
  }

  .hero-dot:hover,
  .hero-dot.active {
    color: var(--text-heading) !important;
    background: rgba(197, 160, 89, 0.18) !important;
  }

  .hero-dot .dot-label {
    display: none; /* Show only number + progress bar for compact mobile display */
  }

  .dot-progress-bar {
    width: 20px;
    height: 3px;
    background: rgba(0, 0, 0, 0.12) !important;
  }

  /* FAQ Accordion Mobile Optimization */
  .faq-wrap,
  .faq-container {
    gap: 12px;
  }

  .faq-question {
    padding: 16px 18px;
    gap: 12px;
  }

  .faq-question-text,
  .faq-question span:first-child {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .faq-toggle-icon,
  .faq-icon {
    width: 30px;
    height: 30px;
  }

  .faq-toggle-icon svg,
  .faq-icon svg {
    width: 14px;
    height: 14px;
  }

  .faq-answer p,
  .faq-answer-inner {
    padding: 2px 18px 18px 18px;
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* Tiny Mobile Phones (<= 360px) */
@media (max-width: 360px) {
  .hero-slide-title {
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--text-heading) !important;
    text-shadow: none !important;
  }

  .hero-slide-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted) !important;
  }

  .slide-chip {
    font-size: 0.68rem;
    padding: 6px 8px;
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.92) !important;
  }
}


/* ==========================================================================
   HOMEPAGE RESTRUCTURING RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1024px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-choose-5-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-5-grid .strength-card:nth-child(4) {
    grid-column: auto;
  }

  .why-choose-5-grid .strength-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .dest-serial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-6-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-slider-arrow {
    display: none !important;
  }

  .about-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .about-visual-wrap img {
    height: 280px;
    max-width: 100%;
  }

  .why-choose-5-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .why-choose-5-grid .strength-card:nth-child(5) {
    grid-column: auto !important;
  }

  .dest-serial-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .course-cat-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .course-cat-btn {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .course-catalog-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .course-cat-card {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
  }

  .course-card-destinations {
    flex-wrap: wrap !important;
    word-break: break-word !important;
  }

  .course-card-footer {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .process-6-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .why-choose-5-grid > *,
  .dest-serial-grid > *,
  .course-catalog-grid > *,
  .process-6-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
