/*
Theme Name: YourHRBank
Theme URI: https://yourhrbank.com
Author: YourHRBank
Description: Theme cho YourHRBank.com – Ngân hàng nhân sự của bạn. Trang chủ giới thiệu, gói dịch vụ tuyển dụng và form đăng ký cho doanh nghiệp / ứng viên (lưu trong mục "Đăng ký" + gửi email).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yourhrbank
*/
:root {
  --green: #138a3e;
  --green-dark: #0c6a2f;
  --green-50: #eaf6ee;
  --green-100: #d3ecdb;
  --red: #d7202a;
  --red-50: #fdecec;
  --ink: #12261a;
  --text: #3a4a40;
  --muted: #6b7a70;
  --line: #e3e9e5;
  --bg: #ffffff;
  --tint: #f5f9f6;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(16, 60, 32, .22);
  --shadow-sm: 0 2px 10px -4px rgba(16, 60, 32, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -6px rgba(19,138,62,.6); }
.btn--primary:hover { background: var(--green-dark); }
.btn--outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn--outline:hover { background: var(--green-50); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn) { color: var(--text); position: relative; }
.nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, var(--green-50), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, var(--red-50), transparent 70%);
  padding: 72px 0 88px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--red); }
.lead { font-size: 18px; margin: 20px 0 32px; max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 32px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; }
.hero__card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__card--main { padding: 24px; }
.mini-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-100); }
.mini-person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-person div { flex: 1; }
.mini-person b { display: block; color: var(--ink); font-size: 15px; }
.mini-person small { color: var(--muted); }
.mini-person em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-50); padding: 4px 10px; border-radius: 999px; }
.hero__card--float {
  position: absolute; left: -28px; bottom: -32px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; color: var(--red); animation: float 4s ease-in-out infinite;
}
.hero__card--float b { display: block; color: var(--ink); font-size: 18px; }
.hero__card--float small { color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Avatars ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
}
.a1 { background: linear-gradient(135deg, #1aa34a, #0c6a2f); }
.a2 { background: linear-gradient(135deg, #f0533b, #c21c25); }
.a3 { background: linear-gradient(135deg, #2bb673, #138a3e); }
.a4 { background: linear-gradient(135deg, #e9692c, #d7202a); }
.a5 { background: linear-gradient(135deg, #3cae5c, #1b7a3c); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section__head p { color: var(--muted); margin: 12px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.panel__head h2 { font-size: 24px; font-weight: 800; }
.panel__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--green); color: #fff;
}
.icon-circle svg { width: 28px; height: 28px; }

.job-list, .cand-list { list-style: none; padding: 0; margin: 0; }
.job-list li, .cand-list li {
  display: flex; align-items: center; gap: 18px; padding: 14px 8px;
  border-top: 1px solid var(--line); border-radius: 10px; transition: background .2s;
}
.job-list li:hover, .cand-list li:hover { background: var(--tint); }
.co {
  width: 118px; flex: none; font-weight: 800; font-size: 15px; text-align: center;
  padding: 10px 6px; border-radius: 10px; background: var(--tint); letter-spacing: -.01em;
}
.co--red { color: var(--red); }
.co--blue { color: #1d5fbf; }
.co--muted { color: var(--muted); }
.job-list small { display: block; color: var(--green); font-weight: 600; font-size: 13px; }
.job-list b { color: var(--ink); font-size: 16px; }
.job-list .more b { font-weight: 500; color: var(--muted); }
.cand-list div { flex: 1; }
.cand-list b { display: block; color: var(--ink); text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.cand-list small { color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; color: var(--green-dark); background: var(--green-50); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green); margin-bottom: 18px;
}
.plan__icon svg { width: 26px; height: 26px; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan__desc { color: var(--muted); font-size: 14px; margin: 6px 0 18px; min-height: 42px; }
.plan__term { padding: 16px 0; border-block: 1px dashed var(--line); margin-bottom: 18px; }
.plan__term small { display: block; color: var(--muted); font-size: 13px; }
.plan__term strong { font-size: 28px; font-weight: 800; color: var(--green); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23138a3e' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; background: var(--tint); border-radius: 18px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -18px; width: 12px; height: 12px;
  border-top: 3px solid var(--red); border-right: 3px solid var(--red); transform: rotate(45deg);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.section--brand { background: linear-gradient(135deg, var(--green-dark), var(--green) 60%, #1ea14d); color: #e7f5ec; }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.contact__text h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.contact__text p { font-size: 17px; margin: 16px 0 28px; }
.contact__info { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact__info li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__info svg { width: 22px; height: 22px; }

.form-card { background: #fff; color: var(--text); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.tab { border: 0; background: none; padding: 10px; border-radius: 999px; font: 600 15px inherit; font-family: inherit; color: var(--muted); cursor: pointer; transition: .2s; }
.tab.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.form { display: none; }
.form.is-active { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: 400 15px inherit; font-family: inherit; color: var(--ink);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.form .invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.form-success { text-align: center; padding: 28px 8px; }
.check-big { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; display: grid; place-items: center; }
.form-success p { color: var(--muted); margin: 8px 0 20px; }

/* ---------- Footer ---------- */
.footer { background: #0f1f15; color: #a9b8ae; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; flex-wrap: wrap; }
.footer__brand img { height: 44px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer__brand p { margin: 10px 0 0; font-size: 14px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.footer__nav a:hover { color: #fff; }
.footer__bar { text-align: center; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card--float { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .two-col { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 38px; }
  .hero { padding: 48px 0 72px; }
  .hero__card--float { left: 8px; bottom: -36px; }
  .section { padding: 64px 0; }
  .panel { padding: 22px 16px; }
  .co { width: 92px; font-size: 13px; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .form-card { padding: 20px 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- WordPress additions ---------- */
.nav li { list-style: none; }
.nav .current-menu-item > a { color: var(--green); }
.form-error { color: var(--red); font-size: 14px; margin: 0; }
.page-content { max-width: 820px; }
.entry { margin-bottom: 48px; }
.entry h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.entry h2 { font-size: 26px; margin-bottom: 10px; }
.entry h2 a:hover { color: var(--green); }
.entry__body img { border-radius: 12px; height: auto; }
.entry__body a { color: var(--green); text-decoration: underline; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }