:root {
  --navy: #0B1F33;
  --blue: #145DA0;
  --blue-dark: #0B4F71;
  --green: #1F8A5B;
  --bg: #F5F7FA;
  --text: #17202A;
  --muted: #5B6573;
  --border: #E5EAF0;
  --max-width: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; color: var(--text); background: #fff;
}
a { text-decoration: none; color: inherit; transition: color .2s, background .2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 3000; }
.skip-link:focus { left: 0; }

/* Promo bar */
.promo-bar { background: var(--navy); color: #cfd8e3; font-size: 13px; padding: 8px 0; }
.promo-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.promo-text strong { color: #fff; margin-right: 10px; letter-spacing: .5px; }
.promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-actions a { padding: 4px 12px; border-radius: 999px; background: red; color: #fff; font-weight: 600; }
.promo-actions a:hover { background: red; }

/* Header */
.main-header { background: #fff; box-shadow: 0 2px 10px rgba(11,31,51,.08); position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.logo-text { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.canopy-logo { width: 140px; height: 64px; object-fit: contain; }
.logo-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; }
.logo-words strong { display: block; font-size: 16px; color: var(--navy); line-height: 1.2; }
.logo-words small { display: block; font-size: 11px; color: var(--muted); }
.main-nav { flex: 1; }
.nav-menu { display: flex; gap: 4px; justify-content: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; white-space: nowrap; padding: 10px 10px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.nav-menu > li > a:hover { color: var(--blue); }
.caret { font-size: 11px; margin-left: 2px; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(11,31,51,.12); padding: 6px; display: none; }
.has-sub:hover > .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--text); }
.dropdown a:hover { background: var(--bg); color: var(--blue); }
.btn-quote { background:#ed0e42; color: #fff; padding: 11px 24px; border-radius: 8px; font-weight: 700; letter-spacing: .5px; flex-shrink: 0; }
.btn-quote:hover { background: #ed0e42; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--navy); cursor: pointer; margin-left: auto; }

/* Buttons */
.btn-primary, .btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; border: 2px solid transparent; font-size: 15px; }
.btn-primary { background: #ed0e42; color: #fff; }
.btn-primary:hover { background: #ed0e42; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background-color: red;}
.btn-outline:hover { background: red; color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(115deg, var(--navy) 0%, var(--blue-dark) 100%); color: #fff; padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #8fd9b6; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 18px; }
.hero-text { color: #cfd8e3; font-size: 17px; margin-bottom: 20px; }
.hero-points { margin-bottom: 28px; display: grid; gap: 8px; }
.hero-points i { color: #5fd3a0; margin-right: 8px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-stats { position: absolute; left: 16px; right: 16px; bottom: -22px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; color: var(--navy); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero-stats div { padding: 14px 10px; text-align: center; border-right: 1px solid var(--border); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { display: block; font-size: 20px; color: var(--blue); }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-title h2 { font-size: 30px; color: var(--navy); margin-bottom: 10px; }
.section-title p { color: var(--muted); }
.center-link { text-align: center; margin-top: 30px; font-weight: 700; color: var(--blue); }
.block-title { font-size: 24px; color: var(--navy); margin-bottom: 18px; }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,31,51,.1); }
.product-img { aspect-ratio: 3/2; overflow: hidden; background: var(--bg); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--green); margin-bottom: 6px; }
.product-title { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.product-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.product-spec { font-size: 13.5px; color: var(--blue-dark); background: var(--bg); padding: 6px 10px; border-radius: 6px; margin-bottom: 16px; }
.btn-detail { margin-top: auto; text-align: center; padding: 10px 14px; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 8px; font-weight: 700; font-size: 14px; }
.btn-detail:hover { background: var(--blue); color: #fff; }

/* Media cards */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.media-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.media-card h3 { font-size: 16px; color: var(--navy); }
.media-card p { font-size: 13.5px; color: var(--muted); }

/* Price cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 28px 24px; background: #fff;display: flex;
  flex-direction: column;
  align-items: center;  /* Căn giữa theo chiều ngang */
  text-align: center;   /* Căn giữa chữ cho đoạn văn dài */
  padding: 20px; }
.price-card i { font-size: 50px; color: var(--blue); margin-bottom: 14px;text-align: center; }
.price-card h3 { color: var(--navy); margin-bottom: 8px; }
.price-card p { color: var(--muted); font-size: 14.5px; }

/* Capability */
.capability { background: var(--navy); color: #fff; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.capability h2 { font-size: 30px; margin-bottom: 20px; }
.cap-list { display: grid; gap: 14px; color: #cfd8e3; }
.cap-list i { color: #5fd3a0; margin-right: 8px; }
.cap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; text-align: center; }
.cap-stats strong { display: block; font-size: 28px; color: #5fd3a0; }
.cap-stats span { font-size: 13.5px; color: #cfd8e3; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partner { border: 1px dashed var(--border); border-radius: 8px; padding: 22px 8px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--bg); }

/* Video + articles */
.knowledge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.knowledge-grid > div { min-width: 0; }
.home-about .video-box img { width: 100%; height: 100%; object-fit: cover; }
.knowledge-grid .block-title { margin-bottom: 0; }
.video-box { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-box iframe { width: 100%; height: 100%; border: 0; }
.video-ph { height: 100%; display: grid; place-content: center; text-align: center; gap: 10px; color: #cfd8e3; padding: 20px; font-size: 14px; }
.video-ph i { font-size: 48px; color: #ff4b4b; }
.video-ph code { background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 4px; }
.article-list { display: grid; gap: 12px; }
.article { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.article:hover { border-color: var(--blue); }
.article h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.article p { font-size: 14px; color: var(--muted); }
.article span { font-size: 13px; font-weight: 700; color: var(--blue); }

/* CTA */
.cta { background: linear-gradient(115deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; margin-bottom: 6px; }
.cta p { color: #dbe7f3; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #08172a; color: #b9c4d0; padding-top: 56px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.6fr; gap: 36px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links li, .contact-info li { margin-bottom: 9px; }
.footer-links a:hover, .contact-info a:hover { color: #5fd3a0; }
.footer-links i { font-size: 11px; margin-right: 6px; color: var(--green); }
.contact-info li { display: flex; gap: 10px; }
.contact-info i { color: var(--green); margin-top: 5px; width: 16px; }
.contact-info a { color: #fff; font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.socials a:hover { background: var(--green); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; }

/* Floating contact */
.float-contact { position: fixed; right: 16px; bottom: 20px; display: grid; gap: 10px; z-index: 900; }
.float-contact a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.fc-zalo { background: #0068ff; }
.fc-zalo img { width: 100%; height: 100%; border-radius: 50%; }
.fc-phone { background: #e53935; animation: pulse 2s infinite; }
.fc-phone:hover { background: #c62828; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); } 70% { box-shadow: 0 0 0 14px rgba(229,57,53,0); } 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(8,23,42,.6); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal.show { display: flex; }
.modal-box { background: #fff; border-radius: 14px; padding: 30px; width: 100%; max-width: 440px; position: relative; }
.modal-box h3 { color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal-box form { display: grid; gap: 12px; }
.modal-box input, .modal-box textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.modal-box input:focus, .modal-box textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.modal-box .btn-primary { justify-content: center; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .btn-quote { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 10px 20px rgba(11,31,51,.1); display: none; max-height: 75vh; overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-menu { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav-menu > li > a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .has-sub:hover > .dropdown { display: none; }
  .has-sub.expanded > .dropdown { display: block; }
  .hero-grid, .cap-grid, .knowledge-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-visual { margin-bottom: 30px; }
  .products-grid, .media-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .promo-text span { display: none; }
  .section { padding: 56px 0; }
  .section-title h2, .capability h2 { font-size: 25px; }
  .products-grid, .media-grid, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-words small { display: none; }
}

/* ===== Trang chi tiết sản phẩm ===== */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb i { font-size: 10px; margin: 0 6px; }
.breadcrumb span { color: var(--text); }

.pd-top { padding: 40px 0 20px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 84px; aspect-ratio: 4/3; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; padding: 0; background: none; cursor: pointer; }
.pd-thumbs button.active { border-color: var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pd-tags span { font-size: 12px; font-weight: 700; color: var(--green); background: #e7f5ee; padding: 4px 10px; border-radius: 999px; }
.pd-info h1 { font-size: 28px; line-height: 1.3; color: var(--navy); margin-bottom: 14px; }
.pd-lead { color: var(--muted); margin-bottom: 10px; }
.pd-highlights { display: grid; gap: 10px; margin: 18px 0 24px; }
.pd-highlights li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; }
.pd-highlights i { color: var(--blue); margin-top: 4px; width: 18px; text-align: center; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-call, .btn-zalo { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; color: #fff; }
.btn-call { background: red; }
.btn-call:hover { background: red; }
.btn-zalo { background: red; }
.btn-zalo:hover { background: red; }

.pd-body { padding-top: 30px; }
.pd-content { max-width: 900px; }
.pd-anchor { display: flex; gap: 8px; margin-bottom: 28px; position: sticky; top: 72px; background: #fff; padding: 10px 0; z-index: 10; border-bottom: 1px solid var(--border); }
.pd-anchor a { padding: 7px 16px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 14px; color: var(--navy); }
.pd-anchor a:hover { background: var(--blue); color: #fff; }
.pd-block { margin-bottom: 38px; }
.pd-block h2 { font-size: 24px; color: var(--navy); margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--green); }
.pd-block p { margin-bottom: 10px; color: #2b3640; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.pd-table th, .pd-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.pd-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.pd-table tbody th { background: var(--bg); color: var(--navy); width: 28%; font-weight: 600; }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.pd-note i { color: var(--blue); }
.pd-list-check { display: grid; gap: 10px; }
.pd-list-check i { color: var(--green); margin-right: 8px; }
.pd-steps { counter-reset: s; display: grid; gap: 10px; margin-top: 10px; }
.pd-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--bg); border-radius: 8px; }
.pd-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.faq { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 14px 16px; font-weight: 700; color: var(--navy); cursor: pointer; }
.faq p { padding: 0 16px 14px; margin: 0; }
.notfound { text-align: center; max-width: 640px; }
.notfound h1 { color: var(--navy); margin-bottom: 8px; }
.notfound .pd-list { display: grid; gap: 8px; margin: 20px 0; }
.notfound .pd-list a { color: var(--blue); font-weight: 600; }

@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .pd-anchor { top: 62px; }
}
/* Khoảng cách giữa tiêu đề và khung ảnh ở cột trái */
.knowledge-grid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Khoảng cách giữa tiêu đề và danh sách bài viết ở cột phải */
#kien-thuc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Danh sách các bài viết */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.article:hover {
  border-color: #ff9800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article h3 {
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 6px;
}

.article p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.article span {
  font-size: 0.85rem;
  color: #ff9800;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
