:root {
  --primary: #0A2A66;
  --secondary: #1F4FD8;
  --accent: #E6F0FF;
  --text: #0F172A;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* ===== HEADER FIX FINAL ===== */

.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* =========================
   HEADER NAV FIX – PC ONLY
========================= */
@media (min-width: 1024px) {

  .site-header nav,
  .site-header .main-navigation {
    margin-left: 32px;        
    flex-grow: 1;             
    justify-content: flex-start; 
  }

  .site-header .menu {
    gap: 26px;               
  }

}

/* Container */
.site-header .container {
  max-width: 100%;
  padding: 0 20px;

  display: flex;
  align-items: center;              
  justify-content: space-between;

  min-height: 72px;                 
}

/* Logo + Menu */
.header-flex {
  display: flex;
  align-items: center;              
  gap: 40px;
}

/* NAV */
.site-header nav,
.site-header .main-navigation,
.site-header .menu {
  display: flex;
  align-items: center;
}

/* Menu item */
.site-header .menu > li > a {
  padding: 20px 0 18px;             
  display: flex;
  align-items: center;
}
/* ======================================
   RESPONSIVE STICKY HEADER (MOBILE ONLY)
====================================== */
@media (max-width: 1024px) {

  /* HEADER */
  .site-header {
    position: fixed;        
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;

    background: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }

  /* HEADER CONTAINER */
  .site-header .container {
    min-height: 60px;       
    padding: 0 16px;
  }

  /* LOGO */
  .site-header .custom-logo,
  .site-header img {
    max-height: 34px;
    width: auto;
  }

  body {
    padding-top: 60px;
  }

}

/* ===== LOGO ===== */

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img,
.custom-logo {
  max-height: 64px;   
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  overflow: hidden;
}

/* =====================================
   MAIN MENU
===================================== */

.main-nav {
  margin-left: 16px;
}

.main-nav ul.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 0px;
  padding: 0;
}

.main-nav ul.menu > li {
  position: relative;
}

.main-nav ul.menu > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
	white-space: nowrap;
}

/* underline hover */
.main-nav ul.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;                      
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.main-nav ul.menu > li:hover > a::after {
  width: 100%;
}

/* =====================================
   CONTACT – FIXED & STABLE
===================================== */

.header-contact {
  margin-left: auto;
  display: flex;
  flex-direction: column;        /* 👈 NẰM DỌC */
  align-items: flex-end;         /* 👈 CANH PHẢI */
  gap: 4px;
  height: 100%;
  white-space: nowrap;           /* 👈 KHÔNG XUỐNG DÒNG */
}

/* từng dòng contact */
.header-contact .contact-item {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
  transition: .3s;
}

/* icon nhỏ gọn */
.header-contact .contact-item i {
  font-size: 13px;
}

/* hover */
.header-contact .contact-item:hover {
  opacity: 1;
  color: var(--secondary);
}



/* =====================================
   MEGA MENU CORE
===================================== */

.menu-item-has-children {
  position: relative;
}

/* vùng hover đệm chống rớt dropdown */
.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: -60px;
  right: -60px;
  top: 100%;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

/* hover dropdown */
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children > .sub-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sub-menu,
.sub-menu li {
  float: none !important;
  clear: none !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =====================================
   CATEGORY COLUMN
===================================== */

.sub-menu > .menu-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: background .2s ease, box-shadow .2s ease;
}

/* hover nhẹ – KHÔNG đổi cả cột */
.sub-menu > .menu-item:hover {
  background: #f0f9ff;
  box-shadow: 0 8px 20px rgba(37,99,235,.12);
  transform: none;
}

.sub-menu > .menu-item > a {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  text-decoration: none;
  margin-bottom: 12px;
}

/* =====================================
   POST PANEL (LUÔN HIỂN THỊ)
===================================== */

.mega-post-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  display: block;       /* ✅ luôn hiện */
  animation: none;      /* ❌ bỏ animation hover */
}

/* =====================================
   POST TITLE
===================================== */

.mega-post-title {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.mega-post-title + .mega-post-title {
  margin-top: 4px;
}

/* hover chỉ đúng item */
.mega-post-title:hover {
  background: #0a2a66;
  color: #ffffff;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1024px) {
  .menu-item-has-children > .sub-menu {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .mega-post-panel {
    display: block;
  }

  .menu-item-has-children::after {
    display: none;
  }
}
/* ================= MOBILE: ẨN POST PANEL ================= */
@media (max-width: 1024px){

  /* Ẩn panel bài viết */
  .mega-post-panel {
    display: none !important;
  }

  /* Chỉ cho phép submenu cấp 1 (category) */
  .main-nav .sub-menu .sub-menu {
    display: none !important;
  }

}


/* ===== HERO VIDEO + INTRO ===== */

.hero-slider-pro {
  background: #f4f7ff;
  padding-bottom: 80px;
}

/* VIDEO */

.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05) saturate(1.05);
}
img.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===============================
   MOBILE – HIỂN THỊ ĐỦ ẢNH
================================ */

@media (max-width: 768px) {

  .hero-video-wrap img.hero-bg-image {
    width: 100%;
    height: 150%;
    max-height: 90vh;      
    object-fit: contain;
    padding: 8px;    
    display: block;
    margin: 0 auto;
  }

}

/* ===== WHY HERO VIDEO ===== */

.why-hero-video {
  position: relative;
  max-width: 1100px;
  margin: 90px auto 110px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(10,42,102,.22);
  background: #0a2a66;
}

.why-hero-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.why-hero-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-hero-video:hover {
  transform: translateY(-4px);
  transition: .4s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .why-hero-video {
    margin: 60px 16px 80px;
    border-radius: 18px;
  }
}
/* ===== HERO CONTENT ===== */

.why-hero-pro {
  background: #f8fafc;
  padding-bottom: 120px;
  position: relative;
}

.why-hero-pro .container {
  max-width: 1100px;
}

/* Box nổi */
.hero-box {
  margin: -110px auto 0;
  background: #ffffff;
  border-radius: 26px;
  padding: 70px 90px;
  text-align: center;
  box-shadow: 
    0 25px 80px rgba(15,23,42,.18),
    inset 0 0 0 1px rgba(30,78,216,.05);
  position: relative;
  z-index: 5;
}

/* Decor gradient viền nhẹ */
.hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,#1e4ed8,#38bdf8);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Text */
.hero-box h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0a2a66;
  margin-bottom: 18px;
}

.hero-box p {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
  max-width: 880px;
  margin: 0 auto;
}
/* ===== MOBILE ===== */

@media (max-width: 992px) {
  .hero-box {
    padding: 50px 40px;
    margin-top: -90px;
  }
}

@media (max-width: 768px) {
  .why-hero-video {
    height: 280px;
  }

  .hero-box {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .hero-box h1 {
    font-size: 26px;
  }

  .hero-box p {
    font-size: 15px;
  }
}

/* ===== HERO INTRO BOX PRO ===== */

.hero-intro-box{
  max-width:900px;
  margin:-90px auto 0;
  padding:60px 65px;
  border-radius:26px;
  text-align:center;
  position:relative;
  z-index:5;

  background:linear-gradient(180deg,#ffffff,#f4f8ff);
  box-shadow:
    0 30px 80px rgba(10,42,102,.25),
    inset 0 0 0 1px rgba(30,78,216,.08);

  overflow:hidden;
}

/* glow border */

.hero-intro-box::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:26px;
  padding:2px;
  background:linear-gradient(135deg,#3b82f6,#60a5fa,#1e40af);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:.6;
  pointer-events:none;
}

/* soft glow */

.hero-intro-box::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  background:radial-gradient(circle,rgba(96,165,250,.35),transparent 70%);
  top:-120px;
  right:-80px;
  filter:blur(40px);
  z-index:-1;
}

/* TEXT */

.hero-intro-box h1{
  font-size:34px;
  font-weight:700;
  color:#0a2a66;
  margin-bottom:18px;
  letter-spacing:.2px;
margin-left: -10px;
}

.hero-intro-box p{
  font-size:17px;
  line-height:1.85;
  color:#1e293b;
  margin-bottom:34px;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

/* BUTTON */

.hero-intro-box .btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:linear-gradient(135deg,#1e40af,#3b82f6);
  color:#fff;
  padding:14px 38px;
  border-radius:40px;
  font-weight:600;
  letter-spacing:.3px;
  text-decoration:none;
  transition:.35s ease;
  box-shadow:0 14px 35px rgba(59,130,246,.45);
}

.hero-intro-box .btn-primary:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 18px 45px rgba(59,130,246,.6);
}

/* HOVER BOX */

.hero-intro-box:hover{
  box-shadow:
    0 40px 110px rgba(10,42,102,.35),
    inset 0 0 0 1px rgba(30,78,216,.15);
}

/* ================= FIX RESPONSIVE HERO INTRO ================= */

/* Tablet */
@media (max-width: 1024px){
  .hero-intro-box{
    width: 94%;
    max-width: 100%;
    margin: -40px auto 0;
    padding: 44px 36px;
    box-sizing: border-box;
  }

  .hero-intro-box h1{
    font-size: 26px;
  }

  .hero-intro-box p{
    font-size: 15.5px;
  }
}


/* Mobile */
@media (max-width: 768px){
  .hero-intro-box{
    width: calc(100% - 24px);
    margin: 20px auto 0;   
    padding: 28px 18px;
    border-radius: 18px;
  }

  .hero-intro-box h1{
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 12px;
  }

  .hero-intro-box p{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-intro-box::after{
    display: none; 
  }
}


/* Small phone */
@media (max-width: 480px){
  .hero-intro-box{
    width: calc(100% - 16px);
    padding: 22px 14px;
  }

  .hero-intro-box h1{
    font-size: 18px;
  }

  .hero-intro-box p{
    font-size: 13.5px;
  }
}


/* ================= ABOUT HERO SLIDER ================= */

.about-hero-slider {
  position: relative;
  padding-bottom: 120px;
  overflow: hidden;
}

/* VIDEO */

.about-hero-video-wrap {
  position: relative;
  height: 72vh;
  min-height: 520px;hero-intro-box
  overflow: hidden;
}

.about-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BOX NỔI BÊN DƯỚI VIDEO */

.about-hero-box {
  max-width: 980px;
  margin: -110px auto 0;
  background: #ffffff;
  border-radius: 26px;
  padding: 70px 90px;
  text-align: center;
  box-shadow: 
    0 25px 80px rgba(15,23,42,.18),
    inset 0 0 0 1px rgba(30,78,216,.05);
  position: relative;
  z-index: 5;
}

/* TEXT */

.about-hero-box h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0a2a66;
  margin-bottom: 18px;
  letter-spacing: .4px;
}

.about-hero-box p {
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
  max-width: 720px;
  margin: auto;
}
.about-hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #1e40af);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  pointer-events: none;
}

.about-hero-box::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(96,165,250,.35), transparent 70%);
  top: -120px;
  right: -80px;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .about-hero-box {
    padding: 50px 50px;
    margin-top: -90px;
  }
}

@media (max-width: 768px) {
  .about-hero-video-wrap {
    height: 55vh;
  }

  .about-hero-box {
    padding: 40px 28px;
    margin-top: -70px;
  }

  .about-hero-box h1 {
    font-size: 28px;
  }

  .about-hero-box p {
    font-size: 15px;
  }
}


/* ===== INTRO PRO ===== */

.about-intro-pro {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, #f5f8ff, #ffffff);
}

.intro-box {
  max-width: 980px;
  margin: auto;
  background: #ffffff;
  padding: 70px 80px 65px;
  border-radius: 26px;
  position: relative;
  box-shadow: 0 40px 100px rgba(10,42,102,.12);
  overflow: hidden;
}

/* DECOR SHAPES */

.intro-decor {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(29,78,216,.18), transparent 70%);
  z-index: 0;
}

.intro-decor.left {
  top: -60px;
  left: -60px;
}

.intro-decor.right {
  bottom: -60px;
  right: -60px;
}

/* SLOGAN WRAP */

.intro-slogan-wrap {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
  z-index: 2;
}

/* ICON */

.slogan-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2a66, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 15px 40px rgba(29,78,216,.45);
}

/* SLOGAN TEXT */

.intro-slogan {
  font-size: 28px;
  font-weight: 800;
  color: #0a2a66;
  line-height: 1.45;
  max-width: 720px;
  margin: auto;
  position: relative;
}

.intro-slogan::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #0a2a66, #1d4ed8);
  margin: 22px auto 0;
  border-radius: 2px;
}

/* CONTENT */

.intro-content {
  position: relative;
  z-index: 2;
  line-height: 1.9;
  font-size: 16px;
  color: #1e293b;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .intro-box {
    padding: 45px 30px;
  }

  .intro-slogan {
    font-size: 22px;
  }

  .slogan-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}

/* ===== FADE ===== */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .about-hero-pro h1 {
    font-size: 30px;
  }

  .intro-box {
    padding: 35px 25px;
  }

  .intro-box h2 {
    font-size: 24px;
  }
}

/* ===== ABOUT NUMBERS ===== */

.about-numbers {
  position: relative;
  padding: 100px 0;
  color: #fff;
}

.about-numbers .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,42,102,.95), rgba(15,58,138,.95));
}

.about-numbers .container {
  position: relative;
  z-index: 2;
}

.center-title.white {
  color: #fff;
  text-align: center;
}

/* GRID */

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  margin-top: 60px;
}

/* ITEM */

.number-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* ICON */

.number-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

/* CONTENT */

.number-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.number-circle {
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.number-item p {
  line-height: 1.6;
  opacity: .95;
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .number-item {
    align-items: center;
  }
}


/* SECTION */

.about-section {
  padding: 90px 0;
}

.about-section.light {
  background: #f5f8ff;
}

.about-section.blue {
  background: #0b1f4d;
  color: #fff;
}

/* INTRO BOX */

.about-box {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.about-text {
  line-height: 1.8;
  color: #1e293b;
}

/* VISION MISSION */

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
}

.vm-box {
  background: rgba(255,255,255,.08);
  padding: 36px;
  border-radius: 16px;
}

.vm-box h2 {
  margin-bottom: 12px;
}

/* CORE VALUES */

.center-title {
  text-align: center;
  margin-bottom: 50px;
color: #0a2a66;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 20px;
}

.value-card {
  background: #fff;
  padding: 28px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.value-card h3 {
  color: #0a2a66;
  margin-bottom: 8px;
  font-size: 18px;
}

.value-card p {
  font-size: 14px;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BUTTON FIX RESPONSIVE ===== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg,#1e40af,#3b82f6);
  color: #fff;
  box-shadow: 0 10px 28px rgba(59,130,246,.45);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

/* ================= FIX BUTTON MOBILE ================= */

@media (max-width: 768px){

  .hero-intro-box .btn-primary,
  .hero-intro-box .btn-secondary{
    display: flex !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto !important;

    justify-content: center;
    align-items: center;

    padding: 14px 16px;
    font-size: 14px;
    box-sizing: border-box;

    transform: none !important;
    position: relative;
    left: 0;
    right: 0;
  }

}



/* ===== HOME NEWS ===== */

.home-news {
  padding: 100px 0;
  background: linear-gradient(135deg, #0b1f4d, #0f3a8a);
  color: #fff;
}

.news-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 70px;
  position: relative;
  letter-spacing: .5px;
}

/* gạch trang trí */
.news-title::after {
  content: "";
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #1d4ed8);
  display: block;
  margin: 18px auto 0;
  border-radius: 3px;
}

/* ICON FA */
.news-title::before {
  content: "\f1ea"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  font-size: 42px;
  color: rgba(255,255,255,0.18);
}



/* ===== 3 COLUMNS LAYOUT ===== */

.news-3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* ===== COLUMN ===== */

.news-col {
  position: relative;
  padding: 0 28px;
overflow: hidden;
}

/* dấu | ngăn cột */

.news-col:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px;
  top: 120px;
  font-size: 110px;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  font-weight: 200;
  pointer-events: none;
}

.news-col-title {
  text-align: center;
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}

/* ===== SLIDER ===== */

.news-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.news-track {
  display: flex;
  width: 100%;
max-width: 100%;
  transition: transform .6s ease-in-out;
  will-change: transform;
}

/* ===== SLIDE CARD ===== */

.news-slide {
  min-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  transition: .35s ease;
  opacity: 0;
  transform: scale(.96);
  height: 380px;

  display: flex;
  flex-direction: column;
}

.news-slide.active {
  opacity: 1;
  transform: scale(1);
}

.news-slide:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-6px) scale(1);
}

/* ===== IMAGE ===== */

.news-thumb {
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  height: 210px;
  background: #0a2a66;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CONTENT ===== */

.news-info {
  padding: 14px 6px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-info p {
  font-size: 13px;
  opacity: .85;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}
/* Hiển thị slide đầu tiên */
.news-track .news-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

/* Fix chiều cao slider */
.news-slider {
  min-height: 400px;
}

/* Canh giữa dấu | */
.news-col:not(:last-child)::after {
  top: 50%;
  transform: translateY(-50%);
}

/* ================= ECOSYSTEM SERVICES ================= */

.eco-services {
  padding: 120px 0;
  background: #f6f9ff;
}

.eco-title {
  text-align: center;
  font-size: 38px;
  color: #0a2a66;
  margin-bottom: 90px;
}

.eco-title span {
  display: block;
  font-size: 16px;
  margin-top: 10px;
  color: #475569;
}

/* SERVICE BLOCK */

.eco-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

.eco-service.reverse {
  direction: rtl;
}
.eco-service.reverse > * {
  direction: ltr;
}

/* MEDIA */

.eco-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10,42,102,.18);
}

.eco-media img,
.eco-media video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* CONTENT */

.eco-content h3 {
  font-size: 28px;
  color: #0a2a66;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-content h3 i {
  color: #2563eb;
}

.eco-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eco-content li {
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: 16px;
  color: #1e293b;
}

.eco-content strong {
  color: #0a2a66;
}

.iso-icon {
  color: #f59e0b;
}

/* ANIMATION */

.eco-service.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s ease;
}

.eco-service.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media(max-width: 992px) {
  .eco-service {
    grid-template-columns: 1fr;
  }

  .eco-media img,
  .eco-media video {
    height: 300px;
  }

  .eco-title {
    font-size: 28px;
  }
}


/* ===== NAV BUTTON ===== */

.news-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #0a2a66;
  font-size: 22px;
  cursor: pointer;
  transition: .3s;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.news-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.12);
}

.news-nav.prev { left: -6px; }
.news-nav.next { right: -6px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .news-3cols {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .news-col {
    padding: 0;
  }

  .news-col:not(:last-child)::after {
    display: none;
  }
}



/* INFO */

.news-col .news-info h4{
  font-size:15px;
  color:#fff;
  margin-bottom:6px;
  line-height:1.35;
}

.news-col .news-info p{
  font-size:13px;
  color:rgba(255,255,255,.85);
  line-height:1.4;
}

/* RESPONSIVE */

@media(max-width:1024px){
  .news-3cols{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:640px){
  .news-3cols{
    grid-template-columns:1fr;
  }

  .news-title{
    font-size:28px;
  }
}


/* Customer And Partner */
.home-partners {
  padding: 80px 0 40px;
  background: #fff;
  text-align: center;
}

.home-partners h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 40px;
}
.home-customers {
  padding: 80px 0 40px;
  background: #fff;
  text-align: center;
}

.home-customers h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 40px;
}
.partner-slider,
.customer-slider {
  overflow: hidden;
  position: relative;
}

/* track thường */
.slide-track {
  display: flex;
  width: calc(240px * 24);
  animation: scroll-left 40s linear infinite;
}

/* track ngược */
.slide-track.reverse {
  animation: scroll-right 40s linear infinite;
}

.slide {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.slide img {
  max-width: 160px;
  opacity: .7;
  transition: all .3s ease;
}

.slide img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}
.decorated {
  position: relative;
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #f3f7ff, #eef4ff);
  overflow: hidden;
}

.decorated h2 {
  text-align: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* shape trang trí */
.decorated .bg-shape {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31,79,216,0.15), transparent 70%);
  top: -120px;
  left: -120px;
  border-radius: 50%;
  z-index: 1;
}

.decorated .bg-shape.reverse {
  left: auto;
  right: -120px;
  top: -100px;
}
.slide img {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
/* animation trái */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-240px * 12)); }
}

/* animation phải */
@keyframes scroll-right {
  0% { transform: translateX(calc(-240px * 12)); }
  100% { transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== FOOTER ===== */

.site-footer-2 {
  background: #061a3a;
  color: #cbd5e1;
  padding: 70px 0 0;
}

.footer-2-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
/* ===== FLOATING BUTTONS ===== */

.floating-buttons {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f4fd8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  cursor: pointer;
  transition: all .3s ease;
  border: none;
}

.float-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

/* ZALO */
.float-btn.zalo {
  background: #2b7cff;
}

.float-btn.zalo img {
  width: 28px;
  height: 28px;
}

/* PHONE */
.float-btn.phone {
  background: #22c55e;
}

.float-btn.phone i,
.float-btn.scroll-top i {
  font-size: 20px;
}

/* SCROLL TOP */
.float-btn.scroll-top {
  background: var(--secondary); 
  border: none;
  color: #fff;
}
.float-btn.scroll-top:hover {
  background: #163fc0;
}
/* ===== FLOAT VIEW COUNTER (CIRCLE STYLE) ===== */

.float-view {
  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  background: linear-gradient(135deg,#0a2a66,#2563eb);
  color: #fff;

  font-weight: 700;
  font-size: 12px;
  line-height: 1;

  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  cursor: default;
  user-select: none;

  transition: all .3s ease;
  animation: floatPulse 2.5s infinite ease-in-out;
}

/* Icon */
.float-view i {
  font-size: 14px;
  opacity: .9;
}

/* Number */
.float-view span {
  font-size: 11px;
  letter-spacing: .3px;
}

/* Hover */
.float-view:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

/* Subtle animation */

@keyframes floatPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===== RING ANIMATION ===== */

@keyframes ring {
  0% { transform: rotate(0); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}

.float-view,
.float-btn.zalo,
.float-btn.phone {
  animation: ring 1.5s infinite;
}

/* ---- Footer Intro ---- */
.footer-intro img {
  margin-bottom: 12px;
}

.footer-intro h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #fff;
}

.footer-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: #cde5dc;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: .3s;
}

.footer-social a:hover {
  background: #1f8f6a;
  border-color: #1f8f6a;
}

/* ---- FORM ---- */
.footer-form h3,
.footer-map h3 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-form input,
.footer-form textarea {
  padding: 10px 12px;
  border-radius: 4px;
  border: none;
  outline: none;
  font-size: 14px;
}

.footer-form textarea {
  min-height: 100px;
  resize: none;
}

.footer-form button {
  background: #1f8f6a;
  border: none;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}

.footer-form button:hover {
  background: #27b383;
}

/* ---- MAP ---- */
.footer-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 6px;
}

/* ---- BOTTOM ---- */
.footer-2-bottom {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
  color: #b7d8cc;
}

/* ---- PAGINATION ---- */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 14px;
  margin: 0 4px;
  border-radius: 6px;
  background: #fff;
  color: #0b1f4d;
  text-decoration: none;
  font-weight: 600;
}

.pagination .page-numbers.current {
  background: #1f4fd8;
  color: #fff;
}

.pagination .page-numbers:hover {
  background: #1f4fd8;
  color: #fff;
}

/* ===== SINGLE POST ===== */

.post-wrap {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.post-title {
  font-size: 32px;
  color: #0a2a66;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.post-thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

.post-content {
  line-height: 1.8;
  font-size: 16px;
  color: #1e293b;
}

.post-content h2,
.post-content h3 {
  color: #0a2a66;
  margin-top: 28px;
}
/* ===== ALIGN IMAGE IN POST ===== */

.post-content img.aligncenter,
.post-content figure.aligncenter {
  display: block;
  margin: 20px auto;
}

.post-content img {
  max-width: 100%;
  height: auto;
}
/* ===== POST NAVIGATION ===== */

.post-navigation {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.post-nav a {
  display: block;
  position: relative;
  padding: 34px 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  text-decoration: none;
  box-shadow: 
    0 20px 60px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(30,78,216,.06);
  transition: .45s ease;
  overflow: hidden;
}

/* Gradient viền */

.post-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #1e40af);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}

/* Hover glow */

.post-nav a::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(96,165,250,.35), transparent 70%);
  top: -120px;
  right: -120px;
  filter: blur(45px);
  opacity: 0;
  transition: .45s ease;
  z-index: -1;
}

.post-nav a:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 35px 90px rgba(37,99,235,.28);
}

.post-nav a:hover::after {
  opacity: 1;
}

/* Label */

.post-nav .nav-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}

/* Title */

.post-nav .nav-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #0a2a66;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Alignment */

.post-nav.prev {
  text-align: left;
}

.post-nav.next {
  text-align: right;
}

/* Responsive */

@media (max-width: 768px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav a {
    padding: 26px 28px;
  }

  .post-nav.next {
    text-align: left;
  }
}

/* ===== CONTACT PAGE ===== */

/* MAP */
.contact-map {
  width: 100%;
  background: #f5f8ff;
}
.contact-map iframe,
.map-wrap iframe {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
}

/* INFO CARDS */
.contact-info {
  padding: 80px 0 40px;
  background: #f5f8ff;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.contact-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  transition: .3s;
}
.contact-card:hover {
  transform: translateY(-8px);
}
.contact-card .icon {
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg,#0a2a66,#0f3a8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.contact-card h3 {
  color: #0a2a66;
  margin-bottom: 8px;
}

/* ================= CONTACT FORM SECTION ================= */
.contact-form-section {
  padding: 110px 0 140px;
  background: radial-gradient(circle at top, #eef4ff, #ffffff);
}

.form-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2d6f, #0f3a8a);
  border-radius: 28px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  box-shadow: 0 30px 80px rgba(0, 40, 120, 0.35);
}

/* Glow effect */
.form-box::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 60%);
  pointer-events: none;
}

/* LEFT CONTENT */
.form-left h2 {
  font-size: 42px;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.form-left p {
  opacity: 0.95;
  line-height: 1.9;
  font-size: 17px;
  color: #e5edff;
  max-width: 420px;
}

/* RIGHT FORM PANEL */
.form-right {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* INPUT */
.form-right input,
.form-right textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: all 0.25s ease;
}

.form-right input::placeholder,
.form-right textarea::placeholder {
  color: #dbeafe;
}

.form-right input:focus,
.form-right textarea:focus {
  outline: none;
  border-color: #93c5fd;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}

/* TEXTAREA */
.form-right textarea {
  min-height: 120px;
  resize: vertical;
}

/* SUBMIT BUTTON */
.form-right input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  padding: 15px 44px;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
}

.form-right input[type="submit"]:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(37,99,235,0.55);
}

.form-right input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37,99,235,0.4);
}
/* SELECT STYLE */
.form-right select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #3b82f6;
  margin-bottom: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
}

.form-right select option {
  color: #0f172a;
}

.form-right select:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255,255,255,.18);
}


/* ================= POPUP THANK YOU ================= */
.cgc-popup {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
}

.cgc-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #fff;
  padding: 42px 46px;
  border-radius: 22px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  animation: popupZoom .35s ease;
}

.popup-box h3 {
  font-size: 26px;
  margin-bottom: 14px;
  color: #0f172a;
}

.popup-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.popup-box button {
  margin-top: 22px;
  padding: 12px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff;
  transition: .25s;
}

.popup-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,.45);
}

@keyframes popupZoom {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


/* CUSTOM FORM STYLE */
.cgc-form {
  display: grid;
  gap: 18px;
}
.cgc-form .form-row {
  display: flex;
  flex-direction: column;
}
.cgc-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
.cgc-form input,
.cgc-form textarea,
.cgc-form select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #3b82f6;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}
.cgc-form select option {
  background-color: #1d4ed8;
  color: #fff;
}
.cgc-form textarea {
  min-height: 120px;
  resize: vertical;
}
.cgc-form input:focus,
.cgc-form textarea:focus,
.cgc-form select:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.2);
}
.cgc-form .center {
  text-align: center;
  margin-top: 10px;
}
.cgc-submit {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.cgc-submit:hover {
  background: linear-gradient(135deg, #0a2a66, #1e40af);
  transform: translateY(-2px);
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.fade-in.show {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .form-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* =============================
   WHY CHOOSE CGC - CORE PAGE
============================= */

.why-hero-pro {
  position: relative;
  padding: 120px 0;
  background: url('../images/bg/bg-why.png') center/cover no-repeat;
  color: #0a2a66;
}

.why-hero-pro .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}

.why-hero-pro .container {
  position: relative;
  text-align: center;
}

.why-hero-pro h1 {
  font-size: 44px;
  margin-bottom: 14px;
}

.why-hero-pro p {
  max-width: 780px;
  margin: auto;
  font-size: 18px;
  color: #1e3a8a;
}

/* CORE GRID */

.why-core {
  padding: 100px 0;
  background: #f5f8ff;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.core-card {
  background: #fff;
  padding: 40px 28px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  text-align: center;
  transition: .3s ease;
}

.core-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,.15);
}

.core-card img {
  height: 64px;
  margin-bottom: 18px;
}

.core-card h3 {
  color: #0a2a66;
  margin-bottom: 12px;
  font-size: 20px;
}

.core-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

/* CTA */

.why-cta-pro {
  padding: 90px 0;
  background: linear-gradient(135deg,#0a2a66,#0f3a8a);
  color: #fff;
  text-align: center;
}

.why-cta-pro h2 {
  margin-bottom: 24px;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .core-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .core-grid {
    grid-template-columns: 1fr;
  }
}


/* ================= PROCESS INTRO ================= */

.process-intro {
  padding: 120px 0;
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 {
  font-size: 42px;
  color: #0a2a66;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 28px;
}

.intro-text ul {
  list-style: none;
  padding: 0;
}

.intro-text li {
  margin-bottom: 12px;
  font-weight: 600;
  color: #1e40af;
}

.intro-video video {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
/* ================= PROCESS INTRO - MOBILE OPTIMIZED ================= */
@media (max-width: 768px) {

  .process-intro {
    padding: 60px 0 50px;
  }

  /* Grid chuyển thành 1 cột */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* TEXT */
  .intro-text {
    text-align: center;
  }

  .intro-text h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .intro-text p {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 22px;
    padding: 0 6px;
  }

  /* CHECKLIST */
  .intro-text ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    margin-top: 10px;
  }

  .intro-text li {
    background: #f1f5ff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;

    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* VIDEO */
  .intro-video video {
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
  }
}


/* ================= TIMELINE ================= */

.process-timeline {
  padding: 140px 0;
  background: linear-gradient(180deg,#f5f8ff,#ffffff);
}

.timeline {
  position: relative;
  max-width: 1400px;     
  margin: auto;
  padding-left: 40px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg,#2563eb,#60a5fa);
  border-radius: 10px;
}

/* ===== ITEM ===== */

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr; 
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}

/* ===== DOT ===== */

.timeline-dot {
  width: 82px;
  height: 82px;
  background: linear-gradient(135deg,#2563eb,#60a5fa);
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 25px 70px rgba(37,99,235,.55);
  z-index: 2;
}

/* ===== IMAGE CARD ===== */

.timeline-image {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #e5f0ff;
  box-shadow: 
    0 40px 120px rgba(37,99,235,.35),
    inset 0 0 0 1px rgba(255,255,255,.35);
}

/* tỷ lệ banner lớn */
.timeline-image::before {
  content: "";
  display: block;
  padding-top: 42%;   
}

.timeline-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s ease;
}

/* Hover effect */
.timeline-item:hover .timeline-image img {
  transform: scale(1.06);
}

/* Glow nhẹ */
.timeline-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .timeline {
    max-width: 1100px;
  }

  .timeline-item {
    grid-template-columns: 100px 1fr;
    gap: 60px;
  }

  .timeline-image::before {
    padding-top: 48%;
  }
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 0;
  }

  .timeline:before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 100px;
  }

  .timeline-dot {
    margin: 0 auto;
  }

  .timeline-image {
    border-radius: 26px;
  }

  .timeline-image::before {
    padding-top: 58%;
  }
}





/* ===== PROCESS ARROW ===== */

.process-arrow {
  font-size: 42px;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  animation: arrowPulse 1.8s infinite ease-in-out;
}

@keyframes arrowPulse {
  0%   { transform: translateX(0); opacity: .4; }
  50%  { transform: translateX(6px); opacity: 1; }
  100% { transform: translateX(0); opacity: .4; }
}


/* ===== BLOG LANDING ===== */

.blog-hero {
  position: relative;
  padding: 140px 0;
  background: url(../images/blog-hero.jpg) center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.blog-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,42,102,.75);
}

.blog-hero .container {
  position: relative;
}

.blog-hero h1 {
  font-size: 46px;
  margin-bottom: 14px;
}

.blog-hero p {
  font-size: 18px;
  opacity: .95;
}

/* ===== CATEGORY HERO ===== */

.category-hero {
  position: relative;
  padding: 140px 0 120px;
  background: linear-gradient(135deg,#0a2a66,#1e4ed8);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),transparent 60%);
  opacity: .4;
}

.category-hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.category-hero h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .3px;
 white-space: nowrap;
}

.category-hero p {
  font-size: 18px;
  opacity: .92;
  line-height: 1.6;
}

/* == CATEGORY VIDEO SECTION == */

.category-video {
  padding: 80px 0 100px;
  background: #f5f8ff;
}

.category-video-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(10,42,102,.18);
  background: #0a2a66;
}

.category-video-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.category-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
  .category-video {
    padding: 60px 0 80px;
  }

  .category-video-wrap {
    border-radius: 18px;
  }
}

/* ===== CATEGORY POSTS ===== */

.category-posts {
  padding: 110px 0;
  background: #f5f8ff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 42px;
}

/* ===== POST CARD ===== */

.post-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,42,102,.12);
  color: inherit;
  transition: .45s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 90px rgba(10,42,102,.22);
}

/* Clickable content */

.post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== THUMBNAIL ===== */


.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .6s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.08);
}

/* ===== CONTENT ===== */

.post-info {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-date {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.post-info h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #0b1f4d;
  margin-bottom: 10px;
  transition: .3s;
}

.post-card:hover h3 {
  color: #1f4fd8;
}

.post-info p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin-top: auto;
}

/* ============================
   POST META BAR
============================ */

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 14px;
  border-top: 1px dashed rgba(15,23,42,.12);
  background: linear-gradient(180deg,#ffffff,#f8fbff);
}

/* Item */

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: #475569;
  transition: .25s ease;
}

.meta-item i {
  font-size: 14px;
}

/* Icon colors */

.meta-item .fa-heart {
  color: #ef4444;
}

.meta-item .fa-eye {
  color: #6366f1;
}

/* Hover effect */

.meta-item:hover {
  transform: translateY(-2px);
  color: #0f172a;
}

/* Like active */

.like-btn.liked i {
  animation: pop .35s ease;
  filter: drop-shadow(0 0 6px rgba(239,68,68,.55));
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Mobile */

@media (max-width: 768px) {
  .post-thumb {
    height: 200px;
  }

  .post-info h3 {
    font-size: 18px;
  }

  .post-meta-bar {
    padding: 10px 14px;
  }

  .meta-item {
    font-size: 12px;
  }
}


/* ===== PAGINATION CATEGORY ===== */

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 14px;
  margin: 0 4px;
  border-radius: 6px;
  background: #fff;
  color: #0b1f4d;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: .25s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #1f4fd8;
  color: #fff;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .category-hero h1 {
    font-size: 32px;
  }

  .category-hero p {
    font-size: 16px;
  }
}
/* ================= COMMUNITY PAGE ================= */

.community-page {
  overflow: hidden;
}

/* ===============================
   CINEMATIC COMMUNITY HERO – FIXED
================================ */

.cinematic-hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  color: #fff;
  background: #0a2a66;
}

/* ===== LAYER NỀN MỀM ===== */
.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at center,
      rgba(255,255,255,0.06),
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(10,42,102,0.92),
      rgba(10,42,102,0.78)
    );
  z-index: 1;
}

/* ===============================
   ẢNH BAY (NỔI, KHÔNG CHE CHỮ)
================================ */

.hero-flying-images {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-flying-images img {
  position: absolute;
  width: 190px;
  border-radius: 20px;
  opacity: 0;
  transform: scale(.6);
  animation: flyIn 1.3s cubic-bezier(.25,.8,.25,1) forwards;
  box-shadow:
    0 35px 90px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,0.12);
  background: #fff;
}

/* Vị trí */
.fly-1 { top: 12%; left: 8%; animation-delay: .2s; }
.fly-2 { top: 14%; right: 10%; animation-delay: .4s; }
.fly-3 { bottom: 26%; left: 10%; animation-delay: .6s; }
.fly-4 { bottom: 24%; right: 12%; animation-delay: .8s; }
.fly-5 { top: 40%; left: 38%; animation-delay: 1s; }
.fly-6 { top: 42%; right: 34%; animation-delay: 1.2s; }

@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(.5);
  }
  70% {
    opacity: 1;
    transform: translateY(-14px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===============================
   ẢNH TỔNG THỂ (NỀN SAU)
================================ */

.hero-final-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: showFinal 1.6s ease forwards;
  animation-delay: 3.4s;
  z-index: 2;
  pointer-events: none;
}

.hero-final-image img {
  width: 95%;
  max-width: 1200px;
  opacity: .38;
  filter: blur(2px) saturate(.9);
  transform: scale(1.15);
  border-radius: 32px;
}

@keyframes showFinal {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===============================
   TEXT – LUÔN RÕ, LUÔN NỔI
================================ */

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 48px;
  opacity: 0;
  animation: textReveal 1.2s ease forwards;
  animation-delay: 4.6s;
  text-align: center;
}

/* Glass layer cho chữ */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -24px -28px;
  background: linear-gradient(
    to bottom,
    rgba(10,42,102,.85),
    rgba(10,42,102,.65)
  );
  backdrop-filter: blur(14px);
  border-radius: 30px;
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: 14px;
  letter-spacing: .6px;
  margin-bottom: 22px;
}

.cinematic-hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
  margin-bottom: 20px;
  color: #fff;
	white-space: nowrap;
  text-shadow:
    0 8px 30px rgba(0,0,0,.45),
    0 2px 10px rgba(0,0,0,.35);
}

.cinematic-hero p {
  font-size: 18px;
  color: rgba(255,255,255,.95);
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
	white-space: nowrap;
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
  .hero-flying-images img {
    width: 120px;
  }

  .hero-final-image img {
    width: 100%;
    opacity: .32;
  }

  .hero-content {
    padding: 32px 20px;
  }

  .hero-content::before {
    inset: -20px;
  }

  .cinematic-hero h1 {
    font-size: 28px;
  }

  .cinematic-hero p {
    font-size: 15px;
  }
}






/* SECTION HEAD */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 70px;
}

.section-head h2 {
  font-size: 38px;
  color: #0a2a66;
white-space: nowrap;
}

.section-head p {
  margin-top: 12px;
  color: #64748b;
}

/* STATS */

.community-stats {
  padding: 110px 0;
  background: #f5f8ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}

.stat-card {
  background: #fff;
  padding: 46px 30px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(10,42,102,.12);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 140px;
  background: radial-gradient(circle, rgba(30,78,216,.15), transparent 70%);
}

.stat-card h3 {
  font-size: 42px;
  color: #1e4ed8;
}

.stat-card p {
  margin-top: 8px;
  font-weight: 600;
}

/* GALLERY */

.community-gallery {
  padding: 40px 0 80px;
  background: #fff;      
  position: relative;
  z-index: 5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 26px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
}

.gallery-item.video .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: #fff;
  background: rgba(0,0,0,.35);
}

/* POSTS */

.community-posts {
  padding: 120px 0;
  background: #f5f8ff;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.community-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 25px 70px rgba(10,42,102,.12);
  transition: .4s;
}

.community-card:hover {
  transform: translateY(-10px);
}

.community-card .thumb {
  height: 240px;
  overflow: hidden;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}

.community-card:hover img {
  transform: scale(1.1);
}

.community-card .info {
  padding: 26px;
}

.community-card .date {
  font-size: 12px;
  color: #64748b;
}

.community-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.community-card p {
  font-size: 14px;
  color: #475569;
}

/* PAGINATION */
.pagination {
  margin-top: 60px;
  text-align: center;
}

/* RESPONSIVE */

@media(max-width: 992px) {
  .stats-grid,
  .gallery-grid,
  .community-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width: 640px) {
  .stats-grid,
  .gallery-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 768px) {
  .community-gallery {
    margin-top: -40px;
    padding-top: 50px;
    padding-bottom: 60px;
  }
}

/* ================= COMMUNITY PAGE ================= */

.community-page {
  overflow: hidden;
}

/* ======================================================
   COMMUNITY HERO – CINEMATIC FINAL
====================================================== */

.community-hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0a2a66;
}

/* ======================================================
   BACKGROUND GRADIENT
====================================================== */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    #081f4d,
    #123a8c,
    #1e40af,
    #0a2a66
  );
  background-size: 320% 320%;
  animation: gradientMove 16s ease infinite;
  z-index: 1;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ======================================================
   LIGHT WAVE
====================================================== */
.hero-wave {
  position: absolute;
  width: 180%;
  height: 180%;
  top: -40%;
  left: -40%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.18),
    transparent 68%
  );
  animation: waveMove 14s linear infinite;
  z-index: 2;
}

@keyframes waveMove {
  0%   { transform: translate(-12%, -12%); }
  50%  { transform: translate(12%, 12%); }
  100% { transform: translate(-12%, -12%); }
}

/* ===============================
   HERO GALLERY – FULL IMMERSION
================================ */

.hero-flying-images {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== CHUNG ===== */
.g-img {
  position: absolute;
  width: 180px;
  border-radius: 18px;
  opacity: 0;
  animation:
    galleryIn 1.2s cubic-bezier(.25,.8,.25,1) forwards,
    galleryFloat 12s ease-in-out infinite;
  box-shadow:
    0 35px 90px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12);
  background: #fff;
}

/* ===============================
   VỊ TRÍ – PHỦ ĐỀU HERO
================================ */

/* TOP */
.g1  { top: 6%;  left: 6%;  animation-delay: .2s; }
.g2  { top: 8%;  left: 70%; animation-delay: .3s; }
.g3  { top: 6%;  right: 6%; animation-delay: .4s; }

/* MID */
.g4  { top: 34%; left: 4%;  animation-delay: .5s; }
.g5  { top: 36%; right: 4%; animation-delay: .6s; }

/* MID – NEAR TEXT (NHẸ HƠN) */
.g6  { top: 35%; left: 22%; animation-delay: .7s; }
.g7  { top: 44%; right: 22%;animation-delay: .8s; }

/* BOTTOM */
.g8  { bottom: 5%; left: 6%;  animation-delay: .9s; }
.g9  { bottom: 8%;  left: 34%; animation-delay: 1s; }
.g10 { bottom: 10%; right: 6%; animation-delay: 1.1s; }

/* BOTTOM MID */
.g11 { bottom: 10%; left: 20%; animation-delay: 1.2s; }
.g12 { bottom: 26%; right: 16%;animation-delay: 1.3s; }
@media (max-width: 1024px) {

  /* ========== TOP ZONE (0–25%) ========== */
  .g1  { top: 3%;  left: 4%; }
  .g3  { top: 10%; left: 48%; }
  .g2  { top: 14%; left: 84%; }

  /* ========== MID TOP (25–40%) ========== */
  .g6  { top: 28%; left: 6%; }
  .g4  { top: 34%; left: 18%; }
  .g7  { top: 28%; left: 78%; }

  /* ========== MID BOTTOM (40–60%) ========== */
  .g5  { top: 46%; left: 4%; }
  .g12 { top: 44%; left: 38%; }
  .g11 { top: 46%; left: 80%; }

  /* ========== BOTTOM ZONE (60–90%) ========== */
  .g8  { bottom: 14%; left: 6%; }
  .g9  { bottom: 8%;  left: 26%; }
  .g10 { bottom: 10%; left: 66%; }
}


/* ===============================
   ANIMATION
================================ */

@keyframes galleryIn {
  from {
    opacity: 0;
    transform: translateY(80px) scale(.75);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes galleryFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* ===============================
   TẠO SAFE ZONE CHO TEXT
================================ */

.hero-content {
  position: relative;
  z-index: 5;
}

.g6, .g7 {
  opacity: .75;
  filter: blur(.2px);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .g-img {
    width: 130px;
  }
}

@media (max-width: 768px) {
  .g-img {
    width: 100px;
    opacity: .65;
  }

  /* Ẩn bớt ảnh sát chữ */
  .g6, .g7 {
    display: none;
  }
}

/* ======================================================
   FINAL BACKGROUND IMAGE (RÕ HƠN)
====================================================== */
.hero-final-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: finalFade 1.4s ease forwards;
  animation-delay: 2.4s;
}

.hero-final-image img {
  width: 100%;
  max-width: 1400px;
  opacity: 0.55;
  filter: blur(0.6px) saturate(1.05);
  transform: scale(1.12);
  border-radius: 32px;
}

@keyframes finalFade {
  to { opacity: 1; }
}

/* ======================================================
   HERO CONTENT (TEXT)
====================================================== */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  animation: textReveal 1.2s ease forwards;
  animation-delay: 4.6s;
}

/* Glass layer behind text */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -30px -46px;
  background: linear-gradient(
    to right,
    rgba(10,42,102,.92),
    rgba(10,42,102,.78)
  );
  backdrop-filter: blur(12px);
  border-radius: 34px;
  z-index: -1;
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge */
.hero-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  font-size: 14px;
  letter-spacing: .6px;
  margin-bottom: 24px;
}

/* Title */
.cinematic-hero h1 {
  white-space: nowrap;
  transform: translateX(-80px);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow:
    0 10px 36px rgba(0,0,0,.55),
    0 2px 12px rgba(0,0,0,.35);
}

/* Desc */
.cinematic-hero p {
  white-space: nowrap;
  transform: translateX(-22px);
  font-size: 18px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 768px) {
  .g-img {
    width: 110px;
  }

  .hero-final-image img {
    max-width: 92%;
    transform: scale(1.05);
  }

  .cinematic-hero h1,
  .cinematic-hero p {
    white-space: normal;
    transform: none;
    text-align: center;
  }
}


/* ======================================================
   CONTENT
====================================================== */

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  animation: contentFadeUp 1s ease forwards;
  animation-delay: 2.4s;
  opacity: 0;
}

@keyframes contentFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  font-size: 14px;
  letter-spacing: .6px;
  margin-bottom: 22px;
}

.community-hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: 18px;
}

.community-hero p {
  font-size: 18px;
  opacity: .92;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 768px) {
  .community-hero {
    height: 520px;
  }

  .g-img {
    width: 110px;
  }

  .hero-final-image img {
    max-width: 90%;
  }

  .community-hero p {
    font-size: 15px;
  }
}


/* SECTION HEAD */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 70px;
}

.section-head h2 {
  font-size: 38px;
  color: #0a2a66;
}

.section-head p {
  margin-top: 12px;
  color: #64748b;
}


/* GALLERY */

.community-gallery {
  padding: 120px 0;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 26px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
}

.gallery-item.video .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: #fff;
  background: rgba(0,0,0,.35);
}

/* POSTS */

.community-posts {
  padding: 120px 0;
  background: #f5f8ff;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.community-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 25px 70px rgba(10,42,102,.12);
  transition: .4s;
}

.community-card:hover {
  transform: translateY(-10px);
}

.community-card .thumb {
  height: 240px;
  overflow: hidden;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}

.community-card:hover img {
  transform: scale(1.1);
}

.community-card .info {
  padding: 26px;
}

.community-card .date {
  font-size: 12px;
  color: #64748b;
}

.community-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.community-card p {
  font-size: 14px;
  color: #475569;
}

/* PAGINATION */
.pagination {
  margin-top: 60px;
  text-align: center;
}

/* RESPONSIVE */

@media(max-width: 992px) {
  .stats-grid,
  .gallery-grid,
  .community-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width: 640px) {
  .stats-grid,
  .gallery-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-hero h1 {
    font-size: 36px;
  }
}

/* ======================================================
   MOBILE RESPONSIVE FIX (iPhone & Android)
   Paste this at the very end of style.css
   ====================================================== */

/* 1. Thiết lập chung cho Mobile */
@media (max-width: 1024px) {
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    
    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    
    .community-posts, 
    .home-services, 
    .news-section,
    .why-section,
    .about-hero-box,
    .contact-form-section {
        padding: 40px 0 !important; 
    }
}

/* 2. HEADER & MENU MOBILE (Kiểu App Drawer) */
@media (max-width: 1024px) {
    .site-header .container {
        min-height: 60px;
        position: relative;
    }

    /* Ẩn thông tin liên hệ trên header */
    .header-contact {
        display: none;
    }

    /* Logo chỉnh nhỏ lại cho vừa điện thoại */
    .logo-link img, .custom-logo {
        height: 36px;
        width: auto;
    }

    /* Nút Menu Mobile (Hamburger) */
    .mobile-menu-toggle {
        display: flex; 
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        z-index: 1002;
    }

    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Giấu sang bên phải */
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding-top: 70px;
        transition: 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
    }

    /* Class này sẽ được JS thêm vào để mở menu */
    .main-nav.active {
        right: 0;
    }

    .main-nav ul.menu {
        flex-direction: column; /* Dàn dọc */
        gap: 0;
    }

    .main-nav ul.menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul.menu li a {
        color: #333; /* Chữ màu đen trên nền trắng */
        padding: 15px 20px;
        display: block;
        font-size: 16px;
    }
    
    /* Ẩn hiệu ứng gạch chân hover của PC */
    .main-nav ul.menu li a::after {
        display: none;
    }
}

/* Ẩn nút Hamburger trên màn hình lớn */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
}
/* ================= MOBILE SUBMENU  ================= */
@media (max-width: 1024px){

  /* Menu item có submenu */
  .main-nav .menu-item-has-children {
    position: relative;
  }

  /* Link cha – KHÔNG chừa chỗ cho mũi tên nữa */
  .main-nav .menu-item-has-children > a {
    padding-right: 20px;
    font-weight: 600;
  }

  
  .submenu-toggle {
    display: none !important;
  }

  
  .main-nav .menu-item-has-children > a::after {
    display: none !important;
    content: none !important;
  }

  /* ✅ SUBMENU LUÔN HIỂN THỊ */
  .main-nav .menu-item-has-children > .sub-menu {
    display: block !important;
    position: static;
    background: #f8faff;
    margin: 0;
    padding: 6px 0;
    box-shadow: none;
    border-left: 3px solid var(--secondary);
  }

  /* ITEM CON – chỉnh chữ gọn, không tràn */
  .main-nav .sub-menu li a {
    display: block;
    padding: 12px 20px 12px 34px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #1e293b;

    white-space: normal;
    word-break: break-word;
  }

  .main-nav .sub-menu li a:hover {
    background: #e0f2fe;
  }

  .main-nav .sub-menu .sub-menu {
    display: none !important;
  }
}

/* ================= MOBILE: CHỈ HIỆN CATEGORY – ẨN POST ================= */
@media (max-width: 1024px){

  /* Chỉ cho phép hiển thị submenu cấp 1 */
  .main-nav .sub-menu .sub-menu {
    display: none !important;
  }

}


/* 3. TYPOGRAPHY (Chữ) - Tránh chữ quá to trên iPhone */
@media (max-width: 768px) {
    h1, .hero-box h1, .why-hero-pro h1 {
        font-size: 28px !important; /* Giảm từ 54px xuống 28px */
        line-height: 1.3;
    }

    h2, .section-head h2, .news-title {
        font-size: 24px !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px !important;
        line-height: 1.6;
        text-align: justify; /* Căn đều 2 bên cho gọn */
    }
}

/* 4. GRID SYSTEM (Chuyển cột thành hàng dọc) */
@media (max-width: 768px) {
    /* Chuyển tất cả grid 3 cột, 2 cột về 1 cột */
    .home-services-grid,
    .why-grid,
    .community-grid,
    .news-grid,
    .footer-2-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Fix khối Eco-Services (Ảnh và Chữ) */
    .eco-service, 
    .eco-service.reverse {
        display: flex;
        flex-direction: column-reverse; /* Ảnh lên trên, chữ xuống dưới */
        gap: 20px;
        direction: ltr !important; /* Bỏ direction: rtl gây lỗi trên mobile */
    }

    .eco-content {
        padding: 0;
        text-align: left;
    }

    /* Video/Ảnh full chiều ngang */
    .eco-media img, .eco-media video, .community-card .thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9; /* Giữ tỷ lệ khung hình đẹp */
    }
}

/* 5. FOOTER & FORM */
@media (max-width: 768px) {
    .site-footer-2 {
        text-align: center; /* Căn giữa nội dung footer */
    }

    .footer-social {
        justify-content: center;
    }

    .form-box {
        grid-template-columns: 1fr;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .form-right {
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE HERO BOX OPTIMIZED ================= */
@media (max-width: 768px) {

  .hero-box,
  .about-hero-box {
    height: auto;
    min-height: 380px;
    padding: 90px 14px 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* căn giữa ngang */
    text-align: center;  /* chữ căn giữa */
  }

  /* BOX NỘI DUNG */
  .hero-intro-box {
    position: relative;
    width: 100%;
    max-width: 520px;      /* không bị quá rộng */
    margin: 20px auto 0;
    padding: 26px 22px;

    background: linear-gradient(135deg,#ffffff,#f4f9ff);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
  }

  /* TIÊU ĐỀ */
  .hero-intro-box h1,
  .hero-intro-box h2 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
    color: #0a2a66;
  }

  /* NỘI DUNG TEXT */
  .hero-intro-box p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 0;

    word-break: break-word;
  }
}

/* =============================================
   MOBILE MENU LOGIC (Dán vào cuối file CSS)
============================================= */

/* 1. MẶC ĐỊNH TRÊN DESKTOP: ẨN NÚT HAMBURGER */
.mobile-menu-toggle {
  display: none; 
  font-size: 26px;
  color: #fff; 
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

/* 2. CHỈ KÍCH HOẠT TRÊN MOBILE (Màn hình < 1024px) */
@media (max-width: 1024px) {

  /* Hiện nút hamburger */
  .mobile-menu-toggle {
    display: block; 
    margin-left: auto; /* Đẩy sát lề phải */
  }

  /* Ẩn thông tin liên hệ để đỡ chật */
  .header-contact {
    display: none; 
  }

  /* Biến Menu thành ngăn kéo (Drawer) */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Giấu menu sang phải */
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    padding-top: 80px; /* Chừa chỗ để không đè logo */
    transition: all 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  /* Class này sẽ được JS thêm vào để mở menu */
  .main-nav.active {
    right: 0; 
  }

  /* Style lại link menu trên mobile cho đẹp */
  .main-nav ul.menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul.menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav ul.menu li a {
    color: #333; /* Chữ màu đen trên nền trắng */
    padding: 15px 20px;
    display: block;
    width: 100%;
  }
  
  /* Reset hiệu ứng gạch chân của Desktop */
  .main-nav ul.menu > li > a::after {
    display: none;
  }
}
/* =========================================
   FIX SUB-MENU CHO MOBILE
========================================= */
@media (max-width: 1024px) {
  /* 1. Ẩn Sub-menu mặc định */
  .main-nav ul.menu .sub-menu {
    display: none;      /* Ẩn hoàn toàn */
    position: static;   /* Bỏ vị trí tuyệt đối của PC */
    width: 100%;
    background: #f9fbff; /* Màu nền khác biệt một chút để dễ phân biệt */
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: 3px solid var(--secondary); /* Tạo vạch màu bên lề */
  }

  /* 2. Khi Menu cha được Click (thông qua class 'open') */
  .main-nav ul.menu li.menu-item-has-children.open > .sub-menu {
    display: block; /* Hiện ra khi bấm */
  }

  /* 3. Chỉnh lại style link của menu con */
  .main-nav ul.menu .sub-menu li a {
    padding: 12px 40px !important; /* Đẩy lùi vào trong một chút */
    font-size: 13px;
    background: transparent;
  }

  /* 4. Thêm icon mũi tên sau menu có con (Tùy chọn) */
  .menu-item-has-children > a::after {
    content: '\f107'; /* Icon mũi tên xuống của FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
    transition: 0.3s;
  }
  
  .menu-item-has-children.open > a::after {
    transform: rotate(180deg); /* Xoay mũi tên khi mở */
  }
}
/* Đảm bảo Menu ẩn và có hiệu ứng trượt */
@media (max-width: 1024px) {
    .main-nav {
        display: block !important; /* Luôn block nhưng đẩy ra ngoài màn hình */
        position: fixed !important;
        top: 0;
        right: -100% !important; /* Đẩy sang phải hoàn toàn */
        width: 280px;
        height: 100vh;
        background: #ffffff !important;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* Khi có class active do JS thêm vào */
    .main-nav.active {
        right: 0 !important; /* Kéo vào màn hình */
    }

    /* SUB-MENU: Mặc định ẩn */
    .main-nav .sub-menu {
        display: none !important;
        background: #f8faff !important;
        padding-left: 15px !important;
        list-style: none;
    }

    /* Khi bấm vào menu cha có class .open */
    .main-nav li.menu-item-has-children.open > .sub-menu {
        display: block !important;
    }

    /* Nút Hamburger phải luôn nằm trên menu */
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 10000;
        color: #fff; /* Đổi thành màu trắng cho nổi trên nền xanh */
    }
}
/* --- RESPONSIVE MENU & DROPDOWN --- */
@media (max-width: 1024px) {
  /* 1. Đảm bảo menu chính bao phủ toàn màn hình khi mở */
  .main-nav {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: -100% !important; 
    width: 300px;
    height: 100vh;
    background: #fff !important;
    z-index: 9999;
    transition: 0.4s ease;
    padding-top: 80px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    right: 0 !important;
  }

  /* 2. Style các mục menu cha */
  .main-nav ul.menu {
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-nav ul.menu li {
    width: 100%;
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
  }

  /* 3. SUB-MENU (3 mục con của bạn) */
  .main-nav ul.menu .sub-menu {
    display: none; /* Mặc định ẩn */
    background: #f9f9f9;
    padding: 0;
    list-style: none;
  }

  /* Hiện sub-menu khi li cha có class 'is-open' */
  .main-nav ul.menu li.menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .main-nav ul.menu .sub-menu li a {
    padding: 12px 40px !important; /* Đẩy lùi vào trong để phân cấp */
    font-size: 14px;
    border-bottom: none;
  }

  /* 4. Thêm icon mũi tên cho các mục có con */
  .menu-item-has-children > a::after {
    content: '\f107'; /* Icon mũi tên xuống */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    transition: 0.3s;
  }

  .menu-item-has-children.is-open > a::after {
    transform: rotate(180deg); /* Xoay mũi tên khi mở */
  }
}
/* ============================================================
   FINAL MOBILE RESPONSIVE FIX (MENU & SUBMENU) – DARK BLUE
============================================================ */
@media (max-width: 1024px) {

    /* 1. KHUNG MENU CHÍNH */
    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: -100% !important; 
        width: 300px !important;
        height: 100vh !important;
        background: #0a2a66 !important; /* NỀN XANH ĐẬM */
        z-index: 9999;
        transition: right 0.4s ease-in-out;
        padding-top: 70px !important;
        box-shadow: -8px 0 25px rgba(0,0,0,0.35);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0 !important;
    }

    /* 2. CẤU TRÚC MENU */
    .main-nav ul.menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .main-nav ul.menu li {
        width: 100% !important;
        position: relative;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    /* 3. LINK MENU CHA */
    .main-nav ul.menu li a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 20px !important;
        color: #ffffff !important; /* CHỮ TRẮNG */
        font-size: 16px !important;
        font-weight: 600;
        text-decoration: none !important;
        box-sizing: border-box !important;
        width: 100% !important;
        background: transparent;
    }

    .main-nav ul.menu li a:hover {
        background: rgba(255,255,255,0.12);
    }

    /* 4. ICON MŨI TÊN */
    .menu-item-has-children > a::after {
        content: '\f107' !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        font-size: 14px;
        color: #ffffff;
        margin-left: 10px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .menu-item-has-children.is-open > a::after {
        transform: rotate(180deg);
    }

    /* 5. SUB-MENU (MOBILE – NỀN XANH NHẠT, CHỮ TRẮNG) */
.main-nav ul.menu .sub-menu {
    display: none;
    background: #0f3a8c !important; /* nền xanh đậm phía sau */
    padding: 12px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
    border-top: 1px solid rgba(255,255,255,0.25);
    border-left: none;
}

.menu-item-has-children.is-open > .sub-menu {
    display: block !important;
}

/* === CARD BÀI VIẾT (3 MỤC) === */
.main-nav ul.menu .sub-menu li {
    background: #1e4fa3;            /* XANH NHẠT */
    margin: 10px 14px;
    border-radius: 14px;
    border: none !important;
}

/* LINK BÀI VIẾT */
.main-nav ul.menu .sub-menu li a {
    display: block;
    padding: 14px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    white-space: normal !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    border-radius: 14px;
    background: transparent !important;
}

/* HOVER NHẸ – GỌN */
.main-nav ul.menu .sub-menu li a:hover {
    background: rgba(255,255,255,0.18);
}

/* Bỏ underline desktop */
.main-nav ul.menu > li > a::after {
    display: none !important;
}


    /* 6. NÚT HAMBURGER */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 24px;
        color: #ffffff;
        cursor: pointer;
        z-index: 10000;
        position: relative;
    }
}

/* ===============================
   CONTACT PAGE – MOBILE BEAUTIFY
================================ */
@media (max-width: 768px) {

  /* Section nền */
  .contact-form-section {
    padding: 60px 14px 120px !important;
    background: linear-gradient(180deg,#eef4ff,#ffffff) !important;
  }

  /* Box form */
  .form-box {
    padding: 26px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.12) !important;
    background: #ffffff !important;
    display: block !important;
  }

  /* Tiêu đề */
  .form-left h2 {
    font-size: 26px !important;
    line-height: 1.3;
    text-align: center;
    color: #0a2a66 !important;
    margin-bottom: 14px !important;
  }

  .form-left p {
    text-align: center;
    font-size: 14.5px !important;
    color: #475569 !important;
    margin-bottom: 26px !important;
  }

  /* Panel form */
  .form-right {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* Input */
  .form-right input,
  .form-right textarea,
  .form-right select {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    padding: 14px 14px !important;
  }

  /* Placeholder rõ hơn */
  .form-right input::placeholder,
  .form-right textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
  }

  /* Focus */
  .form-right input:focus,
  .form-right textarea:focus,
  .form-right select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,.2) !important;
    background: #ffffff !important;
  }

  /* Nút gửi */
  .form-right input[type="submit"] {
    width: 100%;
    margin-top: 18px !important;
    padding: 15px 0 !important;
    font-size: 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg,#2563eb,#1e40af) !important;
    box-shadow: 0 10px 24px rgba(37,99,235,.35) !important;
  }

  /* Tránh floating button che form */
  .floating-buttons {
    bottom: 90px !important;
  }

}
/* =====================================================
   CONTACT PAGE – MOBILE UI OVERRIDE
   Paste at END of style.css
===================================================== */
@media (max-width: 768px) {

  /* ================= CARD INFO (Địa chỉ / Hotline / Email) ================= */

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 0 12px;
  }

  .contact-card {
    padding: 22px 18px !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .contact-card .icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  .contact-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }

  .contact-card p,
  .contact-card a {
    font-size: 14px !important;
    line-height: 1.5;
    text-align: center !important;
    word-break: break-word;
  }


  /* ================= FORM BOX WRAPPER ================= */

  .contact-form-section {
    padding: 40px 12px 80px !important;
  }

  .form-box {
    grid-template-columns: 1fr !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }

  /* ================= LEFT CONTENT ================= */

  .form-left {
    text-align: center !important;
    margin-bottom: 18px;
  }

  .form-left h2 {
    font-size: 22px !important;
    line-height: 1.3;
    margin-bottom: 10px !important;
  }

  .form-left p {
    font-size: 14px !important;
    line-height: 1.6;
    max-width: 100% !important;
    margin: auto;
  }


  /* ================= FORM PANEL ================= */

  .form-right {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  /* Input + Select + Textarea */
  .form-right input,
  .form-right select,
  .form-right textarea {
    font-size: 14px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }

  /* Placeholder rõ hơn */
  .form-right input::placeholder,
  .form-right textarea::placeholder {
    opacity: 0.85;
  }

  /* Textarea */
  .form-right textarea {
    min-height: 90px !important;
  }

  /* ================= SUBMIT BUTTON ================= */

  .form-right input[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
    margin-top: 6px !important;
  }

}
/* ======================================================
   MOBILE HEADER CONTACT – STACK EMAIL & PHONE
====================================================== */
@media (max-width: 768px) {

  .header-contact {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;     
    align-items: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
	  top: 10px;
  }

  .header-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    opacity: .95;
    max-width: 100%;
  }

  .header-contact .contact-item i {
    font-size: 13px;
    flex-shrink: 0;
  }

  /* KHÔNG CẮT TEXT */
  .header-contact .contact-item span {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 420px) {

  .header-contact {
    font-size: 11px;
    gap: 1px;
  }

  .header-contact .contact-item i {
    font-size: 12px;
  }
}

/* ===============================
   PARTICLES – LIGHT DOTS
================================ */

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: particleMove 60s linear infinite;
}

.hero-particles::after {
  background-size: 90px 90px;
  opacity: .5;
  animation-duration: 90s;
}

@keyframes particleMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}
/* ===============================
   PARTICLES – LIGHT DOTS
================================ */

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: particleMove 60s linear infinite;
}

.hero-particles::after {
  background-size: 90px 90px;
  opacity: .5;
  animation-duration: 90s;
}

@keyframes particleMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}
/* =====================================
   FIX GALLERY MOBILE – KHÔNG HIỂN THỊ
===================================== */
@media (max-width: 768px) {

  /* 1. Không cho gallery bị cắt */
  .community-page {
    overflow: visible !important;
  }

  /* 2. Bỏ margin âm gây mất nội dung */
  .community-gallery {
    margin-top: 0 !important;
    padding-top: 40px;
  }

  /* 3. BẮT BUỘC có chiều cao cho item */
  .gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;   /* 🔥 QUAN TRỌNG */
    min-height: 220px;
  }

  .gallery-item img,
  .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 4. Grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

