/* ==========================================================================
   BLESSING TUITION & TUTORIAL CENTRE - RESPONSIVE STYLES
   Mobile-First & Ergonomic Touch Architecture
   ========================================================================== */

.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 99;
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-medium);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  min-width: 48px;
  padding: 6px 4px;
  min-height: 48px;
  justify-content: center;
}

.dock-item.active, .dock-item:hover {
  color: var(--accent-cyan-light);
}

.dock-item svg {
  width: 20px;
  height: 20px;
}

.dock-cta {
  background: var(--grad-gold);
  color: #0b1120 !important;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-weight: 700;
  gap: 4px;
}

@media screen and (max-width: 1440px) and (min-width: 1281px) {
  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.82rem;
  }
}

/* Laptops: crowded top nav becomes a drawer */
@media screen and (max-width: 1280px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--header-bg-scrolled);
    flex-direction: column;
    padding: 16px 20px 28px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 4px;
    align-items: stretch;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    z-index: 110;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    min-height: 44px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 8px 12px;
    min-width: 0;
  }

  .nav-dropdown-wrapper.open .nav-dropdown-menu,
  .nav-dropdown-wrapper:hover .nav-dropdown-menu {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-section {
    min-height: unset;
    padding: 28px 0 40px;
    align-items: flex-start;
  }

  .showcase-image-wrapper {
    height: min(52vh, 420px);
  }

  .program-card-detailed {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .transformations-grid,
  .toppers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .victorious-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-thumb {
    height: 140px;
  }

  .map-float-badge {
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-showcase {
    order: -1;
    width: 100%;
  }

  .hero-content,
  .hero-showcase,
  .showcase-card,
  .showcase-image-wrapper,
  .editorial-card,
  .page-hero-content,
  .faculty-grid,
  main {
    min-width: 0;
    max-width: 100%;
  }

  .hero-headline,
  .page-hero h1,
  .page-hero p,
  .editorial-card p,
  .editorial-card h3,
  .hero-desc {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .mobile-bottom-dock {
    display: flex;
    max-width: 100%;
    overflow: hidden;
  }

  .dock-item {
    min-width: 0;
    flex: 1 1 0;
  }

  body {
    padding-bottom: 82px;
  }

  .brand-title .badge {
    display: none;
  }

  .hero-headline {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    white-space: normal;
  }

  .btn {
    white-space: normal;
  }

  .showcase-image-wrapper {
    min-height: 180px;
    max-height: min(42vh, 320px);
  }

  .showcase-image {
    max-height: min(42vh, 320px);
  }

  .transformations-grid,
  .toppers-grid,
  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid,
  .image-gallery-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 280px;
  }

  .section-header h2,
  .page-hero h1 {
    font-size: 1.7rem;
  }

  .page-hero {
    padding: 28px 0 24px;
    text-align: left;
  }

  .page-hero-content {
    max-width: none;
  }

  .breadcrumbs {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .editorial-card {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .telemetry-banner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .library-results-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .modal-content {
    padding: 22px 18px;
  }

  .topper-img-wrapper,
  .image-gallery-card {
    height: min(58vw, 280px);
  }
}

@media screen and (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-logo {
    height: 36px;
  }

  .hero-headline {
    font-size: 1.45rem;
  }

  .btn-lg {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .mobile-bottom-dock {
    width: 100%;
    max-width: 100vw;
    padding-left: 4px;
    padding-right: 4px;
  }

  .dock-item {
    font-size: 0.58rem;
    padding: 4px 0;
  }

  .dock-cta {
    padding: 6px 8px;
  }
}

@media screen and (max-width: 420px) {
  .brand-info {
    display: none;
  }
}
