/* ====================================================================== */
/* BỐ CỤC MỤC CHẾ BIẾN (FULL-WIDTH & EDGE-TO-EDGE SPLIT-SCREEN)          */
/* ====================================================================== */
.caphe-processing-row-container-fluid {
  background-color: var(--bg-light, #eceff1); /* Sử dụng nền xám nhạt làm độ tương phản */
  border-top: 1px solid var(--border-color, #6b9e6e);
  border-bottom: 1px solid var(--border-color, #6b9e6e);
  padding: 0;
  overflow: hidden;
}

/* Cột Trái: Banner ảnh dọc lớn full-height */
.caphe-processing-left-banner {
  position: relative;
  height: 100%;
  min-height: 550px;
  border-radius: 0; /* Tràn viền không có bo góc */
  overflow: hidden;
}

/* Kỹ thuật zoom mượt mà khi cuộn chuột */
.caphe-scroll-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}


/* Cột Phải: Padding rộng rãi, in đậm - dùng !important để tránh bị đè bởi layout .g-0 của theme chính */
.caphe-processing-right-content {
  padding: 2.5rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .caphe-processing-right-content {
    padding: 4rem 4rem 4rem 5.5rem !important; /* Khoảng lề trái 5.5rem (~88px) tạo khoảng trống cân đối với ảnh */
  }
}

@media (min-width: 1200px) {
  .caphe-processing-right-content {
    padding: 4.5rem 4.5rem 4.5rem 6.5rem !important; /* Tăng thêm khoảng cách lề trái trên màn hình lớn */
  }
}

/* Label chuyên mục: — Coffee Insight */
.caphe-category-label {
  display: flex;
  align-items: center;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 16px;
  font-weight: 700;
  color: var(--base-color); /* Xanh dương PrimeCoffee */
  text-transform: uppercase;
  /* letter-spacing: 0.05em; */
  margin-bottom: 0.5rem;
}

.caphe-category-label::before {
  content: '';
  width: 25px;
  height: 1px;
  background-color: var(--base-color);
  margin-right: 0.75rem;
  display: inline-block;
}

.caphe-processing-right-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main, #232323);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

/* Thẻ Card bên phải (Classic Card) */
/* Thẻ Card bên phải (Classic Card) */
.caphe-classic-card {
  position: relative; /* Cho phép định vị tuyệt đối số thứ tự */
  background: #ffffff;
  border: 1px solid var(--border-color, #bcddbd);
  border-radius: 40px 6px 0 0;
  overflow: hidden;
  height: 100%;
  /* box-shadow: 0 10px 15px rgba(0, 0, 0, 0.01); */
    box-shadow: 0 6px 22px rgba(35, 35, 35, 0.08);
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
}


.caphe-classic-card:hover {
  /* box-shadow: 0 12px 30px rgba(74, 146, 32, 0.05);  */
  box-shadow: 0 15px 35px rgba(74, 146, 32, 0.14);
  border-color: var(--color-brand, #4a7c4e);
  transform: translateY(-5px); /* Hiệu ứng nổi nhẹ */
}


/* Số thứ tự lớn mờ ở góc thẻ */
.caphe-card-number-serif {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(74, 146, 32, 0.12); /* Màu mờ */
  line-height: 1;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.caphe-classic-card:hover .caphe-card-number-serif {
  color: var(--color-accent, #f89326);
  opacity: 0.8;
  transform: translateY(-3px);
}

/* Asymmetric Image Wrapper */
.caphe-classic-card .caphe-img-wrapper {
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: #f5f5f5;
  border-radius: 40px 6px 0 0; /* Cắt góc chéo nghệ thuật top-left */
}

.caphe-classic-card .caphe-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
}

.caphe-classic-card:hover .caphe-img-wrapper img {
  transform: scale(1.05);
}

.caphe-classic-card .caphe-card-body-custom {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Nhãn chuyên mục nhỏ cho card */
.caphe-card-category-tag {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent, #f89326);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.caphe-classic-card .caphe-card-title-custom {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.caphe-classic-card .caphe-card-title-custom a {
  color: var(--text-main, #232323);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--color-brand, #4a9220) 0%, var(--color-brand, #4a9220) 100%);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s ease, color 0.3s ease;
}

.caphe-classic-card:hover .caphe-card-title-custom a {
  color: var(--color-brand, #4a9220);
  background-size: 100% 1px; /* Gạch chân mượt mà khi hover */
}

.caphe-card-category-badge {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px; /* Bo tròn nhẹ kiểu Artisan */
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;

  /* Màu sắc chủ đạo (Cam) */
  color: var(--color-accent, #f89326);
  background-color: rgba(248, 147, 38, 0.08); /* Nền cam nhạt mờ */
  border: 1px solid rgba(248, 147, 38, 0.2); /* Viền cam mờ */
}


.excerpt-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;           /* Số dòng tối đa bạn muốn hiển thị */
    -webkit-box-orient: vertical;
    overflow: hidden;                /* Ẩn phần văn bản thừa */
    text-overflow: ellipsis;         /* Hiển thị dấu ba chấm (...) */
}

.caphe-classic-card .caphe-card-excerpt-custom {
  font-size: 0.85rem;
  color: var(--text-muted, #58574B);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.caphe-classic-card .caphe-card-footer-custom {
  font-size: 0.75rem;
  color: var(--text-muted, #58574B);
  opacity: 0.9;
  border-top: 1px dashed var(--border-color, #6b9e6e);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
}

/* Dấu chấm cam trang trí ngày tháng */
.caphe-card-dot-accent {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--color-accent, #f89326);
  border-radius: 50%;
  margin-right: 6px;
}



/* Reveal scroll */
.caphe-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.caphe-reveal.caphe-active {
  opacity: 1;
  transform: translateY(0);
}

/* Đường lưới căn chỉnh phong cách Swiss Design */
.caphe-art-grid-horizontal-accent {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color, #6b9e6e);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.caphe-art-line-vertical-decor {
  position: absolute;
  top: 0; /* Cách mép trên ảnh 15% */
  bottom: 0; /* Cách mép dưới ảnh 15% */
  right: 40px; /* Cách mép phải ảnh 40px */
  width: 1px;
  background-color: var(--border-color, #6b9e6e);
  opacity: 0.5;
  z-index: 3;
  pointer-events: none; /* Tránh cản trở chuột cuộn trang */
}

/* Background outline leaf decoration */
.caphe-bg-leaf-svg {
  position: absolute;
  /* Thay đổi vị trí nằm ở 1/3 chiều ngang */
  left: 33.33%;
  transform: translateX(-50%); /* Căn giữa tâm chiếc lá vào đúng vạch 1/3 */

  bottom: 0; /* Giữ nguyên nằm sát đáy */
  width: 320px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}



@media (max-width: 991px) {
  .caphe-processing-left-banner {
    min-height: 380px;
  }
  .caphe-bg-leaf-svg {
    width: 220px;
    right: -20px;
  }
}

/* ====================================================================== */
/* SECTION 1: CANH TÁC (MAGAZINE GRID BLOCK - PREFIXED)                  */
/* ====================================================================== */

/* Phân tách vùng chủ đề */
.caphe-section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 3.5rem 0 1.5rem;
}

.caphe-section-divider::before,
.caphe-section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color, #bcddbd);
}

.caphe-section-divider:not(:empty)::before {
  margin-right: 1.5rem;
}

.caphe-section-divider:not(:empty)::after {
  margin-left: 1.5rem;
}

.caphe-section-divider span {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-weight: 600;
  text-transform: uppercase;
  /* letter-spacing: 0.2em; */
  color: var(--base-color);
}

.caphe-section-title-classic {
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  letter-spacing: -0.02em;
}

/* Thẻ nổi bật bên trái (Featured Card) */
.caphe-featured-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #bcddbd);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 20px rgba(35, 35, 35, 0.04);
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
}

.caphe-featured-card:hover {
  box-shadow: 0 15px 35px rgba(74, 146, 32, 0.08); /* Bóng đổ mờ xanh chủ đạo */
  border-color: var(--color-brand, #4a9220);
  transform: translateY(-4px);
}

.caphe-featured-card .caphe-card-body-custom {
  padding: 1.75rem;
}

.caphe-featured-card .caphe-card-title-custom {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.caphe-featured-card .caphe-card-title-custom a {
  color: var(--text-main, #232323);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--color-brand, #4a9220) 0%, var(--color-brand, #4a9220) 100%);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s ease, color 0.3s ease;
  font-weight: bold;
}

.caphe-featured-card:hover .caphe-card-title-custom a {
  color: var(--color-brand, #4a9220);
  background-size: 100% 1px; /* Gạch chân mượt mà khi di chuột */
}

.caphe-featured-card .caphe-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted, #58574B);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.caphe-post-meta-custom {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent, #f89326);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3 Bài viết xếp ngang dọc bên phải (.caphe-horizontal-post-item) */
.caphe-horizontal-post-item {
  display: flex;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color, #bcddbd);
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
}

.caphe-horizontal-post-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.caphe-horizontal-post-item:first-child {
  padding-top: 0;
}

.caphe-horizontal-post-item .caphe-post-thumbnail {
  width: 145px;
  height: 97px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 1.25rem;
  aspect-ratio: 3/2;
  border: 1px solid var(--border-color, #bcddbd);
}

.caphe-horizontal-post-item .caphe-post-content {
  flex-grow: 1;
}

.caphe-horizontal-post-item .caphe-post-title-custom {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

.caphe-horizontal-post-item .caphe-post-title-custom a {
  color: var(--text-main, #232323);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--color-brand, #4a9220) 0%, var(--color-brand, #4a9220) 100%);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s ease, color 0.3s ease;
}

.caphe-horizontal-post-item:hover .caphe-post-title-custom a {
  color: var(--color-brand, #4a9220);
  background-size: 100% 1px;
}

.caphe-horizontal-post-item .caphe-post-excerpt-custom {
  font-size: 0.85rem;
  color: var(--text-muted, #58574B);
  margin-bottom: 0.5rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nhóm danh mục kiểu badge chung cho cả hai phân mục */
.caphe-card-categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.caphe-card-category-badge {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  color: var(--color-brand, #4a9220);
  background-color: rgba(74, 146, 32, 0.08);
  border: 1px solid rgba(74, 146, 32, 0.18);
}

/* ====================================================================== */
/* IMAGE ZOOM WRAPPER & HOVER ZOOM EFFECT                              */
/* ====================================================================== */
.caphe-img-zoom-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.caphe-featured-card .caphe-img-zoom-wrapper {
  aspect-ratio: 16/10; /* Khống chế tỷ lệ ảnh ở cột trái tránh quá cao */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.caphe-img-zoom-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
}

.caphe-featured-card:hover .caphe-img-zoom-wrapper img,
.caphe-horizontal-post-item:hover .caphe-img-zoom-wrapper img {
  transform: scale(1.05);
}

/* ====================================================================== */
/* SHORT DIVIDER & ORANGE MORE BUTTON                                     */
/* ====================================================================== */
.caphe-short-divider {
  width: 60px;
  height: 2px;
  background-color: var(--border-color, #bcddbd);
  margin: 1.5rem auto 1.2rem;
  opacity: 0.8;
}

.caphe-btn-orange-more {
  background-color: var(--color-accent, #f89326);
  color: #ffffff;
  border: none;
  padding: 0.6rem 2.2rem;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(248, 147, 38, 0.15);
}

.caphe-btn-orange-more:hover {
  background-color: var(--color-brand, #4a9220);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 146, 32, 0.25);
}

/* ====================================================================== */
/* SECTION 4: THỊ TRƯỜNG STYLE 1 (GRID 5 ITEMS ASYMMETRIC)               */
/* ====================================================================== */
/* SECTION 4: THỊ TRƯỜNG STYLE 1 (STANDARDIZED WITH CANH TÁC & CHẾ BIẾN)  */
/* ====================================================================== */

.caphe-thi-truong-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

/* ====================================================================== */
/* SECTION 5: ĐẶC TÍNH SẢN PHẨM (SPLIT CONTRAST LAYOUT FOR 2 ITEMS)      */
/* ====================================================================== */

.caphe-dac-tinh-watermark {
  position: absolute;
  right: 2rem;
  top: 3.5rem; /* Ngang hàng với vùng label và title của block */
  width: 320px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.caphe-contrast-desc-dark {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #c9d6cf;
  text-align: justify;
}

.caphe-contrast-desc-light {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5e6d77;
  text-align: justify;
}
.caphe-contrast-desc-dark ul,
.caphe-contrast-desc-light ul,
.caphe-contrast-desc-liberica ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
/* Định vị tương đối cho mỗi dòng để chèn bullet point mới */
.caphe-contrast-desc-dark ul li,
.caphe-contrast-desc-light ul li,
.caphe-contrast-desc-liberica ul li {
  position: relative;
  padding-left: 1.5rem; /* Dịch văn bản sang phải để nhường chỗ cho bullet */
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
/* Dấu gạch đầu dòng hình kim cương màu Cam cho Robusta (Khối tối) */
.caphe-contrast-desc-dark ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55rem; /* Căn chỉnh vị trí so với dòng chữ đầu tiên */
  width: 6px;
  height: 6px;
  background-color: var(--color-accent, #f89326);
  transform: rotate(45deg); /* Xoay 45 độ tạo hình kim cương */
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(248, 147, 38, 0.4); /* Tạo hiệu ứng phát sáng nhẹ */
}
/* Dấu gạch đầu dòng hình kim cương màu Xanh cho Arabica (Khối sáng) */
.caphe-contrast-desc-light ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-brand, #4a9220);
  transform: rotate(45deg);
  border-radius: 1px;
}
.caphe-contrast-desc-liberica {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #c9d6cf;
  text-align: justify;
}
/* Dấu gạch đầu dòng hình kim cương màu Vàng Hổ Phách cho Liberica */
.caphe-contrast-desc-liberica ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background-color: #e5a93b;
  transform: rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(229, 169, 59, 0.4);
}


/* -------------- style ket hop  */
.caphe-dac-tinh-section {
  position: relative;
  padding: 6rem 0;
  border-top: 1px solid var(--border-color, #bcddbd);
  border-bottom: 1px solid var(--border-color, #bcddbd);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lab Card styles */
.lab-card {
  position: relative;
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lab-card:hover {
  transform: translateY(-8px);
}

.lab-card.lab-card-dark {
  background-color: #1c2e24;
  border: 1px solid rgba(248, 147, 38, 0.15);
  color: #e2e8f0;
}

.lab-card.lab-card-dark:hover {
  border-color: var(--color-accent, #f89326);
  box-shadow: 0 20px 45px rgba(248, 147, 38, 0.15);
}

.lab-card.lab-card-light {
  background-color: #faf9f6;
  border: 1px solid rgba(74, 146, 32, 0.15);
  color: #2d3748;
}

.lab-card.lab-card-light:hover {
  border-color: var(--color-brand, #4a9220);
  box-shadow: 0 20px 45px rgba(74, 146, 32, 0.12);
}

.lab-card.lab-card-liberica {
  background-color: #5d4122;
  border: 1px solid rgba(229, 169, 59, 0.15);
  color: #e2e8f0;
}

.lab-card.lab-card-liberica:hover {
  border-color: #e5a93b;
  box-shadow: 0 20px 45px rgba(229, 169, 59, 0.15);
}

.lab-watermark {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.03;
}

.lab-card-dark .lab-watermark {
  color: #ffffff;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  fill: transparent;
}

.lab-card-light .lab-watermark {
  color: #000000;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
  fill: transparent;
}

.lab-card-liberica .lab-watermark {
  color: #ffffff;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  fill: transparent;
}

/* Image Widescreen Frame */
.lab-img-frame {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 auto 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lab-card-dark .lab-img-frame {
  border: 2px solid var(--color-accent, #f89326);
}

.lab-card-light .lab-img-frame {
  border: 2px solid var(--color-brand, #4a9220);
}

.lab-card-liberica .lab-img-frame {
  border: 2px solid #e5a93b;
}
.lab-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.lab-card:hover .lab-img-frame img {
  transform: scale(1.08);
}

.lab-variety-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.lab-card-dark .lab-variety-badge {
  background-color: rgba(248, 147, 38, 0.1);
  color: var(--color-accent, #f89326);
  border: 1px solid rgba(248, 147, 38, 0.2);
}

.lab-card-light .lab-variety-badge {
  background-color: rgba(74, 146, 32, 0.1);
  color: var(--color-brand, #4a9220);
  border: 1px solid rgba(74, 146, 32, 0.2);
}

.lab-card-liberica .lab-variety-badge {
  background-color: rgba(229, 169, 59, 0.1);
  color: #e5a93b;
  border: 1px solid rgba(229, 169, 59, 0.2);
}

.lab-variety-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.lab-card-dark .lab-variety-name {
  color: #ffffff;
}

.lab-card-light .lab-variety-name {
  color: #1a202c;
}

.lab-card-liberica .lab-variety-name {
  color: #ffffff;
}

.lab-details-box {
  text-align: left;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
  padding-top: 1.5rem;
}

.lab-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.1);
}

.lab-detail-row:last-child {
  border-bottom: none;
}

.lab-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
}

.lab-card-light .lab-detail-label {
  color: #718096;
}

.lab-detail-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.lab-card-dark .lab-detail-value {
  color: #e2e8f0;
}

.lab-card-light .lab-detail-value {
  color: #2d3748;
}

.lab-card-liberica .lab-detail-value {
  color: #f7fafc;
}

.lab-compare-trigger-wrapper {
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.lab-btn-compare {
  background-color: #4a9220; /* Luôn giữ màu nền xanh lá */
  color: #ffffff;
  border: 1px solid #4a9220; /* Viền tiệp màu nền */
  padding: 0.85rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(74, 146, 32, 0.12); /* Bóng đổ nhẹ cố định */

  /* Các thuộc tính vô hiệu hóa tương tác click chuột */
  cursor: default; /* Đổi con trỏ chuột thành dạng mặc định thay vì bàn tay */
  pointer-events: none; /* Khóa tương tác chuột hoàn toàn (không click, không hover được) */
}

.lab-compare-collapse {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.lab-compare-image-container {
  /* max-width: 900px; */
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lab-compare-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.lab-compare-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}

/* ====================================================================== */
/* SECTION 7: HO-TO SEED TO CUP (TIMELINE / PROCESS STEPS)               */
/* ====================================================================== */

.caphe-timeline-section {
  padding: 6rem 0;
  background-color: #fbf9f6; /* Soft ivory background */
  border-top: 1px solid var(--border-color, #bcddbd);
  border-bottom: 1px solid var(--border-color, #bcddbd);
  overflow: hidden;
}

.caphe-timeline-wrapper {
  position: relative;
  padding: 4rem 0;
  margin-top: 2rem;
}

/* Vertical central line */
.caphe-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color, #bcddbd);
  transform: translateX(-50%);
  z-index: 1;
}

.caphe-timeline-item {
  position: relative;
  margin-bottom: 7rem; /* Generous spacing between steps */
  opacity: 0.25; /* Low opacity when un-intersected */
  transform: scale(0.96);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.caphe-timeline-item:last-child {
  margin-bottom: 0;
}

/* Highlighting Active Step */
.caphe-timeline-item.active {
  opacity: 1;
  transform: scale(1);
}

/* Central Dot Styling */
.caphe-timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-color, #bcddbd);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Inner thin circle (Double circle effect) */
.caphe-timeline-dot::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  border: 1px solid rgba(74, 146, 32, 0.12); /* Subtle inner border */
  transition: all 0.4s ease;
  z-index: 1;
}

.caphe-timeline-dot-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f4f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.caphe-timeline-dot-number {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand, #4a9220);
  transition: all 0.4s ease;
  line-height: 1;
}

/* Highlighting Active Step */
.caphe-timeline-item.active .caphe-timeline-dot {
  border-color: var(--color-accent, #f89326);
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 20px rgba(248, 147, 38, 0.35), 0 6px 15px rgba(0, 0, 0, 0.08);
}

.caphe-timeline-item.active .caphe-timeline-dot::before {
  border-color: rgba(248, 147, 38, 0.2);
}

.caphe-timeline-item.active .caphe-timeline-dot-inner {
  background-color: var(--color-accent, #f89326);
}

.caphe-timeline-item.active .caphe-timeline-dot-number {
  color: #ffffff;
}

/* Image and Number Layouts */
.caphe-timeline-img-box {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 4/3; */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, #bcddbd);
  background-color: #f5f5f5;
  transition: all 0.6s ease;
}

.caphe-timeline-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) blur(1px); /* Muted state */
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.caphe-timeline-item.active .caphe-timeline-img-box img {
  filter: grayscale(0%) blur(0);
  /* transform: scale(1.04); */
}

.caphe-timeline-number {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Text Box Layouts */
.caphe-timeline-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.caphe-timeline-sub {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 0.7rem;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent, #0f2b5c);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.caphe-timeline-title {
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 1.9rem;
  font-weight: 800;
  color: #f89326;
  margin-bottom: 0px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.caphe-timeline-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5e6d77;
  text-align: justify;
}

/* LEFT TIMELINE ITEM */
.caphe-timeline-left .row {
  flex-direction: row;
}

.caphe-timeline-left .caphe-timeline-text-box {
  padding-left: 5rem;
}

.caphe-timeline-left .caphe-timeline-img-box {
  border-radius: 40px 10px 40px 10px; /* Elegant leaf shape border radius */
}

/* RIGHT TIMELINE ITEM */
.caphe-timeline-right .row {
  flex-direction: row-reverse;
}

.caphe-timeline-right .caphe-timeline-text-box {
  padding-right: 5rem;
  text-align: right;
}

.caphe-timeline-right .caphe-timeline-desc {
  text-align: right;
}

.caphe-timeline-right .caphe-timeline-img-box {
  border-radius: 10px 40px 10px 40px;
}

.caphe-timeline-right .caphe-timeline-number {
  left: 1.5rem;
  right: auto;
}

/* RESPONSIVE TIMELINE */
@media (max-width: 991px) {
  .caphe-timeline-left .caphe-timeline-text-box {
    padding-left: 3rem;
  }
  .caphe-timeline-right .caphe-timeline-text-box {
    padding-right: 3rem;
  }
}

@media (max-width: 767px) {
  .caphe-timeline-line {
    left: 24px;
    transform: none;
  }

  .caphe-timeline-dot {
    left: 24px;
    top: 2.5rem;
    transform: translate(-50%, -50%);
  }

  .caphe-timeline-item {
    margin-bottom: 5rem;
  }

  .caphe-timeline-left .row,
  .caphe-timeline-right .row {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .caphe-timeline-img-col,
  .caphe-timeline-text-col {
    width: 100%;
  }

  .caphe-timeline-img-box {
    margin-left: 4rem;
    width: calc(100% - 4rem);
    /* aspect-ratio: 16/10; */
  }

  .caphe-timeline-text-box {
    padding: 1.5rem 0 0 4rem !important;
    text-align: left !important;
  }

  .caphe-timeline-desc {
    text-align: justify !important;
  }

  .caphe-timeline-right .caphe-timeline-number {
    right: 1.5rem;
    left: auto;
  }
}
/* ------------------------------------------------ */
/* SECTION NHÀ MÁY */
/* -------------------------------------------------- */
.caphe-ecosystem-light {
    background-color: #ffffff; /* Nền trắng sạch sẽ */
    color: #232323;
}

/* Font viết tay màu xanh lá thương hiệu */
.caphe-cursive-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    color: #4a9220; 
    margin: 0;
    line-height: 1.1;
}

.caphe-cursive-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #555555;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
}

.caphe-eco-item {
text-align: center;
}

  /* Khối vòng tròn icon vẽ phác thảo đặc thù */
.caphe-eco-icon-circle {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.25rem;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

  /* Vẽ 2 lớp vòng tròn nhấp nhô phác thảo nét chì */
  .caphe-eco-icon-circle::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid rgba(74, 146, 32, 0.25); /* Viền màu xanh lá nhạt */
    border-radius: 52% 48% 51% 49% / 49% 51% 48% 52%; /* Tạo độ méo tự nhiên */
    transform: rotate(3deg);
    pointer-events: none;
    transition: transform 0.4s ease;
  }

  .caphe-eco-icon-circle::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border: 1.2px solid rgba(74, 146, 32, 0.15);
    border-radius: 48% 52% 49% 51% / 52% 49% 51% 48%; /* Tạo độ méo tự nhiên ngược lại */
    transform: rotate(-5deg);
    pointer-events: none;
    transition: transform 0.4s ease;
  }

  /* Vòng tròn màu xanh lá bên trong */
  .caphe-eco-icon-inner {
    width: 56px;
    height: 56px;
    background: #4a9220; /* Xanh lá thương hiệu HAGL */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }

  /* Tương tác khi di chuột */
  .caphe-eco-item:hover .caphe-eco-icon-inner {
    transform: scale(1.08);
  }

  .caphe-eco-item:hover .caphe-eco-icon-circle::before {
    transform: rotate(15deg);
  }

  .caphe-eco-item:hover .caphe-eco-icon-circle::after {
    transform: rotate(-15deg);
  }

  /* Tiêu đề & nội dung mô tả từng nhà máy */
  .caphe-eco-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
  }

  .caphe-eco-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #556270;
    max-width: 290px;
    margin: 0 auto;
  }

  /* Khung bọc hạt cà phê hình tròn */
  .caphe-eco-bean-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    margin: 0 auto;
  }

  /* Vẽ 2 lớp vòng tròn nhấp nhô phác thảo nét chì xung quanh hạt cà phê trung tâm */
  .caphe-eco-bean-wrapper::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px solid rgba(74, 146, 32, 0.2); /* Viền màu xanh lá nhạt */
    border-radius: 51% 49% 52% 48% / 48% 52% 49% 51%; /* Độ méo phác thảo */
    transform: rotate(2deg);
    pointer-events: none;
    transition: transform 0.6s ease;
  }

  .caphe-eco-bean-wrapper::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1.2px solid rgba(74, 146, 32, 0.1);
    border-radius: 49% 51% 48% 52% / 52% 48% 51% 49%;
    transform: rotate(-3deg);
    pointer-events: none;
    transition: transform 0.6s ease;
  }

  .caphe-eco-bean-img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Đảm bảo bản thân hình ảnh được bo tròn hoàn toàn */
    object-fit: cover; /* Đảm bảo ảnh phủ kín khung tròn mà không bị bóp méo hình dạng */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.06));
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .caphe-eco-bean-wrapper:hover .caphe-eco-bean-img {
    transform: scale(1.08) rotate(3deg);
  }

  .caphe-eco-bean-wrapper:hover::before {
    transform: rotate(12deg);
  }

  .caphe-eco-bean-wrapper:hover::after {
    transform: rotate(-12deg);
  }

  /* Responsive di động */
  @media (max-width: 991px) {
   
    .caphe-eco-item {
      max-width: 450px;
      margin: 0 auto 3rem !important;
    }
  }
/* --------------------------- */
/* Section ket trang cua page cafpe */
  /* Testimonials Area Layout */
  .kt-testimonials-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 60px 0 20px;
    z-index: 5;
  }

  /* Center Testimonial Card (Enlarged) */
  .kt-card.featured {
    position: relative;
    padding: 105px 50px 55px; /* Increased top padding to accommodate larger avatar */
    max-width: 680px; /* Increased width from 530px to 680px */
    width: 100%;
    background: #ffffff;
    border-radius: 8px; /* Slightly adjusted modern rounding */
    
    /* Card border color in base-color (PrimeCoffee Blue #0f2b5c) */
    /* border: 3px solid var(--base-color, #0f2b5c); */
    
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.08);
    z-index: 10;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.4s ease;
  }

  .kt-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 45px 95px rgba(0, 0, 0, 0.12);
  }

  /* Avatar Image Container with primary-color border (HAGL Green #4a9220) */
  .kt-avatar-container {
    position: absolute;
    top: -70px; /* Positioned half above the card */
    left: 50%;
    transform: translateX(-50%);
    width: 140px; /* Increased diameter from 110px to 140px */
    height: 140px; /* Increased diameter from 110px to 140px */
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    
    /* Border color in primary-color (HAGL Green #4a9220) */
    /* border: 3px solid var(--base-color); */   
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 12;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  }

  .kt-card.featured:hover .kt-avatar-container {
    transform: translateX(-50%) scale(1.05);
  }

  .kt-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .kt-card-text {
    font-size: 16px; /* Proportional font size increase */
    color: #556270;
    line-height: 1.75;
    margin-top: 0;
    margin-bottom: 35px;
    font-weight: 400;
  }
   /* Blockquote & Quote Icons Styling */
  .kt-blockquote {
    position: relative;
    margin: 0;
    padding: 0 45px;
    display: block;
  }
  .kt-blockquote::before {
    content: "“";
    position: absolute;
    top: -25px;
    left: 10px;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color, #4a9220);
    opacity: 0.25;
    line-height: 1;
  }
  .kt-blockquote::after {
    content: "”";
    position: absolute;
    bottom: -55px;
    right: 10px;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color, #4a9220);
    opacity: 0.25;
    line-height: 1;
  }
  /* Micro-animation Keyframes */
  @keyframes kt-drift-slow {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-16px) translateX(12px); }
  }

  @keyframes kt-drift-med {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-24px) translateX(-14px); }
  }

  /* Responsive styling */
  @media (max-width: 991px) {
    .kt-testimonials-section {
      padding: 80px 0;
    }
    .kt-testimonials-container {
      padding: 50px 20px 20px;
    }
    .kt-title-container {
      margin-bottom: 60px;
      padding: 0 20px;
    }
  }

  @media (max-width: 768px) {
    .kt-card.featured {
      padding: 95px 10px 45px;
    }
    .kt-avatar-container {
      width: 120px;
      height: 120px;
      top: -60px;
      border-width: 5px;
    }
  }

  @media (max-width: 480px) {
    .kt-card-text {
      font-size: 14.5px;
      margin-bottom: 25px;
    }
    .kt-avatar-container {
      width: 100px;
      height: 100px;
      top: -50px;
      border-width: 4px;
    }
  }