/* ==========================================================================
   EzyAdmission - responsive.css
   Breakpoints: 1399 / 1199 / 991 (tablet) / 767 (mobile) / 575 / 389
   ========================================================================== */

/* ---------- Large desktop down ---------- */
@media (max-width: 1399.98px) {
  .hero h1 { font-size: 50px; }
  .section-title, .support-title, .consult-cta h2 { font-size: 31px; }
  .owner-banner h3 { font-size: 28px; }
}

/* ---------- Laptop ---------- */
@media (max-width: 1199.98px) {
  .header-top .container { gap: 18px; }
  .header-search { max-width: 380px; }
  .header-actions { gap: 16px; }
  .header-nav a { padding: 13px 10px; font-size: 14px; }

  .hero { min-height: 520px; }
  .hero h1 { font-size: 46px; }
  .hero-search .search-select { width: 165px; }

  .section-title, .support-title, .consult-cta h2 { font-size: 29px; }
  .stat-item strong { font-size: 30px; }

  .category-card-body { padding: 24px; max-width: 78%; }
  .category-card h3 { font-size: 22px; }
  .category-card p { font-size: 14px; }

  .compare-meta { flex-wrap: wrap; gap: 10px 14px; }
  .compare-meta .btn { width: 100%; margin-left: 0; }

  .listing-gallery { width: 240px; }
  .listing-title h3 { font-size: 20px; }
  .school-results.is-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tablet (iPad) ---------- */
@media (max-width: 991.98px) {
  :root { --ez-header-h: 72px; }
  .section { padding: 60px 0; }

  .brand img { height: 40px; }
  .header-actions { gap: 10px; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 45%, rgba(255, 255, 255, 0) 80%); }
  .hero-media img { object-position: 70% center; }
  .hero-content { max-width: 100%; padding: 54px 0; }
  .hero h1, .hero-lead { max-width: 520px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-search { width: 100%; max-width: none; }
  .hero-search .ss-toggle { padding: 12px 10px; gap: 8px; font-size: 14px; }
  .hero-search .search-select { width: auto; flex: 1; min-width: 0; }
  .hero-search-btn { padding: 12px 16px; }

  /* Banners */
  .owner-banner { flex-wrap: wrap; padding: 22px; gap: 18px 22px; }
  .owner-banner-img { width: 120px; }
  .owner-banner > div:not(.owner-banner-img) { flex: 1; min-width: 260px; }
  .owner-banner .btn { margin-left: 0; }

  .stats-bar { grid-template-columns: repeat(3, 1fr); row-gap: 22px; padding: 24px 16px; }
  .stat-item:nth-child(4)::before { display: none; }

  .support-title { max-width: none; }
  .support-list { max-width: none; }
  .support-img { min-height: 380px; margin-top: 10px; }

  .consult-cta { background-position: 72% center; }
  .consult-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234, 242, 253, .97) 0%, rgba(234, 242, 253, .85) 50%, rgba(234, 242, 253, 0) 85%); }
  .consult-cta-content { position: relative; padding: 36px; max-width: 480px; }

  .site-footer { padding-top: 56px; }

  /* Explore page */
  .page-top { padding-bottom: 56px; }
  .page-head { flex-direction: column; }
  .page-head h1 { font-size: 30px; }
  .filter-panel { position: static; max-height: none; overflow: visible; padding: 0; border-radius: 0; }
  .filter-sidebar .offcanvas-header { border-bottom: 1px solid var(--ez-border); }
  .filter-sidebar .offcanvas-body { padding: 18px 20px; }
  .filter-sidebar .filter-head { display: none; }
  .filter-open-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; }
  .results-toolbar { padding: 10px 12px; flex-wrap: wrap; }
  .results-count { width: 100%; font-size: 15px; }
  .help-art { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .section { padding: 48px 0; }
  .section-head { flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
  .section-title, .support-title, .consult-cta h2 { font-size: 25px; }
  .section-eyebrow { font-size: 13px; }

  .header-top { padding: 12px 0; }
  .brand img { height: 36px; }
  .icon-btn { width: 40px; height: 40px; font-size: 19px; }

  /* Hero: content on top, image below */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(180deg, #EEF4FE 0%, #FFFFFF 100%); }
  .hero .container { order: 1; }
  .hero-media { position: relative; order: 2; height: 280px; z-index: 0; }
  .hero-media::after { background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 30%); }
  .hero-media img { object-position: 88% center; }
  .hero-content { padding: 34px 0 10px; max-width: none; }
  .hero h1 { font-size: 34px; letter-spacing: -.6px; }
  .hero h1 br { display: none; }
  .hero-lead { font-size: 15px; margin-bottom: 22px; }
  .hero-search { flex-direction: column; align-items: stretch; padding: 8px; }
  .hero-search .search-select { width: 100%; flex: none; }
  .hero-search .search-select + .search-select { border-left: 0; border-top: 1px solid var(--ez-border); }
  .hero-search-btn { margin: 8px 0 0; justify-content: center; }
  .ss-menu { width: 100%; top: calc(100% + 6px); }
  .hero-points { gap: 10px 18px; }
  .hero-points li { font-size: 14px; }

  .trusted { padding: 40px 0 10px; }
  .logo-swiper .swiper-slide { width: 120px; }
  .logo-box { height: 66px; }

  /* Banners & cards */
  .owner-banner { flex-direction: column; text-align: center; padding: 26px 20px; }
  .owner-banner > div:not(.owner-banner-img) { min-width: 0; }
  .owner-banner h3 { font-size: 24px; }
  .owner-banner-img { width: 140px; }

  .city-card span { font-size: 16px; bottom: 10px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 22px 12px; }
  .stat-item::before { display: none !important; }
  .stat-item:last-child { grid-column: 1 / -1; }
  .stat-item strong { font-size: 26px; }
  .stat-item span { font-size: 13px; }

  .category-card, .category-card-body { min-height: 210px; }
  .category-card-body { max-width: 80%; padding: 22px; }

  .support-img { min-height: 320px; }

  .testimonial-swiper .swiper-slide { width: 310px; }
  .testimonial-card { padding: 20px; }
  .testimonial-card p { font-size: 14px; }

  .consult-cta { min-height: 460px; align-items: flex-start; background-position: 78% bottom; background-size: auto 62%; }
  .consult-cta::before { background: linear-gradient(180deg, rgba(234, 242, 253, 1) 0%, rgba(234, 242, 253, .95) 45%, rgba(234, 242, 253, 0) 70%); }
  .consult-cta-content { padding: 28px 22px; }

  .site-footer { padding-top: 46px; margin-top: 48px; }
  .footer-title { font-size: 18px; margin-bottom: 14px; }
  .footer-bottom { margin-top: 30px; font-size: 13px; }

  /* Explore page */
  .page-top { padding: 18px 0 48px; }
  .page-head h1 { font-size: 26px; gap: 10px; }
  .page-head p { font-size: 14px; }
  .page-head-meta { width: 100%; }
  .location-pill { flex: 1; }
  .view-toggle { display: none; }
  .listing-card { flex-direction: column; padding: 12px; gap: 14px; }
  .listing-gallery { width: 100%; }
  .listing-top { flex-wrap: wrap; }
  .listing-title { flex-basis: calc(100% - 60px); }
  .listing-rating { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding-left: 60px; }
  .listing-rating small { margin: 0; font-size: 13px; }
  .listing-title h3 { font-size: 18px; }
  .listing-actions .btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 9px 10px; font-size: 13px; }
  .help-banner { flex-direction: column; text-align: center; padding: 24px 18px; }
  .help-banner .btn { margin: 0; }
  .compare-tray { left: 12px; right: 12px; transform: translateY(140%); justify-content: space-between; }
  .compare-tray.is-visible { transform: translateY(0); }
  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-media { height: 230px; }
  .section-title, .support-title, .consult-cta h2 { font-size: 23px; }
  .head-actions .slider-nav { display: none; }
  .category-card h3 { font-size: 21px; }
  .category-icon { width: 46px; height: 46px; font-size: 22px; margin-bottom: 14px; }
  .feature-card { padding: 18px; }
  .compare-school h4 { font-size: 13px; }
  .cs-logo { width: 54px; height: 54px; }
  .listing-info li { flex: 1 1 calc(50% - 4px); }
  .results-toolbar .sort-select { flex: 1; }
  .ez-toast { left: 16px; right: 16px; top: 16px; }
}

@media (max-width: 389.98px) {
  .hero h1 { font-size: 27px; }
  .brand img { height: 32px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .listing-actions .btn { flex-basis: 100%; }
}


/* ==========================================================================
   School Detail + Compare pages
   ========================================================================== */
@media (max-width: 1199.98px) {
  .sh-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rating-summary { grid-template-columns: auto minmax(0, 1fr); }
  .rs-categories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rs-categories li { flex-direction: column; align-items: center; background: #fff; border-radius: 10px; padding: 8px; font-size: 13px; }
  .process-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-steps li { flex-direction: row; gap: 14px; padding-bottom: 18px; }
  .process-steps li:not(:last-child)::after { top: 40px; bottom: 2px; left: 17px; right: auto; width: 2px; height: auto; }
  .compare-table col.cmp-col-label { width: 180px; }
}

@media (max-width: 991.98px) {
  .action-card { position: static; }
  body.has-mobile-cta { padding-bottom: 76px; }
  body.has-mobile-cta .back-to-top { bottom: 88px; }
  .detail-section { scroll-margin-top: calc(var(--ez-header-h) + 70px); }
  .compare-controls { width: 100%; justify-content: space-between; }
  .compare-head { align-items: stretch; }
  .detail-top { padding-bottom: 20px; }
}

@media (max-width: 767.98px) {
  .school-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 14px; }
  .sh-logo { width: 64px; height: 64px; }
  .sh-tools { position: absolute; top: 18px; right: 18px; }
  .sh-title h1 { font-size: 23px; }
  .sh-address { font-size: 14px; }
  .sh-dot { display: none; }
  .sh-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; }
  .sh-meta li:last-child { grid-column: 1 / -1; }
  .sh-meta i { width: 36px; height: 36px; font-size: 16px; }
  .sh-meta strong { font-size: 14px; }

  .detail-card { padding: 18px; border-radius: 14px; margin-bottom: 16px; }
  .detail-gallery { padding: 10px; }
  .detail-title { font-size: 20px; }
  .detail-subtitle { font-size: 17px; }
  .detail-gallery-main { aspect-ratio: 4 / 3; }
  .detail-gallery-main .g-nav { width: 34px; height: 34px; font-size: 13px; }
  .video-tour-thumb { width: 92px; }
  .video-tour-text strong { font-size: 15px; }
  .video-tour-text small { font-size: 12px; }
  .detail-tabs { border-radius: 12px; padding: 0 4px; margin-bottom: 16px; }
  .detail-tabs a { padding: 13px 10px; font-size: 14px; }
  .detail-tabs a::after { left: 10px; right: 10px; }

  .rating-summary { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .rs-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-head { align-items: flex-start; }
  .rc-head small { display: block; }
  .map-wrap { aspect-ratio: 4 / 3; }
  .ec-row { flex-direction: column; }
  .ec-row .form-control { max-width: none; }
  .facility-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .facility-item { padding: 14px 6px; }

  /* Compare on phones: labels move above values, table scrolls sideways */
  .compare-wrap { padding: 4px; border-radius: 14px; }
  .compare-table { width: calc(var(--slots, 2) * 165px); min-width: 100%; }
  .compare-table col.cmp-col-label { width: 0; }
  /* keep the label column in the grid (width 0) so school columns stay aligned */
  .cmp-label-head, .cmp-row th { position: static; width: 0; padding: 0 !important; border: 0; overflow: hidden; visibility: hidden; font-size: 0; white-space: nowrap; }
  .compare-table thead th { padding: 6px; }
  .cmp-card { padding: 16px 10px 12px; }
  .cmp-logo { width: 54px; height: 54px; }
  .cmp-card h3 { font-size: 14px; }
  .cmp-add { min-height: 230px; font-size: 14px; }
  .cmp-mlabel { display: table-row; }
  .cmp-mlabel th { padding: 12px 12px 2px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--ez-muted); background: #fff; }
  .cmp-mlabel th span { position: sticky; left: 12px; }
  .cmp-row > * { padding: 6px 10px 12px; font-size: 13px; }
  .cmp-section th { font-size: 15px; padding: 10px 12px; }
  .cmp-section th span { left: 12px; }
  .diff-switch { padding: 7px 12px; }
}

@media (max-width: 389.98px) {
  .ac-mini-btn { font-size: 12px; }
  .detail-title-row .btn-sm { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Account, auth, cart, apply & dashboard pages - responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .child-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .dash-panel { padding: 22px; }
  .auth-main { padding: 34px 32px; }
  .auth-aside { padding: 36px 30px; }
}

@media (max-width: 991.98px) {
  .user-name { display: none; }
  .auth-page { padding: 28px 0 44px; }
  .auth-shell, .auth-shell.auth-wide { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .auth-aside { min-height: 0; padding: 26px 26px 24px; background-position: center 18%; }
  .auth-aside h2 { font-size: 22px; margin-bottom: 12px; }
  .auth-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .auth-points li { font-size: 14px; }
  .app-top h1 { font-size: 28px; }
  .summary-card { position: static; }
  .stepper li { font-size: 12px; }

  /* dashboard: sidebar hidden on mobile (navigation handled cleanly via mobile hamburger menu) */
  .dash-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-side, #sdashNav, #dashNav { display: none !important; }
  .wish-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
  .auth-page { padding: 0 0 36px; background: #fff; }
  .auth-page .container { padding-left: 0; padding-right: 0; }
  .auth-shell, .auth-shell.auth-wide { border-radius: 0; box-shadow: none; max-width: none; }
  .auth-aside { display: none; }
  .auth-main { padding: 26px 20px 8px; }
  .auth-title { font-size: 24px; }
  .otp-inputs { gap: 8px; }
  .otp-inputs input { height: 50px; font-size: 20px; }

  .app-top { padding: 16px 0 20px; }
  .app-top h1 { font-size: 24px; }
  .panel-card { padding: 18px 16px; border-radius: 14px; }

  /* cart */
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .ci-logo { width: 52px; height: 52px; }
  .ci-body { flex-basis: calc(100% - 66px); }
  .ci-fee { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; padding-top: 10px; border-top: 1px dashed var(--ez-border); }
  .ci-fee strong { font-size: 17px; }
  .ci-remove { margin-top: 0; }
  .ci-fee .ci-price { display: block; }

  /* apply */
  .stepper { display: none; }
  .step-progress { display: block; margin-bottom: 18px; }
  .step-progress .sp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--ez-muted); }
  .step-progress .sp-top strong { color: var(--ez-dark); font-size: 16px; }
  .step-progress .sp-bar { height: 6px; background: #E6E8EE; border-radius: 6px; overflow: hidden; }
  .step-progress .sp-bar span { display: block; height: 100%; background: var(--ez-primary); border-radius: 6px; transition: width .3s ease; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .step-actions { position: sticky; bottom: 0; background: #fff; margin: 22px -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 14px 14px; box-shadow: 0 -6px 18px rgba(13, 27, 62, .06); z-index: 5; }
  .step-actions .right { width: 100%; margin-left: 0; }
  .step-actions .right .btn, .step-actions > .btn { flex: 1; }
  .step-actions > .btn-link-back { flex: 1 1 100%; }
  .sp-fee { display: none; }
  .pay-table thead { display: none; }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table td, .pay-table tfoot { display: block; width: 100%; }
  .pay-table tr { padding: 10px 0; border-bottom: 1px solid var(--ez-border); }
  .pay-table td { border: 0; padding: 2px 0; text-align: left !important; }
  .pay-table td[data-label]::before { content: attr(data-label) ': '; color: var(--ez-muted); font-size: 12.5px; }
  .pay-table tfoot tr { border: 0; }

  /* status */
  .status-card { padding: 28px 18px; border-radius: 16px; }
  .status-card h1 { font-size: 24px; }
  .status-actions .btn { flex: 1 1 100%; }

  /* dashboard */
  .dash-top { padding: 16px 0; }
  .dash-top h1 { font-size: 22px; }
  .dash-wrap { padding: 16px 0 12px; }
  .dash-panel { padding: 18px 16px; border-radius: 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-grid .stat-card:last-child { grid-column: 1 / -1; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 22px; }
  .quick-actions { grid-template-columns: minmax(0, 1fr); }
  .wish-grid, .child-grid, .credit-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-actions { width: 100%; }
  .dp-actions .btn { flex: 1; }
  .app-card { padding: 14px; }
  .app-card-actions .btn { flex: 1 1 calc(50% - 5px); text-align: center; }
  .tracker li { font-size: 10.5px; }
  .cb-card { padding: 14px; }

  /* table -> cards */
  .txn-wrap { border: 0; overflow: visible; }
  .txn-table { min-width: 0; }
  .txn-table thead { display: none; }
  .txn-table, .txn-table tbody, .txn-table tr, .txn-table td { display: block; width: 100%; }
  .txn-table tr { border: 1px solid var(--ez-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
  .txn-table td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: right; }
  .txn-table td::before { content: attr(data-label); color: var(--ez-muted); font-size: 12.5px; text-align: left; flex-shrink: 0; }
  .txn-table td small { text-align: right; }

  .modal-body { padding: 16px 18px 22px; }
  .modal-header { padding: 20px 18px 0; }
  #childModal .modal-footer { padding: 12px 18px; }
  .ez-modal-form .modal-footer { padding: 0 18px 20px; }
  .pay-head { padding: 18px; }
}

@media (max-width: 575.98px) {
  .auth-points { grid-template-columns: minmax(0, 1fr); }
  .role-switch a, .role-switch button { font-size: 14.5px; padding: 10px 6px; }
  .auth-tabs { gap: 16px; }
  .pay-methods { gap: 8px; }
  .co-class { display: none; }
  .child-option { padding: 11px 12px; }
  .ci-meta { gap: 2px 12px; }
  .review-grid dt { font-size: 11.5px; }
  .stat-card .sc-icon { width: 34px; height: 34px; font-size: 16px; }
  .cr-btns { grid-template-columns: minmax(0, 1fr); }
  .tracker li { font-size: 10px; }
  .dash-nav a { padding: 9px 12px; gap: 8px; }
  .dash-nav a i { display: none; }
}

@media (max-width: 389.98px) {
  .otp-inputs input { height: 46px; font-size: 18px; }
  .otp-inputs { gap: 6px; }
  .auth-main { padding: 22px 16px 6px; }
  .wish-actions { grid-template-columns: minmax(0, 1fr); }
  .tracker li { font-size: 9.5px; }
}

@media (max-width: 575.98px) {
  .app-card-top { flex-wrap: wrap; }
  .app-card-top .ac-info { flex: 1 1 calc(100% - 66px); }
  .app-card-top .st-badge { margin-left: 64px; }
}

@media (max-width: 767.98px) {
  .svc-hero { padding: 26px 16px; }
  .age-tools { grid-template-columns: minmax(0, 1fr); }
  .opt-card { width: calc(50% - 7px); }
  .tag-row { flex-direction: column; }
  .rec-item { flex-wrap: wrap; }
  .rec-item .ma-info { flex-basis: calc(100% - 56px); }
  .age-table td[data-label="Select"] { justify-content: flex-start; gap: 14px; }
  .age-table td[data-label="Select"]::before { display: none; }
  .credit-remain { font-size: 13px; }
  .dp-head .credit-remain { width: 100%; justify-content: flex-end; }
}
@media (max-width: 389.98px) { .opt-card { width: 100%; } .chk-grid { grid-template-columns: minmax(0, 1fr); } }


/* ==========================================================================
   School Partner Dashboard
   ========================================================================== */
@media (max-width: 1199.98px) {
  .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .sd-two { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sd-blocks { grid-template-columns: minmax(0, 1fr); }
  .sd-media-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sd-cover-box { aspect-ratio: 16 / 7; }
  .sd-map { aspect-ratio: 16 / 9; }
  .sd-top-row { align-items: flex-start; }
}

@media (max-width: 767.98px) {
  .sd-stats { gap: 10px; }
  .sd-stats .stat-card { padding: 14px; }
  .sd-stats .stat-card strong { font-size: 22px; }
  .sd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sd-docs { grid-template-columns: minmax(0, 1fr); }
  .sd-top-meta { width: 100%; justify-content: space-between; }
  .sd-save-bar .btn { flex: 1 1 100%; justify-content: center; }
  .sd-field-row { flex-wrap: wrap; }
  .sd-field-row .row-acts { width: 100%; justify-content: flex-start; padding-left: 30px; }
  .sd-logo-box { width: 110px; height: 110px; }
  .sd-preview { padding: 14px; }
  .panel-card { padding: 18px 16px; }
  .sd-ym .form-control { width: 54px; }
}

@media (max-width: 575.98px) {
  .sd-stats { grid-template-columns: minmax(0, 1fr); }
  .sd-gallery { grid-template-columns: minmax(0, 1fr); }
  .sd-top-meta .btn { flex: 1; justify-content: center; }
}


/* ==========================================================================
   FAQs / Terms / Privacy
   ========================================================================== */
@media (max-width: 991.98px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .legal-toc { position: static; max-height: none; overflow: visible; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { background: var(--ez-gray); font-size: 13.5px; padding: 6px 12px; border-radius: 20px; }
  .legal-body { padding: 26px 24px; }
  .legal-head h1 { font-size: 32px; }
}

@media (max-width: 767.98px) {
  .legal-top { padding-bottom: 26px; }
  .legal-head h1 { font-size: 26px; }
  .legal-head > p { font-size: 15px; }
  .faq-search input { height: 48px; font-size: 14.5px; }
  .faq-cats { gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 6px; scrollbar-width: none; }
  .faq-cats::-webkit-scrollbar { display: none; }
  .faq-cat { flex-shrink: 0; padding: 9px 14px; font-size: 13.5px; }
  .faq-group-title { font-size: 18px; }
  .faq-item .accordion-button { font-size: 15px; padding: 15px 16px; }
  .faq-item .accordion-body { padding: 2px 16px 16px; font-size: 14.5px; }
  .legal-body { padding: 20px 18px; border-radius: 14px; }
  .legal-sec h2 { font-size: 18px; }
  .legal-sec p, .legal-sec li { font-size: 15px; }
  .legal-fill { white-space: normal; }
}
