:root {
  --site-gutter: 16px;
  --site-content-max: 1200px;
}

.btn-login,
.fixed-sidebar,
.float-toolbar,
.contact-section,
.modal-overlay,
.top-phone,
a[href="/adviser.html"] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    min-width: 0 !important;
  }

  .top-bar-inner,
  .sub-nav-inner,
  .page-body,
  .hero-entry,
  .boost-section,
  .filter-section,
  .result-info,
  .school-list,
  .guess-section,
  .address-section,
  .footer-inner,
  .footer-bottom,
  .hero-inner,
  .tabs-inner,
  .page-layout {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--site-gutter) !important;
    margin-right: var(--site-gutter) !important;
  }

  .top-bar-inner,
  .sub-nav-inner {
    height: auto !important;
    min-height: 64px;
    padding: 10px 0;
    gap: 10px;
    align-items: flex-start !important;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .hero-tabs,
  .tabs-inner,
  .city-tabs,
  .rank-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .main-nav,
  .sub-nav-links {
    flex: 0 0 100% !important;
    max-width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow: visible !important;
    gap: 4px 0;
  }

  .main-nav::-webkit-scrollbar,
  .sub-nav-links::-webkit-scrollbar,
  .hero-tabs::-webkit-scrollbar,
  .tabs-inner::-webkit-scrollbar,
  .city-tabs::-webkit-scrollbar,
  .rank-tabs::-webkit-scrollbar {
    display: none;
  }

  .main-nav > a,
  .main-nav a,
  .nav-drop > span,
  .sub-nav-links a,
  .tab-btn,
  .hero-tab,
  .city-tab,
  .rank-tab {
    height: auto !important;
    line-height: 1.35 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .nav-drop-menu {
    left: 0 !important;
    right: auto !important;
  }

  .page-body,
  .hero,
  .hero-entry,
  .boost-section,
  .filter-section,
  .guess-section,
  .address-section {
    margin-top: 16px !important;
  }

  .quick-links-card,
  .hero-top,
  .hero-side,
  .summary-grid,
  .stats-grid,
  .rank-grid,
  .major-grid,
  .video-grid,
  .guess-links {
    grid-template-columns: 1fr !important;
  }

  .hero-top,
  .college-card,
  .offer-card,
  .school-card,
  .rank-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .hero-inner,
  .hero-card,
  .card,
  .sidebar-card,
  .filter-card {
    border-radius: 20px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hero-logo {
    width: 88px !important;
    height: 88px !important;
    border-radius: 20px !important;
  }

  .hero-name,
  .hero-title {
    font-size: 28px !important;
  }

  .section-title {
    font-size: 24px !important;
  }

  .section-head,
  .filter-head,
  .search-row,
  .major-footer {
    flex-direction: column;
    align-items: stretch !important;
  }

  .search-box-wrap,
  .search-box,
  .stat-badge,
  .rank-pill,
  .consult-btn {
    width: 100% !important;
  }

  .filter-row,
  .filter-group {
    display: block !important;
  }

  .filter-label {
    width: auto !important;
    margin-bottom: 8px;
    line-height: 1.4 !important;
  }

  .filter-tags,
  .filter-options,
  .hero-tags,
  .college-tags,
  .offer-meta,
  .chip-row,
  .inline-badges,
  .mini-badges {
    gap: 8px !important;
  }

  .page-layout {
    display: block !important;
  }

  .college-side,
  .offer-side {
    width: 100%;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 10px !important;
    padding-bottom: 28px !important;
  }

  .footer {
    margin-top: 28px !important;
  }

  .footer-inner {
    display: grid !important;
    gap: 20px !important;
  }

  .footer-col h4 {
    margin-bottom: 10px !important;
  }

  .hero-summary,
  .paragraph,
  .college-desc,
  .offer-exp,
  .case-sub,
  .news-summary {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .logo a,
  .sub-nav-title {
    font-size: 20px !important;
  }

  .school-logo,
  .college-logo,
  .related-thumb {
    width: 64px !important;
    height: 64px !important;
  }
}
