/* ========================================
   GLORY WORLD – Homepage CSS
   Industrial Printing & Packaging
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Variables ---------- */
:root {
  --gw-navy: #012351;
  --gw-navy-light: #0A3778;
  --gw-navy-dark: #001533;
  --gw-gold: #C9A84C;
  --gw-gold-light: #E0C97A;
  --gw-blue-accent: #1E5FAA;
  --gw-bg: #FFFFFF;
  --gw-bg-light: #F4F6F9;
  --gw-text: #333333;
  --gw-text-light: #666666;
  --gw-text-muted: #999999;
  --gw-border: #E2E8F0;
  --gw-radius: 8px;
  --gw-shadow: 0 4px 24px rgba(1,35,81,0.08);
  --gw-container: 1380px;
  --gw-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}


/* ---------- Reset & Base ---------- */
.gw-shell { font-family: 'Inter', sans-serif; color: var(--gw-text); background: var(--gw-bg); line-height: 1.6; }
.gw-shell *, .gw-shell *::before, .gw-shell *::after { box-sizing: border-box; }
.gw-container { max-width: var(--gw-container); margin: 0 auto; padding: 0 20px; }

/* Hide default base footer if present */


/* ---------- Header / Navbar ---------- */
.gw-navbar { background: #fff; border-bottom: 1px solid var(--gw-border); position: sticky; top: 0; z-index: 100; }
.gw-navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.gw-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gw-logo-icon { width: 42px; height: 42px; background: var(--gw-navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gw-gold); font-size: 18px; font-weight: 900; }
.gw-logo-text { display: flex; flex-direction: column; }
.gw-logo-name { font-size: 18px; font-weight: 800; color: var(--gw-navy); letter-spacing: 0.5px; line-height: 1.2; }
.gw-logo-tagline { font-size: 10px; color: var(--gw-text-muted); letter-spacing: 1px; text-transform: uppercase; }
.gw-nav-links { display: flex; align-items: center; gap: 4px; }
.gw-nav-link { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--gw-text); text-decoration: none; border-radius: 6px; transition: var(--gw-transition); white-space: nowrap; }
.gw-nav-link:hover { color: var(--gw-navy); background: var(--gw-bg-light); }
.gw-nav-lang { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.gw-nav-lang a { font-size: 12px; font-weight: 600; color: var(--gw-text-muted); text-decoration: none; }
.gw-nav-lang a.active { color: var(--gw-navy); }

/* Mobile menu button */
.gw-mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--gw-navy); cursor: pointer; padding: 8px; }

/* ---------- Hero Slider ---------- */
.gw-hero { position: relative; overflow: hidden; }
.gw-hero-slide { position: relative; min-height: 520px; display: flex; align-items: center; background-size: cover; background-position: center; }
.gw-hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(1,35,81,0.92) 0%, rgba(1,35,81,0.75) 45%, rgba(1,35,81,0.3) 100%); }
.gw-hero-content { position: relative; z-index: 2; max-width: var(--gw-container); margin: 0 auto; padding: 80px 20px; color: #fff; }
.gw-hero-subtitle { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gw-gold); margin-bottom: 16px; }
.gw-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.gw-hero-tagline { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; margin-bottom: 12px; }
.gw-hero-desc { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 480px; margin-bottom: 28px; line-height: 1.7; }
.gw-hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gw-navy); color: #fff; padding: 14px 28px; border-radius: var(--gw-radius); font-size: 14px; font-weight: 700; text-decoration: none; border: 2px solid rgba(255,255,255,0.3); transition: var(--gw-transition); }
.gw-hero-btn:hover { background: var(--gw-gold); color: var(--gw-navy); border-color: var(--gw-gold); }

/* Slider dots */
.gw-hero-dots { position: absolute; bottom: 24px; right: 40px; z-index: 10; display: flex; gap: 8px; }
.gw-hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; transition: var(--gw-transition); }
.gw-hero-dot.active { background: #fff; transform: scale(1.2); }

/* ---------- Trust Bar ---------- */
.gw-trust-bar { background: #012351; border-bottom: 1px solid var(--gw-border); padding: 28px 0; color: #fff; }
.gw-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gw-trust-item { display: flex; align-items: center; gap: 16px; }
.gw-trust-icon { width: 64px; height: 64px; min-width: 64px; border-radius: 50%; border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 24px; transition: var(--gw-transition); }
.gw-trust-item:hover .gw-trust-icon { background: #ffffff; color: var(--gw-navy); }
.gw-trust-info { }
.gw-trust-title { font-size: 14px; font-weight: 700; color: #ffffff; line-height: 1.3; }
.gw-trust-desc { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; line-height: 1.5; }

/* ---------- Highlights Bar ---------- */
.gw-highlights-bar { background: #001e46; padding: 42px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
.gw-highlights-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.gw-highlights-item { display: flex; align-items: center; gap: 18px; padding: 6px 28px; border-right: 1px solid rgba(255,255,255,0.25); }
.gw-highlights-item:first-child { padding-left: 0; }
.gw-highlights-item:last-child { border-right: none; padding-right: 0; }
.gw-highlights-icon { width: 64px; height: 64px; min-width: 64px; border-radius: 50%; border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 28px; transition: var(--gw-transition); flex-shrink: 0; }
.gw-highlights-item:hover .gw-highlights-icon { background: #ffffff; color: var(--gw-navy); }
.gw-highlights-info { flex: 1; min-width: 0; }
.gw-highlights-title { font-size: 16px; font-weight: 700; color: #ffffff; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-highlights-desc { font-size: 13.5px; color: rgba(255,255,255,0.85); margin-top: 4px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1024px) {
  .gw-highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gw-highlights-item { border-right: none; padding: 12px 0; }
  .gw-highlights-title, .gw-highlights-desc { white-space: normal; }
}
@media (max-width: 640px) {
  .gw-highlights-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Section Headings ---------- */
.gw-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.gw-section-title { font-size: 22px; font-weight: 800; color: var(--gw-navy); text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.gw-section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gw-gold); margin-top: 8px; border-radius: 2px; }
.gw-section-link { font-size: 13px; font-weight: 600; color: var(--gw-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: var(--gw-transition); white-space: nowrap; }
.gw-section-link:hover { color: var(--gw-gold); gap: 10px; }

/* ---------- Products Section ---------- */
.gw-products-section { padding: 48px 0; background: var(--gw-bg-light); }
.gw-products-about { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.gw-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gw-product-card { text-align: center; padding: 16px 8px; background: #fff; border-radius: var(--gw-radius); border: 1px solid var(--gw-border); transition: var(--gw-transition); text-decoration: none; display: block; }
.gw-product-card:hover { box-shadow: var(--gw-shadow); transform: translateY(-3px); border-color: var(--gw-navy); }
.gw-product-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; background: var(--gw-bg-light); display: block; }
.gw-product-name { font-size: 13px; font-weight: 600; color: var(--gw-text); line-height: 1.4; }

/* ---------- About Section ---------- */
.gw-about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.gw-about-image-col { }
.gw-about-text-col { display: flex; flex-direction: column; }
.gw-about-title { font-size: 22px; font-weight: 800; color: var(--gw-navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; position: relative; }
.gw-about-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gw-gold); margin-top: 8px; border-radius: 2px; }
.gw-about-text { font-size: 14px; color: var(--gw-text-light); line-height: 1.8; margin-bottom: 12px; }
.gw-about-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gw-navy); color: #fff; padding: 12px 28px; border-radius: var(--gw-radius); font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--gw-transition); margin-top: 8px; }
.gw-about-btn:hover { background: var(--gw-gold); color: var(--gw-navy); }
.gw-about-img { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: var(--gw-radius); display: block; }

/* ---------- Manufacturing / QC Section ---------- */
.gw-mfg-section { padding: 48px 0; background: #fff; }
.gw-mfg-qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gw-mfg-qc-grid > * { min-width: 0; }
.gw-mfg-grid, .gw-mfg-track-wrap { overflow: hidden; width: 100%; min-width: 0; }
.gw-mfg-track { display: flex; gap: 12px; align-items: stretch; animation: gwMfgScroll 24s linear infinite; }
.gw-mfg-track:hover { animation-play-state: paused; }
.gw-mfg-track .gw-mfg-card { min-width: 200px; width: 200px; flex: 0 0 auto; }
.gw-mfg-card { text-align: center; padding: 12px 8px; background: var(--gw-bg-light); border-radius: var(--gw-radius); transition: var(--gw-transition); }
.gw-mfg-card:hover { box-shadow: var(--gw-shadow); transform: translateY(-2px); }
.gw-mfg-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 8px; display: block; }
.gw-mfg-name { font-size: 12px; font-weight: 600; color: var(--gw-text); line-height: 1.3; }
.gw-mfg-desc { font-size: 10px; color: var(--gw-text-muted); margin-top: 2px; }

.gw-qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gw-qc-card { text-align: center; padding: 12px 8px; background: var(--gw-bg-light); border-radius: var(--gw-radius); transition: var(--gw-transition); }
.gw-qc-card:hover { box-shadow: var(--gw-shadow); transform: translateY(-2px); }
.gw-qc-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; display: block; }
.gw-qc-name { font-size: 12px; font-weight: 700; color: var(--gw-navy); margin-bottom: 4px; }
.gw-qc-desc { font-size: 11px; color: var(--gw-text-muted); line-height: 1.5; }

/* ---------- Process Section ---------- */
.gw-process-section { padding: 48px 0; background: var(--gw-bg-light); }
.gw-process-flow { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 8px; }
.gw-process-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100px; }
.gw-process-icon { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gw-navy); display: flex; align-items: center; justify-content: center; color: var(--gw-navy); font-size: 22px; margin-bottom: 8px; transition: var(--gw-transition); }
.gw-process-step:hover .gw-process-icon { background: var(--gw-navy); color: #fff; }
.gw-process-label { font-size: 12px; font-weight: 600; color: var(--gw-text); line-height: 1.3; }
.gw-process-arrow { display: flex; align-items: center; color: var(--gw-text-muted); font-size: 16px; margin-top: 16px; }

@keyframes gwMfgScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ---------- Clients Section ---------- */
.gw-clients-section { padding: 48px 0; background: var(--gw-bg-light); }
.gw-clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* 5 hình 1 hàng */
  gap: 16px;
}
.gw-clients-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  padding: 20px;
  min-height: 120px;                    /* khung to hơn cho logo */
  transition: var(--gw-transition);
}
.gw-clients-grid li:hover {
  box-shadow: var(--gw-shadow);
  border-color: var(--gw-navy);
}
.gw-clients-grid img {
  height: 84px;                          /* logo lớn hơn hẳn */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: var(--gw-transition);
}
.gw-clients-grid li:hover img { transform: scale(1.06); }

/* Phần khách hàng ẩn / "Xem thêm" */
.gw-clients-more { display: none; }
.gw-clients-more.open { display: grid; }
.gw-clients-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 26px;
  background: var(--gw-navy);
  color: #fff;
  border: none;
  border-radius: var(--gw-radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--gw-transition);
}
.gw-clients-toggle:hover { background: var(--gw-gold); color: var(--gw-navy); }


/* ---------- Animations ---------- */
.gw-fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.gw-fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gw-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-products-about { grid-template-columns: 1fr; }
  .gw-products-grid { grid-template-columns: repeat(4, 1fr); }
  .gw-mfg-qc-grid { grid-template-columns: 1fr; }
  .gw-mfg-track .gw-mfg-card { min-width: 150px; width: 150px; }
  .gw-footer-grid { grid-template-columns: 1fr 1fr; }
  .gw-nav-links { display: none; }
  .gw-mobile-toggle { display: block; }
}

@media (max-width: 768px) {
  .gw-hero-slide { min-height: 380px; }
  .gw-hero-content { padding: 48px 20px; }
  .gw-trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gw-products-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-qc-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-process-flow { gap: 4px; }
  .gw-process-step { width: 80px; }
  .gw-process-icon { width: 44px; height: 44px; font-size: 18px; }
  .gw-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gw-hero-slide { min-height: 120px; }
  .gw-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gw-mfg-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-trust-grid { grid-template-columns: 1fr; }
  .gw-process-step { width: 68px; }
  .gw-about-content { grid-template-columns: 1fr; }
}

/* ========================================
   GLORY WORLD v3 – Layout Overrides
   (các rule trước đây nằm trong <style> của template
   được đưa hết về đây để tập trung quản lý)
   ======================================== */

/* ---------- Section backgrounds / paddings ---------- */
#san-pham,
#nang-luc {
  background: #fff;
}

#san-pham {
  padding-bottom: 0;
}

#nang-luc {
  padding: 0 0 48px;
}

/* ---------- About (Giới thiệu) ---------- */
#gioi-thieu .gw-about-content {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

#gioi-thieu .gw-about-text-col,
#gioi-thieu .gw-about-image-col {
  min-height: 100%;
}

#gioi-thieu .gw-about-image-col {
  display: flex;
}

#gioi-thieu .gw-about-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* ---------- Products + Manufacturing/QC shared frame ---------- */
#san-pham .gw-products-about,
#nang-luc .gw-mfg-qc-grid {
  align-items: stretch;
  gap: 0;
  border: 1px solid #d9e0e8;
  background: #fff;
}

#san-pham .gw-products-about > div,
#nang-luc .gw-mfg-qc-grid > div {
  padding: 20px;
  height: 100%;
}

#san-pham .gw-products-about > div + div,
#nang-luc .gw-mfg-qc-grid > div + div {
  border-left: 1px solid #d9e0e8;
}

/* ---------- Năng lực sản xuất: 5 card hiển thị đầy đủ ---------- */
#nang-luc .gw-mfg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
  align-content: start;
  width: 100%;
  min-width: 0;
}

#nang-luc .gw-mfg-grid .gw-mfg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  min-height: 175px;       /* cao lên để hài hòa với card QC bên cạnh */
}

#nang-luc .gw-mfg-grid .gw-mfg-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;     /* ảnh to, vuông như card QC, phủ đầy khung */
  object-fit: cover;
}

#nang-luc .gw-mfg-grid .gw-mfg-name {
  margin-top: auto;
  padding-top: 10px;
}

@media (max-width: 1024px) {
  #gioi-thieu .gw-about-content {
    grid-template-columns: 1fr;
  }

  #san-pham .gw-products-about > div + div,
  #nang-luc .gw-mfg-qc-grid > div + div {
    border-left: 0;
    border-top: 1px solid #d9e0e8;
  }

  #nang-luc .gw-mfg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #nang-luc .gw-mfg-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  #nang-luc .gw-mfg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ---------- Clients grid responsive ---------- */
@media (max-width: 1024px) {
  .gw-clients-grid { gap: 12px; }
  .gw-clients-grid li { padding: 16px; min-height: 104px; }
  .gw-clients-grid img { height: 68px; }
}
@media (max-width: 640px) {
  .gw-clients-grid { gap: 10px; }
  .gw-clients-grid li { padding: 12px; min-height: 88px; }
  .gw-clients-grid img { height: 52px; }
}

