/* ==========================================================================
   CSS CHO TRANG IN ẤN SẢN XUẤT (THI_CONG, THI_CONGCT, CHITIET_THI_CONG)
   Tông màu chủ đạo: Xanh dương (#004b91, #0b4ea2, #0066cc) và Trắng (#ffffff, #f8fafc)
   Giao diện tinh gọn, thân thiện người dùng, tối ưu chuẩn SEO
   ========================================================================== */

:root {
  --iasx-primary: #004b91;
  --iasx-primary-dark: #072545;
  --iasx-primary-light: #0066cc;
  --iasx-accent: #0284c7;
  --iasx-bg-light: #f0f7ff;
  --iasx-bg-card: #ffffff;
  --iasx-text-main: #1e293b;
  --iasx-text-muted: #64748b;
  --iasx-border: #e2e8f0;
  --iasx-border-hover: #cbd5e1;
  --iasx-red: #dc2626;
  --iasx-shadow: 0 4px 14px rgba(0, 75, 145, 0.08);
  --iasx-shadow-hover: 0 10px 24px rgba(0, 75, 145, 0.15);
}

/* 1. HERO BANNER HEADER */
.iasx-hero-banner {
  background:
    linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
    url("https://media.istockphoto.com/id/1401343971/vi/anh/c%C3%B4ng-nh%C3%A2n-s%E1%BA%A3n-xu%E1%BA%A5t.jpg?s=2048x2048&w=is&k=20&c=gmgPcGGO7m5FcefeqwejhLC-4vHrsdg-76R8-4DGqsc=")
      no-repeat center center / cover;
  color: #ffffff;
  padding: 38px 0 34px;
  position: relative;
  overflow: hidden;
}

.iasx-hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  background: radial-gradient(
    circle at right center,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.iasx-breadcrumb-nav {
  margin-bottom: 12px;
}

.iasx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iasx-breadcrumb a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s;
}

.iasx-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.iasx-breadcrumb .sep {
  color: #64748b;
  font-size: 11px;
}

.iasx-breadcrumb .active {
  color: #ffffff;
  font-weight: 600;
}

.iasx-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (min-width: 768px) {
  .iasx-page-title {
    font-size: 30px;
  }
}

.iasx-hero-subtitle {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

/* Badges cam kết */
.iasx-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.iasx-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  color: #f8fafc;
  backdrop-filter: blur(4px);
}

.iasx-badge-item i {
  color: #38bdf8;
}

/* 2. TAB LỌC DANH MỤC */
.iasx-filter-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--iasx-border);
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 60px;
  z-index: 10;
}

.iasx-cat-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.iasx-cat-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.iasx-cat-scroll-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.iasx-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid var(--iasx-border);
  border-radius: 24px;
  color: var(--iasx-text-main);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.iasx-cat-btn:hover {
  background: #e0f2fe;
  color: var(--iasx-primary);
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.iasx-cat-btn.active {
  background: var(--iasx-primary);
  color: #ffffff !important;
  border-color: var(--iasx-primary);
  box-shadow: 0 3px 8px rgba(0, 75, 145, 0.25);
}

/* 3. CARD SẢN PHẨM / DANH MỤC */
.iasx-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 576px) {
  .iasx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .iasx-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .iasx-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.iasx-card {
  background: #ffffff;
  border: 1px solid var(--iasx-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--iasx-shadow);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.iasx-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--iasx-shadow-hover);
  border-color: #93c5fd;
}

.iasx-card-thumb {
  width: 100%;
  height: 205px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.iasx-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.iasx-card:hover .iasx-card-thumb img {
  transform: scale(1.06);
}

.iasx-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--iasx-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.iasx-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.iasx-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--iasx-text-main);
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iasx-card-title a {
  color: var(--iasx-text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.iasx-card-title a:hover {
  color: var(--iasx-primary);
}

.iasx-card-desc {
  font-size: 13px;
  color: var(--iasx-text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iasx-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--iasx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iasx-price-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--iasx-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

.iasx-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #f0f7ff;
  color: var(--iasx-primary) !important;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.iasx-card-btn:hover {
  background: var(--iasx-primary);
  color: #ffffff !important;
  border-color: var(--iasx-primary);
}

/* 4. BANNER QUY TRÌNH SẢN XUẤT */
.iasx-process-box {
  background: #f8fafc;
  border: 1px solid var(--iasx-border);
  border-radius: 14px;
  padding: 26px 20px;
  margin: 36px 0;
}

.iasx-process-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--iasx-primary);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.iasx-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.iasx-process-step {
  background: #ffffff;
  border: 1px solid var(--iasx-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.iasx-process-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--iasx-primary);
  font-weight: 800;
  margin: 0 auto 10px;
  font-size: 15px;
}

.iasx-process-step h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--iasx-text-main);
}

.iasx-process-step p {
  font-size: 12.5px;
  color: var(--iasx-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* 5. BOX HOTLINE TƯ VẤN BÁO GIÁ */
.iasx-cta-box {
  background: linear-gradient(135deg, #004b91 0%, #0066cc 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0;
}

.iasx-cta-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.iasx-cta-info p {
  font-size: 14px;
  color: #e2e8f0;
  margin: 0;
}

.iasx-cta-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.iasx-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--iasx-primary) !important;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s,
    background 0.2s;
}

.iasx-cta-call:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.iasx-cta-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    transform 0.2s,
    background 0.2s;
}

.iasx-cta-zalo:hover {
  background: #0077b5;
  transform: translateY(-2px);
}

/* 6. CHI TIẾT SẢN PHẨM / BÀI VIẾT (CHITIET_THI_CONG) */
.iasx-detail-wrapper {
  padding: 30px 0 50px;
  background: #ffffff;
}

.iasx-detail-content {
  background: #ffffff;
  line-height: 1.8;
  font-size: 15.5px;
  color: #334155;
}

.iasx-detail-content p {
  margin-bottom: 16px;
}

.iasx-detail-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 16px auto;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.iasx-detail-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--iasx-primary);
  margin: 28px 0 14px;
  border-left: 4px solid var(--iasx-primary);
  padding-left: 12px;
}

.iasx-detail-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--iasx-text-main);
  margin: 22px 0 10px;
}

.iasx-detail-sapo {
  background: #f0f7ff;
  border-left: 4px solid var(--iasx-primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Sidebar trang chi tiết & danh mục */
.iasx-sidebar-sticky {
  /* Mặc định trên màn hình nhỏ hiển thị tự nhiên */
  position: static;
}

@media (min-width: 992px) {
  .iasx-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 65px;
    z-index: 15;
    transition: top 0.2s ease;
  }
}

.iasx-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--iasx-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.iasx-sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--iasx-primary);
  border-bottom: 2px solid var(--iasx-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iasx-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iasx-sidebar-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--iasx-border);
}

.iasx-sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.iasx-sidebar-link {
  color: var(--iasx-text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.iasx-sidebar-link:hover {
  color: var(--iasx-primary);
}

.iasx-sidebar-link .badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

/* Khối bài viết liên quan dưới chân trang chi tiết */
.iasx-related-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--iasx-border);
}

.iasx-related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--iasx-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}
