/*
Theme Name: Novalink
Theme URI: https://novalink.vn
Author: Novalink Team
Description: Theme tuỳ chỉnh cho website Novalink - Marketing, Công nghệ & Media.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: novalink
*/

/* ===========================================================
   NOVALINK — Stylesheet
   Brand: Navy (#0B1330) + Blue (#2563EB) + Amber CTA (#F5A623)
   =========================================================== */

:root {
  --navy-900: #080f26;
  --navy-800: #0b1330;
  --navy-700: #101c45;
  --navy-600: #16255c;
  --red: #2563eb;
  --red-dark: #1d4ed8;
  --amber: #f5a623;
  --amber-dark: #dd8f11;
  --bg-light: #f6f7fb;
  --bg-card: #ffffff;
  --ink: #101426;
  --ink-soft: #5b6072;
  --line: #e7e9f2;
  --white: #ffffff;

  --font-display: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(11, 19, 48, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.25; }
p { margin: 0; line-height: 1.7; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: var(--amber-dark); box-shadow: 0 10px 24px rgba(245,166,35,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(230,57,70,.35); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-900);
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--red), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2.5px; background: var(--red); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-tel { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Hero (dark navy) ---------- */
.hero-dark {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(230,57,70,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero {
  padding: 74px 0 68px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--red);
  background: rgba(230,57,70,.12);
  border: 1px solid rgba(230,57,70,.35);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.page-hero .breadcrumb {
  font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px;
}
.page-hero .breadcrumb span { color: var(--red); }
.page-hero h1 {
  font-size: 34px; font-weight: 800; margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,.62); max-width: 560px; margin: 0 auto;
  font-size: 15px;
}

/* ---------- Home Hero ---------- */
.home-hero { padding: 70px 0 90px; }
.home-hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}
.home-hero .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--red); background: rgba(230,57,70,.12);
  border: 1px solid rgba(230,57,70,.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  text-transform: uppercase;
}
.home-hero h1 {
  font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 18px;
}
.home-hero h1 .accent { color: var(--red); }
.home-hero .lead {
  color: rgba(255,255,255,.6); font-size: 15.5px; max-width: 480px; margin-bottom: 30px;
}
.home-hero .cta-row { display: flex; gap: 14px; }

.hero-graphic {
  aspect-ratio: 4/3.1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 60% 40%, rgba(230,57,70,.55), transparent 55%),
    radial-gradient(circle at 30% 65%, rgba(16,37,90,.9), transparent 60%),
    linear-gradient(160deg, #0e1638, #1a2555);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-graphic svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* ---------- Section spacing ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 60px 0; }
.section-label {
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--red); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 14px;
}
.section-sub {
  text-align: center; color: var(--ink-soft); max-width: 560px;
  margin: 0 auto 46px; font-size: 15px;
}

/* ---------- Intro split (Home) ---------- */
.intro-split {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center;
}
.intro-split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.intro-split h2 { font-size: 25px; font-weight: 800; margin-bottom: 14px; }
.intro-split p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 18px; margin-top: 46px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); text-align: center; padding: 22px 10px;
}
.stat-card .num { font-size: 27px; font-weight: 800; color: var(--red); }
.stat-card .label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

.client-row {
  display: flex; justify-content: center; align-items: center;
  gap: 46px; flex-wrap: wrap; margin-top: 40px; opacity: .55;
  font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); font-size: 13px;
}

/* ---------- Solution cards (Home) ---------- */
.card-grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
.solution-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card);
}
.solution-card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  margin-bottom: 16px;
}
.solution-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.solution-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.solution-card .link { font-size: 13px; font-weight: 700; color: var(--red); }

/* ---------- Blog preview cards (shared: home + blog page) ---------- */
.post-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
}
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--navy-700); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.post-card .body { padding: 18px; }
.post-card .date { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.post-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.post-card p.excerpt { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.post-card .link { font-size: 12.5px; font-weight: 700; color: var(--red); }

.posts-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* ---------- Bottom CTA (dark) ---------- */
.cta-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white); text-align: center; padding: 68px 0;
}
.cta-dark h2 { font-size: 25px; font-weight: 800; margin-bottom: 12px; }
.cta-dark p { color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 26px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.65);
  padding: 54px 0 22px; font-size: 13.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid .logo { color: var(--white); margin-bottom: 12px; }
.footer-grid p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-col h5 {
  color: var(--white); font-size: 13.5px; font-weight: 700; margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.4);
}

/* ============ SERVICES PAGE ============ */
.service-group { margin-bottom: 30px; }
.service-group-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.service-group-head .num {
  width: 30px; height: 30px; border-radius: 8px; background: var(--red);
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-group-head h3 { font-size: 18px; font-weight: 800; }
.service-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.service-item { display: flex; gap: 10px; align-items: flex-start; }
.service-item .check {
  width: 20px; height: 20px; border-radius: 6px; background: rgba(230,57,70,.12);
  color: var(--red); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}
.service-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.service-item p { font-size: 13px; color: var(--ink-soft); }

.process-row {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-top: 40px;
  text-align: center;
}
.process-step .circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--red); color: var(--red); font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 15px;
}
.process-step h5 { font-size: 13.5px; font-weight: 700; }

.services-cta {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; box-shadow: var(--shadow-card);
  margin-top: 50px;
}
.services-cta .content { padding: 40px; align-self: center; }
.services-cta h3 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.services-cta p { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.services-cta .phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
.services-cta .img-wrap { height: 100%; min-height: 220px; background: var(--navy-700); }
.services-cta .img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 26px;
}
.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card);
}
.contact-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.contact-card .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 13.5px; font-family: var(--font-body); color: var(--ink);
  background: var(--bg-light);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--red); background: #fff;
}

.info-card {
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-lg); padding: 32px; height: fit-content;
}
.info-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 22px; }
.info-item { display: flex; gap: 13px; margin-bottom: 20px; }
.info-item .ic {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(230,57,70,.18);
  color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-item .lbl { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.info-item .val { font-size: 13.5px; font-weight: 600; }
.info-social { display: flex; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.info-social a {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.info-social a:hover { background: var(--red); }

.map-wrap {
  margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden;
  height: 300px; position: relative; border: 1px solid var(--line); background: var(--navy-700);
}
.map-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; z-index: 2; pointer-events: none;
}
.map-pin .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display:flex; align-items:center; justify-content:center; font-size: 11px; }

/* ============ BLOG PAGE ============ */
.blog-body { background: var(--bg-light); }
.blog-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 30px; }

.featured-post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 40px;
}
.featured-post .thumb { position: relative; background: var(--navy-700); }
.featured-post .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }
.featured-post .content { padding: 30px; align-self: center; }
.featured-post .tag {
  display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; margin-bottom: 12px;
}
.featured-post .date { font-size: 12px; color: var(--ink-soft); margin-left: 8px; }
.featured-post h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; line-height: 1.35; }
.featured-post p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.featured-post .author { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.featured-post .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); }

.blog-section-title { font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.posts-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }

.sidebar-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; margin-bottom: 20px;
}
.sidebar-card h5 { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.cat-list li {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.cat-list li a { display: flex; justify-content: space-between; width: 100%; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li span.count { color: var(--red); font-weight: 700; font-size: 12px; }
.popular-post { display: flex; gap: 10px; margin-bottom: 14px; }
.popular-post img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--navy-700); }
.popular-post h6 { font-size: 12.5px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.popular-post .date { font-size: 11px; color: var(--ink-soft); }

.newsletter-card { background: var(--navy-900); color: #fff; text-align: left; }
.newsletter-card p { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.newsletter-card input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #fff; font-size: 13px; margin-bottom: 10px;
}

.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--ink-soft);
}
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* ============ SINGLE POST ============ */
.single-post-wrap { max-width: 760px; margin: 0 auto; }
.single-post-wrap .cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; background: var(--navy-700); }
.single-post-wrap .cover img { width: 100%; }
.single-post-wrap .entry-content { font-size: 15.5px; color: var(--ink); }
.single-post-wrap .entry-content p { margin-bottom: 18px; color: var(--ink-soft); }
.single-post-wrap .entry-content h2 { font-size: 22px; margin: 30px 0 14px; }
.single-post-wrap .entry-content img { border-radius: var(--radius-md); margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .home-hero .container, .intro-split, .contact-grid, .featured-post,
  .services-cta, .blog-layout { grid-template-columns: 1fr; }
  .card-grid-3, .posts-grid-3, .posts-grid-2, .stats-row, .process-row,
  .service-panel, .form-row { grid-template-columns: repeat(2,1fr); }
  .process-row { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
  .card-grid-3, .posts-grid-3, .posts-grid-2, .stats-row,
  .service-panel, .form-row, .process-row { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 30px; }
}
