:root {
  --primary: #0053a6;
  --primary-dark: #003d7a;
  --accent: #ffb400;
  --text: #222;
  --muted: #666;
  --bg-light: #f5f7fb;
  --border: #e1e4eb;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;
  
  /* Light mode colors (default) */
  --bg-color: #ffffff;
  --text-color: #222222;
  --bg-section: #f5f7fb;
}

/* Dark mode variables */
body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #f5f5f5;
  --bg-section: #2d2d2d;
  --bg-light: #2d2d2d;
  --text: #f5f5f5;
  --muted: #d0d0d0;
  --border: #404040;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --primary-dark: #5ba3ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

nav > a {
  position: relative;
  padding-bottom: 4px;
}

nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

nav > a:hover {
  color: var(--primary-dark);
}

nav > a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0 4px 4px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-dropdown-btn::before {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.nav-dropdown.active .nav-dropdown-btn::before,
.nav-dropdown:hover .nav-dropdown-btn::before {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown.active .nav-dropdown-btn,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--primary-dark);
}

.nav-dropdown.active .nav-dropdown-btn::after,
.nav-dropdown:hover .nav-dropdown-btn::after {
  width: 100%;
}

.nav-dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  z-index: 1000;
  pointer-events: none;
}

.nav-dropdown.active .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-section);
  color: var(--primary-dark);
}

body.dark-mode .nav-dropdown-menu a {
  color: #f5f5f5;
}

body.dark-mode .nav-dropdown-menu a:hover {
  color: #5ba3ff;
  background: #3d3d3d;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.dark-mode-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}

body.dark-mode .dark-mode-toggle {
  border-color: var(--border);
}

body.dark-mode .dark-mode-toggle:hover {
  background: #3d3d3d;
}

.lang-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 83, 166, 0.35);
}

.lang-pill:not(.active):hover {
  border-color: var(--border);
  background: #f8f9fc;
}

body.dark-mode .lang-pill:not(.active) {
  color: #d0d0d0;
}

body.dark-mode .lang-pill:not(.active):hover {
  background: #3d3d3d;
  border-color: #5ba3ff;
  color: #5ba3ff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  background: url('../images/tico1.png') center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 43, 99, 0.75), rgba(0, 83, 166, 0.6));
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
  text-transform: uppercase;
}

.hero h1 .highlight {
  display: block;
  color: #ffde70;
}

.hero-subtitle {
  font-size: 1rem;
  color: #eaf2ff;
  max-width: 540px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 83, 166, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 83, 166, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.hero-multi-lang {
  font-size: 0.9rem;
  color: #e0e9ff;
  max-width: 540px;
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-card-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #edf0f7;
  font-size: 0.9rem;
  color: #1f2a44;
  transition: background-color 0.3s ease;
}

body.dark-mode .hero-card-inner {
  background: rgba(45, 45, 45, 0.95);
  color: #f5f5f5;
  border-color: #404040;
}

.hero-card-inner h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

body.dark-mode .hero-card-inner h2 {
  color: #5ba3ff;
}

.hero-card-inner p + p {
  margin-top: 6px;
}

.hero-card-inner p,
.hero-card-inner a {
  color: #1f2a44;
}

body.dark-mode .hero-card-inner p,
body.dark-mode .hero-card-inner a {
  color: #f5f5f5;
}

.hero-card-inner strong {
  color: var(--primary-dark);
}

body.dark-mode .hero-card-inner strong {
  color: #5ba3ff;
}

.section,
.section-alt {
  padding: 40px 0;
}

.section-alt {
  background: var(--bg-section);
  transition: background-color 0.3s ease;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .section-header h2 {
  color: #5ba3ff;
}

.section-header p {
  font-size: 0.96rem;
  color: var(--muted);
}

body.dark-mode .section-header p {
  color: #e8e8e8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-block {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-block h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .about-block {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .about-block h3 {
  color: #5ba3ff;
}

body.dark-mode .about-block p {
  color: #e8e8e8;
}

body.dark-mode .about-block ul {
  color: #e8e8e8;
}

body.dark-mode .about-block li {
  color: #e8e8e8;
}

body.dark-mode .about-block strong {
  color: #ffffff;
}

.about-block ul {
  padding-left: 18px;
}

/* About Image Wrapper */
.about-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-section);
}

body.dark-mode .about-image-wrapper {
  background: #1f1f1f;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* Ẩn ảnh nếu src rỗng hoặc không tồn tại */
.about-image[src=""],
.about-image:not([src]) {
  display: none;
}

.about-block:hover .about-image {
  transform: scale(1.05);
}

.about-image-wrapper .about-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
  margin-bottom: 0;
}

body.dark-mode .about-image-wrapper .about-icon {
  background: rgba(45, 45, 45, 0.9);
}

/* Fallback khi không có ảnh - hiển thị icon ở giữa */
.about-image-wrapper:has(img[src=""]) .about-icon,
.about-image-wrapper:has(img:not([src])) .about-icon,
.about-image-wrapper:not(:has(img)) .about-icon {
  position: static;
  background: transparent;
  box-shadow: none;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.direction-item {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.direction-label {
  position: absolute;
  top: 14px;
  right: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.direction-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .direction-item h3 {
  color: #5ba3ff;
}

body.dark-mode .direction-item p {
  color: #f5f5f5;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.solution-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .solution-card h3 {
  color: #5ba3ff;
}

body.dark-mode .solution-card p,
body.dark-mode .solution-card li {
  color: #f5f5f5;
}

.solution-card ul {
  padding-left: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .service-card h3 {
  color: #5ba3ff;
}

body.dark-mode .service-card p,
body.dark-mode .service-card li {
  color: #f5f5f5;
}

.service-card ul {
  padding-left: 18px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.client-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.client-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

body.dark-mode .client-card h3 {
  color: #5ba3ff;
}

body.dark-mode .client-card p {
  color: #f5f5f5;
}

.news-placeholder {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.news-date {
  color: var(--muted);
  font-weight: 500;
}

.news-category {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

body.dark-mode .news-card h3 {
  color: #5ba3ff;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

body.dark-mode .news-card p {
  color: #f5f5f5;
}

.news-read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.news-read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 8px;
}

.contact-form-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

body.dark-mode .contact-form-card h3 {
  color: #5ba3ff;
}

body.dark-mode .contact-info h2 {
  color: #5ba3ff;
}

body.dark-mode .contact-info p {
  color: #f5f5f5;
}

.contact-form .form-row {
  margin-bottom: 12px;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 83, 166, 0.15);
}

body.dark-mode .contact-form label {
  color: #d0d0d0;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #2d2d2d;
  color: #f5f5f5;
  border-color: #505050;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #5ba3ff;
  background: #353535;
  box-shadow: 0 0 0 1px rgba(91, 163, 255, 0.3);
}

.full-width {
  width: 100%;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-color);
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    justify-content: stretch;
  }

  .about-grid,
  .direction-grid,
  .solutions-grid,
  .services-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
  margin-top: 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid #edf0f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

body.dark-mode .stat-item {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .stat-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .stat-number {
  color: #5ba3ff;
}

body.dark-mode .stat-label {
  color: #e8e8e8;
}

/* About Icon */
.about-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* Ẩn icon khi có ảnh trong wrapper */
.about-image-wrapper .about-icon {
  margin-bottom: 0;
}

.about-block {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #edf0f7;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.about-block:hover {
  transform: translateY(-4px);
}

.about-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.about-block ul {
  padding-left: 20px;
  margin-top: 8px;
}

.about-block li {
  margin-bottom: 8px;
}

/* About Content */
.about-content {
  margin-top: 32px;
}

.about-text-content {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s ease;
}

.about-text-content h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

body.dark-mode .about-text-content h3 {
  color: #5ba3ff;
}

.about-text-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

body.dark-mode .about-text-content p {
  color: #f5f5f5;
}

.focus-areas {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

.focus-areas li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.focus-areas li:last-child {
  border-bottom: none;
}

/* Company Detail */
.company-detail {
  margin-top: 32px;
}

.company-detail-content {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s ease;
}

.company-detail-content h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

body.dark-mode .company-detail-content h3 {
  color: #5ba3ff;
}

body.dark-mode .company-detail-content p {
  color: #f5f5f5;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.info-item {
  padding: 20px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  transition: background-color 0.3s ease;
}

.info-item h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.info-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

body.dark-mode .info-item h4 {
  color: #5ba3ff;
}

body.dark-mode .info-item p {
  color: #f5f5f5;
}

.contact-info-box {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  transition: background-color 0.3s ease;
}

.contact-info-box h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

body.dark-mode .contact-info-box h4 {
  color: #5ba3ff;
}

body.dark-mode .contact-info-box li {
  color: #f5f5f5;
}

.contact-detail-list {
  list-style: none;
  padding-left: 0;
}

.contact-detail-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-detail-list li:last-child {
  border-bottom: none;
}

.contact-detail-list a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-detail-list a:hover {
  color: var(--primary-dark);
}

/* Company Features */
.company-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

/* Organization Structure */
.org-structure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.org-item {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary);
  transition: background-color 0.3s ease;
}

.org-item h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

body.dark-mode .org-item h4 {
  color: #5ba3ff;
}

.org-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

body.dark-mode .org-item p {
  color: #f5f5f5;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.cta-content {
  text-align: center;
  padding: 40px 20px;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #fff;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-info-grid,
  .org-structure {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  
  .nav-dropdown-menu {
    opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: var(--bg-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  }
  
  .nav-dropdown.active .nav-dropdown-menu ,
  .nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

  .about-grid,
  .direction-grid,
  .solutions-grid,
  .services-grid,
  .clients-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-image-wrapper {
    height: 200px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: inherit;
}

.chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 100px);
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.chatbot-window.active {
  display: flex;
}

body.dark-mode .chatbot-window {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-icon {
  font-size: 1.3rem;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-color);
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body.dark-mode .chatbot-messages::-webkit-scrollbar-thumb {
  background: #505050;
}

body.dark-mode .chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #666;
}

body.dark-mode .chatbot-messages {
  background: #2d2d2d;
}

.chatbot-message {
  display: flex;
  animation: fadeIn 0.3s ease;
  gap: 8px;
  align-items: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user-message {
  justify-content: flex-end;
}

.chatbot-message.bot-message {
  justify-content: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg-section);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  order: 2;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

body.dark-mode .message-avatar {
  background: #3d3d3d;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  gap: 4px;
}

.message-content {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  word-wrap: break-word;
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bot-message .message-content {
  background: var(--bg-section);
  color: var(--text-color);
  border-bottom-left-radius: 4px;
}

body.dark-mode .bot-message .message-content {
  background: #3d3d3d;
  color: #e8e8e8;
}

.message-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-time {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0 4px;
  margin-top: 2px;
}

.user-message .message-time {
  text-align: right;
}

body.dark-mode .message-time {
  color: #999;
}

/* Quick Replies */
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 0 0 8px 0;
}

.quick-reply-btn {
  padding: 8px 14px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

body.dark-mode .quick-reply-btn {
  background: #3d3d3d;
  border-color: #505050;
  color: #e8e8e8;
}

body.dark-mode .quick-reply-btn:hover {
  background: #5ba3ff;
  border-color: #5ba3ff;
  color: #fff;
}

.chatbot-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

body.dark-mode .chatbot-input-container {
  background: #2d2d2d;
  border-color: #404040;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--primary);
}

body.dark-mode .chatbot-input {
  background: #3d3d3d;
  border-color: #505050;
  color: #e8e8e8;
}

body.dark-mode .chatbot-input:focus {
  border-color: #5ba3ff;
}

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 83, 166, 0.4);
}

.chatbot-send:active {
  transform: scale(0.95);
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 83, 166, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1001;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 83, 166, 0.5);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-toggle-icon {
  display: block;
}

.chatbot-loading {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.chatbot-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.4s infinite ease-in-out both;
  display: inline-block;
}

.chatbot-loading span:nth-child(1) {
  animation-delay: -0.32s;
}

.chatbot-loading span:nth-child(2) {
  animation-delay: -0.16s;
}

body.dark-mode .chatbot-loading span {
  background: #5ba3ff;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 80px);
    bottom: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
    max-height: none;
  }

  .chatbot-toggle {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
}
/* Catalog Section - đã xóa animation ở nút, thêm animation cho lá cờ lớn trên card */

.catalog-section {
  padding: 100px 0;
  background: #ffffff;
}
body.dark-mode .catalog-section {
  background: #1a1a1a;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.catalog-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid #edf0f7;
  justify-content: space-between;
  padding-bottom: 50px;
}

body.dark-mode .catalog-card {
  background: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: #404040;
}

.catalog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 83, 166, 0.15);
}

body.dark-mode .catalog-card:hover {
  box-shadow: 0 20px 50px rgba(91, 163, 255, 0.2);
}

/* Lá cờ lớn trên card - thêm animation phất phới */
.catalog-flag {
  font-size: 5.5rem;
  margin-bottom: 24px;
  display: block;
  line-height: 1;
  animation: flagWave 6s ease-in-out infinite;
}

@keyframes flagWave {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-5deg) scale(1.05); }
}

.catalog-country {
  font-size: 1.8rem;
  font-weight: 600;
  color: #444444;
  margin-bottom: 32px;
}

body.dark-mode .catalog-country {
  color: #dddddd;
}

.catalog-lang {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

body.dark-mode .catalog-lang {
  color: #5ba3ff;
}

.catalog-text {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 5px;
  line-height: 1.7;
  flex-grow: 1;
}

body.dark-mode .catalog-text {
  color: #cccccc;
}

/* Nút CTA - đã xóa animation + không có cờ bên trong */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 22px 40px;
  border-radius: 60px;
  box-shadow: 0 10px 30px rgba(0, 83, 166, 0.35);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  min-height: 70px;
}

.catalog-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 83, 166, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
  .catalog-btn {
    font-size: 1.05rem;
    padding: 20px 32px;
  }
  .catalog-flag {
    font-size: 4.8rem;
  }
}

@media (max-width: 480px) {
  .catalog-btn {
    font-size: 1rem;
    padding: 18px 28px;
  }
  .catalog-flag {
    font-size: 4.2rem;
  }
}
/* Wrapper cho 2 nút CTA */
.catalog-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px; /* Khoảng cách giữa 2 nút - bạn có thể tăng/giảm tùy ý */
  margin-top: 60px; /* Khoảng cách từ phần text đến nút đầu tiên */
}

/* Nút CTA - giữ nguyên kích thước và style */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 22px 40px;
  border-radius: 60px;
  box-shadow: 0 10px 30px rgba(0, 83, 166, 0.35);
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  max-width: 360px; /* Giới hạn chiều rộng để nút không quá dài */
  text-align: center;
  min-height: 70px;
}

.catalog-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 83, 166, 0.45);
}

/* Responsive - trên mobile thu hẹp gap và nút */
@media (max-width: 480px) {
  .catalog-buttons {
    gap: 24px;
    margin-top: 40px;
  }
  
  .catalog-btn {
    font-size: 1.05rem;
    padding: 20px 32px;
    max-width: 300px;
  }
  /* Card giới thiệu với ảnh bên phải */
.intro-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background: var(--bg-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.intro-content {
  flex: 1;
  min-width: 300px;
}

.intro-image {
  flex: 1;
  max-width: 500px;
  min-width: 280px;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  object-fit: cover;
}

@media (max-width: 768px) {
  .intro-card {
    flex-direction: column;
    padding: 24px;
  }
  .intro-image {
    max-width: 100%;
  }
}
.company-slider {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
}

.company-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.swiper-pagination-bullet {
  background: rgba(0,0,0,0.5);
}

.swiper-pagination-bullet-active {
  background: #0056d2;
}
/* Company Slider - Tích hợp với theme hiện tại */
.company-slider {
  width: 100%;
  height: 380px;               /* Chiều cao mong muốn - điều chỉnh theo tỷ lệ ảnh */
  margin: 24px 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-section);
}

body.dark-mode .company-slider {
  background: #222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Ảnh trong slide */
.company-slider .swiper-slide {
  width: 100%;
  height: 100%;
}

.company-slider .about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* Giữ nguyên tỷ lệ, crop đẹp */
  object-position: center;
  transition: transform 0.6s ease;
}

.company-slider .swiper-slide:hover .about-image {
  transform: scale(1.04);      /* Zoom nhẹ khi hover - tận dụng hiệu ứng cũ */
}

/* Phân trang (chấm) */
.company-slider .swiper-pagination {
  bottom: 16px;
}

.company-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.company-slider .swiper-pagination-bullet-active {
  background: var(--primary);
  border-color: var(--primary-dark);
  transform: scale(1.3);
}

/* Dark mode cho pagination */
body.dark-mode .company-slider .swiper-pagination-bullet {
  background: rgba(200, 200, 200, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .company-slider .swiper-pagination-bullet-active {
  background: #5ba3ff;
  border-color: #3a8aff;
}

/* Nút điều hướng (nếu dùng) */
.company-slider .swiper-button-prev,
.company-slider .swiper-button-next {
  color: #fff;
  background: rgba(0, 83, 166, 0.6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  --swiper-navigation-size: 24px;
  transition: all 0.3s ease;
}

.company-slider .swiper-button-prev:hover,
.company-slider .swiper-button-next:hover {
  background: var(--primary-dark);
}
}
