/* --- V3 PREMIUM MASSIVE CSS SYSTEM --- */

:root {
  /* Brand palette — logo GLOBAL IMMIGRATION GROUP */
  /* Navy #304386 | Đỏ #B5232D (chủ đạo) | Vàng #F6CD2D (accent phụ) */
  --primary-color: #304386;       /* navy chính */
  --primary-light: #4A5FA8;       /* navy sáng */
  --primary-dark: #1E2D5E;        /* navy tối — footer */
  --red-color: #B5232D;           /* đỏ — màu chủ đạo thứ 2 */
  --red-light: #D42B36;           /* đỏ sáng hơn */
  --red-dark: #8A1820;            /* đỏ tối */
  --secondary-color: #F6CD2D;     /* vàng — accent phụ */
  --secondary-light: #FFE066;     /* vàng sáng */
  --secondary-dark: #C9A800;      /* vàng tối */
  --accent-color: #B5232D;        /* alias đỏ */
  --bg-color: #F4F6FA;            /* nền trang — xanh nhạt rất nhẹ */
  --bg-alt: #E8EDF5;              /* nền section xen kẽ */
  --surface-color: #FFFFFF;
  --text-dark: #0D1B35;           /* chữ tối — navy gần đen */
  --text-muted: #5A6A85;          /* chữ phụ */
  --text-white: #FFFFFF;
  --text-on-dark: rgba(255,255,255,0.88); /* chữ trên nền tối */

  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 4px 6px -1px rgba(48,67,134, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(48,67,134, 0.12);
  --shadow-lg: 0 25px 50px -12px rgba(48,67,134, 0.20);
}

/* ===================== BASE RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.7; color: var(--text-dark); background-color: var(--bg-color); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--primary-color); line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: all var(--transition-fast); }
img { max-width: 100%; display: block; object-fit: cover; }
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--secondary-color) !important; }
.text-red { color: var(--red-color) !important; }
.text-white { color: #fff !important; }
.bg-color { background-color: var(--bg-alt); }
.mt-4 { margin-top: 24px; }

/* Section headings */
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.section-subtitle { font-size: clamp(15px, 2vw, 18px); color: var(--text-muted); max-width: 800px; margin: 0 auto 60px; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; border-radius: 50px; cursor: pointer; transition: var(--transition-normal); border: none; gap: 10px; white-space: nowrap; }
/* Nút chính: đỏ */
.btn-primary { background: linear-gradient(135deg, var(--red-color), var(--red-light)); color: white; box-shadow: 0 8px 20px rgba(181,35,45,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(181,35,45,0.5); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary-color); }
/* Nút vàng — dùng trên nền tối khi cần */
.btn-gold { background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light)); color: var(--primary-dark); box-shadow: 0 8px 20px rgba(246,205,45,0.35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(246,205,45,0.5); }
/* Nút nhỏ outline — dùng trong magazine card */
.btn-sm-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  border-radius: 50px; border: 1.5px solid var(--primary-color);
  color: var(--primary-color); background: transparent;
  transition: all var(--transition-fast); cursor: pointer;
  text-decoration: none;
}
.btn-sm-outline:hover { background: var(--primary-color); color: white; }

/* ===================== HEADER & NAV ===================== */
/*
  Mặc định: position relative (nằm trong flow, không che content)
  Khi scroll qua header: JS thêm .is-fixed → position fixed + shadow mạnh hơn
*/
header {
  position: relative;
  top: 0; left: 0; width: 100%; z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(48,67,134,0.08);
  transition: box-shadow var(--transition-normal);
  color: var(--primary-color);
}
header.is-fixed {
  position: fixed;
  box-shadow: 0 2px 20px rgba(48,67,134,0.16);
}
header.scrolled {
  box-shadow: 0 2px 20px rgba(48,67,134,0.16);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img-rect {
  height: 52px; width: auto; display: block;
  transition: height var(--transition-fast);
}

/* Desktop Nav */
.desktop-menu { display: flex; list-style: none; gap: 20px; align-items: center; }
.desktop-menu > li > a {
  font-weight: 600; font-size: 13px; position: relative;
  padding: 6px 2px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}
.desktop-menu > li > a::after {
  content: ''; position: absolute; width: 0%; height: 2px;
  bottom: -2px; left: 0; right: 0;
  background-color: var(--red-color);
  transition: width var(--transition-normal);
}
.desktop-menu > li > a:hover::after,
.desktop-menu > li > a.active::after { width: 100%; }
.desktop-menu > li > a:hover,
.desktop-menu > li > a.active { color: var(--red-color) !important; }

/* Dropdowns */
.dropdown-content,
.desktop-menu .sub-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: white; box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm); min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition-normal); list-style: none;
  padding: 6px 0; border-top: 3px solid var(--red-color);
  z-index: 100;
}
.has-dropdown,
.desktop-menu .menu-item-has-children { position: relative; }
.has-dropdown:hover .dropdown-content,
.desktop-menu .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a,
.desktop-menu .sub-menu a {
  display: block; padding: 10px 20px; font-weight: 500;
  font-size: 13px; color: var(--text-dark); transition: var(--transition-fast);
  border-left: 3px solid transparent;
}
.dropdown-content a:hover,
.dropdown-content a.active,
.desktop-menu .sub-menu a:hover,
.desktop-menu .sub-menu a.active {
  background: var(--bg-alt); color: var(--red-color);
  border-left-color: var(--red-color); padding-left: 24px;
}

/* Mobile toggle */
.mobile-toggle { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: inherit; padding: 4px; }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 300px; max-width: 85vw;
  height: 100vh; background: white; z-index: 2000; padding: 24px 20px;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15); transition: right 0.35s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-close {
  font-size: 28px; background: none; border: none; cursor: pointer;
  color: var(--primary-color); margin-bottom: 24px; display: block;
}
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block; padding: 13px 0; font-size: 16px; font-weight: 600;
  color: var(--primary-color); border-bottom: 1px solid #edf0f5;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--red-color) !important; border-bottom-color: var(--red-color); }

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header {
  min-height: 300px;
  background: linear-gradient(rgba(30,45,94,0.82), rgba(30,45,94,0.94)),
              var(--lw-page-header-bg) center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 80px 24px 80px;
}
.page-header .container { width: 100%; }
.page-title {
  font-size: clamp(26px, 4.5vw, 46px);
  color: white !important;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
.page-header .section-subtitle,
.page-header p {
  color: rgba(255,255,255,0.88) !important;
  font-size: clamp(14px, 1.8vw, 17px);
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb {
  display: block;
  color: var(--secondary-color) !important;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

/* ===================== HERO SLIDER ===================== */
/* Header relative → hero không cần margin-top, chiếm full viewport height */
.hero-slider {
  height: 100vh;
  min-height: 500px;
  position: relative; overflow: hidden; background: var(--primary-dark);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 6s ease; }
.hero-slide.active img { transform: scale(1); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(48,67,134,0.90) 0%, rgba(48,67,134,0.40) 100%);
}
.hero-content-wrapper { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; }
.hero-content { max-width: 760px; color: white; padding: 0 8px; }
.hero-title {
  font-size: clamp(32px, 5.5vw, 64px);
  color: white !important; margin-bottom: 20px;
  line-height: 1.15;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.92) !important;
  margin-bottom: 36px;
}

/* partner-ribbon removed */

/* ===================== TRUST METRICS ===================== */
/* Số liệu thống kê — chữ phải rõ trên nền trắng */
.trust-box { background: white; border-radius: var(--border-radius-md); padding: 50px; box-shadow: var(--shadow-sm); display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 30px; }
.trust-item .trust-num { font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: var(--primary-color); line-height: 1; }
.trust-item .trust-label { color: var(--text-muted); font-size: 15px; margin-top: 6px; }

/* ===================== IMAGE SERVICES GRID ===================== */
.image-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.img-service-card { position: relative; border-radius: var(--border-radius-md); overflow: hidden; height: 420px; box-shadow: var(--shadow-md); }
.img-service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.img-service-card:hover img { transform: scale(1.08); }
.img-service-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,45,94,0.96) 0%, rgba(30,45,94,0.10) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 28px; color: white;
}
.img-service-overlay h3 { color: white !important; font-size: clamp(18px, 2.5vw, 26px); margin-bottom: 8px; }
.img-service-overlay p { color: rgba(255,255,255,0.82) !important; margin-bottom: 0; font-size: 14px; }

/* ===================== GALLERY SWIPER ===================== */
.gallery-swiper-wrap { position: relative; }
.gallery-swiper { padding-bottom: 56px !important; }
.gallery-swiper .swiper-slide { border-radius: var(--border-radius-md); overflow: hidden; height: 420px; box-shadow: var(--shadow-lg); }
.gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-swiper .swiper-slide:hover img { transform: scale(1.06); }
.gallery-swiper .swiper-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(30,45,94,0.92) 0%, transparent 100%);
  padding: 28px 24px 20px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-swiper .swiper-slide:hover .swiper-slide-caption { opacity: 1; transform: translateY(0); }
.gallery-swiper .swiper-pagination-bullet { background: var(--secondary-color) !important; opacity: 0.5; width: 10px; height: 10px; }
.gallery-swiper .swiper-pagination-bullet-active { opacity: 1 !important; width: 28px; border-radius: 5px; }
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white !important;
  transition: background 0.2s ease;
}
.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover { background: var(--red-color); border-color: var(--red-color); }
.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after { font-size: 14px !important; font-weight: 700; }

/* Legacy gallery-grid kept for backward compat */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--border-radius-sm); overflow: hidden; height: 280px; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; height: auto; min-height: 574px; }
.gallery-item:nth-child(4) { grid-column: span 3; height: 240px; }
.gallery-item img { width: 100%; height: 100%; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ===================== TEAM ===================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { background: white; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; }
.team-card img { width: 100%; height: 320px; object-fit: cover; }
.team-info { padding: 20px; }
.team-info h4 { font-size: 18px; margin-bottom: 4px; color: var(--primary-color); }
.team-info span { color: var(--secondary-color); font-weight: 600; font-size: 13px; }

/* ===================== TIMELINE ===================== */
.timeline-section { background: white; padding: 100px 0; }
.timeline-step { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-img { flex: 1; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 420px; position: relative; }
.timeline-img::before { content: ''; position: absolute; inset: 0; background: rgba(181,35,45,0.06); z-index: 1; }
.timeline-text { flex: 1; }
.timeline-num { font-size: clamp(56px, 7vw, 80px); font-weight: 800; color: rgba(181,35,45,0.15); line-height: 1; margin-bottom: -16px; }
.timeline-text h3 { font-size: clamp(20px, 2.8vw, 30px); margin-bottom: 16px; color: var(--primary-color); }
.timeline-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; }

/* ===================== SWIPER / SLIDER ===================== */
.swiper { padding-bottom: 50px !important; }
.swiper-img { height: 210px; position: relative; overflow: hidden; }
.swiper-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red-color); color: white;
  padding: 4px 12px; border-radius: 20px;
  font-weight: 700; font-size: 12px; z-index: 2;
}
/* CRITICAL: swiper-card luôn trắng, chữ luôn tối — không bị override bởi section cha */
.swiper-card {
  background: #ffffff !important;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  border: 1px solid #dde3ef;
}
.swiper-card > img { width: 100%; height: 210px; object-fit: cover; display: block; }
.swiper-content { padding: 20px; background: #ffffff; }
/* Chữ trong card PHẢI tối — dùng !important để thắng mọi rule cha */
.swiper-content h4,
.swiper-card h4,
.swiper-card h3 {
  font-size: 17px !important;
  margin-bottom: 8px !important;
  color: var(--primary-color) !important;
}
.swiper-content p,
.swiper-card p {
  color: var(--text-muted) !important;
  font-size: 14px !important;
}
.swiper-content .meta,
.swiper-card .meta { color: var(--text-muted) !important; font-size: 13px !important; }
.swiper-pagination { bottom: 8px !important; }
.swiper-pagination-bullet { background: var(--red-color) !important; opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: var(--red-color) !important; }

/* ===================== FAQ ===================== */
.faq-section { background: var(--bg-alt); padding: 100px 0; }
.faq-container { max-width: 880px; margin: 0 auto; }
.faq-item { background: white; border-radius: var(--border-radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question {
  padding: 22px 28px; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--primary-color);
}
.faq-question h3 { color: var(--primary-color); font-size: 16px; font-weight: 600; margin: 0; }
.faq-answer { padding: 0 28px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 15px; }
.faq-item.active .faq-answer { padding-bottom: 22px; max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ===================== MAGAZINE CARDS ===================== */
.magazine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.magazine-card { background: white; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.magazine-img { height: 240px; overflow: hidden; }
.magazine-img img { width: 100%; height: 100%; transition: 0.5s; }
.magazine-card:hover .magazine-img img { transform: scale(1.08); }
/* Direct img child (no .magazine-img wrapper) */
.magazine-card > img { width: 100%; height: 240px; object-fit: cover; display: block; }
.magazine-content { padding: 22px; }
.magazine-content h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary-color); }
.magazine-content p { color: var(--text-muted); font-size: 14px; }

/* ===================== FOOTER ===================== */
footer { background: var(--primary-dark); color: white; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 {
  color: var(--secondary-light) !important;
  margin-bottom: 20px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col p { color: rgba(255,255,255,0.70); font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-col ul a { color: rgba(255,255,255,0.65); }
.footer-col ul a:hover { color: var(--secondary-light); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; color: rgba(255,255,255,0.40); font-size: 13px; }
.footer-logo-img { height: 48px; width: auto; margin-bottom: 18px; display: block; }

/* ===================== RESPONSIVE — TABLET ===================== */
@media (max-width: 1024px) {
  .section-padding { padding: 70px 0; }
  .image-services-grid,
  .team-grid,
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; min-height: 280px; }
  .gallery-item:nth-child(4) { grid-column: span 2; height: 200px; }
  .timeline-step,
  .timeline-step:nth-child(even) { flex-direction: column; gap: 30px; }
  .timeline-img { height: 280px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================== RESPONSIVE — MOBILE ===================== */
@media (max-width: 768px) {
  /* Nav */
  .desktop-menu { display: none; }
  .mobile-toggle { display: block; color: var(--primary-color); }
  header { background: #ffffff !important; color: var(--primary-color) !important; }
  .nav-container { height: 64px !important; }
  .logo-img-rect { height: 38px !important; }

  /* Hero — full viewport, header đã relative nên không cần offset */
  .hero-slider { height: 100svh; min-height: 420px; }
  .hero-content { padding: 0 4px; }
  .hero-title { font-size: clamp(26px, 8vw, 40px) !important; margin-bottom: 14px; }
  .hero-desc { font-size: 14px !important; margin-bottom: 28px; }
  .btn { padding: 12px 24px; font-size: 14px; }

  /* Page header inner pages */
  .page-header { min-height: 200px; padding: 48px 20px 48px; }
  .page-title { font-size: clamp(20px, 6vw, 30px) !important; margin-bottom: 10px; }
  .page-header .section-subtitle,
  .page-header p { font-size: 13px !important; }
  .page-header .section-subtitle,
  .page-header p { font-size: 14px !important; }

  /* Sections */
  .section-padding { padding: 56px 0; }
  .section-title { font-size: clamp(22px, 6vw, 32px) !important; }
  .section-subtitle { font-size: 14px !important; margin-bottom: 36px; }

  /* Grids */
  .image-services-grid,
  .gallery-grid,
  .team-grid,
  .magazine-grid { grid-template-columns: 1fr; gap: 16px; }
  .img-service-card { height: 320px; }
  .gallery-item { height: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; min-height: 200px; }
  .gallery-item:nth-child(4) { grid-column: span 1; height: 200px; }

  /* Timeline */
  .timeline-step,
  .timeline-step:nth-child(even) { flex-direction: column; gap: 20px; margin-bottom: 48px; }
  .timeline-img { height: 220px; width: 100%; }
  .timeline-num { font-size: 48px; }
  .timeline-text h3 { font-size: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Trust metrics */
  .trust-box { padding: 32px 20px; gap: 24px; }
  .trust-item .trust-num { font-size: 36px; }

  /* Swiper */
  .swiper-content h4 { font-size: 16px; }
}

/* ===================== DARK SECTION TEXT FIX ===================== */
/*
  QUAN TRỌNG: Chỉ override chữ TRỰC TIẾP trong section tối,
  KHÔNG override chữ bên trong .swiper-card, .magazine-card, .faq-item (nền trắng)
*/
[style*="background: var(--primary-color)"] > .container > .text-center > .section-title,
[style*="background: var(--primary-color)"] > .container > .text-center > h2 {
  color: white !important;
}
[style*="background: var(--primary-color)"] > .container > .text-center > .section-subtitle {
  color: rgba(255,255,255,0.88) !important;
}

/* Section navy — heading và subtitle trực tiếp (không qua .swiper-card) */
section[style*="background: var(--primary-color)"] .section-title:not(.swiper-card *),
section[style*="background: var(--primary-color)"] h2:not(.swiper-card *) {
  color: white !important;
}
section[style*="background: var(--primary-color)"] .section-subtitle:not(.swiper-card *) {
  color: rgba(255,255,255,0.88) !important;
}

/* .text-white override mạnh */
.text-white,
p.text-white,
.section-subtitle.text-white,
h1.text-white, h2.text-white, h3.text-white {
  color: #ffffff !important;
}

/* CTA banner gold — chữ tối */
[style*="background: linear-gradient(135deg, var(--secondary-color)"] h2,
[style*="background: linear-gradient(135deg, var(--secondary-color)"] p {
  color: var(--primary-dark) !important;
}

/* ===================== SECTION ACCENT COLORS ===================== */
/* Dùng đỏ làm màu nhấn chính cho section headings */
.section-title .text-red,
.text-red { color: var(--red-color) !important; }

/* Timeline number — đỏ nhạt */
.timeline-num { color: rgba(181,35,45,0.15) !important; }

/* Team info span — đỏ */
.team-info span { color: var(--red-color) !important; }

/* Footer heading — vàng */
.footer-col h3 { color: var(--secondary-color) !important; }

/* Mobile menu active — đỏ */
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--red-color) !important; }

/* CTA banner red — chữ trắng */
[style*="background: linear-gradient(135deg, var(--red-color)"] h2,
[style*="background: linear-gradient(135deg, var(--red-color)"] p {
  color: white !important;
}

/* ===================== FLOATING ACTION BUTTONS ===================== */
.fab-group {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.fab-btn:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,0.30); }
.fab-btn i { font-size: 22px; color: white; }
.fab-btn.fab-hotline { background: var(--red-color); animation: fab-pulse 2s infinite; }
.fab-btn.fab-zalo { background: #0068FF; }
.fab-btn.fab-messenger { background: linear-gradient(135deg, #0099FF, #A033FF); }
/* Tooltip label */
.fab-btn::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.fab-btn:hover::before { opacity: 1; }

/* Pulse animation cho hotline */
@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(181,35,45,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(181,35,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(181,35,45,0); }
}

/* ===================== TO TOP BUTTON ===================== */
.to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(48,67,134,0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top-btn:hover { background: var(--red-color); }
.to-top-btn i { font-size: 18px; }

/* ===================== CONTACT FORM ===================== */
.contact-form-section {
  background: var(--bg-alt);
  padding: 80px 0;
}
.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 700;
}
.contact-form-wrap p.form-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #dde3ef;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fafbfd;
  transition: border-color 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-color); background: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 20px; }
}

/* ===================== MOBILE FAB ===================== */
@media (max-width: 768px) {
  .fab-group { right: 14px; bottom: 76px; gap: 8px; }
  .fab-btn { width: 46px; height: 46px; }
  .fab-btn i { font-size: 20px; }
  .to-top-btn { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

/* ===================== SCROLL ANIMATIONS ===================== */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* Fade-in from left */
[data-animate="left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="left"].animated { opacity: 1; transform: translateX(0); }

/* Fade-in from right */
[data-animate="right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="right"].animated { opacity: 1; transform: translateX(0); }

/* Scale-in */
[data-animate="scale"] {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="scale"].animated { opacity: 1; transform: scale(1); }

/* Article styles */
.article-wrap { max-width: 1100px; width: 100%; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.article-meta .tag { background: var(--red-color); color: white; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.article-featured-img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--border-radius-md); margin-bottom: 40px; box-shadow: var(--shadow-md); }
.article-body h2 { font-size: clamp(20px, 3vw, 28px); margin: 36px 0 16px; color: var(--primary-color); }
.article-body h3 { font-size: clamp(17px, 2.5vw, 22px); margin: 28px 0 12px; color: var(--primary-color); }
.article-body p { color: var(--text-muted); font-size: 16px; line-height: 1.9; margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 24px; color: var(--text-muted); font-size: 16px; line-height: 2; margin-bottom: 18px; }
.article-body blockquote {
  border-left: 4px solid var(--red-color);
  background: var(--bg-alt);
  padding: 20px 28px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 500;
}
.related-articles { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--bg-alt); }
.related-articles h3 { font-size: 22px; margin-bottom: 28px; color: var(--primary-color); }

@media (max-width: 768px) {
  .article-featured-img { height: 240px; }
  .gallery-swiper .swiper-slide { height: 260px; }
}
