/*
Theme Name: M-Tech Service
Theme URI: https://www.mtech.co.th/
Author: M-Tech Service Co., Ltd.
Description: เว็บไซต์โปรโมทบริษัทและบริการของ M-Tech Service (งานตัด เจาะ รื้อถอนคอนกรีต) — แปลงจาก static HTML เป็น WordPress theme แก้ไขเนื้อหาได้ผ่าน wp-admin รองรับ 2 ภาษา (ไทย/อังกฤษ)
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mtech
*/

:root {
  --blue: #1A4FD6;
  --blue-dark: #0F3199;
  --blue-light: #E8EFFD;
  --blue-mid: #3B6BE8;
  --white: #ffffff;
  --off-white: #F7F9FC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --font: 'Inter', 'Sarabun', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
#about, #projects, #contact { scroll-margin-top: 100px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); overflow-x: hidden; }
body.page-template-default,
body.page-template,
body.single { background: var(--off-white); padding-top: 120px; }
img { max-width: 100%; }

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 90px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1 1 0; min-width: 0; }
.nav-logo img, .nav-logo .custom-logo { height: 52px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text span:first-child { font-size: 22px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.nav-logo-text span:last-child { font-size: 11px; font-weight: 600; color: var(--gray-400); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; flex: 0 1 auto; justify-content: center; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 700;
  color: var(--gray-600); padding: 0 22px; height: 90px;
  display: flex; align-items: center; letter-spacing: 0.5px;
  text-transform: uppercase; transition: color 0.2s;
  border-bottom: 3px solid transparent; position: relative;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a { color: var(--blue); border-bottom-color: var(--blue); }
/* Thai: letter-spacing splits stacked combining marks (e.g. the double stack in "เกี่ยวกับ"),
   rendering them as dotted-circle boxes. Remove spacing for Thai nav text. */
html[lang="th"] .nav-links a { letter-spacing: normal; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: 1 1 0; justify-content: flex-end; }
.lang-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 4px; cursor: pointer;
  border: 2px solid var(--gray-200); background: var(--white); color: var(--gray-600);
  transition: all 0.2s; text-transform: uppercase;
}
.lang-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hamburger span { width: 24px; height: 2px; background: var(--gray-800); transition: all 0.3s; }

/* HERO */
#home {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gray-900);
  position: relative; overflow: hidden; padding-top: 90px;
}
.hero-video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  transform: translate(-50%, -50%); object-fit: cover; z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 58, 122, 0.75) 50%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 2;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(var(--blue) 1px, transparent 1px),
                    linear-gradient(90deg, var(--blue) 1px, transparent 1px);
  background-size: 60px 60px; z-index: 3;
}
.hero-accent {
  position: absolute; right: -200px; top: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,79,214,0.35) 0%, transparent 70%); z-index: 3;
}
.hero-accent2 {
  position: absolute; left: -100px; bottom: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,79,214,0.15) 0%, transparent 70%); z-index: 3;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 5; width: 100%; }
.hero-title { margin-top: 40px; font-size: clamp(42px, 6vw, 80px); font-weight: 900; line-height: 1.0; color: white; letter-spacing: -2px; margin-bottom: 28px; }
html[lang="th"] .hero-title { line-height: 1.3; letter-spacing: 0px; }
.hero-title .accent { color: var(--blue-mid); }
.hero-desc { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.65); max-width: 540px; line-height: 1.7; margin-bottom: 48px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: white; padding: 16px 36px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent; color: white; padding: 16px 36px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.3); cursor: pointer; text-decoration: none; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: white; }

/* SECTIONS */
section { padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--blue); }
.section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 900; color: var(--gray-900); letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 20px; }
.section-sub { font-size: 17px; color: var(--gray-600); line-height: 1.7; max-width: 580px; }

/* ABOUT */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; margin-top: 64px; }
.about-text p { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; text-align: justify; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.about-feature { padding: 20px 24px; border-left: 3px solid var(--blue); background: var(--off-white); }
.about-feature-title { font-size: 13px; font-weight: 700; color: var(--gray-900); letter-spacing: 0.5px; margin-bottom: 6px; }
.about-feature-text { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.about-visual { background: var(--gray-900); position: relative; height: 100%; overflow: hidden; }
.about-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about-visual-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.about-visual-logo { font-size: 96px; font-weight: 900; color: rgba(255,255,255,0.04); letter-spacing: -4px; user-select: none; }

/* PROJECTS */
#projects { background: var(--white); }
.projects-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin: 48px 0 40px; overflow-x: auto; }
.proj-tab { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gray-400); padding: 14px 28px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; background: none; border-left: 0; border-right: 0; border-top: 0; font-family: var(--font); }
.proj-tab:hover { color: var(--blue); }
.proj-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.proj-panel { display: none; }
.proj-panel.active { display: block; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.proj-card.extra-card { display: none; }
.proj-panel.show-extra .proj-card.extra-card { display: block; }
.show-more-wrap { text-align: center; margin-top: 32px; }
.show-more-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--gray-200); border-radius: 30px; padding: 12px 28px; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.show-more-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.show-more-btn .chevron { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; transition: transform 0.3s; }
.show-more-btn.expanded .chevron { transform: rotate(180deg); }
.proj-card { aspect-ratio: 4/3; position: relative; overflow: hidden; cursor: pointer; background: var(--gray-100); display: block; text-decoration: none; }
.proj-card-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#1A3A7A,#0a1a3a); background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 0.4s ease; }
.proj-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.proj-card-badge { position: relative; z-index: 1; text-align: center; }
.proj-card:hover .proj-card-bg { transform: scale(1.05); }
.proj-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.2) 60%, transparent 100%); }
.proj-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.proj-card-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
.proj-card-sub { font-size: 12px; color: rgba(255,255,255,0.75); }
.proj-card-bg .num { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,0.2); text-transform: uppercase; margin-bottom: 12px; }
.proj-card-bg .lbl { font-size: 28px; font-weight: 900; color: rgba(255,255,255,0.07); }

/* CONTACT */
#contact { background: var(--gray-900); }
#contact .section-eyebrow { color: var(--blue-mid); }
#contact .section-eyebrow::before { background: var(--blue-mid); }
#contact .section-title { color: white; }
#contact .section-sub { color: rgba(255,255,255,0.5); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 64px; }
.contact-info-item { display: flex; gap: 20px; margin-bottom: 36px; }
.contact-info-icon { width: 48px; height: 48px; background: rgba(26,79,214,0.2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-info-icon svg { width: 22px; height: 22px; stroke: var(--blue-mid); fill: none; stroke-width: 2; }
.contact-info-label { font-size: 11px; font-weight: 700; color: var(--blue-mid); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.contact-info-text { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.contact-info-text a { color: rgba(255,255,255,0.8); text-decoration: none; }
.contact-info-text a:hover { color: var(--blue-mid); }
#contact .section-sub.contact-sub { max-width: 640px; margin-top: 18px; }
.contact-grid-info { grid-template-columns: 1fr 1fr; gap: 32px 64px; margin-top: 56px; }
.contact-grid-info .contact-info-item { margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.form-input { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: white; font-family: var(--font); font-size: 14px; transition: border-color 0.2s; outline: none; }
.form-input:focus { border-color: var(--blue-mid); background: rgba(255,255,255,0.08); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }
select.form-input option { color: var(--gray-800); background: white; }
textarea.form-input { resize: vertical; min-height: 120px; }
.btn-send { width: 100%; background: var(--blue); color: white; padding: 16px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.btn-send:hover { background: var(--blue-dark); }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { color: #F87171; font-size: 13px; margin-top: -10px; margin-bottom: 16px; display: none; }
.form-success { display: none; text-align: center; padding: 32px; color: #4ADE80; font-weight: 600; }

/* SUB-PAGE CONTENT (services / single service) */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.container.narrow { max-width: 900px; background: var(--white); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); margin-bottom: 60px; }
.page-title { font-size: 36px; font-weight: 900; color: var(--blue-dark); margin-bottom: 24px; line-height: 1.4; }
.intro-text { font-size: 16px; color: var(--gray-600); line-height: 1.8; max-width: 900px; margin-bottom: 30px; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--blue); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.content-text { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }
.entry-content h2 { color: var(--blue); margin-top: 2rem; }
.entry-content p { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 12px; }
.image-box { margin-top: 20px; border: 2px solid var(--gray-200); padding: 10px; border-radius: 8px; background: #fff; }
.image-box img { width: 100%; height: 500px; object-fit: cover; display: block; border-radius: 4px; }
.benefits-list { list-style: none; margin-top: 20px; padding: 24px; background: var(--gray-100); border-radius: 8px; border-left: 4px solid var(--blue); }
.benefits-list li { margin-bottom: 12px; font-size: 16px; color: var(--gray-800); display: flex; align-items: flex-start; gap: 10px; }
.benefits-list li:last-child { margin-bottom: 0; }
.benefits-list li::before { content: '\2713'; color: var(--blue); font-weight: bold; font-size: 18px; }

/* Responsive video */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-top: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* SERVICES GRID */
.services-grid-img { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 40px; }
.bg-placeholder { position: absolute; inset: 0; background: linear-gradient(160deg, #1A3A7A, #0F172A); background-size: cover; background-position: center; transition: transform 0.5s ease; }
.proj-card:hover .bg-placeholder { transform: scale(1.05); }
.watermark-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.watermark-text { text-align: center; padding: 24px; }
.watermark-num { font-size: 12px; letter-spacing: 4px; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 12px; }
.watermark-title { font-size: 36px; font-weight: 900; color: rgba(255,255,255,0.06); text-transform: uppercase; letter-spacing: 2px; }

/* EQUIPMENT */
.equipment-section { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--gray-200); scroll-margin-top: 110px; }
.equipment-section-title { font-size: 28px; font-weight: 900; color: var(--blue-dark); margin-bottom: 10px; }
.equipment-section-sub { font-size: 15px; color: var(--gray-600); margin-bottom: 36px; max-width: 700px; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.equipment-card { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--gray-900); }
.equipment-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 0.4s ease; }
.equipment-card:hover .equipment-card-bg { transform: scale(1.06); }
.equipment-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, transparent 55%); }
.equipment-card-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; color: white; font-size: 15px; font-weight: 700; }
.equipment-card-name span { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* FOOTER */
footer.site-footer { background: #ffffff; padding: 48px 0 32px; border-top: 1px solid var(--gray-200); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 320px; }
.footer-brand img, .footer-brand .custom-logo { height: 44px; width: auto; max-width: 130px; object-fit: contain; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand .brand { font-size: 22px; font-weight: 900; color: var(--blue-mid); letter-spacing: -0.5px; }
.footer-brand .sub { font-size: 9px; color: var(--gray-400); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }
.footer-tagline { font-size: 13px; color: var(--gray-600); margin-top: 12px; width: 100%; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--gray-800); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray-600); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy, .footer-cert { font-size: 12px; color: var(--gray-400); }

/* FLOATING BUTTONS */
.floating-actions { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.floating-btn { width: 56px; height: 56px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; }
.floating-btn:hover { transform: translateY(-4px) scale(1.05); }
.floating-btn svg { width: 26px; height: 26px; fill: white; }
.floating-btn img { width: 30px; height: 30px; object-fit: contain; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--gray-100, #F1F5F9); border: 1px solid var(--gray-200); transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.footer-social-btn svg { width: 30px; height: 30px; fill: var(--blue-mid); transition: fill 0.2s ease; }
.footer-social-btn:hover { transform: translateY(-2px); }
.footer-social-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.footer-social-btn.yt:hover { background: #FF0000; border-color: #FF0000; }
.footer-social-btn:hover svg { fill: #fff; }
.floating-call-btn { background-color: var(--blue); box-shadow: 0 4px 16px rgba(26,79,214,0.35); }
.floating-call-btn:hover { box-shadow: 0 6px 20px rgba(26,79,214,0.5); }
.floating-line-btn { background-color: #06C755; box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3); }
.floating-line-btn:hover { box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 90px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 16px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
  .nav-links.open { display: flex; }
  .nav-links a { height: auto; padding: 14px 24px; border-bottom: none; display: block; width: 100%; }
  .nav-links a:hover, .nav-links a.active, .nav-links li.current-menu-item > a { background: var(--blue-light); }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16/9; height: auto; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-top { flex-direction: column; }
  .floating-actions { bottom: 16px; right: 16px; gap: 10px; }
  .floating-btn { width: 50px; height: 50px; }
  .services-grid-img { grid-template-columns: 1fr; }
  .container.narrow { margin: 1rem; padding: 1.5rem; }
  .page-title { font-size: 26px; }
  .image-box img { height: 260px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .equipment-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .equipment-grid { grid-template-columns: 1fr; } }

/* Post/archive listing (index.php) --------------------------------------- */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list-item { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.post-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-list-thumb { flex: 0 0 200px; display: block; border-radius: 10px; overflow: hidden; }
.post-list-thumb img { width: 100%; height: auto; display: block; }
.post-list-body { flex: 1 1 auto; min-width: 0; }
.post-list-title { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 0 0 8px; }
.post-list-title a { color: var(--blue-dark); text-decoration: none; }
.post-list-title a:hover { color: var(--blue-mid); }
.post-list-excerpt { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin: 0 0 10px; }
.post-list-more { font-size: 15px; font-weight: 700; color: var(--blue-mid); text-decoration: none; }
.post-list-more:hover { text-decoration: underline; }
.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border-radius: 8px; background: var(--gray-100); color: var(--blue-dark); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--blue-mid); color: #fff; }
@media (max-width: 640px) {
  .post-list-item { flex-direction: column; }
  .post-list-thumb { flex: 1 1 auto; width: 100%; }
  .post-list-title { font-size: 19px; }
}

/* Products page (dealer catalogue) --------------------------------------- */
.product-tabs { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.product-card:hover { box-shadow: 0 6px 24px rgba(15,49,153,0.08); border-color: var(--blue-mid); }
.product-card-head { display: flex; gap: 14px; width: 100%; padding: 14px; background: none; border: 0; text-align: left; cursor: pointer; align-items: center; }
.product-card-media { flex: 0 0 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.product-card-img { width: 100%; height: 100%; object-fit: cover; }
.product-card-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.product-card-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-mid); }
.product-card-title { font-size: 18px; font-weight: 800; color: var(--blue-dark); }
.product-card-sub { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.product-card-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--blue-mid); }
.product-card-toggle svg { transition: transform 0.2s ease; }
.product-card.open .product-card-toggle svg { transform: rotate(180deg); }
.product-card-panel { padding: 0 14px 16px; }
.product-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.product-spec-table th, .product-spec-table td { text-align: left; padding: 8px 10px; font-size: 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.product-spec-table th { width: 42%; color: var(--gray-600); font-weight: 700; }
.product-spec-table td { color: var(--blue-dark); }
.product-quote-btn { display: inline-block; padding: 11px 22px; background: var(--blue-mid); color: #fff; font-weight: 700; border-radius: 8px; text-decoration: none; transition: background 0.2s ease; }
.product-quote-btn:hover { background: var(--blue-dark); }
@media (max-width: 480px) {
  .product-card-head { flex-direction: column; align-items: flex-start; }
  .product-card-media { flex-basis: auto; width: 100%; height: 160px; }
}
