/* =========================================================================
   Báo Tech 2 — giao diện các trang con (dịch vụ, dự án, tin tức, liên hệ)
   Bổ sung cho main.css.
   ========================================================================= */

/* ---------- Header: menu nhiều mục ---------- */
@media (min-width: 961px) and (max-width: 1180px) {
  .site-nav { gap: 12px; }
  .site-nav .menu { gap: 0; }
  .site-nav .menu a { font-size: 14px; padding: 8px 9px; }
}
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current-menu-ancestor > a { color: var(--accent); background: var(--accent-soft); }

/* Thẻ dịch vụ là link */
a.service, a.service:hover { color: var(--text); }
a.service .link-arrow { color: var(--lime); }
a.service:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #f3f7fc 0%, #fff 100%); }
.page-hero::after { opacity: .7 !important;
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000 10%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner { max-width: 860px; margin-left: auto; margin-right: auto; }
.page-hero:not(.page-hero--split) .page-hero__inner { margin-left: max(0px, calc((100% - var(--container)) / 2)); }
.page-hero__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.page-hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted); max-width: 680px; margin-bottom: 28px; }
.page-hero--split { padding-bottom: 80px; }
.page-hero--split .page-hero__title { font-size: clamp(32px, 4.4vw, 50px); }
.page-hero--article .page-hero__inner { margin-left: auto; }
@media (max-width: 700px) { .page-hero { padding: 36px 0 44px; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: var(--text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); background: #fff; }

/* ---------- Section spacing ---------- */
.section--tight { padding: 56px 0; }
.section--tight-top { padding-top: 48px; }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.features--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features, .features--2 { grid-template-columns: 1fr; } }
.feature p { color: var(--text-muted); font-size: 15px; margin: 0; }
.feature__title { font-size: 18px; }

/* ---------- Banner ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.banner p { color: var(--text-muted); margin: 0; }
.banner__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 6px; }
.banner__title .icon { color: var(--lime); }

/* ---------- Projects ---------- */
.project__media { display: block; }
.project__title a { color: var(--text); }
.project__title a:hover { color: var(--lime); }
.project:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.cover__bubble .icon { width: 14px; height: 14px; vertical-align: -2px; color: #0f766e; }
.cover--plain { background: linear-gradient(135deg, #f3f7fc, #e6ecf5); }
.cover__logo { width: 34%; height: auto; opacity: .9; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter__item { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.filter__item span { opacity: .6; font-weight: 500; margin-left: 2px; }
.filter__item:hover { color: var(--text); border-color: var(--lime); }
.filter__item.is-active { background: var(--lime); border-color: var(--lime); color: #fff; }

.project-shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg); margin-bottom: 48px; }
.project-shot__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.project-shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.project-shot__bar em { margin-left: 12px; font-style: normal; font-size: 13px; color: var(--text-muted); background: var(--bg); padding: 4px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-shot__media { aspect-ratio: 16 / 9; }
.project-shot__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-shot__media .cover { min-height: 100%; }
.project-shot__media .cover__panel { width: 32%; }
.project-shot__media .cover--zalo { padding: 0 18%; gap: 20px; }
.project-shot__media .cover__bubble { font-size: 16px; }

.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .project-detail { grid-template-columns: 1fr; gap: 32px; } }
.project-meta { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.project-meta__title { font-size: 18px; margin-bottom: 4px; }
.project-meta dl { margin: 0 0 8px; display: grid; gap: 4px; }
.project-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 10px; }
.project-meta dd { margin: 0; font-weight: 600; }
.project-meta .tags { margin: 6px 0 0; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__body p { color: var(--text-muted); font-size: 15px; margin: 0; }
.post-card__meta { font-size: 13px; color: var(--text-muted) !important; margin-bottom: 8px !important; }
.post-card__meta a { color: var(--lime); }
.post-card__title { font-size: 19px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--lime); }

.article { padding-top: 40px; padding-bottom: 64px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-weight: 600; }
.post-nav__next { margin-left: auto; text-align: right; }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--text); }
.nav-links .page-numbers.current { background: var(--lime); color: #fff; border-color: var(--lime); }

.empty { color: var(--text-muted); text-align: center; padding: 48px 24px; }
.empty.card { display: grid; gap: 16px; justify-items: center; }
.empty.card p { margin: 0; }

/* ---------- Entry content (soạn trong wp-admin) ---------- */
.entry__content > *:first-child { margin-top: 0; }
.entry__content p, .entry__content li { color: #334155; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .4em; }
.entry__content strong { color: var(--text); }
.entry__content figure { margin: 1.6em 0; }
.entry__content .wp-block-button__link { background: var(--lime); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--text); }
a.contact-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card small { display: block; color: var(--text-muted); font-size: 13px; }
.contact-card strong { font-size: 16px; word-break: break-word; }
.contact-card__icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); border: 0; }
.contact-card--zalo .contact-card__icon { background: #0068ff; color: #fff; border-color: #0068ff; }

.contact-form { padding: 32px; display: grid; gap: 16px; }
@media (max-width: 600px) { .contact-form { padding: 22px; } }
.contact-form__title { font-size: 24px; margin: 0; }
.contact-form__lead { color: var(--text-muted); margin: -8px 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--accent-ring); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.notice--ok { background: var(--accent-soft); border: 1px solid #b9dfa0; color: #1d6600; }
.notice--err { background: #fdeeee; border: 1px solid #f3b6b6; color: #a61b1b; }

/* Plan price unit */
.plan__price small:last-child:not(:first-child) { margin-left: 2px; }
