/* === Khung tổng của mỗi bài viết === */
.tintuc .box-blog-post {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  color: #000;
}

/* Hover toàn bộ khung */
.tintuc .box-blog-post:hover {
  background-color: var(--Dark-Sage-Green);
  color: #fff;
}

/* === Hình ảnh bo góc dưới bên trái === */
.tintuc .box-image .image-cover {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 100px;
  padding-top: 56.25%;
}

/* Ảnh bên trong cover */
.tintuc .box-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: 100px;
}

/* === Nội dung bài viết === */
.tintuc .box-text {
  padding: 20px;
}

/* Tiêu đề bài viết */
.tintuc .post-title a {
  color: #256029;
  font-weight: 700;
  font-size: 18px;
  display: block;
  text-align: left;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

/* Mô tả bài viết */
.tintuc .from_the_blog_excerpt {
  font-size: 15px;
  color: #555;
  text-align: left;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

/* Nút xem thêm */
.tintuc .button.primary {
  background: none;
  color: var(--Goldenrod);
  font-weight: bold;
  font-size: 14px;
  padding: 0;
  float: right;
  transition: color 0.3s ease;
}

/* Thêm mũi tên bên phải chữ 'XEM THÊM' */
.tintuc .button.primary::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Hover riêng nút: mũi tên nhích sang phải */
.tintuc .button.primary:hover::after {
  transform: translateX(4px);
}

/* === Hover: Đổi toàn bộ chữ thành trắng khi hover khung === */
.tintuc .post-item:hover .post-title a,
.tintuc .post-item:hover .from_the_blog_excerpt,
.tintuc .post-item:hover {
  color: #ffffff !important;
}

/* Hover riêng nút 'Xem thêm' để nổi bật hơn */
.tintuc .post-item:hover .button.primary:hover {
  color: var(--Goldenrod) !important;
}

/* === Ngày tháng góc trái === */
.tintuc .post-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: white;
  border: 2px solid #256029;
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #256029;
  z-index: 2;
  line-height: 1.2;
}

.tintuc .is-divider {
  background-color: var(--Dark-Sage-Green) !important;
}

.tintuc .is-divider:hover {
  background-color: white !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .tintuc .box-text {
    padding: 15px;
  }

  .tintuc .post-title a {
    font-size: 16px;
  }

  .tintuc .from_the_blog_excerpt {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tintuc .post-title a {
    font-size: 15px;
  }

  .tintuc .from_the_blog_excerpt {
    font-size: 13px;
  }
}

/* Card cha */
.tt .post-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

/* Ảnh bên trái */
.tt .box-image {
    width: 40%;
    min-width: 120px;
    overflow: hidden;
    border-radius: 12px 12px 100px 0px;
}

.tt .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nội dung bên phải */
.tt .box-text {
/*     width: 60%; */
    padding: 0;
    text-align: left;
}

/* Tiêu đề */
.tt .post-title a {
    font-size: 18px;
    font-weight: bold;
    color: #1c6b3f;
    margin-bottom: 8px;
    display: inline-block;
    text-decoration: none;
}

/* Gạch ngang */
.tt .is-divider {
    width: 40px;
    height: 2px;
    background-color: #1c6b3f;
    margin: 8px 0;
}

/* Đoạn mô tả */
.tt .from_the_blog_excerpt {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Nút XEM THÊM */
.tt .button.is-link {
    font-size: 14px;
	float: right;
    color: #f39c12;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Thêm mũi tên bên phải chữ 'XEM THÊM' */
.tt .button.primary::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Hover riêng nút: mũi tên nhích sang phải */
.tt .button.primary:hover::after {
  transform: translateX(4px);
}

/* Ngày nổi góc trái */
.tt .badge.post-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: 2px solid #1c6b3f;
    border-radius: 6px;
    padding: 4px 6px;
    font-weight: bold;
    color: #1c6b3f;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hover toàn bộ khối post-item */
.tt .post-item:hover {
    background-color: var(--Dark-Sage-Green);
}

/* Khi hover thì đổi màu chữ tiêu đề sang trắng */
.tt .post-item:hover .post-title a {
    color: #fff;
}

/* Khi hover thì đổi màu mô tả sang trắng */
.tt .post-item:hover .from_the_blog_excerpt {
    color: #fff;
}

/* Giữ nguyên nút XEM THÊM không đổi màu */
.tt .post-item:hover .button.is-link {
    color: #f39c12; /* Giữ nguyên màu */
}

/* Nếu bạn muốn đổi màu divider khi hover (tuỳ chọn) */
.tt .post-item:hover .is-divider {
    background-color: #fff;
}

@media (max-width: 767px) {
  .tin-tuc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }

  .tin-tuc-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .tin-tuc-image {
    flex: 0 0 130px;
/*     height: 100px; */
    border-radius: 10px;
    overflow: hidden;
  }

  .tin-tuc-image img {
    width: 100%;
    height: 100%;
	border-radius: 12px 12px 60px 0px !important;
    object-fit: cover;
    display: block;
  }

  .tin-tuc-content {
    flex: 1;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .tin-tuc-content h4 a{
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--Dark-Sage-Green) !important;
    line-height: 1.4em;
  }

  .tin-tuc-content p {
    font-size: 12.5px;
    color: #444;
    margin: 0 0 10px;
    line-height: 1.4em;
  }

  .tin-tuc-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
  }

  .tin-tuc-date {
    color: #888;
  }

  .xem-them {
    color: var(--Goldenrod);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
  }

  .xem-them span {
    margin-left: 4px;
  }
}

