/* Trang nganh (/cafe...): tin tuc, chi tiet bai viet, khoi "San sang dung thu" */

html { scroll-behavior: smooth; }
#tinh-nang, #bang-gia, #khach-hang, #tin-tuc { scroll-margin-top: 90px; }

/* Feedback theo nganh: it hon 4 the thi can giua */
.testimonials .test-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.testimonials .test-card { flex: 0 1 calc((100% - 60px) / 4); }
@media (max-width: 768px) { .testimonials .test-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 480px) { .testimonials .test-card { flex-basis: 100%; } }

/* ---------- TIN TUC CUA NGANH ---------- */
.industry-news { background: var(--green-bg); padding: 48px 24px; }
.industry-news--related { background: #fff; padding-top: 8px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 14px;
  border: 1.5px solid var(--border); overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 10px 28px rgba(26, 127, 60, .14); transform: translateY(-3px); }
.news-thumb { aspect-ratio: 5 / 3; overflow: hidden; background: var(--green-bg); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.news-title {
  font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .news-title { color: var(--green); }
.news-desc {
  font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { font-size: 13px; font-weight: 700; color: var(--green); }

/* ---------- CHI TIET BAI VIET ---------- */
.post-preview-bar {
  position: sticky; top: 0; z-index: 1000; background: #fef3c7; color: #92400e;
  text-align: center; font-size: 13px; padding: 10px 16px; border-bottom: 1px solid #fcd34d;
}
.industry-article { padding: 120px 24px 40px; background: #fff; }
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-breadcrumb { font-size: 13px; color: var(--text2); display: flex; gap: 8px; margin-bottom: 14px; }
.article-breadcrumb a { color: var(--green); font-weight: 600; text-decoration: none; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--text); margin: 0 0 12px; }
.article-meta { display: flex; gap: 18px; font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.article-meta i { margin-right: 4px; }
.article-image { border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.article-image img { width: 100%; height: auto; display: block; }
.article-content { font-size: 16px; line-height: 1.8; color: #2d3748; overflow-wrap: break-word; }
.article-content h2 { font-size: 24px; font-weight: 800; margin: 32px 0 12px; color: var(--text); }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.article-content a { color: var(--green); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; display: block; overflow-x: auto; }
.article-content td, .article-content th { border: 1px solid var(--border); padding: 8px 10px; }
.article-content blockquote { border-left: 4px solid var(--green); background: var(--green-bg); margin: 0 0 16px; padding: 12px 18px; }
.article-cta {
  margin-top: 36px; padding: 22px 24px; border-radius: 14px; background: var(--green-bg);
  border: 1.5px solid rgba(26, 127, 60, .2); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.article-cta strong { display: block; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.article-cta span { font-size: 13px; color: var(--text2); }
.article-cta .btn-primary { border: none; cursor: pointer; white-space: nowrap; font-family: inherit; }

/* ---------- SAN SANG DUNG THU (nua tren nen sang, nua duoi trung mau footer) ---------- */
.cta-signup {
  padding: 40px 24px 0;
  background: linear-gradient(to bottom, #f3f8f5 0, #f3f8f5 58%, #252a37 58%, #252a37 100%);
}
.cta-signup-box {
  max-width: 1240px; margin: 0 auto; padding: 56px 40px 60px;
  background: linear-gradient(120deg, #0d4a26 0%, #155f2e 55%, #1a7f3c 100%);
  border-radius: 110px 0 110px 0;
  text-align: center; color: #fff;
  box-shadow: 0 24px 50px rgba(13, 74, 38, .25);
}
.cta-signup-box h2 { font-size: 36px; font-weight: 800; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.cta-signup-box p { font-size: 18px; color: rgba(255, 255, 255, .9); margin: 0 0 32px; }
.cta-signup-form { display: flex; gap: 28px; max-width: 860px; margin: 0 auto; }
.cta-signup-input {
  flex: 1; min-width: 0; height: 64px; border: none; border-radius: 999px; padding: 0 30px;
  font-size: 17px; font-family: inherit; color: var(--text); background: #fff; outline: none;
}
.cta-signup-input:focus { box-shadow: 0 0 0 4px rgba(245, 158, 11, .45); }
.cta-signup-btn {
  height: 64px; padding: 0 56px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 18px; font-weight: 700; font-family: inherit; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
  transition: transform .15s, box-shadow .15s;
}
.cta-signup-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(249, 115, 22, .45); }
.cta-signup-btn:disabled { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-signup-box { border-radius: 60px 0 60px 0; padding: 44px 24px; }
  .cta-signup-box h2 { font-size: 26px; }
  .cta-signup-box p { font-size: 15px; }
  .cta-signup-form { gap: 14px; }
  .cta-signup-btn { padding: 0 28px; }
}
@media (max-width: 600px) {
  .industry-news { padding: 36px 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .industry-article { padding: 100px 16px 28px; }
  .article-title { font-size: 24px; }
  .article-content { font-size: 15px; }
  .article-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-signup { padding: 28px 16px 0; }
  .cta-signup-box { border-radius: 36px 0 36px 0; padding: 34px 18px; }
  .cta-signup-box h2 { font-size: 21px; }
  .cta-signup-form { flex-direction: column; }
  .cta-signup-input, .cta-signup-btn { height: 52px; font-size: 16px; }
}
