/* =========================================================
   AN NAM — Huấn luyện An toàn Vệ sinh Lao động
   Thiết kế hiện đại, tông màu đồng bộ với bộ poster ATVSLĐ
   (navy + xanh an toàn + vàng nhấn)
   ========================================================= */

:root {
  --navy: #15306b;
  --navy-dark: #0e2350;
  --green: #1f9d57;
  --green-dark: #157a42;
  --accent: #f5a623;
  --ink: #1a2333;
  --ink-soft: #55617a;
  --bg: #f4f7fc;
  --bg-alt: #eef3fb;
  --card: #ffffff;
  --line: #e2e8f3;
  --shadow-sm: 0 6px 18px rgba(21, 48, 107, 0.08);
  --shadow: 0 16px 40px rgba(21, 48, 107, 0.12);
  --shadow-lg: 0 28px 60px rgba(21, 48, 107, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--green-dark);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-label {
  display: inline-block;
  color: var(--green-dark);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 0.6rem;
}

/* ---------------- Thanh thông tin trên cùng ---------------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
}

.topbar-left {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-social {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}

.topbar-social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .topbar-left {
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar .hide-sm {
    display: none;
  }
}

/* ---------------- Header (sticky) ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 2.7rem;
  height: 2.7rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 122, 66, 0.32);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 35, 80, 0.3);
}

.btn-ghost {
  border-color: rgba(21, 48, 107, 0.22);
  color: var(--navy);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--navy);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 157, 87, 0.16), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(245, 166, 35, 0.16), transparent 40%),
    linear-gradient(180deg, #ffffff, var(--bg));
  padding: 3.6rem 0 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
}

.hero-text {
  animation: rise 700ms ease-out;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 157, 87, 0.12);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  max-width: 16ch;
}

.hero h1 span {
  color: var(--green-dark);
}

.hero .lead {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badges span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-figure {
  position: relative;
  animation: rise 800ms ease-out;
}

.hero-figure .poster-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-figure .poster-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- Poster image helper (full, không cắt) ---------------- */
.poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}

.zoomable {
  cursor: zoom-in;
}

/* ---------------- Ảnh thực tế (photo, cắt cover) ---------------- */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #0e2350;
}

.media-frame .photo {
  aspect-ratio: 4 / 3;
}

/* Thẻ nổi nhỏ trên ảnh hero */
.media-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
}

.media-badge .dot {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
}

.media-badge b {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
}

.media-badge span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Lưới ảnh thực tế (cover + caption overlay) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.media-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #0e2350;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-card .photo {
  aspect-ratio: 3 / 2;
  transition: transform 0.4s ease;
}

.media-card:hover .photo {
  transform: scale(1.05);
}

.media-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.85rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(transparent, rgba(10, 20, 45, 0.82));
}

/* ---------------- Intro / Về AN NAM ---------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: center;
}

.intro .media-frame {
  aspect-ratio: 4 / 3;
}

.intro ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.intro ul li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}

.intro ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.2rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.section-head.center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section-head p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

/* ---------------- Stats band ---------------- */
.stats {
  margin-top: -2.4rem;
  position: relative;
  z-index: 5;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  background: var(--card);
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------------- Program / poster cards ---------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.program-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-card__media {
  position: relative;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.program-card__media .poster {
  aspect-ratio: 3 / 2;
}

.program-card__media .tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.program-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card__body h3 {
  font-size: 1.06rem;
  color: var(--navy);
}

.program-card__body p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.program-card__link {
  margin-top: 0.9rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------------- Features ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature .ico {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(31, 157, 87, 0.16), rgba(21, 48, 107, 0.12));
  margin-bottom: 0.9rem;
}

.feature h3 {
  font-size: 1.08rem;
}

.feature p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------------- Steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.3rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------------- Gallery (full posters + lightbox) ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.cta p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
}

.cta .section-label {
  color: var(--accent);
}

.cta .btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---------------- Info cards (tai-lieu) ---------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 1.05rem;
}

.info-card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-card .ico {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(31, 157, 87, 0.18), rgba(21, 48, 107, 0.12));
}

.contact-card h3 {
  margin-top: 0.6rem;
  font-size: 1.02rem;
}

.contact-card p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer .brand-text strong {
  color: #fff;
}

.footer .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer p {
  margin: 0.3rem 0;
  font-size: 0.92rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin: 0.45rem 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- Bản đồ Google Maps ---------------- */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .map-frame {
    aspect-ratio: 4 / 5;
  }
}

/* ---------------- Nút liên hệ nổi (floating) ---------------- */
.float-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.float-contact a {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(14, 35, 80, 0.32);
  transition: transform 0.2s ease;
  position: relative;
}

.float-contact a:hover {
  transform: scale(1.08);
}

.float-contact .fc-call {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  animation: fcpulse 2s infinite;
}

.float-contact .fc-zalo {
  background: #0068ff;
  font-size: 0.86rem;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.float-contact .fc-label {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(14, 35, 80, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.float-contact a:hover .fc-label {
  opacity: 1;
}

@keyframes fcpulse {
  0% {
    box-shadow: 0 10px 24px rgba(14, 35, 80, 0.32), 0 0 0 0 rgba(31, 157, 87, 0.5);
  }
  70% {
    box-shadow: 0 10px 24px rgba(14, 35, 80, 0.32), 0 0 0 14px rgba(31, 157, 87, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(14, 35, 80, 0.32), 0 0 0 0 rgba(31, 157, 87, 0);
  }
}

/* ---------------- Icon SVG ---------------- */
.feature .ico svg,
.contact-card .ico svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--navy);
}

.media-badge .dot svg {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

.topbar svg {
  width: 1rem;
  height: 1rem;
  vertical-align: -2px;
  color: var(--accent);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -3px;
}

.fc-call svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(10, 20, 45, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
  animation: fadeIn 200ms ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------------- Page hero (trang phụ) ---------------- */
.page-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 166, 35, 0.14), transparent 40%),
    linear-gradient(180deg, #ffffff, var(--bg));
  padding: 3rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.page-hero p {
  margin-top: 0.9rem;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* ---------------- Animations ---------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-figure {
    order: -1;
    max-width: 520px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .intro .media-frame {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem 5%;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .header-inner {
    position: relative;
  }

  .header-actions .btn {
    display: none;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    padding: 1.8rem;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}
