/** Desktop UI enhancement v5 - only affects >=1280px screens. Mobile/tablet untouched. */

@media (min-width: 1280px) { :root { --ui-wrap: 1240px; --ui-gutter: 32px; } }
@media (min-width: 1600px) { :root { --ui-wrap: 1320px; --ui-gutter: 40px; } }
@media (min-width: 1680px) { :root { --ui-wrap: 1440px; --ui-gutter: 48px; } }

/* 1) wider layout, one shared grid so header / hero / content / footer align */
@media (min-width: 1280px) {
  .content-wrap { width: min(var(--ui-wrap), calc(100% - 64px)); padding-top: 56px; padding-bottom: 76px; }
  .site-header { padding: 0 max(var(--ui-gutter), calc((100% - var(--ui-wrap)) / 2)); }
  .site-footer { padding: 40px max(var(--ui-gutter), calc((100% - var(--ui-wrap)) / 2)); }
  .hero { padding-left: max(96px, calc((100% - var(--ui-wrap)) / 2)); padding-right: max(96px, calc((100% - var(--ui-wrap)) / 2)); }
  .page-hero { padding: 64px max(var(--ui-gutter), calc((100% - var(--ui-wrap)) / 2)); }
  .archive-header { padding: 0 max(var(--ui-gutter), calc((100% - var(--ui-wrap)) / 2)); }
  .auth-page { width: min(1120px, calc(100% - 64px)); }
}

/* 2) comfortable reading size on desktop */
@media (min-width: 1280px) {
  .content-wrap p, .site-footer p, .news-list p, .program-list span, .feature-grid p { font-size: 15px; }
  .news-list strong { font-size: 19px; }
  .program-list b { font-size: 16px; }
  .page-hero p { font-size: 16px; }
}

/* 3) section headers: label above title, aligned with the cards below */
@media (min-width: 1280px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .section-head h2 { margin: 0 0 20px; }
  .section-head h1 { margin: 2px 0 14px; }
}

/* 4) card interactions */
@media (min-width: 921px) {
  .news-list a, .program-list a, .quick-grid a, .program-card, .info-card, .panel, .training-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .news-list a:hover, .program-list a:hover, .quick-grid a:hover,
  .program-card:hover, .info-card:hover, .training-card:hover {
    transform: translateY(-2px);
    border-color: #c3d5e8;
    box-shadow: 0 10px 26px rgba(18, 60, 105, .10);
  }
}

/* 5) auth/login: vertically balance the two panels */
@media (min-width: 921px) {
  .auth-page { align-items: stretch; }
  .auth-side { display: flex; flex-direction: column; justify-content: center; }
  .auth-card { display: flex; flex-direction: column; justify-content: center; }
}

/* 6) hero side panel needs room on mid-size desktops */
@media (min-width: 1280px) and (max-width: 1599px) {
  .hero { grid-template-columns: 1.12fr .88fr; gap: 36px; }
}

/* 7) small polish */
@media (min-width: 921px) {
  html { scroll-behavior: smooth; }
  ::selection { background: #174f8a; color: #fff; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #2f6fb3; outline-offset: 2px; }
  .site-header nav a { transition: color .15s ease; }
  html { scrollbar-width: thin; scrollbar-color: #c2d0df #eef2f7; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #c2d0df; border-radius: 6px; }
  ::-webkit-scrollbar-thumb:hover { background: #a8bacd; }
  ::-webkit-scrollbar-track { background: #eef2f7; }
}
