/* ==========================================================================
   Bal Bharati Senior Secondary School, Motadhak, Kotdwara
   Responsive Stylesheet - Seamless layouts from 1920px down to 360px
   ========================================================================== */

/* Large Desktops */
@media (min-width: 1440px) {
  .hero-slider-section {
    height: 580px;
  }
  .slide-title {
    font-size: 3.2rem;
  }
}

/* Standard Desktops and Tablets in Landscape */
@media (max-width: 1024px) {
  .header-main .container {
    flex-wrap: wrap;
  }
  .header-center-info {
    display: none;
  }
  .header-quick-contact {
    display: none;
  }
  .hero-slider-section {
    height: 480px;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .principal-preview-grid {
    grid-template-columns: 260px 1fr;
    gap: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .timeline::before {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }
}

/* Tablets and Mobile Drawer */
@media (max-width: 1040px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primary-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .dropdown-menu {
    position: static;
    display: none;
    background-color: #0d2139;
    box-shadow: none;
    border-top: none;
    padding-left: 14px;
  }
  .nav-item.open-dropdown .dropdown-menu {
    display: block;
  }
  .dropdown-menu .dropdown-link {
    color: var(--color-light-sky);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .dropdown-menu .dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-accent-yellow);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .principal-preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .principal-img {
    margin: 0 auto;
  }
  .principal-quote-mark {
    display: none;
  }
  .hero-slider-section {
    height: 440px;
  }
  .slide-title {
    font-size: 1.85rem;
  }
  .slide-subtitle {
    font-size: 1rem;
  }
  .slider-arrow {
    display: none; /* Use touch swipe and dots on mobile */
  }
  .page-banner {
    min-height: 160px;
    padding: 30px 0 26px 0;
  }
  .page-banner-title {
    font-size: 1.7rem;
  }
  .contact-map-row .map-container {
    height: 350px !important;
  }
}

/* Mobile Screens */
@media (max-width: 600px) {
  .top-bar {
    font-size: 0.78rem;
  }
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  .top-contact-list {
    justify-content: center;
    gap: 10px;
  }
  .top-actions {
    display: none;
  }
  
  .brand-logo-badge {
    width: 52px;
    height: 52px;
  }
  .brand-logo-badge .crest-initials {
    font-size: 1.1rem;
  }
  .brand-school-name {
    font-size: 1.05rem;
  }
  .brand-location {
    font-size: 0.8rem;
  }
  .brand-affiliation-pill {
    font-size: 0.68rem;
  }
  
  .hero-slider-section {
    height: 400px;
  }
  .slide-content {
    padding: 20px 0;
  }
  .slide-title {
    font-size: 1.55rem;
  }
  .slide-subtitle {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }
  .slide-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .slide-buttons .btn {
    width: 100%;
  }
  
  .section {
    padding: 45px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .notice-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .notice-action {
    width: 100%;
  }
  .notice-action .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .floating-actions-container {
    bottom: 16px;
    right: 16px;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
  }
  .floating-tooltip {
    display: none;
  }
  
  .lightbox-nav-btn {
    display: none;
  }
  
  .disclosure-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .pdf-modal {
    padding: 8px;
  }
  .pdf-modal-container {
    height: 95vh;
  }
  .pdf-modal-header {
    padding: 10px 12px;
  }
  .pdf-modal-title {
    max-width: 170px;
    font-size: 0.92rem;
  }
  .pdf-modal-btn span {
    display: none;
  }
}

/* Extra Small Phones (360px - 400px) */
@media (max-width: 400px) {
  .brand-school-name {
    font-size: 0.95rem;
  }
  .btn {
    padding: 9px 16px;
    font-size: 0.88rem;
  }
  .enquiry-form-card {
    padding: 22px 16px;
  }
  .timeline-item {
    padding-left: 50px;
  }
  .gallery-filters {
    justify-content: flex-start !important;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Print Stylesheet */
@media print {
  .top-bar, .main-navigation, .hero-slider-section, .floating-actions-container, .site-footer, .zip-banner, .btn {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
}
