/* HiDev Solution - multi-page site styles */
:root {
  --navy: #1a4d8f;
  --navy-deep: #0f2547;
  --cyan: #17a2dd;
  --green: #8cc63f;
  --ink: #14233b;
  --muted: #5b6b82;
  --line: #e3eaf2;
  --soft: #f5f9fc;
  --soft-2: #eef5fb;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
/* Khi 1 phần tử dùng cả .section và .container: giữ padding dọc + ngang */
.section.container { padding: 72px 24px; }
.section-soft { background: var(--soft); }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 77, 143, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(26, 77, 143, 0.32); }
.btn-primary:disabled { opacity: 0.8; cursor: wait; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* Icon tròn nền nhạt */
.value-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--soft-2);
  display: grid; place-items: center;
  flex: none;
}
.value-icon i {
  font-size: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px; height: 76px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo img { height: 44px; }
.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
  font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
  color: var(--ink); padding: 6px 0;
  position: relative; transition: color 0.2s ease;
}
.nav-link:hover { color: var(--cyan); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.4px;
  padding: 12px 20px; border-radius: 10px;
  box-shadow: 0 8px 18px rgba(26, 77, 143, 0.22);
  transition: transform 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; font-size: 24px; color: var(--navy);
  cursor: pointer;
}

/* ===== Home hero ===== */
.home-hero {
  position: relative;
  background: linear-gradient(180deg, #eaf4fc 0%, #f7fbff 100%);
  overflow: hidden;
  padding: 64px 0 70px;
}
.home-hero-img {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 54%;
  background-image: url("../images/hidevsolution_building.png");
  background-size: cover; background-position: left center;
}
/* Gradient hoà ảnh vào nền sáng bên trái + đáy */
.home-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #eaf4fc 0%, rgba(234, 244, 252, 0.6) 12%, rgba(234, 244, 252, 0) 38%),
    linear-gradient(0deg, #f7fbff 0%, rgba(247, 251, 255, 0) 22%);
}
.home-hero-grid { position: relative; z-index: 2; }
.home-hero-content { max-width: 600px; }
.home-hero-content h1 { display: flex; flex-direction: column; line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; }
.home-hero-content h1 .l1 { font-size: clamp(26px, 3.4vw, 42px); color: var(--navy); white-space: nowrap; }
.home-hero-content h1 .l2 { font-size: clamp(26px, 3.4vw, 42px); color: var(--cyan); white-space: nowrap; }
.home-hero-bar { display: block; width: 70px; height: 5px; border-radius: 3px; background: var(--green); margin: 20px 0; }
.home-hero-tagline { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.home-hero-desc { font-size: 16px; color: var(--muted); max-width: 460px; margin: 0 0 30px; }
.home-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.home-hero-meta { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; color: var(--navy); flex-wrap: wrap; }
.home-hero-meta i { color: var(--cyan); margin-right: 8px; }
.home-hero-meta .sep { width: 1px; height: 18px; background: var(--line); }

/* Value bar nổi */
.value-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  margin-top: 56px; position: relative; z-index: 5; overflow: hidden;
}
.value-item { display: flex; gap: 14px; padding: 28px 26px; }
.value-item + .value-item { border-left: 1px solid var(--line); }
.value-item h5 { font-size: 14px; font-weight: 800; margin-bottom: 5px; }
.value-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Home CTA */
.home-cta {
  margin: 72px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 20px; padding: 40px 44px; color: #fff;
}
.home-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.home-cta p { margin: 0; color: #b9cbe0; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  background-image:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(15,37,71,0.85) 38%, rgba(15,37,71,0.35) 70%, rgba(15,37,71,0.55) 100%),
    url("../images/page-hero-bg.png");
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  color: #fff; padding: 86px 0; text-align: left;
  position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-text { max-width: 600px; }
.page-hero .page-hero p { margin-left: 0; margin-right: 0; }
@media (max-width: 768px) {
  .page-hero {
    text-align: center; padding: 56px 0;
    background-image:
      linear-gradient(180deg, rgba(15,37,71,0.88), rgba(15,37,71,0.92)),
      url("../images/page-hero-bg.png");
    background-position: center, center;
  }
  .page-hero-text { max-width: 100%; }
  .page-hero .page-hero p { margin-left: auto; margin-right: auto; }
}
.page-hero-eyebrow { display: inline-block; color: #7fd0f5; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 12px; }
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.page-hero p { max-width: 620px; margin: 16px 0 0; color: #c5d6e8; font-size: 16px; }

/* Card grids */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* About */
.about-intro { max-width: 820px; margin: 0 auto 50px; text-align: center; font-size: 17px; color: var(--muted); }
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; text-align: center; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.vm-card .vm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--soft-2); display: grid; place-items: center; margin: 0 auto 18px; }
.vm-card .vm-icon i { font-size: 30px; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vm-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.vm-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* Generic value/service/project/news cards */
.value-card, .service-card, .project-card, .product-card, .news-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-card:hover, .service-card:hover, .project-card:hover, .product-card:hover, .news-card:hover {
  transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,0.1); border-color: rgba(23,162,221,0.3);
}
.value-card, .service-card { padding: 30px 22px; text-align: center; }
.value-card .value-icon, .service-card .value-icon { margin: 0 auto 16px; }
.value-card h5, .service-card h5 { font-size: 14px; font-weight: 800; margin-bottom: 8px; white-space: pre-line; }
.value-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Process flow */
.process-flow { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-wrap: wrap; }
.process-node { text-align: center; flex: 1; min-width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 14px; }
.process-node .value-icon { margin: 0 auto 12px; }
.process-no { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.process-node h5 { font-size: 12px; font-weight: 800; white-space: pre-line; }
.process-line { align-self: center; color: #c7d6e6; padding-top: 30px; }

/* Product cards */
.product-card { padding: 32px; }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-head h3 { font-size: 20px; font-weight: 800; }
.product-desc { color: var(--muted); margin: 0 0 18px; }
.product-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; color: var(--ink); }
.product-features i { color: var(--green); }

/* Project cards */
.project-card { overflow: hidden; }
.project-thumb { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft-2), #eafaf0); padding: 16px; }
.project-logo { max-height: 70px; max-width: 80%; width: auto; object-fit: contain; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery-item a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.12); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.gallery-item figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .project-gallery { grid-template-columns: 1fr; } }
/* Project detail */
.project-detail-head { margin-bottom: 28px; }
.project-detail-logo { max-height: 90px; max-width: 260px; object-fit: contain; }
.project-detail-icon { width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft-2), #eafaf0); }
.project-detail-icon i { font-size: 40px; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.project-detail-h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 28px 0 14px; }
.project-feature-list { display: grid; gap: 10px; margin: 0 0 8px; }
.project-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.project-feature-list i { color: var(--green); }
.aside-block { margin-bottom: 26px; }
.aside-block:last-child { margin-bottom: 0; }
.aside-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-tech-chip { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
.aside-item .aside-thumb img { max-width: 70%; max-height: 70%; object-fit: contain; }
.project-thumb i { font-size: 44px; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.project-body { padding: 24px; }
.project-body h5 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 14px; margin: 0; }

/* Tech wall */
.tech-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tech-chip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 10px; text-align: center; box-shadow: 0 4px 12px rgba(15,23,42,0.05); }
.tech-chip i { font-size: 34px; display: block; margin-bottom: 10px; }
.tech-chip span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* News cards */
.news-card { display: flex; overflow: hidden; }
.news-thumb { flex: none; width: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--cyan)); }
.news-thumb i { font-size: 40px; color: #fff; }
.news-body { padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.news-cat { background: var(--soft-2); color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.news-date { font-size: 12px; color: var(--muted); }
.news-date i { margin-right: 5px; }
.news-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.news-more { color: var(--cyan); font-weight: 700; font-size: 13px; }
.news-more i { margin-left: 5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info-item { display: flex; gap: 16px; align-items: center; }
.contact-info-label { display: block; font-size: 12px; color: var(--muted); }
.contact-info-value { display: block; font-weight: 600; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 12px 36px rgba(15,23,42,0.07); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 14px; outline: none; transition: border-color 0.2s ease; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.field input.err, .field textarea.err { border-color: #ef4444; }
.field-err { color: #ef4444; font-size: 12px; margin-top: 5px; display: block; }
.form-ok { color: #16a34a; font-size: 14px; text-align: center; margin: 14px 0 0; }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); color: #b9cbe0; padding: 60px 0 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-logo { height: 46px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: #9fb2c8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--cyan); color: #fff; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #9fb2c8; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; margin-bottom: 12px; }
.footer-contact i { color: var(--cyan); margin-top: 3px; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13px; color: #7e93ac; }

.d-desktop { display: inline-flex; }


/* ===== Home extra sections ===== */
.accent { color: var(--cyan); }
.sec-head h2 .accent { color: var(--cyan); }

/* Services on home */
.home-services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.hs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.hs-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,0.1); border-color: rgba(23,162,221,0.3); }
.hs-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--soft-2); display: grid; place-items: center; margin-bottom: 16px; }
.hs-icon i { font-size: 24px; color: var(--navy); }
.hs-card h5 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.hs-card p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.hs-link { color: var(--cyan); font-weight: 700; font-size: 13px; }
.hs-link i { margin-left: 5px; transition: transform 0.2s ease; }
.hs-card:hover .hs-link i { transform: translateX(4px); }

/* Two-col block (projects + clients) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.block-head h3 { font-size: 20px; font-weight: 800; position: relative; }
.block-head h3::before { content: ""; position: absolute; left: 0; bottom: -16px; width: 50px; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.block-more { color: var(--cyan); font-weight: 600; font-size: 13px; white-space: nowrap; }
.block-more i { margin-left: 5px; }

.proj-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proj-thumb-item { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #16294a; }
.proj-thumb-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.proj-thumb-item:hover img { transform: scale(1.06); }
.proj-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proj-mini-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; min-height: 120px; padding: 18px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(135deg, var(--soft-2), #eafaf0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.proj-mini-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,0.1); border-color: rgba(23,162,221,0.3); }
.proj-mini-item i { font-size: 30px; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.proj-mini-item img { max-height: 40px; max-width: 70%; object-fit: contain; }
.proj-mini-item span { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client-item { border: 1px solid var(--line); border-radius: 12px; height: 76px; display: grid; place-items: center; padding: 12px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.client-item:hover { box-shadow: 0 8px 20px rgba(15,23,42,0.08); border-color: rgba(23,162,221,0.3); }
.client-item img { max-height: 40px; max-width: 100%; object-fit: contain; }
.client-wordmark { font-weight: 800; font-size: 20px; letter-spacing: 0.3px; }

/* Home news */
.home-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hn-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hn-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,23,42,0.1); }
.hn-thumb { flex: none; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; }
.hn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-date { font-size: 12px; color: var(--muted); }
.hn-body h4 { font-size: 14px; font-weight: 800; margin: 5px 0 7px; line-height: 1.35; }
.hn-body p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Footer newsletter */
.footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.3fr; }
.footer-news-desc { font-size: 13px; color: #9fb2c8; margin: 0 0 14px; }
.footer-news { display: flex; border-radius: 10px; overflow: hidden; background: #fff; }
.footer-news input { flex: 1; border: none; padding: 11px 14px; font: inherit; font-size: 13px; outline: none; min-width: 0; }
.footer-news button { border: none; background: linear-gradient(135deg, var(--navy), var(--cyan)); color: #fff; font-weight: 700; font-size: 12px; padding: 0 16px; cursor: pointer; white-space: nowrap; }


/* ===== Responsive (đặt cuối để override base rules) ===== */
/* Laptop nhỏ / tablet ngang (<=1100px) */
@media (max-width: 1100px) {
  .container { padding: 0 20px; }
  .section.container { padding: 72px 20px; }
  .nav-inner { gap: 16px; }
  .nav-menu { gap: 18px; }
  .home-hero-img { width: 46%; }
  .card-grid.cols-5, .tech-wall { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (<=900px): an menu desktop, hien hamburger */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    display: none; box-shadow: 0 16px 30px rgba(15,23,42,0.08);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .d-desktop { display: none; }

  .home-hero-img { opacity: 0.25; width: 60%; }
  .home-hero-content { max-width: 100%; }
  .home-hero-content h1 .l1,
  .home-hero-content h1 .l2 { white-space: normal; }
  .value-bar { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(3) { border-left: none; }
  .value-item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .home-services { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .home-news { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile (<=600px) */
@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .section { padding: 48px 0; }
  .section.container { padding: 48px 24px; }
  .nav-inner { height: 64px; }
  .nav-logo img { height: 36px; }

  /* Hero: building banner đẩy lên đầu, trên phần text */
  .home-hero { padding: 24px 0 40px; display: flex; flex-direction: column; }
  .home-hero-grid { order: 2; }
  .home-hero-img {
    order: 1; position: relative; display: block;
    width: calc(100% - 48px); margin: 0 auto 28px;
    height: 200px; opacity: 1; border-radius: 16px;
  }
  .home-hero-img::after { display: none; }
  .value-bar-wrap { order: 3; }
  .home-hero-btns { flex-direction: column; align-items: stretch; }
  .home-hero-btns .btn { justify-content: center; }
  .home-hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-hero-meta .sep { display: none; }

  .value-bar { grid-template-columns: 1fr; margin-top: 28px; }
  .value-item + .value-item { border-left: none; border-top: 1px solid var(--line); }

  .home-services { grid-template-columns: 1fr; }
  .proj-thumbs { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-wall { grid-template-columns: repeat(3, 1fr); }
  .process-line { display: none; }
  .process-node { min-width: 44%; }

  .vm-grid,
  .contact-grid,
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-5,
  .card-grid.cols-4 { grid-template-columns: 1fr; }

  /* Gạch xanh tiêu đề không đè lên link "Xem tất cả" */
  .block-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 0; border-bottom: none; }
  .block-head h3 { padding-bottom: 14px; }
  .block-head h3::before { bottom: 0; }
  .block-more { order: 2; }

  .home-cta { padding: 28px 22px; text-align: center; }

  .news-card { flex-direction: column; }
  .news-thumb { width: 100%; height: 120px; }

  .sec-head h2 { font-size: 26px; }
  .page-hero { padding: 52px 0; }
  .page-hero h1 { font-size: 30px; }

  .footer { padding: 44px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== News detail (article) ===== */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-body { font-size: 16px; color: var(--ink); }
.article-cover { height: 240px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--cyan)); margin-bottom: 28px; }
.article-cover i { font-size: 64px; color: #fff; }
/* Ảnh bìa thật */
.article-cover-img { border-radius: 16px; overflow: hidden; margin-bottom: 26px; max-height: 380px; }
.article-cover-img img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; }
/* Đoạn mở đầu (lead) */
.article-lead { font-size: 18px !important; font-weight: 600; color: var(--ink) !important; line-height: 1.7 !important; margin-bottom: 26px !important; padding-left: 16px; border-left: 4px solid var(--cyan); }
/* Khối nội dung có tiêu đề phụ + ảnh */
.article-block { margin-bottom: 8px; }
.article-block h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 26px 0 14px; }
.article-figure { margin: 22px 0 26px; }
.article-figure a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(15,23,42,0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.article-figure a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,0.14); }
.article-figure img { width: 100%; display: block; }
.article-figure figcaption { margin-top: 10px; text-align: center; font-size: 13px; font-style: italic; color: var(--muted); }
/* Meta tác giả/ngày */
.article-meta { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-body p { margin: 0 0 18px; color: var(--muted); line-height: 1.8; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--cyan); font-weight: 700; font-size: 14px; }
.article-back i { transition: transform 0.2s ease; }
.article-back:hover i { transform: translateX(-4px); }

.article-aside { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 96px; }
.article-aside h4 { font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.aside-list { display: grid; gap: 16px; }
.aside-item { display: flex; gap: 12px; align-items: center; }
.aside-thumb { flex: none; width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--cyan)); }
.aside-thumb i { color: #fff; font-size: 20px; }
.aside-date { font-size: 12px; color: var(--muted); }
.aside-item h5 { font-size: 13px; font-weight: 700; line-height: 1.4; margin-top: 3px; transition: color 0.2s ease; }
.aside-item:hover h5 { color: var(--cyan); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 600px) {
  .article-cover { height: 180px; }
  .article-cover i { font-size: 48px; }
}
