:root {
  /* Giữ nguyên các biến, thêm gradient mềm */
  --green: linear-gradient(135deg, #0c6a3d 0%, #12a45a 50%, #06542f 100%);
  --green-dark: linear-gradient(135deg, #043820 0%, #06593a 100%);
  --red: #b30000;
  --light: #eaeff0;
  --dark: #1b1b1b;
  --muted: #6b7280;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
}

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}
.section {
  padding: 45px 0;
}
h1,
h2,
h3 {
  letter-spacing: 0.2px;
  color: #043820;
}
h1 {
  font-weight: 800;
}
h2 {
  font-weight: 800;
  margin-bottom: 18px;
}
h3 {
  font-weight: 600;
  margin: 10px 0;
}
p {
  color: #222;
}
a {
  color: #0c6a3d;
  text-decoration: none;
}
a.link {
  font-weight: 600;
}
a.link:hover {
  text-decoration: underline;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #e7efe9;
  color: #043820;
  font-weight: 600;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: linear-gradient(135deg, #b30000 0%, #ff4040 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(179, 0, 0, 0.25);
}
.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.header .header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand img {
  width: auto;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav a {
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lang {
  color: #fff;
  white-space: nowrap;
}
.lang a {
  color: #fff;
  opacity: 0.85;
}
.lang a.active {
  font-weight: 800;
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--hero-bg, url("../images/hero-bg.jpg")) center/cover
    no-repeat;
  overflow: hidden;
}

/* Lớp phủ làm tối ảnh nền */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(1px); /* làm mềm nhẹ nền */
  z-index: 0;
}

/* Nội dung nằm phía trên lớp phủ */
.hero .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 72px 0;
}

.hero-text h1 {
  font-size: clamp(28px, 3vw, 44px);
  color: #fff;
  margin: 10px 0 12px;
}
.hero-text p {
  max-width: 640px;
  color: #f1f7f2;
  margin-bottom: 18px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin: 10px 0 6px;
}
.trust {
  margin-top: 10px;
  opacity: 0.9;
}
.hero-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.image-stack {
  position: relative;
}
.image-stack img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.image-stack .floating {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 60%;
  border: 4px solid #fff;
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 18px;
}
.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card.horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
}
.card.horizontal img {
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Why choose us icons */
.icons .icard {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.icircle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c6a3d, #13a35b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Team */
.team-grid .member {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.team-grid .member img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
.member h3 {
  margin-top: 8px;
}



/* CTA */
.cta {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 48px 0;
  background-blend-mode: overlay;
  background-image: var(--green-dark),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent);
}
.cta h2 {
  color: #fff;
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: #dbe7e0;
  padding: 18px 0;
  background-image: radial-gradient(circle at top left, #0c6a3d, #043820);
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer .socials a {
  color: #dbe7e0;
  margin-left: 10px;
  font-weight: 700;
}

/* Lists */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
}
.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0c6a3d;
  font-weight: 800;
}
.list {
  padding-left: 20px;
}
.detail-img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-header {
    display: flex;
  }

/* Responsive */
@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
    .hero-ctas {
  gap: 0;
}
.section {
  padding-top: 0;
}
.hide-on-mobile {
    display: none;
  }
  .section-header {
    display: block;
    text-align: center; /* hoặc left nếu bạn muốn canh trái */
  }

  .section-header h2,
  .section-header .view-all {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }
  .section-header h2 {
    margin-bottom: 0;
  }


  .cards-4 {
    grid-template-columns: 1fr;
  }
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .header .header-flex {
    gap: 8px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--green);
    padding: 10px 4%;
    flex-direction: column;
  }
  .nav.open {
    display: flex;
    width: 200px;
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .hero .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }
  .card.horizontal {
    grid-template-columns: 1fr;
  }
  .footer-flex {
    flex-direction: column;
    text-align: center;
  }
}

.card-body {
  padding: 16px 18px 22px;
  text-align: left;
}

.card-body h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* Padding cho phần nội dung bên phải trong thẻ card.horizontal */
.card.horizontal > div {
  padding: 16px 18px;
}

.card.horizontal h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-weight: 700;
}

.card.horizontal p {
  color: #333;
  line-height: 1.6;
}

/* Partners logos responsive slider */
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.logos img {
  flex: 0 0 auto;
  width: 160px;
  height: 70px;
  object-fit: contain;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 8px;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.logos img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* --- Desktop (≥1024px): luôn hiện 6 logo và căn giữa --- */
@media (min-width: 1024px) {
  .logos {
    flex-wrap: nowrap;
    overflow-x: hidden;
    justify-content: center;
    flex: 0 1 auto;
    flex-basis: auto;
  }

  .logos img {
    width: calc((100% - 5 * 24px) / 6); /* 6 logo chia đều, trừ khoảng cách */
    max-width: 140px;
  }
}

/* --- Mobile (≤768px): chỉ hiện 2 logo, cho phép kéo ngang --- */
@media (max-width: 768px) {
  .logos {
    gap: 16px;
    justify-content: flex-start;
    padding-left: 16px;
  }

  .logos img {
    width: calc(50% - 16px);
    max-width: 140px;
  }
}

.socials img {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  opacity: 0.85;
  filter: invert(100%);
  transition: 0.3s;
}
.socials img:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: invert(80%) sepia(50%) hue-rotate(80deg);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: 0.3s;
}

.lang a.active,
.lang a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang img {
  width: 25px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Chữ trong CTA và Footer sáng hơn để dễ đọc */
.cta p,
.footer p {
  color: #f4f8f5; /* trắng ngà, dễ đọc trên nền xanh */
}

/* Hoặc nếu muốn sáng mạnh hơn nữa */
.cta p {
  color: #ffffff;
  opacity: 0.95;
}

.footer p {
  color: #e7f2ec;
  opacity: 0.9;
}

/* Cải thiện màu icon socials cho đồng bộ */
.footer .socials img {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  filter: invert(100%) brightness(1.1);
  opacity: 0.85;
  transition: 0.3s;
}
.footer .socials img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.section-header {
  justify-content: space-between;
  align-items: center;
}
.view-all {
  color: var(--green-dark);
  font-weight: 600;
  opacity: 0.85;
}
.view-all:hover {
  opacity: 1;
  text-decoration: underline;
}

.experience {
  background: linear-gradient(135deg, #0c6a3d, #085b33);
  color: #fff;
  text-align: center;
}
.experience h2,
.experience p {
  color: #fff; /* đảm bảo override mọi màu thừa */
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.exp-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.commitment {
  background: var(--light);
  text-align: center;
}

.commitment h2 {
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.commitment-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
}

.flow-step {
  background: #c8e8d3;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  font-weight: 600;
  color: var(--dark);
  position: relative;
}

.flow-step::after {
  content: "→";
  color: var(--green-dark);
  font-weight: 700;
  margin-left: 10px;
}

.flow-step:last-child::after {
  content: "";
}

.commitment-note {
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.commitment-note p {
  color: #fff;
  opacity: 0.95; /* nhẹ nhàng hơn, tránh trắng gắt */
}

.commitment-note h3 {
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 768px) {
  .flow-step {
    min-width: 100%;
  }
}
