body {
  font-family: 'Quicksand', sans-serif;
  background-color: #fafafa;
  overflow-x: hidden;
  margin: 0;
}

/* 🌿 HERO SLIDESHOW */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1.5s ease;
  max-width: 700px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
}

/* 🌿 SLIDE ARROWS */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  z-index: 3;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.left { left: 25px; }
.hero-arrow.right { right: 25px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 🌿 HERO MOBILE OPTIMIZE */
@media (max-width: 768px) {

  /* Giảm chiều cao hero để không chiếm 100vh gây bí giao diện */
  .hero {
    height: 75vh;                   /* cao vừa đủ */
    padding: 0;                      /* loại bỏ padding gây lệch */
    background-position: center center;
    display: flex;                   /* flex để canh dọc + ngang */
    flex-direction: column;
    justify-content: center;         /* căn giữa theo chiều dọc */
    align-items: center;             /* căn giữa theo chiều ngang */
    text-align: center;              /* chữ luôn căn giữa */
  }

  /* Nội dung hero */
  .hero-content {
    max-width: 90%;                  /* rộng vừa phải */
    width: 100%;                     /* chiếm toàn bộ width để căn giữa */
    display: flex;
    flex-direction: column;
    align-items: center;             /* canh nội dung giữa */
    justify-content: center;
    gap: 12px;                       /* khoảng cách giữa h1 và p */
  }

  .hero h1 {
    font-size: 1.6rem;               /* tiêu đề vừa màn hình */
    line-height: 1.3;
    margin: 0;                       /* loại bỏ margin thừa */
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;                       /* loại bỏ margin thừa */
    opacity: 0.95;
  }

  /* Mũi tên nhỏ hơn, tránh che nội dung */
  .hero-arrow {
    font-size: 1.8rem;
    top: 50%;                        /* luôn giữa dọc */
    padding: 4px 6px;
    opacity: 0.7;
  }

  .hero-arrow.left { left: 10px; }
  .hero-arrow.right { right: 10px; }

  /* Overlay giảm tối để hình rõ hơn */
  .hero::before {
    background: rgba(0, 0, 0, 0.35);
  }
}

/* 🌿 ABOUT SECTION – FIX SLIDE TRÀN LỀ */
.about-section {
  background-color: #2e7d32;
  color: #fff;
  position: relative;
  overflow: hidden; /* ẩn tràn slide */
  padding: 100px 0;
}

.about-slider-wrapper {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
     padding: 0 30px; /* tạo khoảng cách bên trái và phải để tránh mũi tên */
}

.about-slider {
  display: flex;
  transition: transform 0.6s ease;
  
}

.about-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  box-sizing: border-box;
  padding: 40px 20px;
  min-height: 450px;
  justify-content: space-between; /* thay flex-start -> space-between để text & ảnh nằm hai bên */
}

.about-text {
  flex: 1; /* chiếm phần lớn text */
  max-width: 50%;
  padding-left: 40px; /* lùi text vào trong để tránh mũi tên */
}
/* Tiêu đề lớn */
.about-title {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
  position: relative;
  display: inline-block; /* >>> ép độ rộng bám đúng chữ */
  padding-bottom: 4px;   /* >>> cách nhẹ với line */
}

/* Line trang trí dưới tiêu đề */
.about-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;     /* >>> 100% = đúng bằng độ rộng chữ */
  height: 4px;
  background: #fff;
  border-radius: 4px;
}

/* Subtitle */
.about-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #d1f7d8;
}

/* Đoạn mô tả */
.about-text p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}
.about-img {
  height: 380px;

   display: flex;
  flex: 0 0 480px; /* hoặc 250px */
   justify-content: center;
    margin-right: 100px; /* lùi ảnh vào trong nếu cần */
}

.about-img img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Nút xem thêm */
.about-text .btn {
  padding: 12px 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
}

/* ICON (tùy nếu bạn thêm icon arrow...) */
.about-text .btn i {
  font-size: 18px;
}

/* Hover cực đẹp */
.about-text .btn:hover {
  transform: translateY(-4px);
  background: #ffffff !important;
  color: #2e7d32 !important;
  border-color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.45);
}

/* Nhấn nút xuống */
.about-text .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

.about-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #d1fae5;
  cursor: pointer;
  z-index: 10;
  padding: 6px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.about-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1) translateY(-50%);
}


.about-arrow.left { left: 12px; }
.about-arrow.right { right: 12px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Section padding */
  .about-section {
    padding: 50px 15px; 
  }

  /* Slider wrapper */
  .about-slider-wrapper {
    overflow: hidden;
    padding: 0;
  }

  /* Slider chứa tất cả slide */
  .about-slider {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.5s ease;
  }

  /* Mỗi slide */
  .about-slide {
    flex: 0 0 100%;      /* mỗi slide chiếm 100% màn hình */
    display: flex;
    flex-direction: column;
    align-items: center;  /* căn giữa toàn bộ nội dung */
    text-align: center;
    gap: 15px;
    padding: 20px 10px;
    box-sizing: border-box;
  }

  /* Text */
  .about-text {
    max-width: 100%;
    padding: 0 10px;
  }

  .about-title {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .about-subtitle {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .about-text .btn {
    font-size: 15px;
    padding: 10px 24px;
    margin-top: 10px;
  }

   /* Ảnh đều nhau */
  .about-img {
    width: 100%;
    max-width: 350px;        /* chiều ngang đều */
    height: 220px;           /* chiều cao cố định cho tất cả slide */
    margin: 0 auto;
    flex-shrink: 0;
  }

  .about-img img {
    width: 100%;
    height: 100%;            /* chiếm toàn bộ khung */
    object-fit: cover;       /* phủ đầy khung, nếu muốn toàn bộ ảnh hiển thị thì dùng 'contain' */
    border-radius: 12px;
    display: block;
  }

  /* Mũi tên điều hướng */
  .about-arrow {
    font-size: 22px;
    padding: 4px 7px;
    top: 50%;
    background: rgba(255,255,255,0.25);
  }

  .about-arrow.left { left: 5px; }
  .about-arrow.right { right: 5px; }
}





/* 🌿 PRODUCT SECTION */
.products-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #432d23;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: #009933;
  margin: 8px auto 0;
  border-radius: 3px;
}

/* 🌿 PRODUCT CARD */
.product-card img {
  height: 250px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 20px;
}

.product-card .product-price {
  color: #009933;
  font-size: 1.1rem;
  margin: 10px 0;
}

.product-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}


@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
/* 🌈 Hiệu ứng chuyển tiếp động giữa HERO và ABOUT */
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(46, 125, 50, 0) 0%,
    #2e7d32 100%
  );
  transition: all 0.6s ease-in-out;
  pointer-events: none;
  z-index: 2;
}
/* Tin tức nổi bật */
.news-section .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.news-section .card img {
  height: 220px;
  object-fit: cover;
}

/* Giấy chứng nhận */
.certificates-section {
  background: #f7f9fb;
  padding: 60px 0;
}

.certificates-section .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 50px;
}

/* Sử dụng Flexbox cho hàng ảnh */
.certificates-row {
  display: flex;
  justify-content: space-between; /* căn đều các ảnh */
  flex-wrap: wrap;               /* xuống hàng khi màn hình nhỏ */
  gap: 10px;                     /* khoảng cách giữa các ảnh */
}

/* Mỗi ảnh */
.certificate-item {
  flex: 1 1 calc(20% - 20px);   /* 5 ảnh đều nhau trên 1 hàng, trừ gap */
  max-width: 400px;              /* hạn chế tối đa chiều rộng */
}

.certificate-item img {
  width: 100%;
  aspect-ratio: 4 / 3;          /* giữ tỉ lệ chuẩn cho mọi ảnh */
  object-fit: contain;           /* giữ nguyên nội dung ảnh */
  display: block;
  transition: transform 0.3s ease;
}

/* Hover nhẹ để đẹp hơn */
.certificate-item img:hover {
  transform: scale(1.05);
}



/*
.banner-fullwidth {
  padding: 0 40px; 
}

.banner-fullwidth img {
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
} */
/* Cố định chiều cao card-body để nút luôn nằm dưới */
.news-section .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Giúp nút nằm sát dưới và không bị đẩy lên */
.news-section .card-body .btn {
  margin-top: auto;
}
/* ================================
   📱 MOBILE RESPONSIVE OPTIMIZED  
   Hiển thị đẹp cho màn hình < 768px
=================================*/
@media (max-width: 768px) {

  /* ===== HERO ===== */
  .hero {
    height: 70vh;
    padding: 0 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin-top: 8px;
  }

  .hero-arrow {
    font-size: 22px;
    padding: 4px 6px;
  }

  /* ===== ABOUT ===== */
  .about-section {
    padding: 50px 15px;
  }

  .about-slide {
    flex-direction: column;
    gap: 25px;
    padding: 0;
    text-align: center;
  }

  .about-text {
    padding: 0;
    max-width: 100%;
  }

  .about-title {
    font-size: 26px;
  }

  .about-subtitle {
    font-size: 17px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.5;
  }

  .about-img {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    height: auto;
  }

  .about-img img {
    border-radius: 10px;
  }

  /* Mũi tên nhỏ lại */
  .about-arrow {
    font-size: 22px;
    padding: 4px 7px;
  }

  /* ===== PRODUCTS ===== */
  .products-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .product-card img {
    height: 200px;
  }

  .product-card .card-body {
    padding: 15px;
  }

  /* ===== NEWS ===== */
  .news-section .card img {
    height: 180px;
  }

  .news-section .card-body {
    padding: 15px;
  }

  .news-section h5 {
    font-size: 17px;
    line-height: 1.3;
  }

  /* ===== CERTIFICATES ===== */
  .certificates-section {
    padding: 40px 15px;
  }

  .certificates-row {
    gap: 12px;
    justify-content: center;
  }

  .certificate-item {
    flex: 1 1 calc(50% - 12px);
    max-width: 160px;
  }

  .certificate-item img {
    aspect-ratio: 3 / 2;
  }

  /* ===== FOOTER ===== */
  footer {
    text-align: center;
  }

  footer .col {
    margin-bottom: 25px;
  }

  footer img {
    width: 120px;
  }
}

