:root {
  --primary:#0b5f3c;
  --accent:#10b981;
  --deep:#0a3b8f;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f6f8fb;
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:Inter,system-ui,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }

/* Container chung */
.container { max-width:1200px; margin:0 auto; padding:0 16px; }

/* Header */
.header { background:#fff; border-bottom:1px solid #e5e7eb; position:sticky; top:0; z-index:1000; }
.header-inner {
  display:grid;
  grid-template-columns:180px 1fr;
  gap:18px;
  align-items:center;
  width:min(1200px,92%);
  margin:auto;
}
.brand-logo { max-height:60px; object-fit:contain; }
.topbar { padding:4px 0; }
.topbar-row {
  display:flex; justify-content:space-between; align-items:center;
  color:#334155; font-size:.92rem; line-height:1.2;
}
.hotline .hl { color:#059669; }
.hotline .sep { margin:0 .5rem; color:#cbd5e1; }
.yt { display:flex; gap:8px; align-items:center; }
.yt-link { display:flex; gap:6px; align-items:center; color:#0b4a92; font-weight:700; }
.yt-ico { width:20px; height:20px; }
.sepbar { border:0; border-top:1px solid #e5e7eb; margin:6px 0; }
.nav {
  display:flex; align-items:center; gap:22px;
  border-top:1px solid #eef2f7;
  padding:6px 0;
  flex-wrap:wrap;
}
.nav a { color:#374151; font-weight:600; position:relative; }
.nav a:hover, .nav a.active { color:var(--primary); }
.nav a.active::after {
  content:""; position:absolute; left:0; bottom:-8px;
  width:100%; height:3px; background:var(--primary); border-radius:2px;
}

/* Menu mobile */
.menu-toggle { font-size:26px; background:none; border:none; cursor:pointer; display:none; }
.overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.5);
  opacity:0; visibility:hidden; transition:.3s; z-index:999;
}
.overlay.show { opacity:1; visibility:visible; }
.mobile-nav {
  position:fixed; top:0; right:0; width:280px; height:100vh;
  background:#fff; transform:translateX(100%); transition:.3s;
  z-index:1000; padding:20px;
}
.mobile-nav.open { transform:translateX(0); }
.mobile-nav ul { list-style:none; margin:60px 0 0; padding:0; }
.mobile-nav li { margin:20px 0; }
.mobile-nav li a { font-size:18px; color:#333; }
.menu-close { position:absolute; top:15px; right:15px; font-size:24px; background:none; border:none; cursor:pointer; }

/* Footer */
.site-footer { background:#073b34; color:#e6fffb; margin-top:24px; }
.footgrid {
  display:grid; grid-template-columns:2fr 1.3fr 2fr 1.7fr; gap:24px; padding:28px 0;
}
.site-footer h4 { color:#fff; margin:0 0 8px; }
.site-footer iframe { width:100%; height:170px; border:0; border-radius:10px; }
.links { padding-left:16px; }
.copyright {
  border-top:1px solid rgba(255,255,255,.1);
  padding:10px 0; text-align:center; color:#9db1c3;
}



/* Responsive */
@media(max-width:900px){
  .header-inner{grid-template-columns:120px 1fr;}
  .brand-logo{max-height:46px;}
  .topbar-row{flex-direction:column; gap:6px; align-items:flex-start;}
}
@media(max-width:768px){
  .topbar{display:none;}
  .nav{display:none;}
  .menu-toggle{display:block;}
  .footgrid{grid-template-columns:1fr 1fr;}
}
@media(max-width:600px){
  .container{padding:0 12px;}
  .footgrid{grid-template-columns:1fr;}
}
/* ==== HOTFIX: ABOUT – ép 2 cột đúng như bản HTML gốc ==== */
.about-teaser{padding:40px 0;background:#fff}
.about-teaser .container{max-width:1200px;margin:0 auto;padding:0 16px}

/* BẮT BUỘC grid 2 cột (ưu tiên cao) */
.about-grid{
  display:grid !important;
  grid-template-columns:1.1fr 1fr !important;
  gap:22px !important;
  align-items:center !important;
}
.about-text .lead{font-size:1rem;line-height:1.75;margin-bottom:12px}
.about-text h3{margin:18px 0 8px}

/* Ảnh bên phải */
.about-photo{
  position:relative !important;
  border-radius:14px !important;
  overflow:hidden !important;
  aspect-ratio:16/9;
  min-height:340px; max-height:520px;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
}
.about-photo img{
  width:100% !important; height:100% !important;
  object-fit:cover !important; display:block;
  border-radius:14px !important;
}
.about-photo .badge{
  position:absolute; left:16px; bottom:16px;
  background:#0a3b8f; color:#fff; padding:10px 14px;
  border-radius:10px; font-weight:700; box-shadow:0 8px 18px rgba(11,74,146,.25)
}

/* Tiêu đề section (đảm bảo đúng màu & khoảng cách) */
.section-title{font-size:36px;color:#0a3b8f;margin:0 0 14px}

/* Mobile: 1 cột */
@media (max-width: 980px){
  .about-grid{grid-template-columns:1fr !important}
  .about-photo{min-height:220px;max-height:360px}
}
.prod-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.stackimg img { border-radius:10px; box-shadow:0 8px 20px rgba(0,0,0,.08); margin-bottom:14px }
.prod-item {
  display:flex; gap:16px; background:#fff; border-radius:12px;
  padding:14px; box-shadow:0 8px 20px rgba(0,0,0,.06); margin-bottom:16px
}
.prod-item .num {
  width:40px; height:40px; border-radius:50%; background:var(--deep); color:#fff;
  display:grid; place-items:center; font-weight:800
}
/* ==== PROJECTS GRID ==== */
.projects-section { padding:56px 0; background:#fff; }
.project-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.project-card {
  position:relative;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease;
}
.project-card img,
.project-card video {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}
.project-card:hover { transform:translateY(-6px); box-shadow:0 14px 28px rgba(0,0,0,.12); }
.project-card:hover img,
.project-card:hover video { transform:scale(1.05); }

/* Overlay text */
.project-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 60%,rgba(0,0,0,.7));
  display:flex; align-items:flex-end; justify-content:center;
  opacity:1; transition:.4s ease;
}
.project-card:hover .project-overlay { opacity:1; }

.project-info {
  color:#fff; padding:14px; text-align:center;
}
.project-info h3 { margin:0; font-size:1.1rem; font-weight:700; }
.project-info p { margin:6px 0 0; font-size:.9rem; color:#e2e8f0; }

/* Responsive */
@media(max-width:980px){ .project-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:640px){ .project-grid{grid-template-columns:1fr;} }
/* ==== NEWS SECTION ==== */
.news-section { padding:56px 0; background:#f9fafb; }
.news-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.news-card {
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.news-card:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
.news-card img,
.news-card video {
  width:100%; height:220px; object-fit:cover; display:block;
  transition:transform .4s ease;
}
.news-card:hover img,
.news-card:hover video { transform:scale(1.05); }

/* Nội dung */
.news-body { padding:16px; }
.news-body h3 {
  margin:0 0 8px;
  font-size:1.1rem;
  color:#0a3b8f;
  transition:color .3s;
}
.news-card:hover .news-body h3 { color:#e63946; }
.news-body p { margin:0 0 10px; color:#555; font-size:.95rem; line-height:1.5; }
.news-body small { color:#888; display:block; margin-bottom:6px; font-size:.8rem; }

/* Responsive */
@media(max-width:980px){ .news-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:640px){ .news-grid{grid-template-columns:1fr;} }
/* ==== CTA FORM ==== */
.cta-form {
  background: linear-gradient(135deg, #0a3b8f, #0b5f3c);
  color:#fff;
  padding:60px 0;
  text-align:center;
}
.cta-form h2 {
  font-size:28px;
  margin:0 0 20px;
}
.contact-form {
  max-width:700px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.contact-form input,
.contact-form textarea {
  padding:14px 16px;
  border-radius:8px;
  border:0;
  outline:none;
  font-size:1rem;
}
.contact-form textarea {
  grid-column:span 2;
  resize:vertical;
  min-height:120px;
}
.contact-form button {
  grid-column:span 2;
  padding:14px;
  border-radius:8px;
  border:none;
  background:#e63946;
  color:#fff;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:.3s;
}
.contact-form button:hover {
  background:#d62828;
}
@media(max-width:640px){
  .contact-form { grid-template-columns:1fr; }
  .contact-form textarea, .contact-form button { grid-column:span 1; }
}
/* ==== SCROLL ANIMATION ==== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* ==== PRODUCT SLIDER (Book Flip) ==== */
.product-slider {
  position: relative;
  perspective: 1200px;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
}
.product-slide {
  position: absolute;
  width: 100%;
  height: 400px;
  top: 0; left: 0;
  backface-visibility: hidden;
  transform-origin: left center;
  transform: rotateY(180deg);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-slide .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 700;
}
.product-slide.active {
  transform: rotateY(0);
  opacity: 1;
  z-index: 2;
}
.product-slider .nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none; color: #fff;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}
.product-slider .prev { left: 15px; }
.product-slider .next { right: 15px; }
/* Fix product slider khi đặt trong prod-grid */
.prod-grid .col-left {
  position: relative;
  min-height: 400px;   /* chiều cao slider */
}

/* đảm bảo slider chiếm đủ cột trái */
.prod-grid .product-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* slide ảnh */
.product-slide {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-origin: left center;
  opacity: 0;
  transform: rotateY(180deg);
  transition: transform 1s ease, opacity 1s ease;
  border-radius: 14px;
  overflow: hidden;
}
.product-slide.active {
  transform: rotateY(0);
  opacity: 1;
  z-index: 2;
}
.product-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
/* ==== Section Products ==== */
/* Product list layout */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}
.product-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-icon {
  width: 32px;
  height: 32px;
}
.product-info h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #0a3b8f;
}
.product-info p {
  margin: 10px 0 14px;
  color: #374151;
  line-height: 1.6;
}

/* Section Products full width background */
.section-products {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  padding: 60px 0;
}


/* vẫn giữ container để căn nội dung giữa */
.section-products .container {
  position: relative;
  z-index: 1;
}


/* Responsive cho Sản phẩm chính */
@media (max-width: 768px) {
  .prod-grid {
    grid-template-columns: 1fr; /* chỉ còn 1 cột */
  }
  .prod-grid > div:not(.col-left) {
    display: none; /* ẩn cột danh sách sản phẩm */
  }
  .prod-grid .col-left {
    min-height: 320px; /* giảm chiều cao slider cho mobile */
  }
  .product-slide {
    height: 320px; /* đồng bộ chiều cao slide */
  }
  .product-slide img {
    object-fit: cover;
  }
}
/* ==== Floating Contact Icons (footer fixed) ==== */
.floating-contact {
  position: fixed !important;
  right: 16px !important;
  bottom: 20px !important;
  top: auto !important;  /* ép bỏ mọi top cũ */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.fc-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.fc-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.fc-btn img {
  width: 28px; height: 28px; object-fit: contain;
}

/* Tooltip */
.fc-btn .label {
  position: absolute;
  right: 60px;
  background: #0a3b8f;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: .3s;
  font-size: .85rem;
}
.fc-btn:hover .label {
  opacity: 1;
  transform: translateX(0);
}
/* Hiệu ứng rung lắc cho nút điện thoại */
.fc-btn.phone {
  animation: ring 2s infinite;
}

@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}
/* Hiệu ứng pulse (nhịp tim lan tỏa) */
.fc-btn.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
  animation: pulseAnim 2s infinite;
}

/* Zalo: xanh dương nhạt */
.fc-btn.pulse.zalo::after {
  background: rgba(0, 104, 255, 0.35); /* xanh Zalo nhạt */
}

/* Messenger: xanh tím nhạt */
.fc-btn.pulse.messenger::after {
  background: rgba(24, 119, 242, 0.35); /* xanh Messenger nhạt */
}

@keyframes pulseAnim {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
/* ==== Features list (đặc điểm nổi bật) ==== */
.features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #374151;
}
.features-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981; /* xanh ngọc */
  font-weight: bold;
}

/* ==== Spec table (bảng thông số kỹ thuật) ==== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.95rem;
}
.spec-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #0a3b8f;
  width: 40%;
}
.spec-table tr:last-child td,
.spec-table tr:last-child th {
  border-bottom: none;
}
