/* Website Phú An Minh - theo Cẩm nang nhận diện thương hiệu PAM */
:root {
  /* Theo Cẩm nang nhận diện thương hiệu PAM (mục 1.9, 1.10) */
  --pam-blue: #004F71;      /* PAM dark Blue  C100 M65 Y35 K20 */
  --pam-accent: #F7941E;    /* PAM Orange     C0 M50 Y100 K0 */
  --pam-yellow: #FFF200;    /* PAM yellow     C0 M0 Y100 K0 */
  --pam-ink: #0B2A3A;       /* chữ chính, chữ trên nền cam */
  --pam-blue-2: #0D6189;    /* thẻ trên nền xanh */
  --pam-blue-3: #003A54;    /* chân trang */
  --pam-text: #3a4750;
  --pam-muted: #55636b;
  --pam-sand: #F0F5F8;
  --pam-line: #dde6eb;
  --pam-gold-text: #B35C00;
  --pam-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif; color: var(--pam-ink); background: #fff; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pam-ink); text-decoration: none; }
a:hover { color: var(--pam-gold-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0068FF; outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; }

.wrap { max-width: var(--pam-wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sand { background: var(--pam-sand); }
.section--dark { background: var(--pam-blue); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.eyebrow { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; letter-spacing: .16em; color: var(--pam-muted); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 48px; height: 3px; background: var(--pam-accent); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--pam-yellow); }
h1, h2, h3 { line-height: 1.2; font-weight: 900; margin: 0; color: var(--pam-blue); }
.section--dark h1, .section--dark h2, .section--dark h3, .hero h1, .card--dark h3, .band h2 { color: inherit; }
.h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section--dark .h2 { color: #fff; }
.lead { font-size: 17px; line-height: 1.75; color: var(--pam-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .02em; }
.btn--accent { background: var(--pam-accent); color: var(--pam-ink); }
.btn--dark { background: var(--pam-blue); color: #fff; }
.btn--dark:hover { color: var(--pam-yellow); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--pam-accent); color: var(--pam-blue); }
.section--dark .btn--outline { color: var(--pam-yellow); }

/* Topbar + header */
.topbar { background: var(--pam-blue); color: #e6e6e6; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #e6e6e6; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.lang-switch { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { padding: 4px 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.lang-switch .current-lang a { background: var(--pam-accent); color: var(--pam-ink); }

.site-header { background: #fff; border-bottom: 1px solid #ececec; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.site-logo img { height: 64px; width: auto; }
.site-logo__text { font-weight: 900; font-size: 22px; color: var(--pam-blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; font-size: 15px; }
.main-nav a { display: block; padding: 8px 0; border-bottom: 3px solid transparent; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { border-bottom-color: var(--pam-accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--pam-blue); color: #fff; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--pam-blue); overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.08; max-width: 900px; }
.hero h1 span { color: var(--pam-yellow); }
.hero p { font-size: 19px; color: #e8e8e8; max-width: 680px; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero .wrap { padding-top: 88px; padding-bottom: 96px; gap: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #d6d6d6; }
.breadcrumb a { color: #d6d6d6; }
.breadcrumb span:last-child { color: var(--pam-yellow); }

/* Stats */
.stats { background: var(--pam-accent); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }
.stats { color: var(--pam-ink); }
.stats strong { display: block; font-size: 30px; font-weight: 900; }
.stats span { font-size: 14px; font-weight: 600; }

/* Split */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 460px; min-width: 0; }
.split__media { position: relative; padding: 0 0 18px 18px; }
.split__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 140px; height: 140px; background: var(--pam-accent); }
.split__media img { position: relative; width: 100%; height: 420px; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 20px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: #fff; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; }
.card__media img { width: 100%; height: 230px; object-fit: cover; }
.card__noimg { height: 230px; background: #ecebe6; display: flex; align-items: center; justify-content: center; color: #6b6b6b; font-weight: 600; }
.card__badge { position: absolute; left: 0; top: 0; background: var(--pam-accent); color: var(--pam-ink); font-weight: 700; font-size: 13px; padding: 8px 14px; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; border-bottom: 4px solid var(--pam-accent); flex: 1; }
.card__cat { font-size: 13px; font-weight: 700; color: var(--pam-gold-text); letter-spacing: .08em; text-transform: uppercase; }
.card__title { font-size: 20px; line-height: 1.4; font-weight: 700; }
.card__text { font-size: 15px; color: #4a4a4a; margin: 0; }
.card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 14px; color: #4a4a4a; }
.card--dark { background: var(--pam-blue-2); color: #fff; }
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: #DCEAF0; }
.card__more { color: var(--pam-yellow); font-weight: 700; font-size: 14px; margin-top: auto; }

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 2px solid #cfcfcf; background: #fff; font-weight: 700; font-size: 14px; }
.filters a[aria-current="page"] { border-color: var(--pam-accent); background: var(--pam-accent); }

/* Project single */
.project-cover { height: min(62vw, 600px); width: 100%; object-fit: cover; border-bottom: 4px solid var(--pam-accent); }
.project-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.project-layout > .project-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.project-facts { flex: 1 1 340px; min-width: 0; background: var(--pam-blue); color: #e6eff3; padding: 32px 28px; }
.project-facts dl { margin: 0; }
.project-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #1F6C8F; font-size: 15px; }
.project-facts dt { color: #A9C6D3; }
.project-facts dd { margin: 0; text-align: right; font-weight: 600; }
.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.scope li { background: var(--pam-sand); padding: 14px 16px; font-weight: 600; }
.scope li::before { content: "✓ "; color: var(--pam-accent); font-weight: 900; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.map-embed { width: 100%; height: 380px; border: 0; }

/* Content */
.entry { max-width: 820px; font-size: 17px; line-height: 1.8; color: var(--pam-text); }
.entry h2 { font-size: 28px; margin: 1.6em 0 .6em; color: var(--pam-blue); }
.entry h3 { font-size: 22px; margin: 1.4em 0 .5em; color: var(--pam-blue); }
.entry img { margin: 1.2em 0; }
.entry a { text-decoration: underline; }

/* Careers band */
.band { background: var(--pam-accent); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band .eyebrow::before { background: var(--pam-blue); }
.band { color: var(--pam-ink); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { min-height: 48px; padding: 10px 14px; border: 1px solid #cfcfcf; font: inherit; font-size: 16px; background: #fff; color: var(--pam-ink); }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; font-weight: 600; }
.notice--ok { background: #e7f6e9; color: #1d5b24; }
.notice--err { background: #fde8e8; color: #8a1c1c; }

/* Footer */
.site-footer { background: var(--pam-blue-3); color: #D5E5EC; }
.site-footer .wrap { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.site-footer a { color: #D5E5EC; }
.footer-logo { height: 104px; width: auto; }
.site-footer .form input, .site-footer .form select { background: #00304A; border-color: #2D7597; color: #fff; }
.site-footer .form label { color: #D5E5EC; }
.footer-bottom { border-top: 1px solid #1F6C8F; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: #A9C6D3; }

/* Floating contact + mobile bar */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; gap: 12px; }
.fab a { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fab__zalo { background: #0068FF; color: #fff !important; }
.fab__call { background: var(--pam-accent); color: var(--pam-ink); }
.mobile-bar { display: none; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #cfcfcf; font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--pam-blue); color: #fff; border-color: var(--pam-blue); }

@media (max-width: 900px) {
  .topbar__hours { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid #ececec; }
  .header-cta { display: none; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .split__media img { height: 280px; }
  .fab { display: none; }
  .site-logo img { height: 50px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--pam-blue); border-top: 3px solid var(--pam-accent); }
  .mobile-bar a { min-height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
  .mobile-bar .mb-zalo { background: #0068FF; }
  .mobile-bar .mb-lead { background: var(--pam-accent); color: var(--pam-ink); }
  body { padding-bottom: 63px; }
}

/* Bổ sung cho bản Python */
.messages { list-style: none; margin: 0; padding: 0; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: #8a1c1c; font-size: 14px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.timeline li { border-top: 3px solid var(--pam-accent); padding: 24px 20px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.timeline strong { color: var(--pam-yellow); font-size: 34px; font-weight: 900; }
.timeline span { color: #DCEAF0; }
.team img, .team .card__noimg { width: 100%; height: 300px; object-fit: cover; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.partners div { background: #fff; height: 120px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.partners img { max-height: 88px; width: auto; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.values div { background: #fff; padding: 28px; border-top: 4px solid var(--pam-accent); }
.values h3 { font-size: 21px; margin-bottom: 8px; }
.contact-boxes { display: flex; flex-direction: column; gap: 20px; }
.contact-boxes div { background: var(--pam-sand); padding: 24px; border-top: 4px solid var(--pam-accent); }
.contact-boxes h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.u-link { text-decoration: underline; font-weight: 700; }

/* Tiện ích (thay cho style nội tuyến, để CSP không cần 'unsafe-inline') */
.wrap--narrow { max-width: 820px; }
.split--top { align-items: flex-start; }
.pt-16 { padding-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.m-0 { margin: 0; }
.h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.on-dark, .on-dark:hover { color: #fff; }
.eyebrow--blue { color: var(--pam-blue); }
.band__lead { margin: 0; font-size: 17px; }
.fig { margin: 0; }
.post-cover { width: 100%; margin: 16px 0 28px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-height: 44px; padding: 0 14px; border: 2px solid #cfcfcf; font: inherit; }
.messages { list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: inherit; }
