/* ============================================================
   NATIF.GOV.VN — stylesheet dùng chung
   Bảng màu theo nhận diện logo NATIF:
   xanh dương wordmark + gradient quỹ đạo (lá → teal → cyan) + chấm xanh
   ============================================================ */
:root {
  --blue: #1E5CA8;        /* xanh wordmark NATIF */
  --blue-dark: #164A8A;
  --blue-700: #123C72;
  --green: #8CC63F;       /* lá - đầu quỹ đạo */
  --teal: #2FA98C;
  --cyan: #17A0D8;        /* cyan - cuối quỹ đạo */
  --dot: #2B9FE0;
  --grad: linear-gradient(90deg, #8CC63F 0%, #2FA98C 50%, #17A0D8 100%);
  --ink: #1f2937;
  --muted: #5b6775;
  --line: #e5e9f0;
  --bg: #f5f8fc;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(18,60,114,.06), 0 6px 18px rgba(18,60,114,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Signature gradient strip */
.brand-strip { height: 4px; background: var(--grad); }

/* Top gov bar */
.gov-bar { background: var(--blue-dark); color: #d5e3f5; font-size: 13px; padding: 6px 0; }
.gov-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* Header */
header.site { background: #fff; }
.brand { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.brand .logo {
  width: 118px; height: 78px; flex: none;
  background: url(logo.svg) center/contain no-repeat;
  font-size: 0; color: transparent;   /* ẩn chữ NATIF cũ, dùng logo SVG */
}
.brand h1 { font-size: 20px; color: var(--blue-dark); text-transform: uppercase; line-height: 1.25; letter-spacing: .2px; }
.brand p { font-size: 13px; color: var(--muted); }

/* Main nav */
nav.main { background: var(--blue); }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; }
nav.main a {
  display: block; color: #fff; padding: 12px 17px; font-size: 14.5px; font-weight: 500;
  border-bottom: 3px solid transparent; transition: background .15s, border-color .15s;
}
nav.main a:hover, nav.main a.active { background: var(--blue-dark); text-decoration: none; border-bottom-color: var(--green); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0;
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue) 55%, #1C86B8 100%);
}
.hero::after {  /* gợi ý quỹ đạo mờ */
  content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px;
  border: 30px solid rgba(255,255,255,.07); border-radius: 50%; transform: rotate(-25deg); pointer-events: none;
}
.hero h2 { font-size: 31px; margin-bottom: 12px; max-width: 820px; position: relative; }
.hero p { max-width: 740px; color: #e2edf9; position: relative; }
.hero .cta {
  display: inline-block; margin-top: 22px; background: var(--green); color: var(--blue-700);
  padding: 11px 24px; border-radius: 8px; font-weight: 700; position: relative;
  box-shadow: 0 4px 14px rgba(140,198,63,.35);
}
.hero .cta:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }

/* Sections */
section { padding: 44px 0; }
.section-title {
  font-size: 22px; color: var(--blue-dark); padding-left: 14px; margin-bottom: 26px;
  border-left: 4px solid transparent; border-image: var(--grad) 1;
}
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Cards */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 17px; color: var(--blue-dark); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; background: rgba(47,169,140,.12);
  color: var(--teal); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px;
}
.card a.more { font-size: 14px; font-weight: 600; }

/* News list */
.news-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent;
  border-image: var(--grad) 1; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .18s;
}
.news-item:hover { box-shadow: var(--shadow); }
.news-item .date { font-size: 12.5px; color: var(--teal); font-weight: 600; }
.news-item h3 { font-size: 16.5px; margin: 4px 0 6px; }
.news-item h3 a { color: var(--blue-dark); }
.news-item p { font-size: 14px; color: var(--muted); }

/* Module / page header */
.page-head { background: linear-gradient(180deg, #eaf2fb, #f5f8fc); padding: 34px 0; border-bottom: 3px solid transparent; border-image: var(--grad) 1; }
.page-head h2 { color: var(--blue-dark); font-size: 27px; }
.page-head p { color: var(--muted); max-width: 780px; margin-top: 6px; }

.notice { background: rgba(47,169,140,.08); border: 1px solid rgba(47,169,140,.3); border-radius: 8px; padding: 14px 18px; font-size: 14px; margin: 24px 0; color: #1f5c4d; }

ul.features { list-style: none; }
ul.features li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 12px 44px; margin-bottom: 10px; font-size: 14.5px; position: relative; }
ul.features li::before {
  content: "\2713"; position: absolute; left: 14px; top: 12px; color: #fff; font-weight: 700; font-size: 12px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center;
}

/* Footer */
footer { background: var(--blue-dark); color: #cfe0f5; padding: 34px 0; margin-top: 44px; font-size: 14px; border-top: 4px solid transparent; border-image: var(--grad) 1; }
footer h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
footer a { color: #cfe0f5; }
footer a:hover { color: #fff; }
footer .grid.cols-3 { gap: 30px; }
footer .copy { border-top: 1px solid rgba(255,255,255,.18); margin-top: 24px; padding-top: 14px; font-size: 13px; text-align: center; }

@media (max-width: 640px) {
  .brand h1 { font-size: 15px; }
  .brand .logo { width: 92px; height: 62px; }
  .hero h2 { font-size: 24px; }
}
