/* ============================================================
   WiHub — main.css  (1 file shared cho mọi page)
   Gồm: design tokens · global/reset · section helpers ·
        SHARED COMPONENTS (navbar · footer · buttons · contact · news-card)
   Load order: vendor → THIS FILE → pages/[page].css
   (hero + card-capability chỉ ở home → nằm trong pages/index.css)
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Brand */
  --color-brand-dark:       #141240;
  --color-brand-default:    #0d50a1;
  --color-brand-light:      #1aa4dd;
  --color-brand-complement: #1871dc;

  /* Text */
  --color-text-main:        #141240;
  --color-text-secondary:   #4e517a;
  --color-text-tertiary:    #7a879a;
  --color-text-placeholder: #9ea7b5;
  --color-text-draft-secondary: rgba(20, 18, 64, 0.7);  /* v1.1 --Text-Draft-Secondary #141240b3 */

  /* White alpha */
  --color-white:            #ffffff;
  --color-white-90:         rgba(255, 255, 255, 0.9);
  --color-white-80:         rgba(255, 255, 255, 0.8);
  --color-white-70:         rgba(255, 255, 255, 0.7);
  --color-white-60:         rgba(255, 255, 255, 0.6);
  --color-white-50:         rgba(255, 255, 255, 0.5);
  --color-white-20:         rgba(255, 255, 255, 0.2);
  --color-white-12:         rgba(255, 255, 255, 0.12);
  --color-white-10:         rgba(255, 255, 255, 0.1);
  --color-white-96:         rgba(255, 255, 255, 0.96);

  /* Section backgrounds */
  --color-bg-blue:          #f6f9fc;
  --color-bg-yellow:        #f9f8f5;
  --color-bg-icon:          #f3f3f3;
  --color-bg-dark:          #141240;

  /* Borders */
  --color-border:           #e5edf5;  /* v1.1 --Border-Divider-Border (viền card nhạt) */
  --color-border-divider:   #c8d2e1;  /* v1.1 --Border-Divider-Divider (đường kẻ/timeline đậm hơn) */

  /* Spacing */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* Border radius */
  --radius-sm:  4px;  --radius-md:  8px;  --radius-lg:  12px;
  --radius-xl:  16px; --radius-2xl: 24px; --radius-pill: 100px;

  /* Shadows */
  --shadow-card: 0px 0.5px 2px rgba(36, 63, 97, 0.12), 0px 2px 12px rgba(36, 63, 97, 0.11);
  --shadow-card-hover: 0px 4px 24px rgba(36, 63, 97, 0.18);
  --shadow-nav:  0px 1px 4px rgba(12, 12, 13, 0.04), 0px 4px 16px rgba(12, 12, 13, 0.08);
  --shadow-btn:  0 1px 4px rgba(12, 12, 13, 0.1), 0 1px 4px rgba(12, 12, 13, 0.05);
  --shadow-btn-primary: 0 4px 8px -1px rgba(12, 12, 13, 0.1), 0 1px 1px -1px rgba(12, 12, 13, 0.05);
  --focus-ring:  0 0 0 3px rgba(13, 80, 161, 0.15);

  /* Brand gradients (nút primary) */
  --gradient-primary:       linear-gradient(98.2deg, #0d50a1 1.8%, #1871dc 92.8%);
  --gradient-primary-hover: linear-gradient(98.2deg, #1871dc 1.8%, #2aabe8 92.8%);

  /* Typography */
  --font-family:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs:   12px; --font-size-sm:   14px; --font-size-base: 16px;
  --font-size-lg:   18px; --font-size-xl:   20px; --font-size-2xl:  24px;
  --font-size-3xl:  30px; --font-size-4xl:  36px; --font-size-5xl:  48px;
  --font-size-6xl:  60px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Navbar */
  --navbar-height: 72px;
}

/* ── Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  overflow-x: clip;          /* chặn tràn ngang nhưng KHÔNG tạo scroll-container → position:sticky vẫn chạy */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 0;
}

/* ── Section heading pattern: "Label / Title accent" ─────── */
.section-label {
  display: block;
  font-size: var(--font-size-xl);   /* 20px */
  font-weight: 700;
  color: var(--color-brand-dark);
  margin-bottom: var(--space-2);
}
.section-label--light { color: var(--color-white); }

/* Section title — v1.1: 46px/800, line-height 1.3, chữ GRADIENT xanh (đo :8080) */
.section-title {
  font-size: 46px;   /* v1.1 giữ 46px mọi breakpoint (đo Docker 390/768/1280) */
  font-weight: 800;
  line-height: 1.3;
  background-image: linear-gradient(91deg, #6598ea 29.5%, #1b5bd2 70.7%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* dark-bg sections: gradient sáng hơn cho tương phản (đo v1.1) */
.section-title--light {
  background-image: linear-gradient(91deg, #6597e9 29.5%, #91b0eb 65.7%);
  color: transparent;
}
.section-title em,
.section-title .accent { font-style: normal; }

.section-desc {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.section-desc--light { color: var(--color-white-70); }

/* ── Container = MÔ HÌNH v1.1: nội dung max-width 1170px + gutter 48px (≥768) / 24px (mobile) ──
   v1.1 section: padding ngang 48px (24px ở index/navbar/mobile) BAO quanh content max-width:1170px.
   max-width 1266 = 1170 + 2×48 → desktop nội dung đúng 1170px, lề khớp v1.1 (135px @1440).
   Bootstrap mặc định 1140/1320px + gutter 12px → lệch; override unconditional. */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  max-width: 1266px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 767.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── Layout ──────────────────────────────────────────────── */
.section-padding {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}
@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ── Mobile: giảm gutter lớn để tránh tràn ngang (g-5 = 3rem âm margin > padding container) ── */
@media (max-width: 575.98px) {
  .row.g-5,
  .row.g-4 {
    --bs-gutter-x: 1.5rem;
  }
}


/* ==========================================================================
   SHARED COMPONENTS (gộp vào main.css để ít file, dễ quản lý)
   navbar · footer · buttons · contact · news-card — dùng chung nhiều page.
   ========================================================================== */
/* ==========================================================================
   Component: Navbar  (ground truth: v1.1 render @1920)
   Bar = frosted trắng [rgba(255,255,255,.9) + blur(50px)], logo/links TỐI, CTA xanh đặc
   ========================================================================== */

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: var(--navbar-height);
  padding: 9px 0;
  background: var(--color-white-90);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  border-bottom: 1px solid var(--color-white-20);
  transition: background var(--transition-base), box-shadow var(--transition-base);

  &.is-scrolled {
    background: var(--color-white-96);
    box-shadow: var(--shadow-nav);
  }
  & .container-xl { min-height: calc(var(--navbar-height) - 18px); }
}

/* --- Tablet/mobile: navbar thấp hơn (v1.1 ~54px, padding 10 + logo) -------- */
@media (max-width: 991.98px) {
  .site-navbar { min-height: 54px; padding-top: 6px; padding-bottom: 6px; }  /* v1.1 ~54px */
  .site-navbar .container-xl { min-height: 40px; }
}

/* --- Brand logo (dark) -------------------------------------------------- */
.site-navbar__logo { height: 32px; width: auto; }
.site-navbar__logo--white { display: none; }
.site-navbar__logo--dark { display: block; }

/* --- Nav links (#4e517a secondary, 15px/500) ---------------------------- */
.site-navbar__link {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  border-radius: var(--radius-md);  /* 8px — v1.1 pill radius */
  transition: color var(--transition-fast), background-color var(--transition-fast);

  /* v1.1: hover = PILL NỀN xanh nhẹ (bg fill, KHÔNG viền) + chữ navy đậm */
  &:hover,
  &:focus {
    color: var(--color-brand-dark);                 /* #141240 navy */
    background-color: rgba(24, 113, 220, 0.12);     /* nền xanh nhẹ */
  }
}

/* --- CTA "Liên Hệ Ngay": solid #0d50a1, chữ trắng, radius 12px ---------- */
.site-navbar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-brand-default);
  border: 1px solid var(--color-brand-default);
  border-radius: 12px;
  box-shadow: var(--shadow-btn);
  transition: background-color var(--transition-base), color var(--transition-base);

  /* hover: xanh NHẠT HƠN #1871dc */
  &:hover,
  &:focus {
    background-color: var(--color-brand-complement);
    border-color: var(--color-brand-complement);
    color: var(--color-white);
  }
}

/* --- Toggler ------------------------------------------------------------- */
.site-navbar__toggler {
  border: none;
  padding: 4px 8px;

  &:focus { box-shadow: none; }
}

/* --- Mobile (< 992px) ---------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-navbar { background: var(--color-white-96); }
  .site-navbar .navbar-collapse { padding-bottom: var(--space-4); }
  /* v1.1 menu mobile: item cao + kẻ phân cách dưới mỗi item */
  .site-navbar__link {
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .site-navbar__link:hover,
  .site-navbar__link:focus { background-color: transparent; }
  /* CTA full-width, chữ giữa (v1.1) */
  .site-navbar__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--space-4);
    text-align: center;
  }
  /* Toggler → X khi menu mở (v1.1) */
  .site-navbar__toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23141240' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}
/* ==========================================================================
   Component: Footer — dark navy gradient, 4 columns
   ========================================================================== */

.site-footer {
  background: linear-gradient(168.2deg, #141240 35.5%, #234494 70.8%, #2053cf 83.2%);  /* v1.1 #_Footer_1 */
  color: var(--color-white);
  padding-top: 100px;        /* v1.1 #_Footer_1 padding:100px 48px 16px */
  padding-bottom: 16px;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-5);
}

.site-footer__tagline {
  font-size: 16px;          /* v1.1 #Address_Text_3 16/400 */
  line-height: 1.5;
  color: var(--color-white-50);
  max-width: 230px;          /* v1.1 render 230px — wrap 3 dòng như reference */
}

/* --- Column titles ------------------------------------------------------ */
.site-footer__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white-50);   /* v1.1 #Title column heading rgba(255,255,255,0.5) */
  margin-bottom: var(--space-5);
}

/* --- Nav list ----------------------------------------------------------- */
.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);       /* v1.1 #Text_Link_List row-gap:4px */
}

/* --- Mobile: footer giãn cách như v1.1 (tagline 2 dòng, nav links rộng) ---- */
@media (max-width: 575.98px) {
  .site-footer__tagline { max-width: none; }
  .site-footer__nav { gap: 14px; }
}

.site-footer__link {
  color: var(--color-white-80);
  font-size: 16px;          /* v1.1 #Title_59 16/400 */
  transition: color var(--transition-fast);

  &:hover,
  &:focus { color: var(--color-white); }
}

/* --- Contact ------------------------------------------------------------ */
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;                /* v1.1 #Slot_0 row-gap 14 */
}

.site-footer__contact-item {
  display: flex;
  align-items: center;      /* v1.1 #Address/#Phone/#Email align-items center */
  gap: 10px;                /* v1.1 column-gap 10 */
  font-size: 16px;          /* v1.1 #Address_Text 16/400 */
  color: var(--color-white-80);
  line-height: 1.5;
}

.site-footer__icon {
  width: 20px;              /* v1.1 #MapPin/#Phone_0/#EnvelopeSimple 20×20 */
  height: 20px;
  flex-shrink: 0;
  color: var(--color-white-50);   /* v1.1 #Vector fill White-50 (#ffffff80), KHÔNG phải cyan brand-light */
}
/* Địa chỉ 2 dòng: ghim pin lên TRÊN (v1.1 #Location_Container align-self:stretch + align-items:start + pad-top 2) */
.site-footer__contact-item:first-child .site-footer__icon {
  align-self: flex-start;
  margin-top: 2px;
}

/* --- Social ------------------------------------------------------------- */
.site-footer__social {
  display: flex;
  gap: var(--space-3);
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: color var(--transition-base);

  /* v1.1 render + reference: icon TRƠN 20-24px, KHÔNG ô nền */
  & svg { width: 20px; height: 20px; }
  &:hover,
  &:focus { color: var(--color-brand-light); }
}

/* --- Bottom ------------------------------------------------------------- */
.site-footer__bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-white-12);
  text-align: center;
}

.site-footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--color-white-60);
  margin: 0;
}
/* ==========================================================================
   Component: Buttons (.btn-wihub)
   ========================================================================== */

.btn-wihub {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base);

  &:hover .btn-wihub__arrow { transform: translateX(3px); }
}

.btn-wihub__arrow {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-base);
}

/* --- Primary (blue gradient) -------------------------------------------- */
.btn-wihub--primary {
  background-image: var(--gradient-primary);
  border-color: var(--color-brand-light);
  color: var(--color-white);
  box-shadow: var(--shadow-btn-primary);

  /* hover: xanh NHẠT HƠN (lighten, không darken) */
  &:hover,
  &:focus {
    background-image: var(--gradient-primary-hover);
    color: var(--color-white);
  }
}

/* --- Light (nền trắng, viền navy, chữ navy) — v1.1 #Button_24 / #Button_31 -- */
.btn-wihub--light {
  background-image: none;
  background-color: var(--color-white);
  border-color: var(--color-brand-dark);
  color: var(--color-brand-dark);
  border-radius: 12px;       /* v1.1 #Button_24/#Button_31 radius 12px */
  box-shadow: var(--shadow-btn);

  /* hover NỀN xanh nhẹ (giống nav link), giữ chữ/viền navy */
  &:hover,
  &:focus {
    background-color: #e8f0fb;
    color: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
  }
}

/* --- Outline white (translucent, on dark/media) ------------------------- */
.btn-wihub--outline-white {
  background-color: var(--color-white-20);
  border-color: var(--color-white);
  color: var(--color-white);
  backdrop-filter: blur(2px);

  &:hover,
  &:focus {
    background-color: var(--color-white);
    color: var(--color-brand-dark);
  }
}

/* --- Outline dark (on light bg) ----------------------------------------- */
.btn-wihub--outline-dark {
  background-color: transparent;
  border-color: var(--color-border-divider);
  color: var(--color-text-main);

  &:hover,
  &:focus {
    border-color: var(--color-brand-default);
    color: var(--color-brand-default);
  }
}

/* --- Ghost (text + arrow, on light) ------------------------------------- */
.btn-wihub--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-brand-default);
  padding-left: 0;
  padding-right: 0;

  &:hover { color: var(--color-brand-dark); }
}

/* --- Ghost light pill ("Tìm Hiểu Thêm") — v1.1 #Button_Text_33/34/35/41:
   text 14px/600, line-height 100%, radius 6px, bg rgba(255,255,255,.2), padding 6px 12px.
   Hover: NỀN TRẮNG trượt ngang (left→right) lấp đầy, chữ chuyển navy (reaction 2257: ease-out .333s) */
.btn-ghost-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-white-20);
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.333s ease-out;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--color-white);
    transform: translateX(-101%);
    transition: transform 0.333s ease-out;
  }
  &:hover,
  &:focus { color: var(--color-brand-dark); }
  &:hover::before,
  &:focus::before { transform: translateX(0); }
  &:hover .btn-ghost-light__arrow { transform: translateX(3px); }
}
.btn-ghost-light__arrow { transition: transform var(--transition-base); }

/* --- Ghost white (text + arrow, on dark) -------------------------------- */
.btn-wihub--ghost-white {
  background-color: var(--color-white-10);
  border-color: var(--color-white-20);
  color: var(--color-white);

  &:hover,
  &:focus {
    background-color: var(--color-white-20);
    color: var(--color-white);
  }
}
/* ==========================================================================
   Component: Contact — "Vì Một Việt Nam Khoẻ Mạnh Hơn"
   Dùng chung cho mọi page (1 nguồn duy nhất). Giá trị trích từ v1.1.
   ========================================================================== */
.contact-section {
  position: relative;
  min-height: 633px;
  padding: 86px 0 0;           /* khớp frame mẫu desktop 1194x633 */
  overflow: hidden;
  background-color: var(--color-brand-dark);
}

/* nền cyan (ảnh) → navy đáy theo v1.1 (cyan top, navy bottom) */
.contact-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* v1.1 #Gradient_Color_1: periwinkle 25% (trên) → navy (đáy) */
  background-image: linear-gradient(178.6deg, rgba(111, 107, 200, 0.25) 59.5%, #141240 94.8%);
}

.contact-section__inner { position: relative; z-index: 2; }

.contact-section__title {
  font-size: 46px;             /* v1.1 #Headline_1 46/800/130% */
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 24px;         /* v1.1 #Text_Section_Container row-gap 24 */

  & em {
    font-style: normal;
    color: var(--color-white);   /* v1.1: tiêu đề TRẮNG toàn bộ, không accent */
  }
}

.contact-section__desc {
  font-size: 18px;             /* v1.1 #Subheadline_1 18/400/160% */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);   /* v1.1 #Subheadline_1 full white rgb(255,255,255) */
  /* v1.1 #Subheadline_1 width:100% — không cap (desc lấp đầy cột) */
  margin-bottom: 0;
}

/* --- Form --- */
.contact-form {
  background-color: #ffffffe6;          /* v1.1 #Background_0 90% + glass */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 2px solid var(--color-white);
  border-radius: 24px;
  padding: 46px 46px 54px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* v1.1 #Form_Row gap 10 (SĐT/Vai trò), KHÔNG phải gutter Bootstrap 16 */
.contact-form .row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;                             /* v1.1 #Container_14 row-gap:4px */
}

.contact-form__label {
  font-size: 16px;             /* v1.1 #Name_Label 16/500 */
  font-weight: 500;
  color: var(--color-text-main);
}

.contact-form__input {
  width: 100%;
  padding: 11px 15px;                   /* v1.1 #Input_3 */
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);

  &::placeholder { color: var(--color-text-placeholder); }
  &:focus {
    outline: none;
    border-color: var(--color-brand-default);
    box-shadow: var(--focus-ring);
  }
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;        /* v1.1 #Input_10 min-height 120 */
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a879a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  position: relative;
  font-size: 18px;                /* v1.1 #Button_text_19 18/700 */
  padding: 11px 40px 11px 14px;   /* v1.1 #Button_22 padding 11px 8px; chừa chỗ icon phải */
  margin-top: 8px;
  /* v1.1 #Button_22: nền ĐẶC #0d50a1, KHÔNG viền (khác hero CTA gradient+viền cyan) */
  background-image: none;
  background-color: #0d50a1;
  border-color: transparent;

  /* v1.1: text căn GIỮA (flex-grow) + icon PaperPlane ghim mép PHẢI */
  & svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }

  &:hover,
  &:focus {
    background-image: none;             /* giữ ĐẶC, không trả gradient của --primary */
    background-color: #0a4488;          /* darken nhẹ khi hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 80, 161, 0.35);
  }
}

@media (max-width: 991.98px) {
  /* padding giữ 120 (v1.1 #Gradient_Color_0 tablet); mobile <768 giảm 100 */
  /* title GIỮ 46px (v1.1 mọi breakpoint) — không ép nhỏ */
  /* v1.1: Subheadline width:100% (không max-width) — tablet stacked, desc full cột */
  .contact-section { min-height: 0; padding: 120px 0; }
  .contact-section__desc { max-width: none; }
}
/* <768 (v1.1 #Gradient_Color mobile): padding 100px (k phải 120/60) */
@media (max-width: 767.98px) {
  .contact-section { padding: 100px 0; }
}
/* Tablet (768–991): theo v1.1 frame Tablet — text/desc xếp TRÊN, form full-width DƯỚI
   (outer col-lg-6 stack <992), còn SĐT/Vai trò GIỮ 2 cột (inner col-md-6 ≥768).
   → Không override grid Bootstrap ở đây; default đã khớp v1.1. */
@media (max-width: 575.98px) {
  .contact-form { padding: 24px; }
}
/* ==========================================================================
   Component: News Card — dùng chung cho index (home-news) · news · news-article
   Thiết kế chuẩn (trích v1.1): card inset 7px, radius 24, hover viền xanh.
   1 nguồn duy nhất → không phải đồng bộ tay 3 file nữa.
   ========================================================================== */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;          /* v1.1 #_Home_News_Article 24px */
  padding: 7px;                 /* ảnh + nội dung INSET 7px */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(12, 12, 13, 0.05);   /* v1.1 resting drop-shadow (Depth Black-100) */
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);

  &:hover,
  &:focus-visible {
    box-shadow: 0 8px 28px rgba(36, 63, 97, 0.16);
    transform: translateY(-3px);
    border-color: var(--color-brand-default);   /* hover viền xanh (v1.1) */
    color: inherit;
  }
}

.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 380 / 220;
  border-radius: 16px;          /* ảnh bo tròn cả 4 góc (inset) */
  overflow: hidden;
  background-color: var(--color-bg-icon);
}
.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;                    /* v1.1 #Article_Content row-gap 10 */
  padding: 20px 16px;           /* v1.1 #Article_Content 20px 16px */
  flex: 1 1 auto;
}

/* --- Category badge ------------------------------------------------------- */
.news-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 10px;          /* v1.1 #News_Category */
  border-radius: 6px;         /* v1.1 radius 6 (KHÔNG pill) */
  font-size: 12px;
  font-weight: 500;          /* v1.1 #Category_Name */
  line-height: 1.4;
}
.news-card__category-icon { display: inline-flex; }
.news-card__category svg { width: 14px; height: 14px; }   /* hỗ trợ cả markup icon trực tiếp */
/* v1.1 màu badge theo category (#News_Category/#Category_Name các biến thể) */
.news-card__category--news { background-color: #e5e5f5; color: #14146b; }
.news-card__category--research { background-color: #f5e8e5; color: #320f07; }
.news-card__category--share { background-color: #cbf1e2; color: #082e54; }
.news-card__category--notice { background-color: #fde7c2; color: #14146b; }

/* --- Text ---------------------------------------------------------------- */
.news-card__title {
  margin: 0;
  font-size: 18px;          /* v1.1 18/600 */
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__excerpt {
  margin: 0;
  font-size: 16px;              /* v1.1 16/400 */
  line-height: 1.5;             /* v1.1 24px/16px = 1.5 */
  color: var(--color-text-tertiary);   /* v1.1 Text-Tertiary #7a879a */
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* v1.1 #…3053 clamp 2 dòng (mọi breakpoint) */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Author -------------------------------------------------------------- */
.news-card__author {
  display: flex;
  align-items: center;
  gap: 16px;                /* v1.1 #Author_Info grid-column-gap:16px */
  margin-top: auto;
  /* v1.1 #Author_Info: padding:0, KHÔNG border — không thêm khoảng đệm trên */
}
.news-card__author-avatar {
  width: 40px;          /* v1.1 avatar 40×40 (index + news khớp) */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.news-card__author-info { display: flex; flex-direction: column; gap: 2px; }
.news-card__author-name {
  margin: 0;
  font-size: 16px;          /* v1.1 16/600/lh1 (index + news khớp) */
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-main);
}
.news-card__author-date {
  margin: 0;
  font-size: 12px;
  font-weight: 500;         /* v1.1 12/500/16.8px */
  line-height: 1.4;
  color: var(--color-text-tertiary);
}

/* v1.1 news card title = 18px ở mọi breakpoint (KHÔNG hạ 17px ở desktop) */


/* ==========================================================================
   Scroll reveal — nội dung section fade + trượt lên khi vào viewport.
   JS (main.js) tự gắn [data-reveal] + thêm .reveal-ready vào <html> (chống FOUC),
   IntersectionObserver thêm .is-visible. Tôn trọng prefers-reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   Component: CaseStudy Card — DÙNG CHUNG index (home-casestudy) + journey (journey-casestudy)
   Giá trị trích từ v1.1 #Section_3 / #Project_* (export Figma). Phần định vị trong
   carousel (full-width / scroll-snap / max-width) để ở CSS từng page, KHÔNG ở đây.
   ========================================================================== */
.casestudy-card {
  display: flex;
  flex-direction: column;
  gap: 32px;                                    /* v1.1 #Section_3 row-gap 32 (mobile: cột dọc) */
  background-image: linear-gradient(91.2deg, #e5e7f9 0.3%, #fdfdff 99.6%);  /* v1.1 #Section_3 */
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);          /* v1.1 #Section_3 blur 20 */
  border: 1px solid rgba(255, 255, 255, 0.2);   /* v1.1 #Section_3 border 1px #fff3 */
  border-radius: 24px;                          /* v1.1 #Section_3 */
  padding: 15px;                                /* v1.1 #Section_3 */
  overflow: hidden;
  /* v1.1 #Section_3: KHÔNG box-shadow (chỉ border + backdrop-filter) */
}
@media (min-width: 992px) {
  /* v1.1 #Section_3 desktop: ảnh trái + nội dung phải, ~50/50 */
  .casestudy-card { flex-direction: row; align-items: flex-start; gap: 32px; }
}

.casestudy-card__image-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;                          /* v1.1 #Project_Image_5 radius 16 */
  overflow: hidden;
  background-color: #e5edf5;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  /* v1.1 #Project_Image_5: flex 1 1 250, min-width 250, height 330 (cùng grow với body) */
  .casestudy-card__image-wrap { width: auto; flex: 1 1 250px; min-width: 250px; height: 330px; }
}

.casestudy-card__image {
  width: 100%;
  height: 100%;
  min-height: 240px;                            /* mobile (cột dọc) */
  object-fit: cover;
  display: block;
}
@media (min-width: 992px) {
  .casestudy-card__image { min-height: 330px; }
}

.casestudy-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;                                    /* v1.1 #Content_3 row-gap 16 */
  padding: 16px 0;                              /* v1.1 #Project_Content_3 padding 16px 0 */
}
@media (min-width: 992px) {
  /* v1.1 #Project_Content_3: flex 1 1 250, min-width 250 (cùng grow với ảnh → ~50/50) */
  .casestudy-card__body { flex: 1 1 250px; min-width: 250px; }
}

.casestudy-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;                                     /* v1.1 #News_Category_3 grid-column-gap 6 */
  width: max-content;
  padding: 3px 10px;                            /* v1.1 #News_Category_3 */
  background-color: #f6ffdb;                    /* v1.1 #News_Category_3 */
  border-radius: 6px;                           /* v1.1 #News_Category_3 */
  color: #082e54;                               /* v1.1 #Category_Name_3 */
  font-family: var(--font-family);
  font-size: 12px;                              /* v1.1 #Category_Name_3 12/500/140% */
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: -6px;                          /* v1.1 badge→title 10px (= body gap 16 − 6) */
}
.casestudy-card__tag svg { flex-shrink: 0; }

.casestudy-card__title {
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 26px;                              /* v1.1 #Project_Title 26/700/150% */
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.casestudy-card__desc {
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 16px;                              /* v1.1 #Project_Description 16/400/150% */
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;                        /* v1.1 #Project_Description: cắt 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.casestudy-card__meta {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;                             /* v1.1 #Widget_3 padding 4px 0 0 */
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;                             /* v1.1 #Widget_3 grid-column-gap 24 */
  row-gap: 12px;                                /* v1.1 #Widget_3 row-gap 12 */
}

.casestudy-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;                                     /* v1.1 #Date/#Location grid-column-gap 6 */
  color: var(--color-text-secondary);          /* v1.1 var(--Text-Secondary)=#4e517a */
  font-family: var(--font-family);
  font-size: 14px;                              /* v1.1 #Project_Date 14px */
  font-weight: 500;                             /* v1.1 #Project_Date weight 500 */
  line-height: 1;                               /* v1.1 #Project_Date 100% */
}
.casestudy-card__meta-item svg { flex-shrink: 0; }

/* Nút "Chi tiết" = v1.1 #Button_8 (gọn, padding 7px đều, chữ 16/600, gap text↔arrow 0).
   Look nền/viền dùng .btn-wihub--light (shared); đây chỉ chỉnh vị trí + box. */
.casestudy-card__cta {
  align-self: flex-end;
  margin-top: auto;
  padding: 7px;                                 /* v1.1 #Button_8 padding:7px */
  gap: 0;                                       /* v1.1 #Button_8 grid-column-gap:0 */
  font-weight: 600;                             /* v1.1 #Button_text_8 weight 600 */
}


/* ==========================================================================
   Component: CaseStudy Section + Carousel — DÙNG CHUNG index + journey
   Dark bg + overlay + Bootstrap carousel (controls + indicators).
   Giá trị bê nguyên từ index .home-casestudy* (đã chuẩn).
   ========================================================================== */
.casestudy {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--color-brand-dark);
}
.casestudy__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.casestudy__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, rgba(20, 18, 64, 0.42) 0%, rgba(20, 18, 64, 0.70) 100%);
}
.casestudy__inner { position: relative; z-index: 2; }

.casestudy__header { margin-bottom: 32px; }
.casestudy__title {
  font-size: 46px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}
.casestudy__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0;
}

.casestudy__carousel { position: relative; padding: 0 60px; }

.casestudy__control {
  appearance: none;
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: 0;
  color: var(--color-brand-dark);
  box-shadow: 0 0.5px 2px rgba(36, 63, 97, 0.12), 0 2px 12px rgba(36, 63, 97, 0.11);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  padding: 0;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color var(--transition-base);
}
.casestudy__control:hover { background-color: rgba(255, 255, 255, 0.95); }
.casestudy__control svg {
  display: block;
  width: 15px;
  height: 13px;
  flex: 0 0 auto;
}
.casestudy__control--prev { left: 0; }
.casestudy__control--next { right: 0; }

.casestudy__indicators {
  position: relative;
  bottom: 0;
  align-items: center;
  justify-content: center;
  min-height: 12px;
  margin: 24px 0 0;
}
.casestudy__indicators [data-bs-target] {
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  max-width: 12px;
  max-height: 12px;
  padding: 0;
  border: 1px solid var(--color-white-60);
  border-radius: 50%;
  margin: 0 4px;
  background-color: transparent;
  background-clip: border-box;
  opacity: 1;
  text-indent: 0;
  line-height: 1;
  transition: background-color var(--transition-base);
}
.casestudy__indicators [data-bs-target].active {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .casestudy__carousel { padding: 0 64px 40px; }
}
@media (max-width: 767.98px) {
  .casestudy__carousel { padding: 0 0 40px; }
  .casestudy__control--prev { left: -26px; }
  .casestudy__control--next { right: -26px; }
}
