/* ================================================================
   site.css — Khang Gia Phát JSC
   Bảng màu thương hiệu: Xanh dương + Trắng
     Primary blue : #1e40af  (--xanh)
     Bright blue  : #2563eb  (--do   — accent, thay thế đỏ cũ)
     Dark navy    : #15257a  (--toi  — footer/topbar)
     Heading text : #1f2937  (--dau-muc)
     Body text    : #1f2937  (--chu)
     Light bg     : #f4f7fb  (--nen  — white-blue tint)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
  --do:        #2563eb;   /* accent blue — replaces all old red */
  --xanh:      #1e40af;   /* primary deep blue */
  --toi:       #15257a;   /* dark navy — footer / topbar */
  --dau-muc:   #1f2937;
  --chu:       #1f2937;
  --xam:       #6b7280;
  --vien:      #e5e7eb;
  --nen:       #f4f7fb;   /* very-light blue-white, NOT silver/metallic */
  --r:         6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { width: 100%; overflow-x: hidden; }
body  { width: 100%; margin: 0; padding: 0; overflow-x: hidden;
        font-family: Arial, sans-serif; color: var(--chu); background: #fff; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', sans-serif; }
main  { display: block; width: 100%; }

a      { text-decoration: none; color: inherit; }
img    { max-width: 100%; display: block; }
ul     { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* ================================================================
   HEADER — Masthead trắng + Nav xanh
   ================================================================ */
.site-header { width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.12); position: sticky; top: 0; z-index: 1000; background: #fff; }

#masthead { width: 100%; background: #fff; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
#masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.logo-img  { height: 54px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-icon { width: 54px; height: 54px; background: var(--xanh); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: #fff; font-family: Oswald, sans-serif; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.logo-text  { font-family: Oswald, sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--xanh); line-height: 1.25; }
.logo-text .sub { display: block; font-size: .62rem; font-weight: 400; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; font-family: Arial, sans-serif; }

.header-contact { display: flex; gap: 6px; align-items: center; }
.hd-contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r);
  text-decoration: none; transition: background .15s;
}
.hd-contact-item:hover { background: var(--nen); }
.hd-contact-addr { cursor: default; }
.hd-contact-addr:hover { background: none; }
.hd-ci-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--xanh); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.hd-ci-label { font-family: 'Oswald', sans-serif; font-size: .65rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; line-height: 1; margin-bottom: 3px; }
.hd-ci-value { font-family: 'Oswald', sans-serif; font-size: .88rem; font-weight: 700; color: var(--xanh); white-space: nowrap; line-height: 1.2; }
.hd-contact-item:hover .hd-ci-value { color: var(--do); }

/* --- Nav xanh — menu căn giữa --- */
#wide-nav { width: 100%; background: var(--xanh); position: relative; }
#wide-nav .container { display: flex; align-items: stretch; justify-content: center; }

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 0; }
.main-nav a {
  display: flex; align-items: center; padding: 15px 17px;
  font-family: Oswald, sans-serif; font-size: .88rem; font-weight: 500;
  color: #fff; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; transition: background .15s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(0,0,0,.22); }

.nav-toggle { display: none; background: none; border: none; padding: 14px 16px; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* --- Nav dropdown --- */
.main-nav li.has-dropdown { position: relative; }
.main-nav li.has-dropdown > .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 210px; z-index: 600;
  border-top: 3px solid var(--do);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  padding: 6px 0;
}
.main-nav li.has-dropdown:hover > .dropdown { display: block; }
.main-nav .dropdown li a {
  display: block; padding: 10px 18px;
  color: var(--chu) !important; font-size: .84rem;
  font-family: Arial, sans-serif; text-transform: none;
  font-weight: 400; letter-spacing: 0; background: none;
  border-left: 3px solid transparent;
}
.main-nav .dropdown li a:hover {
  color: var(--xanh) !important; background: var(--nen);
  border-left-color: var(--xanh);
}

/* ================================================================
   SLIDER
   ================================================================ */
.site-slider { width: 100%; display: block; position: relative; overflow: hidden; background: #333; }
.slider-track { position: relative; height: 460px; width: 100%; }

.slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
}
.slide-1 { animation: xfade 18s  0s infinite; }
.slide-2 { animation: xfade 18s  6s infinite; }
.slide-3 { animation: xfade 18s 12s infinite; }

@keyframes xfade {
  0%   { opacity: 1; }
  28%  { opacity: 1; }
  33%  { opacity: 0; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}

.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.75); }

/* ================================================================
   SEC-CTA — Băng XANH ĐẬM full-width (thay băng đỏ cũ)
   Nút: xanh sáng chữ trắng (thay nút vàng cũ)
   ================================================================ */
.sec-cta { width: 100%; display: block; background: var(--toi); padding: 28px 0; }
.sec-cta .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.sec-cta-text {
  font-family: Oswald, sans-serif; font-size: 1.55rem; font-weight: 500;
  color: #fff; line-height: 1.4; flex: 1;
}
/* Nút primary — đồng bộ với .btn */
.btn-gold {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--do);
  color: #fff !important;
  font-family: Oswald, sans-serif;
  font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 22px; line-height: 1.4; border-radius: var(--r);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(37,99,235,.25); white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .15s; cursor: pointer;
}
.btn-gold:hover { background: var(--do-hover, #1d4ed8); box-shadow: 0 4px 12px rgba(0,0,0,.2); transform: translateY(-1px); }

/* ================================================================
   BLOCK WRAPPER
   ================================================================ */
.block       { width: 100%; display: block; padding: 50px 0; }
.block-alt   { width: 100%; display: block; background: var(--nen); }
.sec_02      { width: 100%; display: block; padding: 40px 0; }
.xp03        { width: 100%; display: block; background: var(--nen); padding: 50px 0 0; }

/* ================================================================
   HEADING
   ================================================================ */
.heading {
  margin-bottom: 20px;
  position: relative;
  text-align: center;
  font-size: 2.05rem;
  line-height: 1.35;
  text-transform: uppercase;
  padding-bottom: 18px;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  color: var(--dau-muc);
}
.heading::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--do);   /* xanh sáng */
  border-radius: 2px;
}
.heading a        { color: var(--dau-muc); }
.heading a:hover  { color: var(--xanh); }

.title_2 {
  text-align: center; margin-bottom: 20px;
  font-family: Oswald, sans-serif; font-size: 1.5rem;
  font-weight: 500; text-transform: uppercase; color: #444;
}
.title_2 span {
  display: inline-block; position: relative; padding: 0 46px;
}
.title_2 span::before,
.title_2 span::after {
  content: ''; position: absolute; top: 50%; width: 30px; height: 2px; background: var(--do);
}
.title_2 span::before { right: 100%; margin-right: -36px; }
.title_2 span::after  { left:  100%; margin-left:  -36px; }

.section-sub { text-align: center; color: var(--xam); font-size: .88rem; max-width: 600px; margin: 12px auto 32px; }

/* ================================================================
   NEWS-WIDGET-STYLE-51 — Grid 4 cột (Dịch vụ & Tin tức)
   ================================================================ */
.news-widget-style-51 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 24px;
}
.news-item-clear { display: flex; flex-direction: column; }

.news-thumb { overflow: hidden; margin-bottom: 14px; }
.news-thumb a { display: block; line-height: 0; }
.news-thumb img {
  width: 100%; height: 197px; object-fit: cover;
  transition: transform .3s;
}
.news-thumb img:hover { transform: scale(1.04); }

.box__slider { flex: 1; display: flex; flex-direction: column; }

.box__slider h4 { margin: 0 0 8px; }
.box__slider .news-title {
  display: block; font-size: 1rem; line-height: 1.45;
  font-weight: 600; color: var(--dau-muc);
  max-height: 2.9em; overflow: hidden;
  font-family: Arial, sans-serif;
}
.box__slider .news-title:hover { color: var(--xanh); }

.box__description {
  font-size: .88rem; line-height: 1.55; color: var(--dau-muc);
  max-height: 4.65em; overflow: hidden; flex: 1;
}
.box__description p { margin: 0; }

.views__all { margin-top: 10px; }
.views__all a {
  font-size: .88rem; line-height: 2; font-weight: 700;
  color: var(--do); display: inline-flex; align-items: center; gap: 4px;
}
.views__all a:hover { color: var(--xanh); }

/* ================================================================
   PRODUCT / PROJECT CARDS
   ================================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 28px; }

.card {
  background: #fff; border: 1px solid var(--vien); border-radius: var(--r);
  overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,.15); border-color: #bfdbfe; }
.card img   { width: 100%; height: 185px; object-fit: cover; background: var(--nen); }
.card-img-placeholder { width: 100%; height: 185px; background: #dbeafe; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #3b82f6; }
.card h3    { font-family: Oswald, sans-serif; font-size: 1rem; font-weight: 600; color: var(--xanh); padding: 12px 14px 5px; line-height: 1.35; }
.card-excerpt { font-size: .82rem; color: var(--xam); padding: 0 14px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta    { font-size: .74rem; color: #999; padding: 0 14px 12px; display: flex; gap: 10px; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--do); color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

/* Nút "Xem tất cả" — BỎ gradient vàng, dùng xanh đậm */
.view_cat { text-align: center; clear: both; padding: 28px 0 10px; }
.view_cat a {
  display: inline-block;
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 1.05rem;
  color: #fff; padding: 11px 36px;
  background: var(--xanh);
  box-shadow: 0 2px 8px rgba(30,64,175,.3); border-radius: var(--r);
  transition: background .15s, box-shadow .15s;
}
.view_cat a:hover { background: var(--do); box-shadow: 0 4px 12px rgba(37,99,235,.35); }

/* ================================================================
   PRODUCTS PAGE
   ================================================================ */
.product-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 18px; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--vien); margin-bottom: 22px;
}
.product-count { font-size: .87rem; color: var(--xam); }
.product-sort  { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--xam); }
.product-sort select {
  padding: 5px 10px; border: 1px solid var(--vien); border-radius: var(--r);
  font-family: inherit; font-size: .85rem; color: var(--chu); cursor: pointer;
}
.product-cats  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.product-cats a {
  display: inline-block; padding: 6px 18px;
  border: 1px solid var(--vien); border-radius: 20px;
  font-size: .85rem; color: var(--chu); transition: all .15s;
}
.product-cats a:hover, .product-cats a.active {
  background: var(--xanh); border-color: var(--xanh); color: #fff;
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.heading-left { text-align: left; }
.heading-left::after { left: 0; transform: none; }

.timeline { margin-top: 24px; }
.timeline-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 16px; margin-bottom: 22px; align-items: start;
  padding-bottom: 22px; border-bottom: 1px solid var(--vien);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.tl-year { font-family: Oswald,sans-serif; font-weight: 700; color: var(--xanh); font-size: 1rem; padding-top: 2px; }
.tl-text { font-size: .9rem; line-height: 1.75; color: var(--chu); }

/* ================================================================
   RT02 — THÔNG ĐIỆP TỪ GIÁM ĐỐC
   ================================================================ */
.rt02-section { width: 100%; display: block; background: #fff; padding: 50px 0; }
.rt02-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}
.rt02-left { padding-top: 40px; text-align: center; }
.rt02-left .director-img {
  width: 100%; max-width: 260px; height: auto;
  border-radius: var(--r); display: block; margin: 0 auto 14px;
}
.rt02-left h4 {
  font-size: 1.15rem; line-height: 1.4; color: var(--dau-muc);
  text-transform: uppercase; font-family: Oswald, sans-serif;
  font-weight: 400; margin-bottom: 4px;
}
.rt02-left p { color: #6b7280; font-family: Oswald, sans-serif; font-weight: 400; font-size: .9rem; }

.rt02-right .heading { text-align: left; }
.rt02-right .heading::after { left: 0; transform: none; }
.rt02-right h3 {
  text-align: center; color: #374151; font-style: italic;
  font-size: 1rem; font-weight: 400; margin-bottom: 4px;
}
.rt02-right p {
  margin-top: 12px; font-size: .93rem; line-height: 1.75;
  text-align: justify; color: var(--chu);
}
.rt02-right .slogan {
  text-align: center; color: var(--xanh); font-size: 1rem;
  font-weight: 600; font-style: normal; margin-top: 18px;
  font-family: Oswald, sans-serif;
}

/* ================================================================
   RT04 — SỐ LIỆU THỐNG KÊ (nền xanh đậm)
   ================================================================ */
.rt04 {
  width: 100%; display: block;
  background: var(--xanh) url('https://picsum.photos/seed/statsbg/1920/300') center/cover no-repeat;
  background-blend-mode: multiply;
  padding: 44px 0 24px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-box { padding: 20px 12px 28px; transition: transform .18s; }
.stat-box:hover { transform: translateY(-3px); }

.stat-box .box-image {
  display: flex; align-items: center; justify-content: center;
  height: 77px; margin-bottom: 10px;
}
.stat-box .box-image i { font-size: 3rem; color: #93c5fd; }

.stat-box .box-text-inner h4 {
  font-size: 2.75rem;
  color: #fff; text-transform: uppercase;
  font-family: Oswald, sans-serif; font-weight: 400;
  text-align: center; line-height: 1.1; margin-bottom: 4px;
}
.stat-box .box-text-inner p {
  font-size: 1.15rem;
  color: #bfdbfe; text-transform: uppercase;
  font-family: Oswald, sans-serif; font-weight: 400; text-align: center;
}

/* ================================================================
   XP06 — ĐỐI TÁC KHÁCH HÀNG
   ================================================================ */
.xp06 { width: 100%; display: block; background: var(--nen); padding: 30px 0; }
.partners-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 24px; }
.partner-item {
  width: 140px; height: 68px; background: #fff;
  border: 1px solid var(--vien); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #9ca3af; letter-spacing: .04em;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.partner-item:hover { border-color: var(--do); box-shadow: 0 2px 8px rgba(37,99,235,.18); color: var(--xanh); }

/* ================================================================
   FOOTER — nền xanh navy đậm
   ================================================================ */
.site-footer { width: 100%; display: block; background: var(--toi); color: #cbd5e1; padding: 44px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.fw-title { font-family: Oswald, sans-serif; font-size: .95rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-about p { font-size: .82rem; line-height: 1.75; color: #94a3b8; margin-bottom: 8px; }
.footer-about p i { color: #93c5fd; margin-right: 6px; }
.footer-menu li  { margin-bottom: 6px; }
.footer-menu a   { font-size: .82rem; color: #94a3b8; padding-left: 14px; position: relative; display: block; transition: color .15s; }
.footer-menu a::before { content: '›'; position: absolute; left: 0; color: #60a5fa; }
.footer-menu a:hover { color: #bfdbfe; }
.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-link  { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: .82rem; font-weight: 700; transition: border-color .15s, color .15s, background .15s; }
.social-link:hover { border-color: var(--do); color: #fff; background: var(--do); }
.footer-bottom { width: 100%; display: block; background: var(--footer-bottom-bg, #0f1a54); padding: 14px 0; text-align: center; font-size: .77rem; color: #6e8fab; border-top: 1px solid rgba(255,255,255,.08); }

/* ================================================================
   PAGE BANNER
   ================================================================ */
.page-banner {
  width: 100%; display: block; position: relative;
  background: var(--toi) url('https://picsum.photos/seed/pagebanner-ck/1920/350') center/cover no-repeat;
  background-blend-mode: multiply;
  padding: 62px 0;
}
.page-banner h1 { font-family: Oswald, sans-serif; font-size: 2rem; font-weight: 600; color: #fff; text-transform: uppercase; margin-bottom: 10px; line-height: 1.25; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #93c5fd; }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,.5); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--xanh); color: #fff !important; border: 2px solid transparent; border-radius: var(--r); padding: 10px 22px; font-family: Oswald, sans-serif; font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--do); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--xanh); color: var(--xanh) !important; }
.btn-outline:hover { background: var(--xanh); color: #fff !important; }
.btn-sm { padding: 6px 14px; font-size: .78rem; }

/* ================================================================
   POST DETAIL
   ================================================================ */
.post-detail { max-width: 820px; margin: 0 auto; padding: 48px 20px; }
.post-detail h1 { font-family: Oswald, sans-serif; font-size: 1.75rem; color: var(--xanh); margin-bottom: 14px; line-height: 1.3; }
.post-meta { font-size: .78rem; color: #999; margin-bottom: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-thumbnail { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); margin-bottom: 28px; }
.post-content { font-size: .95rem; line-height: 1.82; }
.post-content p { margin-bottom: 14px; }
.post-content h2, .post-content h3 { color: var(--xanh); margin: 24px 0 10px; font-family: Oswald, sans-serif; }
.post-back { margin-top: 36px; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info h3 { font-family: Oswald, sans-serif; font-size: 1.1rem; color: var(--xanh); margin-bottom: 16px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: .9rem; }
.contact-info-icon { width: 36px; height: 36px; background: var(--xanh); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; color: var(--xanh); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 9px 12px; border: 1px solid var(--vien); border-radius: var(--r); font-family: inherit; font-size: .9rem; margin-bottom: 12px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--xanh); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }

/* ================================================================
   ABOUT / PROFILE
   ================================================================ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-img { border-radius: var(--r); background: #dbeafe; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.value-item { background: #fff; border-radius: var(--r); padding: 18px; border-left: 3px solid var(--do); box-shadow: 0 1px 4px rgba(30,64,175,.07); }
.value-item h4 { font-family: Oswald, sans-serif; font-size: .93rem; font-weight: 600; color: var(--xanh); margin-bottom: 5px; }
.value-item p  { font-size: .82rem; color: var(--xam); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagination-wrap nav { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination-wrap span, .pagination-wrap a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--vien); border-radius: 4px; font-size: .85rem; color: var(--xanh); transition: background .15s, border-color .15s; }
.pagination-wrap a:hover { background: var(--nen); border-color: var(--xanh); }
.pagination-wrap [aria-current="page"] span { background: var(--xanh); border-color: var(--xanh); color: #fff; }

/* ================================================================
   ADMIN (inline legacy helpers — admin panel uses admin.css)
   ================================================================ */
.admin { max-width: 1000px; margin: 30px auto; padding: 0 20px 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin h1 { font-family: Oswald, sans-serif; font-size: 1.5rem; color: var(--xanh); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--vien); }
.admin-table th { background: var(--xanh); color: #fff; font-family: Oswald, sans-serif; text-transform: uppercase; font-size: .76rem; letter-spacing: .04em; font-weight: 600; }
.admin-table tr:hover td { background: var(--nen); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--xanh); font-weight: 600; margin-right: 8px; }
.admin-table button { background: none; border: none; color: #dc2626; font-weight: 600; font-size: .85rem; }
.admin form { background: #fff; border: 1px solid var(--vien); border-radius: var(--r); padding: 24px; }
.admin form label { display: block; margin: 14px 0 5px; font-weight: 600; color: var(--xanh); font-size: .84rem; }
.admin form input[type=text], .admin form input[type=email], .admin form input[type=file], .admin form select, .admin form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--vien); border-radius: var(--r); font-family: inherit; font-size: .9rem; }
.admin form input:focus, .admin form select:focus, .admin form textarea:focus { outline: none; border-color: var(--xanh); }
.admin form .checkbox { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; }
.admin form .checkbox input { width: auto; }
.admin form .btn { margin-top: 20px; }
.alert { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: .87rem; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.error ul { margin-left: 18px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .news-widget-style-51 { grid-template-columns: repeat(2,1fr); }
  .grid-4               { grid-template-columns: repeat(2,1fr); }
  .stats-grid           { grid-template-columns: repeat(2,1fr); }
  .footer-grid          { grid-template-columns: 1fr 1fr; }
  .hd-contact-addr { display: none; }
  .main-nav li.has-dropdown > .dropdown { position: static; box-shadow: none; border-top: none; border-left: 3px solid var(--do); padding: 0; background: rgba(0,0,0,.15); display: block; }
  .main-nav .dropdown li a { color: #fff !important; padding: 10px 24px; }
}
@media (max-width: 900px) {
  .rt02-inner { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .block  { padding: 36px 0; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .about-intro, .contact-grid, .rt02-inner { grid-template-columns: 1fr; }
  /* Director mobile: compact avatar row */
  .rt02-section           { padding: 28px 0; }
  .rt02-left              { display: flex; align-items: center; gap: 14px; text-align: left; padding-top: 0; }
  .rt02-left .director-img{ width: 80px; height: 80px; max-width: 80px; border-radius: 50%; object-fit: cover; margin: 0; }
  .rt02-left h4           { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-contact { display: none; }
  .slider-track { height: 300px; }
  .nav-toggle { display: flex; }
  #wide-nav { position: relative; }
  #wide-nav .container { justify-content: space-between; }
  #wide-nav .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--xanh); display: none; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
  #wide-nav .main-nav.open { display: block; }
  #wide-nav .main-nav ul { flex-direction: column; }
  .sec-cta-text { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  /* Tăng width nội dung: giảm padding container xuống 12px mỗi bên */
  .container { padding-left: 12px !important; padding-right: 12px !important; }
  .post-detail { padding: 24px 0; }
  .news-widget-style-51 { grid-template-columns: 1fr; }
  .grid-4, .grid-3      { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .heading              { font-size: 1.5rem; }
  .value-list           { grid-template-columns: 1fr; }
  /* Footer: about full-width, links+services side-by-side */
  .site-footer          { padding: 24px 0 0; }
  .footer-grid          { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-col.footer-about { grid-column: 1 / -1; }
  .footer-about p       { font-size: .78rem; line-height: 1.6; margin-bottom: 6px; }
  .fw-title             { font-size: .85rem; margin-bottom: 10px; padding-bottom: 6px; }
  .footer-menu li       { margin-bottom: 4px; }
  .footer-menu a        { font-size: .77rem; }
  .footer-bottom        { font-size: .72rem; padding: 10px 0; }
}

/* ================================================================
   CARD EQUAL-HEIGHT FIXES
   Grid children stretch to same height; excerpt grows, CTA stays bottom.
   ================================================================ */
.grid-4, .grid-3, .grid-2 { align-items: stretch; }
.card { height: 100%; }
.card .card-excerpt {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none;
}

/* Old news/service item structure (category/post list pages) */
.news-item-clear { height: 100%; display: flex; flex-direction: column; }
.news-item-clear .boxx__innner { flex: 1; display: flex; flex-direction: column; }
.box__slider { flex: 1; display: flex; flex-direction: column; }
.box__description { flex: 1; max-height: none; }
.box__description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.views__all { margin-top: auto; padding-top: 8px; }

/* ================================================================
   KP-CARD — Unified card component (home page sliders)
   ================================================================ */
.kp-card {
  background: #fff;
  border: none;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  transition: transform .18s, box-shadow .18s;
}
.kp-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,.18); }

.kp-card-icon {
  background: #eff6ff;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.75rem;
  color: var(--xanh);
  flex-shrink: 0;
}
.kp-card-img {
  width: 100%; height: 175px;
  overflow: hidden;
  background: #dbeafe;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kp-card:hover .kp-card-img img { transform: scale(1.04); }
.kp-card-img .ph-icon { font-size: 2rem; color: #60a5fa; }

.kp-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}
.kp-card-title {
  font-family: Oswald, sans-serif;
  font-size: .97rem; font-weight: 600; line-height: 1.4;
  color: var(--xanh); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-card-title a { color: inherit; }
.kp-card-title a:hover { color: var(--do); }
.kp-card-excerpt {
  font-size: .83rem; color: var(--xam); line-height: 1.6; flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-card-cta { margin-top: auto; padding-top: 4px; }
.kp-card-cta a { font-size: .83rem; font-weight: 700; color: var(--xanh); display: inline-flex; align-items: center; gap: 4px; }
.kp-card-cta a:hover { color: var(--do); }

/* ================================================================
   KS-SLIDER — CSS scroll-snap horizontal carousel (no lib required)
   ================================================================ */
.ks-slider-outer {
  position: relative;
  margin-top: 24px;
  padding: 0 28px;
}
.ks-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
  align-items: stretch;
}
.ks-track::-webkit-scrollbar { display: none; }
.ks-slide {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ks-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--vien);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  color: var(--xanh);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: Arial, sans-serif; font-weight: bold;
  transition: background .15s, border-color .15s, color .15s;
}
.ks-btn:hover { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.ks-btn-prev { left: -4px; }
.ks-btn-next { right: -4px; }

/* Partners: 6 per row on desktop */
.ks-slide-partner { flex: 0 0 calc(16.666% - 17px); }
.ks-slide-partner .partner-item { width: 100%; height: 68px; }

/* News grid — 4 col static */
.kp-news-slider-wrap { position: relative; }
.kp-news-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px; margin-top: 24px;
  align-items: stretch;
}
.kp-news-card {
  background: #fff; border: none; border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  transition: transform .18s, box-shadow .18s;
}
.kp-news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,.17); }
.kp-news-thumb a { display: block; overflow: hidden; position: relative; }
.kp-news-thumb img { width: 100%; height: 172px; object-fit: cover; display: block; transition: transform .3s; }
.kp-news-thumb a:hover img { transform: scale(1.04); }
/* Date badge trên ảnh */
.kp-news-date-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--xanh); color: #fff;
  font-size: .68rem; font-weight: 700; font-family: Oswald, sans-serif;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .02em;
  pointer-events: none;
}
.kp-news-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.kp-news-title {
  font-size: .95rem; font-weight: 600; line-height: 1.45; font-family: Arial, sans-serif; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-news-title a { color: var(--dau-muc); }
.kp-news-title a:hover { color: var(--xanh); }
.kp-news-excerpt {
  font-size: .83rem; color: var(--xam); line-height: 1.6; flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-news-cta { margin-top: auto; padding-top: 4px; }
.kp-news-cta a {
  font-size: .82rem; font-weight: 700; color: var(--xanh);
  display: inline-flex; align-items: center; gap: 5px;
}
.kp-news-cta a:hover { color: var(--do); }

/* Dots & swipe hint — ẩn mặc định, hiện trên mobile */
.kp-news-dots      { display: none; }
.kp-news-swipe-hint{ display: none; }

/* ── Slider / news responsive ────────────────────── */
@media (max-width: 1024px) {
  .ks-slide         { flex: 0 0 calc(33.333% - 14px); }
  .ks-slide-partner { flex: 0 0 calc(25% - 15px); }
  .kp-news-grid     { grid-template-columns: repeat(2,1fr); }
}

/* ── NEWS MOBILE SLIDER ───────────────────────────── */
@media (max-width: 768px) {
  /* Xả container để slider chạy sát cạnh màn hình */
  .kp-news-slider-wrap { margin-left: -20px; margin-right: -20px; }
  /* Chuyển grid thành horizontal scroll slider */
  .kp-news-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    margin-top: 16px;
    /* padding trái = lề container, phải thêm 20px để thấy hé card cuối */
    padding: 4px 32px 12px 20px;
    align-items: stretch;
  }
  .kp-news-grid::-webkit-scrollbar { display: none; }
  /* Mỗi card chiếm 78% — hé 22% để người dùng biết có thể vuốt */
  .kp-news-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .kp-news-thumb img  { height: 155px; }
  .kp-news-excerpt    { display: none; }
  .kp-news-body       { padding: 11px 12px 13px; gap: 8px; }
  .kp-news-title      { font-size: .9rem; -webkit-line-clamp: 3; }
  /* Button "Xem thêm" → pill button xanh */
  .kp-news-cta a {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--xanh); color: #fff !important;
    padding: 7px 16px; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
    transition: background .15s;
  }
  .kp-news-cta a:hover { background: var(--do); }
  /* Dots indicator */
  .kp-news-dots {
    display: flex; justify-content: center; gap: 7px;
    margin: 10px 20px 0;
  }
  .kp-news-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #d1d5db;
    transition: background .22s, transform .22s, width .22s;
    cursor: pointer;
  }
  .kp-news-dots span.active {
    background: var(--xanh);
    transform: scale(1.25);
    width: 20px; border-radius: 4px;
  }
  /* Swipe hint với animation nhẹ */
  .kp-news-swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .73rem; color: #9ca3af;
    margin: 6px 20px 0;
  }
  .kp-news-swipe-hint i {
    animation: swipe-nudge 1.8s ease-in-out infinite;
  }
  @keyframes swipe-nudge {
    0%,100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
  }
}
@media (max-width: 768px) {
  .ks-slide         { flex: 0 0 calc(50% - 10px); }
  .ks-slide-partner { flex: 0 0 calc(33.333% - 14px); }
  .ks-btn           { width: 30px; height: 30px; font-size: 1.1rem; }
  .ks-slider-outer  { padding: 0 20px; }
}
@media (max-width: 480px) {
  /* ẩn nút mũi tên — mobile dùng vuốt ngón tay */
  .ks-btn           { display: none; }
  /* bỏ padding dành cho nút → card rộng hơn */
  .ks-slider-outer  { padding: 0; }
  /* 88% = card lớn + 12% hé card kế để người dùng biết còn có thể vuốt */
  .ks-slide         { flex: 0 0 88%; }
  .ks-slide-partner { flex: 0 0 calc(50% - 10px); }
  /* Director: thu nhỏ thêm */
  .rt02-section       { padding: 22px 0; }
  .rt02-right h3      { font-size: .85rem; }
  .block              { padding: 28px 0; }
  .xp03               { padding: 28px 0 0; }
  .sec_02             { padding: 28px 0; }
}
