

/* --- MIN-WIDTH MEDIA QUERIES (Large Desktop Layouts) --- */
@media (min-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --- MAX-WIDTH MEDIA QUERIES (Desktop, Tablet, Mobile Layouts) --- */

/* Laptops and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .hero-inner { 
    gap: var(--space-4); 
  }
}

/* Medium Tablets & iPads (max-width: 991px) */
@media (max-width: 991px) {
  .lead-form-container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .lead-info-col {
    padding-right: 0;
    text-align: center;
  }
}

/* Video Reviews Grid adjustments (max-width: 900px) */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Small Tablets & Large Mobiles (max-width: 768px) */
@media (max-width: 768px) {
  
  .navbar-nav-links { 
    display: none; 
  }
  .navbar-mobile-toggle { 
    display: block; 
  }


  .hero-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }
  .hero-headline-gold,
  .hero-headline-white {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  }
  .hero-inner { 
    grid-template-columns: 1fr; 
    padding-block: var(--space-5); 
  }
  .hero-video-panel { 
    aspect-ratio: 16/9; 
  }
  .hero-decor-item { 
    opacity: 0.05; 
  }
  .hero-decor-item.item-3,
  .hero-decor-item.item-4 { 
    display: none; 
  }


  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .stat-value {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  .stat-label {
    font-size: 0.625rem;
  }

  .results-header { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .result-card { 
    flex: 0 0 100%; 
  }

  .card-text-side,
  .card-image-side {
    min-width: 100% !important;
  }
  
  .card-inner-content { 
    flex-direction: column; 
  }
  .carousel-control-btn { 
    display: none; 
  }
 
  .timeline-container {
    padding-inline: var(--space-4);
  }
  .timeline-line {
    left: 48px;
    transform: none;
  }
  .timeline-item {
    grid-template-columns: 48px 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }
  .timeline-item.is-left .timeline-content,
  .timeline-item.is-right .timeline-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: var(--space-3) var(--space-4);
  }
  .timeline-item.is-left .timeline-icon-wrap,
  .timeline-item.is-right .timeline-icon-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    box-shadow: 0 0 0 3px var(--bg);
  }

 
  .mentor-card { 
    grid-template-columns: 1fr; 
  }
  
  #mentor-prev, 
  #mentor-next {
    display: none !important;
  }
    #results-prev,
    #results-next {
    display: none !important;
  }

  .mentor-dot {
    display: none !important;
  }
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
}


@media (max-width: 640px) {
  .mentor-card { 
    grid-template-columns: 1fr; 
  }
  .mentor-photo-wrap { 
    flex-direction: row; 
    align-items: center; 
  }
}


@media (max-width: 560px) {
  .video-reviews-section {
    padding: 70px 0 60px;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
  }
}


@media (max-width: 520px) {
  .form-row-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .accordion-header {
    padding: 16px 18px;
  }
  .accordion-content {
    padding: 0 18px 18px;
  }
}


@media (max-width: 480px) {

  * {
    box-sizing: border-box !important;
  }
  body, html {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .container, .section-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }


  h1, h2, h3, h4, h5, h6, p, li, span, a, label, blockquote, .batch-description, .result-testimonial {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  .announcement-bar span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }


  h1, .hero-headline-white, .hero-headline-gold {
    font-size: clamp(1.4rem, 7vw, 1.8rem) !important;
    line-height: 1.2 !important;
  }
  h2, .section-heading, .section-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
  }
  h3, .batch-title, .form-card-title {
    font-size: clamp(1.05rem, 5vw, 1.25rem) !important;
    line-height: 1.3 !important;
  }

  .flex-wrap-mobile, .card-inner-content, .stats-grid, .results-carousel, .mentor-slider, .features-grid, .lead-benefit-list, .form-row-split {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  .explore-section .course-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
  }
  .footer-bottom { 
    justify-content: center; 
    text-align: center; 
  }
  .hero-ctas { 
    flex-direction: column; 
  }
  .hero-ctas .btn-gold, .hero-ctas .btn-outline-light { 
    width: 100%; 
    justify-content: center; 
  }
    .batch-course-card {
    padding: 20px !important;
  }
  .announcement-card {
  
    width: 290px;
    padding: 12px;
    font-size:clamp(1rem, 5vw, 1.25rem) !important;;
   
}
  
}

@media (max-width: 390px) {
    .batch-course-card .batch-description{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
}

/* Micro Mobiles (max-width: 320px) */
@media (max-width: 320px) {

  body, header, section, div, img {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .batch-course-card {
    padding: 15px !important;
    border-radius: 12px !important;
  }
  .lead-form-card {
    padding: 15px !important;
    border-radius: 12px !important;
  }
  .card-text-side, .card-image-side {
    min-width: 100% !important;
  }


  h1, .hero-headline-white, .hero-headline-gold {
    font-size: 1.3rem !important;
  }
  h2, .section-heading, .section-title {
    font-size: 1.15rem !important;
  }
  h3, .batch-title, .form-card-title {
    font-size: 1.02rem !important;
  }


  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-ctas a {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 15px !important;
    font-size: 0.82rem !important;
  }

 
  /*.announcement-bar ~ #mobile-nav-menu {*/
  /*  inset: 108px 0 0 0 !important;*/
  /*}*/
}
