/* ============================================================
   ChipMart — tech-blue responsive stylesheet
   ============================================================ */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #00b0ff;
  --navy: #0a2540;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7c93;
  --border: #e1e8f0;
  --success: #2e7d32;
  --danger: #c62828;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(13, 71, 161, 0.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
.section { padding: 54px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 28px; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 6px;
  padding: 10px 20px; font-size: 14px; cursor: pointer; font-weight: 600;
  transition: .15s background, .15s box-shadow; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-cta { background: var(--accent); color: #00263a; }
.btn-cta:hover { background: #0091ea; color: #00263a; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo { height: 34px; width: auto; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: .5px; color: #fff; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #d7e3f4; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- hero / banner carousel ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); }
.carousel { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 480px; object-fit: cover; }
.slide-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, rgba(10,37,64,.82), rgba(13,71,161,.5));
  color: #fff; padding: 0 10%;
}
.slide-caption h2 { color: #fff; font-size: 42px; margin: 0 0 14px; text-shadow: 0 2px 14px rgba(0,0,0,.35); max-width: 760px; }
.slide-caption a { margin-top: 18px; }
.carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.carousel-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer;
}
.carousel-dots button.active { background: var(--accent); }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(10,37,64,.4); color: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; font-size: 22px; cursor: pointer;
}
.carousel-arrow.prev { left: 14px; } .carousel-arrow.next { right: 14px; }

/* ---------- category nav grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: .15s transform, .15s border-color;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.cat-card .ico { font-size: 30px; color: var(--primary); height: 56px; display: flex; align-items: center; justify-content: center; }
.cat-card .ico img { width: 52px; height: 52px; object-fit: contain; }
.cat-card h4 { margin: 10px 0 6px; color: var(--navy); font-size: 16px; }
.cat-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .15s transform;
  min-width: 0; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); }
.product-thumb {
  aspect-ratio: 1 / 1; width: 100%; border-radius: 8px; background: linear-gradient(135deg,#e8f1fb,#d4e6fa);
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 13px;
  margin-bottom: 12px; overflow: hidden; padding: 10px; word-break: break-word; text-align: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pn { font-weight: 700; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }
.product-card .brand { color: var(--muted); font-size: 13px; }
.product-card .pkg { display: inline-block; background: #eef4fb; color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 20px; margin: 6px 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.product-card .desc { color: var(--muted); font-size: 13px; flex: 1; overflow-wrap: anywhere; }
.product-card .stock { color: var(--success); font-size: 12px; margin: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .actions { margin-top: 10px; display: flex; gap: 8px; }
.product-card .actions .btn { flex: 1; padding: 8px; font-size: 13px; }

/* ---------- brand showcase ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.brand-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  height: 84px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow); text-align: center; padding: 10px; font-size: 14px;
}
.brand-card img { max-width: 120px; max-height: 46px; object-fit: contain; }
.brand-card span { padding: 0 6px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-card .thumb { height: 160px; background: linear-gradient(135deg,var(--primary),var(--accent)); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { padding: 16px; }
.news-card .date { color: var(--muted); font-size: 12px; }
.news-card h4 { font-size: 16px; margin: 6px 0; }
.news-card p { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* ---------- layout: catalog page ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sidebar h4 { font-size: 15px; margin: 0 0 12px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.filter-group select, .filter-group input[type=text] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff;
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.cat-list li a:hover, .cat-list li a.active { background: #eef4fb; color: var(--primary); }
.cat-list li ul { padding-left: 14px; list-style: none; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.search-box { display: flex; gap: 8px; }
.search-box input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; min-width: 240px; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.detail .gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.detail .gallery .main-img { height: 280px; background: linear-gradient(135deg,#e8f1fb,#d4e6fa); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; }
.detail-info h1 { font-size: 24px; }
.detail-info .meta { color: var(--muted); margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.spec-table td { padding: 9px 12px; border: 1px solid var(--border); font-size: 14px; }
.spec-table td:first-child { background: #f6f9fd; color: var(--navy); font-weight: 600; width: 38%; }
.detail-actions { margin: 20px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }

/* ---------- forms / contact / bom ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit;
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 12px; font-size: 14px; }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--danger); }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #b7dfb9; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f3b9b5; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; padding: 26px; position: relative; max-height: 92vh; overflow: auto; }
.modal h3 { margin-top: 0; }
.modal-sub { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }

/* ---------- pages: about / contact info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-box h4 { color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cdd9e8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.15fr; gap: 28px; padding: 44px 0 28px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #b7c6da; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 4px 0; font-size: 14px; }
.social a { display: inline-block; margin-right: 14px; color: var(--accent); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #8ba0bd; }
.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: 12px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.footer-brand .footer-brand-name { font-size: 22px; font-weight: 700; color: #fff; display: inline-block; margin-bottom: 12px; }
.footer-qr img { width: 110px; height: 110px; background: #fff; padding: 6px; border-radius: 8px; }
.footer-qr span { display: block; font-size: 12px; color: #8ba0bd; margin-top: 6px; text-align: center; }

/* ---------- product detail image ---------- */
.detail .gallery .main-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- about page ---------- */
.about-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; padding: 0; }
.about-hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.about-hero-text h1 { color: #fff; font-size: 38px; margin: 0 0 16px; }
.about-hero-text .lead { font-size: 17px; color: #cdd9e8; margin: 0 0 24px; line-height: 1.7; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.about-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-hero-stats .stat { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 18px; text-align: center; }
.about-hero-stats .stat b { display: block; font-size: 30px; color: #fff; }
.about-hero-stats .stat span { font-size: 13px; color: #b7c6da; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 22px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .15s transform; }
.about-card:hover { transform: translateY(-4px); }
.about-card .about-ico { font-size: 34px; margin-bottom: 12px; }
.about-card h4 { color: var(--primary); margin: 0 0 8px; }
.about-card p { color: var(--muted); margin: 0; font-size: 14px; }
.about-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-story-text h2 { margin-top: 0; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { padding: 12px 0 12px 32px; position: relative; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; }
.about-list li::before { content: '✔'; position: absolute; left: 0; top: 12px; color: var(--success); font-weight: 700; }
.about-cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 50px 0; }

/* ---------- BOM inquiry page ---------- */
.bom-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; }
.bom-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.bom-hero h1 { color: #fff; font-size: 40px; margin: 0 0 16px; }
.bom-hero .lead { font-size: 17px; color: #cdd9e8; line-height: 1.7; margin: 0 0 24px; }
.bom-hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.bom-hero-points li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #e7eef8; }
.bom-hero-points b { color: #fff; font-size: 20px; display: block; }
.bom-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bom-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.bom-step-no { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.bom-step h4 { margin: 0 0 8px; }
.bom-step p { color: var(--muted); font-size: 14px; margin: 0; }
.bom-drop .badge-file { display: inline-block; font-size: 12px; background: #eef4fb; color: var(--primary); padding: 2px 8px; border-radius: 20px; margin-left: 6px; font-weight: 600; }
.file-drop { border: 2px dashed var(--border); border-radius: 10px; padding: 8px; background: #fafcff; }
.file-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; cursor: pointer; color: var(--muted); }
.file-drop-label:hover { color: var(--primary); }
.file-drop-icon { font-size: 26px; color: var(--primary); }
.file-drop-text { font-size: 14px; }
.file-drop-name { font-size: 13px; color: var(--primary); font-weight: 600; }
.bom-privacy { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- RFQ two-column layout ---------- */
.rfq-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.rfq-form { max-width: none; margin: 0; }
.rfq-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; }
.rfq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.rfq-card h3 { margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.rfq-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rfq-reasons li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #2b3a4d; line-height: 1.5; }
.rfq-reasons .ck { color: var(--success); font-weight: 700; flex: 0 0 auto; }
.rfq-contact { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); border: 0; color: #e7eef8; }
.rfq-contact h3 { color: #fff; }
.rfq-contact-lead { font-size: 14px; margin: 0 0 12px; color: #cdd9e8; }
.rfq-line { font-size: 14px; margin: 8px 0; color: #e7eef8; }
.rfq-line a { color: #fff; text-decoration: underline; }
.bom-hero-kicker { display: inline-block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bom-hero-inner { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .bom-steps { grid-template-columns: 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .rfq-aside { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  body.nav-open .main-nav { max-height: 420px; }
  .main-nav a { padding: 12px 18px; color: #d7e3f4; }
  .slide img { height: 240px; }
  .slide-caption h2 { font-size: 20px; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .about-hero-inner { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .about-hero-text h1 { font-size: 28px; }
  .about-story { grid-template-columns: 1fr; }
}

/* ---------- compact pagination ---------- */
.pagination { flex-wrap: wrap; align-items: center; }
.pagination .pg-info { padding: 8px 13px; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--navy); font-size: 13px; }
.pagination .pg-disabled { padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; background: #f5f7fa; color: #a9b4c2; cursor: default; }
.pagination .pg-dots { padding: 8px 4px; color: var(--muted); }

/* ---------- clickable product thumbnail ---------- */
.product-thumb { text-decoration: none; color: inherit; cursor: pointer; }
.product-card .product-thumb:hover { opacity: .94; }

/* ---------- contact page ---------- */
.contact-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; }
.contact-hero-inner { padding: 56px 0; text-align: center; }
.contact-hero h1 { color: #fff; font-size: 38px; margin: 0 0 14px; }
.contact-hero p { color: #cdd9e8; font-size: 17px; max-width: 760px; margin: 0 auto; line-height: 1.7; }
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.contact-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.contact-list { list-style: none; margin: 14px 0 0; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 15px; }
.contact-list li b { color: var(--primary); }
.contact-map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg,#e8f1fb,#d4e6fa); height: 200px; display:flex; align-items:center; justify-content:center; color: var(--primary); font-size:14px; }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-facts { grid-template-columns: 1fr; }
}

/* ---------- footer redesign ---------- */
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--primary), #29a3e0, var(--primary)); }
.footer-grid { padding: 52px 0 36px; }
.footer-col h4 { position: relative; padding-bottom: 10px; margin-bottom: 16px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #b7c6da; font-size: 14px; display: inline-block; transition: .15s color, .15s padding-left; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.soc-chip { padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; color: #cdd9e8; font-size: 13px; transition: .15s; }
.soc-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-qr-box { display: flex; gap: 14px; align-items: center; margin-top: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px; max-width: 300px; }
.footer-qr-box img { width: 86px; height: 86px; border-radius: 8px; background: #fff; padding: 4px; }
.footer-qr-txt h5 { color: #fff; margin: 0 0 4px; font-size: 14px; }
.footer-qr-txt span { color: #9fb2c8; font-size: 12px; }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { display: flex; gap: 10px; margin-bottom: 10px; color: #b7c6da; font-size: 14px; line-height: 1.5; }
.footer-contact-list .f-ico { flex: 0 0 auto; }
.footer-contact-list a { color: #b7c6da; }
.footer-contact-list a:hover { color: #fff; }
.footer-cta { display: inline-block; margin-top: 14px; padding: 9px 18px; border-radius: 8px; background: var(--primary); color: #fff !important; font-size: 14px; font-weight: 600; transition: .15s; }
.footer-cta:hover { background: #1179c2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0; color: #9fb2c8; font-size: 13px; }
.footer-tag { color: #7f93ab; }

/* QR column alignment: box sits under the heading, flush left */
.footer-qr-col .footer-qr-box { margin-top: 0; }

/* ---------- dual QR codes ---------- */
.footer-qr-row { display: flex; gap: 10px; flex-wrap: nowrap; }
.footer-qr-item { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 8px; text-align: center; flex: 1 1 0; min-width: 0; }
.footer-qr-item img { width: 88px; height: 88px; max-width: 100%; border-radius: 8px; background: #fff; padding: 4px; display: block; margin: 0 auto; }
.footer-qr-item figcaption { margin-top: 6px; color: #9fb2c8; font-size: 12px; white-space: nowrap; }

@media (max-width: 900px) { .footer-qr-row { flex-wrap: wrap; } }

/* ---------- news grid: fixed 3 columns ---------- */
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
