/* ==========================================================================
   GURUKUL RESPONSIVE BREAKPOINTS
   Mobile, Tablet, Laptop, and Desktop Optimizations
   ========================================================================== */

/* ================= 1. LAPTOP & SMALL DESKTOP (Max 1200px) ================= */
@media (max-width: 1200px) {
  .hero-title, .hero-brand-heading {
    font-size: 2.8rem;
  }
  
  .hero-floating-dock {
    right: 5px;
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-col.brand-col {
    grid-column: 1 / -1;
  }
  
  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-top-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ================= 2. TABLET LANDSCAPE & PORTRAIT (Max 992px) ================= */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-toggle-btn {
    display: flex !important;
    z-index: 100;
  }
  
  .btn-callback-trigger span {
    display: none;
  }
  
  .hero-banner-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-content-left {
    padding: 1.5rem 0;
  }
  
  .hero-brand-heading {
    font-size: 2.5rem;
  }
  
  .hero-brand-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-action-buttons {
    justify-content: center;
  }
  
  .hero-features-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .hero-feature-col {
    align-items: center;
    text-align: center;
  }
  
  .hero-visual-right {
    min-height: 340px;
  }
  
  .hero-students-frame {
    max-width: 440px;
    margin: 0 auto;
  }
  
  .hero-floating-dock {
    position: fixed;
    right: 12px;
    top: auto;
    bottom: 24px;
    transform: none;
    z-index: 999;
  }

  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-visual-col {
    display: none;
  }
  
  .search-main-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .search-city-dropdown {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 0.75rem;
  }
  
  .search-locate-btn {
    grid-column: span 1;
    justify-content: center;
  }
  
  .search-submit-btn {
    grid-column: span 1;
  }
  
  .quick-product-cards {
    grid-template-columns: 1fr;
  }
  
  .milestone-row, .milestone-row.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
    text-align: center;
  }
  
  .milestone-row.reverse .milestone-mosaic-col {
    order: 1;
  }
  
  .milestone-row.reverse .milestone-text-col {
    order: 2;
  }
  
  .milestone-features {
    display: inline-block;
    text-align: left;
  }
  
  .svg-timeline-wrapper {
    display: none; /* Keep layout clean on mobile/tablet */
  }
  
  .app-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .app-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  
  .scholarship-card-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .scholarship-perks {
    text-align: left;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .lead-inputs-row {
    grid-template-columns: 1fr;
  }
  
  .value-badges-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coverflow-card[data-pos="-2"], .coverflow-card[data-pos="2"] {
    display: none;
  }
}

/* ================= 3. MOBILE SCREENS (Max 768px) ================= */
@media (max-width: 768px) {
  .top-announcement {
    display: none; /* Conserve vertical space on mobile */
  }
  
  .header-container {
    min-height: 100px;
    height: auto;
    padding: 8px 0;
  }
  
  .site-logo-img {
    height: 90px;
    max-height: 100px;
  }
  
  .btn-callback-trigger {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtext {
    font-size: 1rem;
  }
  
  .stats-headline {
    font-size: 1.65rem;
    margin-bottom: 2rem;
  }
  
  .stats-banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .stats-banner-item::after {
    display: none !important;
  }

  .stats-banner-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
  }

  .stats-banner-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .faculty-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-col.brand-col {
    grid-column: 1 / -1;
  }
  
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  
  .floating-action-bar {
    bottom: 16px;
    right: 16px;
  }
  
  .float-btn {
    width: 46px;
    height: 46px;
  }
  
  .modal-dialog {
    padding: 1.75rem 1.25rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-video-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .modal-video-footer .btn {
    width: 100%;
  }
  
  .coverflow-stage {
    height: 400px;
  }
  
  .coverflow-card {
    width: 220px;
    height: 350px;
  }
}

/* ================= 4. SMALL MOBILE SCREENS (Max 480px) ================= */
@media (max-width: 480px) {
  .hero-title, .hero-brand-heading {
    font-size: 1.95rem;
  }

  .hero-brand-tagline {
    font-size: 0.92rem;
  }
  
  .hero-action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-hero-solid, .btn-hero-outline {
    width: 100%;
    text-align: center;
  }

  .hero-features-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .feature-divider {
    display: none;
  }
  
  .hero-floating-dock {
    display: none;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  .search-main-row {
    grid-template-columns: 1fr;
  }
  
  .search-locate-btn, .search-submit-btn {
    width: 100%;
  }
  
  .mosaic-grid-3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .mosaic-grid-2 {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .mosaic-item {
    height: 180px;
  }
  
  .phone-stage {
    width: 100%;
    max-width: 290px;
  }
  
  .phone-frame {
    width: 100%;
    height: 560px;
  }
  
  .floating-app-icon {
    display: none; /* Avoid overflowing phone screen on narrow mobiles */
  }
  
  .lead-cta-text h2 {
    font-size: 1.85rem;
  }
}

/* ================= RESPONSIVE STYLES FOR HORIZONTAL ACCORDION ================= */
@media (max-width: 1024px) {
  .tt-horizontal-accordion {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .tt-hac-item {
    flex: none !important;
    width: 100% !important;
    height: auto;
    min-height: 180px;
    padding: 1.8rem 1.6rem;
    margin-left: 0 !important;
  }

  .tt-haci-content-top {
    width: 100% !important;
  }

  .tt-hac-item .tt-haci-description {
    opacity: 1;
    max-height: none;
    color: #cbd5e1;
    margin-top: 0.5rem;
  }

  .tt-hac-item .tt-haci-content-bottom {
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.2rem;
  }

  .tt-hac-item.active,
  .tt-hac-item:hover {
    background: #ffffff;
  }

  .tt-hac-item.active .tt-haci-description,
  .tt-hac-item:hover .tt-haci-description {
    color: #475569;
  }

  .tt-haci-title {
    font-size: 1.8rem;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .join-gurukul-section {
    padding: 4rem 0;
  }
  .tt-haci-title {
    font-size: 1.5rem;
  }
  .tt-hac-item-count {
    font-size: 1.4rem;
    top: 1.4rem;
    right: 1.4rem;
  }
}


