/* ============================================================
   home.css — Trang chủ v2
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, #edf4ff 0%, #f2f6fb 60%, #eaf3f0 100%);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,127,90,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero--image {
  padding: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Banner Slideshow (full-width background) ───────────────── */
.banner__slideshow { position:absolute;inset:0;width:100%;height:100%; }
.banner__slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.banner__slide-bg.is-active { opacity: 1; }

/* Ken-burns effect */
@keyframes bannerKenBurns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.1) translate(-1.5%,-1%); }
}
.banner__slide-bg--kenburns.is-active {
  animation: bannerKenBurns 8s ease-in-out forwards;
}

/* Slide effect */
.banner__slide-bg--slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform .85s cubic-bezier(.4,0,.2,1);
}
.banner__slide-bg--slide.is-active { transform: translateX(0); }
.banner__slide-bg--slide.slide-out { transform: translateX(-100%); transition: transform .85s cubic-bezier(.4,0,.2,1); }

/* Zoom effect */
@keyframes bannerZoomIn { from { transform: scale(1.12); } to { transform: scale(1); } }
.banner__slide-bg--zoom { transition: opacity .8s ease; }
.banner__slide-bg--zoom.is-active { animation: bannerZoomIn 8s ease-out forwards; }

/* ── Banner Video Background ────────────────────────────────── */
.banner__video-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.banner__video-bg iframe,
.banner__video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 3rem;
}
.hero--image .hero__inner { padding: 3.5rem 1.5rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  font-weight: 700;
  padding: .35em 1em;
  border-radius: 999px;
  background: rgba(26,127,90,.12);
  color: var(--green-700);
  margin-bottom: 1.125rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  animation: heroPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes heroPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero__title em { font-style: italic; color: var(--green-500); }
.hero__desc {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: .875rem; flex-wrap: wrap; }

/* Media box (right side) */
.hero__media-box {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.hero__video-mock {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d1f40, #0a2a55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: .75rem;
}
.hero__play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2.5px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  backdrop-filter: blur(4px);
}
.hero__video-mock:hover .hero__play-btn {
  background: rgba(255,255,255,.25);
  transform: scale(1.08);
}
.hero__play-triangle {
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent rgba(255,255,255,.9);
  margin-left: 3px;
}
.hero__video-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

/* ── Hero Slideshow ───────────────────────────────────────── */
.hero__slideshow {
  width: 100%; height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
  border-radius: 16px;
}
.hero__slide.is-active { opacity: 1; }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-bar__item {
  text-align: center;
  padding: 1.375rem .5rem;
  position: relative;
}
.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--gray-100);
}
.stats-bar__num {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--green-500);
  letter-spacing: -.02em;
}
.stats-bar__label {
  font-size: .8125rem;
  color: var(--gray-600);
  margin-top: .2rem;
  font-weight: 500;
}

/* ── Section shared ───────────────────────────────────────── */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--gray-100);
}
.section__eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--green-500);
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.section__title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.section__sub {
  font-size: .9375rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  max-width: 540px;
  line-height: 1.65;
}
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}
.section__more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--green-600);
  text-decoration: none;
  white-space: nowrap;
}
.section__more:hover { text-decoration: underline; }
.section--light {
  background: #f8faf8;
  border-top: 1px solid #e8f0ec;
  border-bottom: 1px solid #e8f0ec;
}


/* ── Skills Section ───────────────────────────────────────── */
.skills-section { padding: 3.5rem 0; }

.skills-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  padding: .45em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--gray-100);
  color: var(--gray-600);
  background: #fff;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font);
}
.skill-pill:hover { border-color: var(--gray-400); transform: translateY(-1px); }
.skill-pill--active {
  background: var(--green-50);
  border-color: var(--green-500);
  color: var(--green-600);
}
.skill-pill__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.skill-card {
  padding: 1.125rem;
  border-radius: 12px;
  border: 1.5px solid var(--gray-100);
  background: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
}
.skill-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: var(--gray-400);
}
.skill-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.skill-card__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: .625rem;
}
.skill-card__title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .35rem;
  line-height: 1.35;
}
.skill-card__desc {
  font-size: .75rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.skills-info-bar {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.125rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-50), #e0f0ff);
  border: 1px solid var(--green-100);
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: .25rem;
}
.skills-info-bar__icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── News grid v2 ─────────────────────────────────────────── */
.news-grid--v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.news-card--v2 {
  border: 1.5px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: .2s;
  display: flex;
  flex-direction: column;
}
.news-card--v2:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); border-color: var(--gray-400); transform: translateY(-2px); }
.news-card__img-wrap { display: block; overflow: hidden; flex-shrink: 0; }
.news-card--v2 .news-card__img { height: 180px; overflow: hidden; transition: transform .25s; }
.news-card--v2:hover .news-card__img { transform: scale(1.03); }
.news-card--v2 .news-card__body { padding: .875rem 1rem; display: flex; flex-direction: column; flex: 1; }
.news-card--v2 .news-card__title { font-size: .9375rem; font-weight: 700; line-height: 1.4; margin-bottom: .35rem; }
.news-card--v2 .news-card__summary { font-size: .8125rem; color: var(--gray-600); margin-bottom: .5rem; line-height: 1.55; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }

/* ── Testimonials ─────────────────────────────────────────── */
.testi-section { padding: 3.5rem 0; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}
.testi-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1.5px solid var(--gray-100);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: 14px;
  font-size: 72px;
  color: var(--green-50);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testi-card__text {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.125rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testi-card__author { display: flex; align-items: center; gap: .75rem; }
.testi-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-card__name { font-size: .8125rem; font-weight: 700; color: var(--gray-900); }
.testi-card__role { font-size: .75rem; color: var(--gray-400); }

/* ── Partners ─────────────────────────────────────────────── */
.partners-section { padding: 1.75rem 0; border-top: 1px solid var(--gray-100); }
.partners-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.partner-pill {
  font-size: .8125rem;
  color: var(--gray-600);
  padding: .4em 1em;
  border-radius: 999px;
  border: 1.5px solid var(--gray-100);
  background: #fff;
  font-weight: 500;
}
.partner-pill--highlight {
  color: var(--green-600);
  font-weight: 700;
  border-color: var(--green-100);
  background: var(--green-50);
}

/* ── Vì sao chọn chúng tôi ───────────────────────────────── */
.whyus-section { background: var(--gray-50); }

.whyus__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.whyus__content { order: 2; }

/* Media: left column, offset block via padding + ::before */
.whyus__media {
  order: 1;
  position: relative;
  padding: 1.375rem 0 0 1.375rem; /* room for the offset block */
}
.whyus__media::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 1.375rem; bottom: 1.375rem; /* mirror the padding */
  background: var(--green-100);
  border-radius: 22px;
  z-index: 0;
}
.whyus__media-box {
  position: relative; z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 56px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.05);
  background: var(--gray-100);
}

/* Eyebrow badge */
.whyus__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-500);
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  padding: .4em 1.125em;
  border-radius: 999px;
  margin-bottom: 1.125rem;
}

.whyus__title {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 0 0 .75rem;
}
.whyus__subtitle {
  color: var(--gray-600);
  font-size: .975rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* Items: icon + text, no borders, generous spacing */
.whyus__list { display: flex; flex-direction: column; gap: 1.375rem; }
.whyus__item { display: flex; align-items: flex-start; gap: 1.125rem; }
.whyus__item-icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(26,127,90,.25);
}
.whyus__item-body { padding-top: .2rem; }
.whyus__item-title {
  font-weight: 700; color: var(--gray-900);
  font-size: .9375rem; margin-bottom: .3rem; line-height: 1.35;
}
.whyus__item-desc { color: var(--gray-600); font-size: .875rem; line-height: 1.6; }
/* Slideshow — fade (default) */
.whyus__slideshow { width:100%;height:100%;position:relative;border-radius:16px;overflow:hidden; }
.whyus__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.whyus__slide.is-active { opacity: 1; }

/* Slideshow — slide effect */
.whyus__slideshow--slide .whyus__slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform .75s cubic-bezier(.4,0,.2,1);
}
.whyus__slideshow--slide .whyus__slide.is-active { transform: translateX(0); }
.whyus__slideshow--slide .whyus__slide.whyus__slide--exit { transform: translateX(-100%); }

/* Slideshow — zoom / ken-burns effect */
.whyus__slideshow--zoom .whyus__slide { opacity: 0; transition: opacity .8s ease; }
.whyus__slideshow--zoom .whyus__slide.is-active { opacity: 1; animation: whyusKenBurns 8s ease-out forwards; }
@keyframes whyusKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .whyus__inner { gap: 3rem; }
  .whyus__title { font-size: 2rem; }
}

@media (max-width: 900px) {
  /* whyus */
  .whyus__inner { grid-template-columns: 1fr; gap: 2rem; }
  .whyus__content { order: 2; }
  .whyus__media { order: 1; padding-top: 1.125rem; padding-left: 1.125rem; max-width: 520px; }
  .whyus__media::before { right: 1.125rem; bottom: 1.125rem; } /* fix: was ::after */
  .whyus__title { font-size: 1.875rem; }
  .whyus__list { gap: 1.125rem; }
  /* hero */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media-box { display: none; }
  .hero__title { font-size: 2rem; }
  /* stats */
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2)::after { display: none; }
  /* skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  /* news */
  .news-grid--v2 { grid-template-columns: 1fr 1fr; }
  .news-grid--v2 > :last-child { display: none; }
  /* testi */
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid > :last-child { display: none; }
}

@media (max-width: 600px) {
  /* hero */
  .hero { padding: 2.5rem 0 0; }
  .hero__inner { padding-bottom: 2rem; gap: 1.5rem; }
  .hero--image .hero__inner { padding: 2rem 1rem; }
  .hero__title { font-size: 1.625rem; }
  .hero__desc { font-size: .9rem; margin-bottom: 1.375rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__media-box { display: none; }
  /* stats */
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__num { font-size: 1.5rem; }
  .stats-bar__label { font-size: .75rem; }
  /* whyus */
  .whyus-section { padding: 2.25rem 0; }
  .whyus__inner { gap: 1.5rem; }
  .whyus__media { padding-top: .875rem; padding-left: .875rem; max-width: 100%; }
  .whyus__media::before { right: .875rem; bottom: .875rem; }
  .whyus__title { font-size: 1.625rem; }
  .whyus__subtitle { font-size: .9rem; margin-bottom: 1.25rem; }
  .whyus__list { gap: .875rem; }
  .whyus__item { gap: .75rem; }
  .whyus__item-icon { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; border-radius: 10px; flex-shrink: 0; }
  .whyus__item-title { font-size: .875rem; }
  .whyus__item-desc { font-size: .8125rem; }
  .whyus__eyebrow { font-size: .625rem; }
  /* skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
  .skill-card { padding: .875rem; }
  /* news */
  .news-grid--v2 { grid-template-columns: 1fr; }
  .news-card--v2:nth-child(n+2) { display: none; }
  /* testi */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid > :nth-child(n+2) { display: none; }
  /* partners */
  .partners-pills { gap: .375rem; }
  .partner-pill { font-size: .75rem; }
  /* misc */
  .section__eyebrow { font-size: .68rem; }
  .section { padding: 2.5rem 0; }
  .section__title { font-size: 1.4rem; }
  .cta-section { padding: 2rem 0; }
  .cta-inner { flex-direction: column; gap: 1.25rem; text-align: center; }
  .cta-section__actions { justify-content: center; }
}
