/* ============================================================
   home.css - Trang chủ: hero, featured, about, services,
              testimonials, partners, tin mới, chuyên mục
   Chi dung tren / - khong nạp style.css (blog/benh) o trang nay.
   ============================================================ */

/* main tren trang chu khong co .container/.wrap -> khong padding doc */
main { padding: 0; }

/* Section title chung */
.home-section-title {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  text-align: center;
  margin: 0 0 1.75rem;
}

/* ===== 1. Hero ===== */
.home-hero {
  position: relative;
  /* Nền lime tham khảo: #f7fee7 -> #ecfccb -> #fafaf9, chữ xanh đậm */
  background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 40%, #fafaf9 100%);
  border-bottom: 1px solid #d9f99d;
  box-shadow: 0 4px 20px rgba(77, 124, 15, .06);
  color: #365314;
  overflow: hidden;
}
.home-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}
.home-hero__eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3f6212;
  margin: 0 0 .6rem;
}
.home-hero__title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.4rem;
  max-width: 640px;
  color: #1a2e05;
}
.home-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.5rem;
  background: #4d7c0f;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(77, 124, 15, .2);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.home-hero__btn:hover {
  background: #365314;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(77, 124, 15, .28);
}
.home-hero__divider {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
/* Chữ chìm trang trí góc dưới bên phải hero */
.home-hero__watermark {
  position: absolute;
  right: 2.5rem;
  bottom: 3rem;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 7.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  transform: skewX(-8deg);
  /* Nền gradient xanh lá loang, chỉ hiện trong chữ (đồng bộ tông với header/hero mới) */
  background: linear-gradient(180deg, rgba(77, 124, 15, .26) 0%, rgba(77, 124, 15, .05) 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  /* Viền chữ mảnh để giữ nét khi nền gradient nhạt dần */
  -webkit-text-stroke: 1.25px rgba(77, 124, 15, .32);
  pointer-events: none;
  user-select: none;
}
/* Phần .vn tô xanh đậm hơn cho có điểm nhấn */
.home-hero__watermark-tld {
  color: rgba(77, 124, 15, .62);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgba(77, 124, 15, .52);
}

/* ===== 2. Featured: Giải pháp & Hợp tác ===== */
.home-featured-section {
  margin-top: 3rem;
}
.home-featured-section__title {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 1.5rem;
}
.home-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.home-featured__card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  text-decoration: none;
  color: #fff;
  transition: transform .25s, box-shadow .25s;
}
.home-featured__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

/* Card ảnh nền (1 & 2) */
.home-featured__card--img {
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.home-featured__card--bg1 {
  background-image: linear-gradient(135deg, #5a7a3a, #8f9e5a);
}
.home-featured__card--bg2 {
  background-image: linear-gradient(135deg, #3a6a5a, #5a8a7a);
}
.home-featured__card--bg3 {
  background-image: linear-gradient(135deg, #4a5a7a, #6a7a9e);
}
.home-featured__card--photo {
  background-size: cover;
  background-position: center;
}
.home-featured__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.4rem 1.3rem 1.3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
}
.home-featured__label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .4rem;
}
.home-featured__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .45rem;
  line-height: 1.35;
}
.home-featured__overlay p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.5;
  margin: 0;
}

/* ===== 3. About ===== */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3.5rem;
}
.home-about__img img,
.home-about__img-placeholder {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.home-about__img-placeholder {
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.home-about__text h2 {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 1rem;
  line-height: 1.35;
}
.home-about__text p {
  margin: 0 0 .6rem;
  color: #333;
  line-height: 1.65;
}
.home-about__text ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #333;
  line-height: 1.8;
}
.home-about__slogan {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
}

/* ===== 4. Services grid ===== */
.home-services {
  background: #f4f7f4;
  padding: 3rem 0;
  margin-top: 3.5rem;
}
.home-services__head {
  text-align: center;
  margin-bottom: 2rem;
}
.home-services__head .home-section-title {
  margin-bottom: .4rem;
}
.home-services__sub {
  font-size: .9rem;
  color: #666;
  margin: 0;
}
.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.home-services__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.home-services__card:hover {
  transform: translateY(-5px);
  border-color: #2e7d32;
  box-shadow: 0 8px 25px rgba(46, 125, 50, .1);
}
.home-services__top {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .85rem;
}
.home-services__icon {
  font-size: 2rem;
  background: #e8f5e9;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.home-services__meta {
  min-width: 0;
}
.home-services__cat {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #2e7d32;
  margin-bottom: .15rem;
}
.home-services__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b3b22;
  margin: 0;
  line-height: 1.3;
}
.home-services__desc {
  font-size: .82rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  flex: 1;
}
.home-services__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: .75rem;
}
.home-services__tag {
  font-size: .72rem;
  font-weight: 600;
  color: #0288d1;
  background: #e1f5fe;
  padding: .2rem .55rem;
  border-radius: 6px;
}
.home-services__tag--orange { background: #fff3e0; color: #e65100; }
.home-services__tag--pink { background: #fce4ec; color: #c2185b; }
.home-services__tag--cyan { background: #e0f7fa; color: #006064; }
.home-services__tag--indigo { background: #e8eaf6; color: #283593; }
.home-services__link {
  font-size: .8rem;
  font-weight: 600;
  color: #2e7d32;
}
.home-services__card:hover .home-services__link {
  text-decoration: underline;
}

/* ===== 5. Testimonials ===== */
.home-testimonials {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.home-testimonials .home-section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--brand-mid);
  margin: 8px auto 0;
  border-radius: 2px;
}
.home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.home-testimonials__card {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.05);
  transition: transform .3s ease, border-color .3s ease;
}
.home-testimonials__card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-mid);
}
.home-testimonials__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: .25rem;
}
.home-testimonials__quote {
  font-size: .92rem;
  color: #374151;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  font-style: italic;
}
.home-testimonials__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--brand-100);
  padding-top: .875rem;
}
.home-testimonials__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--brand-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.home-testimonials__author strong {
  display: block;
  font-size: .9rem;
  color: var(--ink);
}
.home-testimonials__author span {
  font-size: .8rem;
  color: #4b5563;
}

/* ===== 6. Partners (bento) ===== */
.home-partners {
  background: var(--brand-50);
  padding: 2.5rem 0;
  margin-top: 3.5rem;
}
.home-partners .home-section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--brand-mid);
  margin: 8px auto 0;
  border-radius: 2px;
}
.home-partners__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card rộng: hợp tác (2 cột) */
.home-partners__wide {
  grid-column: span 2;
  background: var(--ocean-light);
  border: 1px solid #cfe3ec;
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(77, 124, 15, .08);
  position: relative;
  overflow: hidden;
}
.home-partners__wide::before {
  content: "\1F91D";
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 80px;
  opacity: .08;
}
.home-partners__wide-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.125rem;
}
.home-partners__logo-slot {
  background: var(--ocean);
  border: 1px dashed var(--ocean-mid);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ocean);
}
.home-partners__badge {
  background: var(--ocean);
  color: #fff;
  font-size: .7rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.home-partners__wide h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--ocean);
}
.home-partners__wide p {
  font-size: .85rem;
  color: #3d4f5c;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  max-width: 80%;
}
.home-partners__hotline {
  border-top: 1px solid #cfe3ec;
  padding-top: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.home-partners__hotline-label {
  font-size: .7rem;
  color: var(--ocean-mid);
  text-transform: uppercase;
}
.home-partners__hotline-phone {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ocean);
  text-decoration: none;
}
.home-partners__hotline-phone:hover { color: var(--ocean-mid); }
.home-partners__contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-partners__hotline-mail {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ocean);
  text-decoration: none;
}
.home-partners__hotline-mail:hover { color: var(--ocean-mid); text-decoration: underline; }

/* Card ngắn: hệ sinh thái */
.home-partners__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
  transition: transform .3s ease, border-color .3s ease;
}
.home-partners__card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-mid);
}
.home-partners__preview {
  height: 140px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}
.home-partners__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.home-partners__card:hover .home-partners__preview img {
  transform: scale(1.05);
}
.home-partners__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: .75rem;
}
.home-partners__body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .15rem;
}
.home-partners__domain {
  font-size: .7rem;
  color: var(--brand-mid);
  font-weight: 500;
}
.home-partners__body p {
  font-size: .8rem;
  color: #555;
  line-height: 1.5;
  margin: .5rem 0 0;
}
.home-partners__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  border-top: 1px solid #f0f0f0;
  padding-top: .625rem;
}
.home-partners__card:hover .home-partners__link {
  text-decoration: underline;
}

/* ===== 7. Tin mới ===== */
.home-news {
  margin-top: 3.5rem;
}
.home-news__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.home-news__card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e8f0e9;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.home-news__card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.home-news__thumb {
  display: block;
  overflow: hidden;
}
.home-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.home-news__card:hover .home-news__thumb img {
  transform: scale(1.05);
}
.home-news__thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.home-news__body {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-news__cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .3rem;
}
.home-news__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  line-height: 1.4;
}
.home-news__body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.home-news__body h3 a:hover {
  color: var(--brand);
}
.home-news__body p {
  font-size: .85rem;
  color: #555;
  margin: 0 0 .5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news__more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.home-news__more:hover {
  text-decoration: underline;
}

/* ===== 8. Khối chuyên mục ===== */
.home-topics {
  margin-top: 3.5rem;
}
.home-topics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.home-topics__head .home-section-title {
  margin: 0;
  text-align: left;
}
.home-topics__all {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.home-topics__all:hover {
  text-decoration: underline;
}
.home-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.home-topics__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8f0e9;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.home-topics__card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.home-topics__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-100);
}
.home-topics__thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.home-topics__card:hover .home-topics__thumb > img {
  transform: scale(1.05);
}
.home-topics__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-topics__thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-topics__body {
  padding: .875rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-topics__cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand);
  margin-bottom: .35rem;
}
.home-topics__body h3 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-topics__body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.home-topics__body h3 a:hover {
  color: var(--brand);
}
.home-topics__body p {
  font-size: .83rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .home-featured {
    grid-template-columns: 1fr;
  }
  .home-featured__card {
    min-height: 200px;
  }
  .home-about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-about__img img {
    aspect-ratio: 16/9;
  }
  .home-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-partners__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-news__grid {
    grid-template-columns: 1fr;
  }
  .home-topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .home-services__grid {
    grid-template-columns: 1fr;
  }
  .home-testimonials__grid {
    grid-template-columns: 1fr;
  }
  .home-partners__bento {
    grid-template-columns: 1fr;
  }
  .home-partners__wide {
    grid-column: span 1;
  }
  .home-partners__wide p {
    max-width: 100%;
  }
}
@media (max-width: 580px) {
  .home-news__card {
    grid-template-columns: 1fr;
  }
  .home-news__thumb img,
  .home-news__thumb-placeholder {
    height: 180px;
  }
  .home-news__body {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .home-topics__grid {
    grid-template-columns: 1fr;
  }
}
