/* ============================================================
   Ariemedi English Website — Shared Stylesheet
   Design: Medical-tech corporate (deep navy + cyan accent)
   ============================================================ */
:root {
  --navy: #0b1e3c;
  --navy-2: #12294f;
  --cyan: #00a9ce;
  --cyan-dark: #0085a8;
  --cyan-light: #e6f7fb;
  --ink: #1a2433;
  --text: #3d4a5c;
  --text-dim: #6b7a8f;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e3eaf2;
  --shadow: 0 8px 30px rgba(11, 30, 60, 0.08);
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .hotline strong { color: #fff; font-weight: 600; letter-spacing: .3px; }
.topbar .lang-switch { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.topbar .lang-switch a {
  padding: 3px 14px; font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.8); transition: all .25s;
}
.topbar .lang-switch a.active { background: var(--cyan); color: #fff; }
.topbar .lang-switch a:not(.active):hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.brand-logo { height: 42px; width: auto; }
.brand .brand-text { line-height: 1.2; }
.brand .brand-text b { display: block; color: var(--navy); font-size: 18px; letter-spacing: .5px; }
.brand .brand-text span { display: block; color: var(--text-dim); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 26px 16px; color: var(--ink);
  font-size: 15px; font-weight: 500; transition: color .25s;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--cyan); }
.nav-menu > li > a .caret { font-size: 10px; margin-left: 4px; color: var(--text-dim); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transition: all .25s;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; color: var(--text); transition: all .2s;
}
.dropdown a:hover { background: var(--cyan-light); color: var(--cyan-dark); }
.nav-cta {
  background: var(--cyan); color: #fff !important; padding: 10px 22px !important;
  border-radius: 6px; font-weight: 600; margin-left: 10px; transition: all .25s;
}
.nav-cta:hover { background: var(--cyan-dark); box-shadow: 0 6px 18px rgba(0,169,206,.35); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero / Page banner ---------- */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero::before { content: none; }
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero-kicker {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 22px; color: #fff; background: rgba(0,0,0,.25); text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 700; max-width: 720px; margin-bottom: 34px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero h1 em { font-style: normal; color: #4fd4f2; }
.hero p.lead { font-size: 17.5px; max-width: 640px; color: #fff; font-weight: 300; margin-bottom: 34px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,169,206,.4); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--cyan-dark); border: 1.5px solid var(--cyan); }
.btn-outline:hover { background: var(--cyan-light); }

.page-banner {
  position: relative; padding: 90px 0 70px; color: #fff;
  background-size: cover; background-position: center;
}
.page-banner::before { content: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 38px; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-banner .crumb { font-size: 14px; color: rgba(255,255,255,.9); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.page-banner .crumb a:hover { color: #4fd4f2; }
.page-banner .banner-sub { margin-top: 14px; max-width: 100%; color: #fff; font-size: 16px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-tag {
  display: inline-block; padding: 5px 16px; background: var(--cyan-light);
  color: var(--cyan-dark); border-radius: 20px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 { font-size: 34px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Stats ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-size: 46px; font-weight: 700; color: #4fd4f2; line-height: 1.1; }
.stat .num small { font-size: 26px; }
.stat .label { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 15px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,169,206,.4); }
.card .card-img { height: 210px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden; }
.card .card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card .card-img.cover { padding: 0; }
.card .card-img.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card .card-body h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.card .card-body .sub { color: var(--cyan-dark); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.card .card-body p { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.card .card-link { margin-top: 18px; color: var(--cyan-dark); font-weight: 600; font-size: 14px; }
.card .card-link:hover { color: var(--cyan); }

/* ---------- Application Scenarios (Product Detail) ---------- */
.app-scenario-v2 {
  display: flex; align-items: stretch; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); background: #fff;
}
.app-scenario-v2 .app-text {
  flex: 0 0 38%; padding: 36px 30px; display: flex; flex-direction: column;
  justify-content: center; background: #f7fafc;
}
.app-scenario-v2 .app-num {
  font-size: 52px; font-weight: 700; color: var(--cyan); line-height: 1; margin-bottom: 14px; opacity: .85;
}
.app-scenario-v2 .app-text h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.app-scenario-v2 .app-img {
  flex: 1; min-height: 300px; overflow: hidden; position: relative;
}
.app-scenario-v2 .app-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.app-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); background: var(--bg-soft); font-size: 14px;
}
@media (max-width: 768px) {
  .app-scenario-v2 { flex-direction: column; }
  .app-scenario-v2 .app-text { flex: none; }
  .app-scenario-v2 .app-img { min-height: 220px; }
}

/* ---------- Category blocks (products/solutions) ---------- */
.cat-block { padding: 70px 0; border-bottom: 1px solid var(--border); }
.cat-block:last-child { border-bottom: none; }
.cat-block:nth-child(even) { background: var(--bg-soft); }
.cat-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-head h2 { font-size: 28px; color: var(--navy); }
.cat-head .en-label { color: var(--cyan-dark); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.cat-desc { max-width: 760px; color: var(--text-dim); margin-bottom: 40px; font-size: 15.5px; }

/* ---------- News list ---------- */
.news-layout { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start; }
.news-side { position: sticky; top: 120px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-side a { display: block; padding: 16px 22px; font-size: 15px; font-weight: 500; color: var(--text); border-left: 3px solid transparent; transition: all .2s; }
.news-side a:hover { background: var(--cyan-light); }
.news-side a.active { color: var(--cyan-dark); border-left-color: var(--cyan); background: var(--cyan-light); }
.news-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 22px; transition: all .3s;
}
.news-item:hover { box-shadow: var(--shadow); border-color: rgba(0,169,206,.4); }
.news-item .news-date { font-size: 13px; color: var(--cyan-dark); font-weight: 600; letter-spacing: .5px; }
.news-item h3 { font-size: 18px; color: var(--navy); margin: 6px 0 8px; line-height: 1.4; }
.news-item p { font-size: 14px; color: var(--text-dim); }
.news-thumb { border-radius: 10px; overflow: hidden; background: var(--bg-soft); color: var(--text-dim); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 14px; font-weight: 600; line-height: 1.4; width: 200px; height: 140px; flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.news-thumb:has(img) { padding: 0; }

/* ---------- Timeline (Milestones) ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(to bottom, var(--cyan) 0%, var(--border) 100%);
}
.tl-item {
  position: relative; padding: 0 0 28px 28px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-light);
  transition: transform .25s, box-shadow .25s;
}
.tl-item:hover::before {
  transform: scale(1.2); box-shadow: 0 0 0 6px var(--cyan-light);
}
.tl-item .tl-year {
  font-size: 22px; font-weight: 700; color: var(--navy);
  display: inline-block; padding: 2px 14px; border-radius: 8px;
  background: var(--cyan-light); margin-bottom: 8px;
}
.tl-item ul { margin-top: 4px; }
.tl-item li {
  font-size: 14.5px; color: var(--text); padding: 4px 0 4px 18px; position: relative;
  line-height: 1.55;
}
.tl-item li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 2px;
  background: var(--cyan); border-radius: 1px;
}
.tl-item li:hover { color: var(--cyan-dark); }

/* Mobile: single column timeline */
@media (max-width: 768px) {
  #milestones-render.two-col { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ---------- Honors wall ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.honor-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; font-size: 14.5px; color: var(--ink); display: flex;
  align-items: center; gap: 12px; transition: all .25s;
}
.honor-item:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.honor-item .medal { color: var(--cyan); font-size: 20px; flex-shrink: 0; }
.honor-item .yr { color: var(--text-dim); font-size: 12.5px; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col .media-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; transition: all .3s; }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.contact-card .c-sub { color: var(--cyan-dark); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.contact-card .c-row { display: flex; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.contact-card .c-row .ic { color: var(--cyan); width: 20px; flex-shrink: 0; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; color: #fff; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .25s;
}
.social-btn:hover { opacity: .85; transform: translateY(-2px); }
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-field label .req { color: #e11d48; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--cyan); background: #fff; }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; font-weight: 600; }
.footer-grid ul li { padding: 5px 0; font-size: 14px; }
.footer-grid ul li a:hover { color: #4fd4f2; }
.footer-contact li { display: flex; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { padding: 6px 16px; background: var(--cyan-light); color: var(--cyan-dark); border-radius: 20px; font-size: 13px; font-weight: 500; }
.anchor-offset { scroll-margin-top: 110px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; display: flex; }
  .news-side a { flex: 1; text-align: center; border-left: none; border-bottom: 3px solid transparent; }
  .news-side a.active { border-bottom-color: var(--cyan); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 20px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-thumb { width: 100%; height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 28px; }
  .page-banner h1 { font-size: 28px; }
}

/* ---------- News article ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 64px 24px 80px; }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 36px; }
.article-cat { display: inline-block; padding: 4px 14px; background: var(--cyan-light); color: var(--cyan-dark); border-radius: 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.article-head h1 { font-size: 30px; color: var(--navy); line-height: 1.35; margin-bottom: 14px; }
.article-meta { color: var(--text-dim); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.article-body { font-size: 16px; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 22px; color: var(--navy); margin: 38px 0 16px; padding-left: 14px; border-left: 4px solid var(--cyan); }
.article-body h3 { font-size: 18px; color: var(--navy); margin: 28px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body .callout { background: var(--cyan-light); border-left: 4px solid var(--cyan); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 22px 0; }
.article-body .callout p { margin-bottom: 8px; }
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body .data-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.article-body .data-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; }
.article-body .data-table td { border: 1px solid var(--border); padding: 9px 14px; }
.article-body .data-table tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- Custom product table ---------- */
.custom-table-wrap { margin-top: 32px; overflow-x: auto; }
.custom-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.custom-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; border: 1px solid var(--navy); }
.custom-table td { border: 1px solid var(--border); padding: 10px 16px; vertical-align: middle; }
.custom-table tr:nth-child(even) { background: #fafcfe; }
.custom-table img { height: auto; object-fit: contain; }
.article-body .src-note { font-size: 13.5px; color: var(--text-dim); font-style: italic; margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--border); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-nav a { color: var(--cyan-dark); font-weight: 600; font-size: 14.5px; max-width: 45%; }
.article-nav a:hover { color: var(--cyan); }
.article-nav .back { color: var(--text-dim); }
@media (max-width: 640px) {
  .article-head h1 { font-size: 23px; }
  .article-nav a { max-width: 100%; }
}

/* ============================================================
   Mobile responsiveness — comprehensive breakpoints
   Placed at end of stylesheet so these take precedence on
   small screens (same-specificity rules resolve by source order).
   ============================================================ */

/* ===== Tablet & mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Spacing */
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .stats-band { padding: 44px 0; }
  .page-banner { padding: 60px 0 44px; }
  .cat-block { padding: 48px 0; }

  /* Navigation: hamburger dropdown menu */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 8px 18px 22px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .nav-menu > li:last-child > a { border-bottom: none; }
  /* Dropdown sub-menus expand inline (static, always visible) */
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; min-width: 0; padding: 2px 0 6px 16px;
  }
  .nav-cta { margin: 12px 0 0; text-align: center; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 26px; line-height: 1.25; margin-bottom: 22px; }
  .hero-left h1 { margin-left: 0 !important; max-width: 100% !important; }
  .hero p.lead { font-size: 15px; margin-bottom: 22px; }
  .hero-kicker { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }

  /* Page banner & headings */
  .page-banner h1 { font-size: 26px; }
  .page-banner .banner-sub { font-size: 14.5px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }
  .cat-head h2 { font-size: 22px; }

  /* Stats — 2 columns on tablet/mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat .num { font-size: 36px; }
  .stat .num small { font-size: 20px; }
  .stat .label { font-size: 13px; }

  /* Card grids → 1 column */
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .card .card-img { height: 180px; }
  .card .card-body { padding: 20px; }
  .card .card-body h3 { font-size: 17px; }

  /* Two column → 1 column */
  .two-col { grid-template-columns: 1fr; gap: 30px; }

  /* Contact → 1 column (overrides inline 2-col grid on .contact-card) */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr !important; gap: 24px !important; padding: 24px; }
  .contact-card > div[style*="border-left"] {
    border-left: none !important; border-top: 2px solid var(--cyan) !important;
    padding-left: 0 !important; padding-top: 22px; margin-top: 4px;
  }

  /* Forms → 1 column */
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-box { padding: 24px; }

  /* News → 1 column, sidebar stacked above content */
  .news-layout { grid-template-columns: 1fr; gap: 22px; }
  .news-side { position: static; }
  .news-item { grid-template-columns: 1fr; gap: 16px; }
  .news-thumb { width: 100%; height: 160px; }

  /* Honors → 1 column */
  .honor-grid { grid-template-columns: 1fr; }

  /* Footer → 1 column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer.site-footer { padding-top: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Article */
  .article-wrap { padding: 40px 18px 56px; }
  .article-head h1 { font-size: 24px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 19px; }

  /* Spec table — horizontally scrollable */
  .spec-table { display: block; width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Product nav — ensure horizontal scroll with momentum */
  .product-nav { -webkit-overflow-scrolling: touch; }
  .product-nav .container { -webkit-overflow-scrolling: touch; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 14px; }
  .hero .btn-row { gap: 12px; }
}

/* ===== Small mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* Spacing */
  .container { padding: 0 15px; }
  .section { padding: 40px 0; }
  .stats-band { padding: 36px 0; }
  .page-banner { padding: 52px 0 36px; }
  .cat-block { padding: 40px 0; }

  /* Compact header */
  .navbar { height: 64px; }
  .nav-menu { top: 64px; max-height: calc(100vh - 64px); }
  .brand img.brand-logo { height: 34px; }
  .brand .brand-text b { font-size: 16px; }
  .brand .brand-text span { font-size: 9px; }

  /* Hero */
  .hero { min-height: 440px; }
  .hero h1 { font-size: 22px; margin-bottom: 18px; }
  .hero p.lead { font-size: 14px; margin-bottom: 18px; }

  /* Headings */
  .page-banner h1 { font-size: 22px; }
  .section-head h2 { font-size: 21px; }
  .cat-head h2 { font-size: 20px; }

  /* Stats → 1 column */
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat .num { font-size: 32px; }

  /* Cards */
  .card .card-img { height: 160px; padding: 14px; }
  .card .card-body { padding: 18px; }
  .card .card-body h3 { font-size: 16px; }

  /* Forms & contact padding */
  .form-box { padding: 18px; }
  .contact-card { padding: 18px; }
  .form-field input, .form-field textarea, .form-field select { padding: 11px 13px; font-size: 14px; }

  /* Article */
  .article-head h1 { font-size: 20px; }
  .article-body h2 { font-size: 17px; }

  /* Full-width stacked buttons */
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row { flex-direction: column; }

  .footer-bottom { font-size: 11.5px; }
}
