/* ================================================
   SƠN GIẢ ĐÁ HOA CƯƠNG - MAIN STYLESHEET
   Domain: songiadahoacuong.com.vn
   Primary: #14A79D | Dark: #1A2332
   ================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #2D3748;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #14A79D;
  --primary-hover: #0E8A81;
  --primary-light: #E0F5F4;
  --primary-bg: #F0FAFA;
  --dark: #1A2332;
  --dark-2: #253145;
  --text: #2D3748;
  --text-2: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
  --bg: #F7FAFC;
  --white: #fff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --shadow-primary: 0 8px 28px rgba(20,167,157,.30);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-h: 72px;
  --transition: all .3s ease;
}

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--dark); line-height: 1.25; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); margin-top: 10px; max-width: 560px; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 10px auto 0; }
.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light); padding: 5px 12px;
  border-radius: var(--radius-full); margin-bottom: 12px;
}
.label-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: block; }
.text-primary { color: var(--primary); }
.bg-dark { background: var(--dark); }
.bg-light { background: var(--bg); }
.bg-primary-soft { background: var(--primary-bg); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9375rem; font-weight: 600; border-radius: var(--radius-full);
  padding: 13px 28px; transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(20,167,157,.40); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-light); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--dark-2); color: rgba(255,255,255,.8);
  font-size: .8125rem; padding: 8px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar-items { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item i { color: var(--primary); font-size: .875rem; }
.top-bar-social { display: flex; align-items: center; gap: 12px; }
.top-bar-social a { color: rgba(255,255,255,.7); font-size: .875rem; transition: color .2s; }
.top-bar-social a:hover { color: var(--primary); }

/* ---- HEADER / NAV ---- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--border);
  height: var(--nav-h); transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.10); }
.header .container { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: auto; width: 200px; object-fit: contain; }
.nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  font-size: .9rem; font-weight: 500; color: var(--text); padding: 8px 12px;
  border-radius: var(--radius-sm); transition: var(--transition); position: relative; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--primary); border-radius: 2px;
}
/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.nav-item:hover .nav-dropdown { opacity: 1; pointer-events: all; }
.nav-dropdown a { display: block; padding: 9px 14px; font-size: .875rem; color: var(--text); border-radius: var(--radius-sm); transition: .2s; }
.nav-dropdown a:hover { background: var(--primary-bg); color: var(--primary); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; color: var(--dark); font-size: .9rem; white-space: nowrap; }
.header-phone span { color: var(--primary); }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* căn trái */
  background-color: #ffffff;
  background-image: url('../images/hero-bg.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Container bên trong hero phải stretch full width */
.hero .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* nội dung bắt đầu từ trái */
}
.hero::before { content: none; }
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 620px;          /* vừa đủ vùng trắng bên trái */
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20,167,157,.1); border: 1px solid rgba(20,167,157,.25);
  color: var(--primary); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* Title gọn 1 dòng mỗi câu */
.hero-title {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--dark);
}
.hero-title span { color: var(--primary); display: block; }

.hero-desc {
  font-size: 1rem; color: var(--text-2);
  line-height: 1.75; margin-bottom: 28px; max-width: 460px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

/* Trust items – 3 cột đều nhau */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-trust-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.hero-trust-icon {
  width: 36px; height: 36px; background: var(--primary-light);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; color: var(--primary); flex-shrink: 0;
}
.hero-trust-text strong { display: block; font-size: .8125rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.hero-trust-text span { font-size: .75rem; color: var(--text-muted); margin-top: 2px; display: block; }


/* ---- QR SEARCH SECTION (trang công trình) ---- */
.qr-search-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 40px 0; color: #fff;
}
.qr-search-inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.qr-search-icon {
  width: 72px; height: 72px; background: rgba(20,167,157,.18);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 2.25rem; color: var(--primary); flex-shrink: 0;
}
.qr-search-text { flex: 1; }
.qr-search-text h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 4px; }
.qr-search-text p { color: rgba(255,255,255,.7); font-size: .9375rem; }
.qr-search-form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.qr-search-input {
  flex: 1; padding: 14px 20px;
  border: 2px solid rgba(255,255,255,.15); border-radius: var(--radius-full);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 1rem; font-weight: 600; letter-spacing: .04em;
  outline: none; transition: border-color .2s;
}
.qr-search-input::placeholder { color: rgba(255,255,255,.4); font-weight: 400; letter-spacing: 0; }
.qr-search-input:focus { border-color: var(--primary); background: rgba(255,255,255,.12); }
.qr-search-btn {
  padding: 14px 28px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-full); font-size: .9375rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.qr-search-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Search result highlight */
.project-card.highlight {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  animation: highlightPop .4s ease;
}
@keyframes highlightPop { 0%{transform:scale(.97)}60%{transform:scale(1.02)}100%{transform:scale(1)} }

/* Not found state */
.search-empty {
  display: none; text-align: center; padding: 60px 24px; grid-column: 1/-1;
}
.search-empty i { font-size: 3rem; color: var(--border); margin-bottom: 16px; }
.search-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.search-empty p { color: var(--text-muted); }

/* Search active state */
.search-active-bar {
  display: none; background: var(--primary-bg); border: 1px solid rgba(20,167,157,.2);
  border-radius: var(--radius); padding: 12px 18px; margin-bottom: 24px;
  font-size: .9rem; color: var(--text-2); align-items: center; gap: 10px;
}
.search-active-bar.show { display: flex; }
.search-active-bar strong { color: var(--primary); }
.search-clear-btn {
  margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--text-muted);
  background: none; border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 4px 12px; cursor: pointer; transition: .2s;
}
.search-clear-btn:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 1100px) {
  /* About stats: 2 cột trên tablet */
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stat:nth-child(2) { border-right: none; }
  .about-stat:nth-child(1),
  .about-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 900px) {
  .hero { background-position: 70% center; }
  .hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background: rgba(255,255,255,0.60);
  }
  /* Hero trust: 1 cột trên tablet nhỏ */
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .qr-search-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .qr-search-icon { display: none; }
}

@media (max-width: 640px) {
  .hero { background-position: 65% center; }
  .hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background: rgba(255,255,255,0.75);
  }
  /* Hero trust: 1 cột mobile */
  .hero-trust { grid-template-columns: 1fr; }
  /* About stats: 2 cột mobile */
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .qr-search-form { flex-direction: column; }
  .qr-search-btn { justify-content: center; }
}

/* ---- ABOUT PREVIEW ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Ảnh bên trái */
.about-img-wrap {
  position: relative;
  padding: 20px 0 0 20px;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: .35;
  z-index: 0;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 140px; height: 140px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about-img-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 460px; object-fit: cover; object-position: center top; display: block; }

/* Overlay gradient bottom */
.about-img-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26,35,50,.55) 0%, transparent 100%);
  pointer-events: none;
}

/* Years badge – bottom-left */
.about-years-badge {
  position: absolute;
  bottom: 24px; left: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: 12px;
  border-left: 4px solid var(--primary);
  z-index: 2;
}
.about-years-badge .num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.about-years-badge .txt { font-size: .78rem; color: var(--text-muted); line-height: 1.45; font-weight: 600; }

/* Projects badge – top-right */
.about-projects-badge {
  position: absolute;
  top: 36px; right: -16px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
  min-width: 96px;
}
.about-projects-badge .num { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; display: block; }
.about-projects-badge .txt { font-size: .72rem; color: rgba(255,255,255,.7); line-height: 1.4; display: block; margin-top: 4px; }

/* Dot pattern decoration */
.about-dot-pattern {
  position: absolute;
  top: -10px; right: 24px;
  width: 72px; height: 72px;
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .25;
  z-index: 0;
}

/* Badge float góc dưới trái */
.about-badge-float {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  border-left: 4px solid var(--primary);
}
.about-badge-float .num { font-size: 1.875rem; font-weight: 800; color: var(--primary); line-height: 1; }
.about-badge-float .txt { font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* Stats – 4 cột ngang thay vì 2×2 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-stat {
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: #fff;
  transition: background .2s;
}
.about-stat:last-child { border-right: none; }
.about-stat:hover { background: var(--primary-bg); }
.about-stat .num {
  font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1;
  display: block;
}
.about-stat .label { font-size: .75rem; color: var(--text-muted); margin-top: 5px; display: block; line-height: 1.4; }
.about-features { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.about-feature { display: flex; align-items: flex-start; gap: 12px; }
.about-feature i { color: var(--primary); font-size: 1.125rem; margin-top: 2px; flex-shrink: 0; }
.about-feature p { font-size: .9375rem; color: var(--text-2); }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: var(--transition); cursor: default;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon {
  width: 64px; height: 64px; background: var(--primary-bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: var(--transition); font-size: 1.625rem; color: var(--primary);
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ---- PROJECTS GRID ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  display: block;                /* hoạt động khi là <a> */
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); background: #fff;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb { position: relative; overflow: hidden; height: 240px; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.06); }

/* Overlay – desktop: hiện khi hover; mobile: luôn hiện nhẹ */
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,.80) 0%, rgba(26,35,50,.1) 55%, transparent 100%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 18px 20px;
}
.project-card:hover .project-overlay { opacity: 1; }

/* Mobile/touch: overlay luôn hiện ở mức thấp để người dùng biết có thể tap */
@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26,35,50,.65) 0%, transparent 55%);
  }
}

.project-overlay-link {
  color: #fff; font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.project-info { padding: 18px 20px; }
.project-info h3 { font-size: 1.0625rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.project-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.project-meta span { font-size: .8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.project-meta i { color: var(--primary); }

/* ---- STATS COUNTER ---- */
.stats-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; text-align: center; }
.stat-item { padding: 20px; }
.stat-num { font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.4; }
.stat-divider { width: 32px; height: 2px; background: var(--primary); border-radius: 2px; margin: 10px auto 10px; }

/* ---- QR FEATURE BANNER (legacy, keep for archive page if used) ---- */
.qr-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0E8A81 100%);
  border-radius: var(--radius-lg); padding: 48px 56px; display: flex; align-items: center; gap: 48px; color: #fff; overflow: hidden; position: relative;
}
.qr-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.qr-banner-content { flex: 1; }
.qr-banner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; }
.qr-banner p { color: rgba(255,255,255,.85); line-height: 1.65; font-size: .9375rem; max-width: 480px; }
.qr-banner-img { width: 140px; height: 140px; background: #fff; border-radius: var(--radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--primary); }

/* ---- QR FEATURE SECTION (homepage redesign) ---- */
.qr-feature-section { background: var(--bg); }

.qr-feat-head { text-align: center; margin-bottom: 48px; }
.qr-feat-head .section-subtitle { margin: 10px auto 0; max-width: 560px; }

/* 3 bước ngang */
.qr-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
}
.qr-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.qr-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.qr-step-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, #0b8079 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.75rem; color: #fff;
  box-shadow: 0 8px 24px rgba(20,167,157,.30);
  transition: transform .3s;
}
.qr-step:hover .qr-step-icon { transform: scale(1.08) rotate(-4deg); }
.qr-step-num {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 8px; display: block;
  opacity: .7;
}
.qr-step-title {
  font-size: 1.0625rem; font-weight: 800; color: var(--dark);
  margin-bottom: 10px; line-height: 1.3;
}
.qr-step-desc {
  font-size: .875rem; color: var(--text-muted);
  line-height: 1.65;
}

/* Arrow connector giữa 3 card */
.qr-step-arrow {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 44px;
  align-self: center;
  color: var(--primary);
  font-size: 1.25rem;
  opacity: .5;
  margin-top: -24px; /* offset để align với icon */
}


/* Responsive */
@media (max-width: 860px) {
  .qr-steps { flex-direction: column; gap: 12px; }
  .qr-step-arrow { width: 100%; height: 32px; transform: rotate(90deg); margin: 0; }
}
@media (max-width: 640px) {
  .qr-feat-head { margin-bottom: 32px; }
  .qr-step { padding: 24px 20px; }
  .qr-step-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .qr-steps { gap: 10px; }
  .qr-step-arrow { height: 24px; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: #fff; font-size: 1rem; font-weight: 600; color: var(--dark);
  text-align: left; transition: background .2s; cursor: pointer;
}
.faq-question:hover { background: var(--primary-bg); }
.faq-question.open { background: var(--primary-bg); color: var(--primary); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; }
.faq-question.open .faq-icon { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 22px 18px; font-size: .9375rem; color: var(--text-2); line-height: 1.7; }

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.news-thumb { height: 200px; overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 20px; }
.news-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.news-date i { color: var(--primary); }
.news-title { font-size: 1.0625rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.news-title:hover { color: var(--primary); }
.news-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.news-more { font-size: .875rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.news-more i { transition: transform .2s; }
.news-card:hover .news-more i { transform: translateX(4px); }

/* ---- NEWSLETTER ---- */
.newsletter-box {
  background: var(--primary-bg); border-radius: var(--radius-lg); padding: 48px;
  text-align: center; border: 1px solid rgba(20,167,157,.15);
}
.newsletter-box h3 { font-size: 1.625rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 13px 18px; border: 2px solid var(--border); border-radius: var(--radius-full); font-size: .9375rem; color: var(--text); outline: none; transition: border-color .2s; }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ---- PAGE BANNER ---- */
.page-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-image: url("../images/banner-page2.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff; padding: 72px 0 60px; text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,28,42,.88) 0%, rgba(14,130,122,.72) 100%);
  z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,.75); font-size: 1.0625rem; max-width: 520px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .875rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.75); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ---- SWIPER – PROJECTS SLIDER ---- */
.projects-swiper-wrap {
  position: relative;
  padding: 0 52px;          /* chừa chỗ cho nút prev/next */
}
/* Override Swiper arrow style */
.projects-prev,
.projects-next {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);   /* trừ phần dots bên dưới */
  z-index: 10;
  width: 44px; height: 44px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--primary);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.projects-prev { left: 0; }
.projects-next { right: 0; }
.projects-prev:hover,
.projects-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
/* Swiper mặc định dùng ::after cho arrow — reset và dùng icon riêng */
.projects-prev::after,
.projects-next::after {
  font-size: .875rem;
  font-weight: 900;
  color: inherit;
}
/* Dots */
.projects-pagination {
  margin-top: 28px;
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.projects-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--border);
  opacity: 1;
  transition: .3s;
}
.projects-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
/* Card bên trong slide không bị clip shadow */
.projects-swiper .project-card {
  box-shadow: var(--shadow);
  height: 100%;
}
.projects-swiper .swiper-slide {
  height: auto;
}

/* ---- RELATED SWIPER (single-du-an) ---- */
.related-swiper-wrap {
  position: relative;
  padding: 0 44px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.related-swiper {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.related-prev,
.related-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--primary);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.related-prev { left: 0; }
.related-next { right: 0; }
.related-prev:hover,
.related-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.related-prev::after,
.related-next::after {
  font-size: .8rem;
  font-weight: 900;
  color: inherit;
}
.related-pagination {
  margin-top: 18px;
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.related-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--border);
  opacity: 1;
  transition: .3s;
}
.related-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.related-swiper .swiper-wrapper { align-items: stretch; }
.related-swiper .swiper-slide { height: auto; box-sizing: border-box; }
.related-swiper .project-card { height: 100%; box-shadow: var(--shadow); }
.related-swiper .project-thumb { height: 180px; }
@media (max-width: 640px) {
  .related-swiper-wrap { padding: 0 34px; }
  .related-prev, .related-next { width: 30px; height: 30px; }
  .related-prev::after, .related-next::after { font-size: .65rem; }
  .related-swiper .project-thumb { height: 200px; }
}

@media (max-width: 640px) {
  .projects-swiper-wrap { padding: 0 40px; }
  .projects-prev,
  .projects-next { width: 36px; height: 36px; }
  .projects-prev::after,
  .projects-next::after { font-size: .75rem; }
}

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; }
.contact-info-card { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: 40px; height: 100%; box-sizing: border-box; }
.contact-info-card h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.7); font-size: .9375rem; margin-bottom: 32px; line-height: 1.6; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(20,167,157,.18); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; color: var(--primary); flex-shrink: 0; }
.contact-info-text strong { display: block; font-size: .875rem; color: rgba(255,255,255,.6); font-weight: 500; margin-bottom: 3px; }
.contact-info-text p { font-size: .9375rem; color: #fff; line-height: 1.5; }
.contact-info-text a { color: var(--primary); transition: color .2s; }
.contact-info-text a:hover { color: #fff; }
.contact-socials { display: flex; gap: 10px; margin-top: 28px; }
.contact-social-btn { width: 42px; height: 42px; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; transition: var(--transition); }
.contact-social-btn:hover { background: var(--primary); transform: translateY(-2px); }

/* Form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); height: 100%; }
.form-card h3 { font-size: 1.375rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label span { color: #e53e3e; margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9375rem; color: var(--text); outline: none; transition: border-color .2s; background: #fff;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text-2); }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); margin-top: 2px; cursor: pointer; }
.form-success { display: none; text-align: center; padding: 32px; }
.form-success i { font-size: 3rem; color: var(--primary); margin-bottom: 12px; }
.form-success h4 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* Map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; height: 400px; box-shadow: var(--shadow); border: 1px solid var(--border); width: 100%; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-map-col { height: 100%; }
.map-wrap-full { height: 100%; min-height: 340px; }

/* Socials card (dưới contact-grid) */
.contact-socials-card {
  margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-socials-text h4 { font-size: 1.0625rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-socials-text p { font-size: .875rem; color: var(--text-muted); }
.contact-socials-card .contact-socials { margin-top: 0; gap: 14px; }
.contact-socials-card .contact-social-btn {
  position: relative; width: 52px; height: 52px; border-radius: var(--radius-full);
  background: rgba(20,167,157,.1); color: var(--primary); font-size: 1.1875rem;
}
.contact-socials-card .contact-social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-socials-card .contact-social-btn[data-platform="facebook"]:hover { background: #1877F2; color: #fff; }
.contact-socials-card .contact-social-btn[data-platform="youtube"]:hover { background: #FF0000; color: #fff; }
.contact-socials-card .contact-social-btn[data-platform="tiktok"]:hover { background: #000; color: #fff; }
.contact-socials-card .contact-social-btn[data-platform="zalo"]:hover { background: #0068FF; color: #fff; }
.contact-socials-card .contact-social-btn[data-platform="messenger"]:hover { background: #00B2FF; color: #fff; }

.contact-social-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--dark); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: 5px 10px; border-radius: var(--radius-sm); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.contact-social-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--dark);
}
.contact-social-btn:hover .contact-social-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- PROJECT DETAIL ---- */
.project-detail-hero { position: relative; }
.project-gallery-main { aspect-ratio: 16/9; max-height: 500px; border-radius: var(--radius-lg); overflow: hidden; }
.project-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--bg); border-radius: 2px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumb { width: 90px; height: 62px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: .6; transition: .2s; flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; outline: 3px solid var(--primary); outline-offset: 1px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; min-width: 0; }
.detail-left { min-width: 0; }
.detail-right { position: sticky; top: 90px; }

/* ---- INFO PANEL ---- */
.project-info-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header: status + code */
.pip-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 0;
  gap: 8px;
}
.pip-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; color: var(--s-color);
  background: color-mix(in srgb, var(--s-color) 12%, #fff);
  padding: 4px 10px; border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--s-color) 25%, transparent);
}
.pip-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--s-color); flex-shrink: 0;
  animation: pip-pulse 2s infinite;
}
@keyframes pip-pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}
.pip-code {
  font-size: .7rem; font-weight: 700; font-family: monospace;
  color: var(--text-muted); background: var(--bg);
  padding: 3px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); letter-spacing: .03em;
}
.pip-title {
  font-size: 1.25rem; font-weight: 800; color: var(--dark);
  padding: 10px 24px 16px; line-height: 1.3;
  border-bottom: 1px solid var(--border);
}

/* Specs grid */
.pip-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.pip-spec {
  background: #fff; padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.pip-spec-full { grid-column: 1 / -1; }
.pip-spec:hover { background: var(--bg); }
.pip-spec-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; margin-top: 1px;
}
.pip-spec-label { font-size: .7rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.pip-spec-value { font-size: .875rem; color: var(--dark); font-weight: 700; line-height: 1.4; }

.pip-divider { height: 0; }

/* Warranty */
.pip-warranty {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #0b8079 100%);
  color: #fff;
}
.pip-warranty-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.pip-warranty-head i { font-size: 1.5rem; opacity: .9; }
.pip-warranty-head strong { display: block; font-size: .9375rem; font-weight: 700; }
.pip-warranty-head span { font-size: .75rem; opacity: .75; }
.pip-warranty-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.pip-warranty-item {
  background: rgba(255,255,255,.15); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center;
}
.pw-num {
  display: block; font-size: 1.5rem; font-weight: 800; line-height: 1;
}
.pw-num small { font-size: .6rem; font-weight: 500; opacity: .8; margin-left: 2px; vertical-align: middle; }
.pw-label { font-size: .7rem; opacity: .85; margin-top: 4px; display: block; }

/* CTA */
.pip-cta {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}

/* ---- ABOUT PAGE ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 36px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-icon { width: 72px; height: 72px; background: var(--primary-bg); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); transition: .2s; }
.value-card:hover .value-icon { background: var(--primary); color: #fff; }
.value-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.value-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.cert-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.cert-card p { font-size: .8125rem; color: var(--text-muted); font-weight: 600; }

/* ---- NEWS DETAIL ---- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-body h2 { font-size: 1.375rem; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.article-body p { font-size: .9375rem; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 20px; }
.article-body ul li { font-size: .9375rem; color: var(--text-2); line-height: 1.7; list-style: disc; margin-bottom: 6px; }
.article-body img { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article-blockquote { border-left: 4px solid var(--primary); padding: 16px 20px; background: var(--primary-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; font-style: italic; color: var(--text-2); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tag { font-size: .8125rem; font-weight: 600; background: var(--bg); color: var(--text-2); padding: 5px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); }
.article-share { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.article-share span { font-size: .875rem; font-weight: 600; color: var(--text); }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff; transition: .2s; }
.share-btn:hover { transform: translateY(-2px); }
.share-fb { background: #1877F2; }
.share-zalo { background: #0068FF; }
.share-copy { background: var(--text-muted); }

.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-news-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-news-thumb { width: 64px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.sidebar-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-title { font-size: .8375rem; font-weight: 600; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-news-title:hover { color: var(--primary); }
.sidebar-news-date { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr; gap: 56px; align-items: start; }
.footer-map iframe { width: 100%; height: 180px; border: 0; border-radius: 8px; display: block; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-desc { font-size: .875rem; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-btn { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .9rem; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--primary); }
.footer-links a::before { content: '›'; font-size: 1rem; color: var(--primary); }
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.footer-contact-item i { color: var(--primary); font-size: .9375rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.75); transition: color .2s; }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: center; font-size: .8125rem; color: rgba(255,255,255,.5); }

/* ---- FLOATING WIDGETS ---- */
.float-widgets { position: fixed; bottom: 28px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; color: #fff; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: var(--transition); position: relative;
}
.float-btn:hover { transform: scale(1.1) translateY(-2px); }
.float-btn-zalo { background: var(--primary); }
.float-btn-messenger { background: var(--primary); }
.float-btn-phone { background: var(--primary); animation: ring 2s ease-in-out infinite; }
.float-btn-top {
  background: var(--primary); width: 44px; height: 44px; font-size: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, border-radius .1s linear;
  border-radius: 0;
}
.float-btn-top.visible { opacity: 1; pointer-events: all; }
@keyframes ring {
  0%,100%{box-shadow: 0 0 0 0 rgba(20,167,157,.6)}
  50%{box-shadow: 0 0 0 12px rgba(20,167,157,0)}
}
.float-label {
  position: absolute; right: calc(100% + 10px); white-space: nowrap;
  background: #333; color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.float-label::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #333; }
.float-btn:hover .float-label { opacity: 1; }


/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 600; border: 1px solid var(--border); color: var(--text); transition: .2s; cursor: pointer; background: #fff; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.dots { border: none; cursor: default; color: var(--text-muted); }
.page-btn.dots:hover { background: none; color: var(--text-muted); }

/* ---- FILTER TABS ---- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tab { padding: 8px 20px; border-radius: var(--radius-full); font-size: .875rem; font-weight: 600; border: 2px solid var(--border); color: var(--text); background: #fff; cursor: pointer; transition: .2s; }
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- ARCHIVE DU-AN ---- */
.archive-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.archive-stat {
  text-align: center;
  padding: 20px 16px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(20,167,157,.15);
}
.archive-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.archive-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }

/* Filter tabs archive: scroll ngang trên mobile */
.archive-filter-wrap {
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.archive-filter-wrap::-webkit-scrollbar { display: none; }
.archive-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text); background: #fff;
  cursor: pointer; transition: .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

@media (max-width: 640px) {
  /* Stats: 2x2 trên mobile */
  .archive-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .archive-stat { padding: 16px 10px; }
  .archive-stat-num { font-size: 1.5rem; }

  /* Filter: scroll ngang, không wrap */
  .archive-filter-tabs { flex-wrap: nowrap; }
  .filter-btn { font-size: .8125rem; padding: 7px 14px; }

  /* QR search: stack dọc gọn */
  .qr-search-input { font-size: .9rem; padding: 12px 16px; }
  .qr-search-btn { padding: 12px 20px; font-size: .875rem; }
}

/* ---- LOAD MORE ---- */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--primary); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-card p { font-size: .8125rem; color: var(--primary); font-weight: 500; }

/* ---- BACK TO TOP ---- */
.back-to-top { position: fixed; bottom: 90px; right: 24px; z-index: 998; width: 44px; height: 44px; background: var(--dark-2); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary); transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .project-detail-grid { grid-template-columns: 1fr 300px; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 860px) {
  .project-detail-grid { grid-template-columns: 1fr; }
  .detail-right { position: static; }
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .nav, .header-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .header .container { justify-content: space-between; }
  .header-phone { display: none; }
  .qr-banner { flex-direction: column; text-align: center; padding: 36px 28px; }
  .qr-banner-img { width: 100px; height: 100px; }
  .qr-banner-content p { margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  /* Services: 2 cột trên tablet nhỏ */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding: 48px 0; }
  .projects-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .top-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .float-widgets { bottom: 28px; }
  .page-banner { padding: 52px 0 40px; }
  .gallery-thumbs { overflow-x: auto; }
  /* Services: 1 cột mobile */
  .services-grid { grid-template-columns: 1fr; }
  .contact-socials-card { flex-direction: column; text-align: center; padding: 28px 24px; }

  /* ---- HERO mobile ---- */
  .hero {
    min-height: auto;
    padding: 48px 0 40px;
    background-position: 80% center;
  }
  /* Overlay đậm hơn để text dễ đọc trên SP */
  .hero::before {
    background: rgba(255,255,255,0.82) !important;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: .7rem; padding: 4px 12px; margin-bottom: 12px; }
  .hero-title { font-size: 1.625rem; margin-bottom: 12px; }
  .hero-desc { font-size: .9rem; margin-bottom: 20px; max-width: 100%; }
  .hero-actions { gap: 10px; margin-bottom: 24px; }
  .hero-actions .btn { font-size: .875rem; padding: 11px 22px; }

  /* Trust items: 2 cột compact thay vì 1 cột dọc */
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 20px;
  }
  .hero-trust-item { padding: 10px 10px; gap: 8px; }
  .hero-trust-icon { width: 30px; height: 30px; font-size: .875rem; border-radius: 6px; }
  .hero-trust-text strong { font-size: .75rem; }
  .hero-trust-text span { font-size: .7rem; }

  /* ---- ABOUT mobile ---- */
  .about-img-wrap img { height: 240px; object-position: center 20%; }
  .about-img-wrap { padding: 14px 0 0 14px; }
  .about-img-wrap::before { width: calc(100% - 20px); height: calc(100% - 20px); }
  .about-img-wrap::after { width: 80px; height: 80px; bottom: -8px; right: -8px; }
  .about-projects-badge { right: 0; top: 24px; }
  .about-years-badge { bottom: 12px; left: 4px; }

  /* ---- STATS mobile: 2x2 đều nhau, item lẻ chiếm cả hàng ---- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { padding: 20px 12px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; border-right: none; }
  .stat-num { font-size: 2.25rem; }
  .stat-label { font-size: .8rem; }
}

/* ---- MOBILE NAV DRAWER ---- */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 24px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-nav-close { width: 40px; height: 40px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--dark); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; color: var(--text); transition: .2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--primary-bg); color: var(--primary); }
.mobile-nav-link i { width: 20px; text-align: center; }
.mobile-nav-cta { margin-top: 24px; }
.mobile-nav-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.mobile-nav-contact p { font-size: .875rem; color: var(--text-muted); margin-bottom: 8px; }
.mobile-nav-contact a { font-size: 1.125rem; font-weight: 700; color: var(--primary); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
