/* ===== HERO ===== */
.ind-hero{
  position: relative;
  background: #0b1326;
  color:#fff;
  padding: 80px 0;
  z-index: 1;
  overflow:hidden;
}
.ind-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg, none);
  background-size: cover;
  background-position:center;
  filter: brightness(0.7); /* lớp phủ đen */
}
.ind-hero::after{
  content:""; 
  position:absolute; 
  inset:0; 
  background: rgba(0,0,0,.35);
}
.ind-hero__inner{ 
  position:relative; 
  z-index:1; 
  text-align:center; 
}
.ind-hero__title{ 
  margin:0 0 8px; 
  color:#fff; 
  font-weight:800;
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3rem);
}
/*.ind-hero__excerpt{ margin:0 auto; max-width:780px; color:#fff; opacity:.95; }*/

/* ===== Sticky TOC ===== */
.ind-toc{
  display:flex; 
  justify-content:center;
  column-gap: clamp(16px, 5vw, 80px);
  row-gap: 8px;
  align-items:center;
  border-bottom:1px solid var(--color-border);
  padding:12px 0; 
  overflow-x:auto; 
  position: sticky !important;
  top: 0px !important; /* luôn dính trên cùng */
  background:#fff;
  z-index: 100;                    /* nằm trên nội dung */
  flex-wrap: wrap;        
  overflow-x: visible;
}
.ind-toc__links{
  display:flex; gap:80px; justify-content:center; align-items:center;
}
.ind-toc a{
  display:inline-block; 
  padding:10px 6px; 
  white-space:normal;
  color:var(--color-text); 
  text-decoration:none; 
  font-weight:600;
  position: relative;
}
.ind-toc a.active{ 
  color: var(--color-primary);
}
.ind-toc a:hover{ color:var(--color-primary); }

/* ===== Header in Industry page: relative, no reveal ===== */
body.industry-toc-owns-top .site-header,
body.industry-toc-owns-top header.header,
body.industry-toc-owns-top .nx-header {
  position: relative !important;
  top: 0 !important;
  z-index: 3000 !important;
  left: auto; 
  right: auto;
  transform: none !important;
  transition: none !important;
}
body.industry-toc-owns-top .main-nav .menu > li > .sub-menu{
  z-index: 3100 !important;
}
/* Nếu có admin bar thì đẩy TOC xuống dưới */
body.admin-bar .ind-toc{
  top: calc(var(--admin-offset, 0px));
}
/* Trang Industry: triệt tiêu mọi spacer/padding-top cho header */
body.industry-toc-owns-top{ padding-top:0 !important; }
body.industry-toc-owns-top .site-header{ margin-top:0 !important; }
body.industry-toc-owns-top .header-spacer,
body.industry-toc-owns-top .site-header-spacer,
body.industry-toc-owns-top .sticky-spacer,
body.industry-toc-owns-top .sticky-placeholder,
body.industry-toc-owns-top [data-sticky-header-placeholder],
body.industry-toc-owns-top [data-sticky-placeholder]{
  display:none !important; height:0 !important; padding:0 !important; margin:0 !important;
}
/* 1A) Gỡ chặn sticky ngay trên BODY của trang Industry */
body.industry-toc-owns-top{
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* 1B) Nếu theme set overflow trên HTML, gỡ theo điều kiện trang Industry */
html:has(body.industry-toc-owns-top){
  overflow: auto !important;   /* hoặc visible */
  overflow-y: auto !important;
}

/* 1C) Phòng thêm: gỡ overflow/contain/transform ở wrapper thường gặp */
body.industry-toc-owns-top .site,
body.industry-toc-owns-top .site-main,
body.industry-toc-owns-top .content-area,
body.industry-toc-owns-top #content,
body.industry-toc-owns-top .page,
body.industry-toc-owns-top .wp-site-blocks{
  overflow: visible !important;
  contain: none !important;
  transform: none !important;
}

/* 1D) TOC sticky đọc đúng biến top */
.ind-toc{
  position: sticky;
  top: var(--sticky-top, 0px);
  z-index: 300;
  background:#fff;
}


/* ===== Sections ===== */
.ind-block{ 
  padding:56px 0;
}
.ind-title{ 
  text-align:center; 
  margin:0 0 48px; 
  font-weight:800; 
}
/*intro*/
.ind-intro__content {
  max-width: 850px;        /* Giới hạn chiều rộng để dễ đọc */
  margin: 0 auto;          /* Căn giữa khối nội dung */
  text-align: center;      /* Căn giữa chữ */
  line-height: 1.8;
  font-size: 1.05rem;
}
.btn-cta {
  display: flex;
  width: fit-content;
  align-items: center;
  margin: 24px auto 0; 
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}

.btn-cta:hover {
  background: var(--color-primary-hover);
}


/* ===== Key Challenges ===== */
.ind-challenge-list{ 
  max-width:760px; 
  margin:0 auto; 
  display:grid; 
  gap:16px; 
}
.ind-challenge-item{
  display:flex; 
  gap:16px; 
  align-items:center; 
  padding:14px 16px;
  background:var(--color-bg-soft); 
  border:1px solid #dbe3ef;
  border-radius:4px;
}
.ind-challenge-text{ color:var(--color-texts); }

/* ===== Materials ===== */
.ind-materials{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:30px;
  width:100%;
  margin:0 auto;
  justify-content:center; 
}
.ind-material{
  text-align:center;
  min-width: 0;
}
.ind-material__thumb{
  background:#fff;
  border:none;
  border-radius:4px;
  padding:0;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow:0 2px 6px rgba(0,0,0,.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ind-material__thumb img{
  display:block; 
  width:100%; 
  height:auto; 
  border-radius:4px;
  object-fit: cover;
}
.ind-material__ph{ 
  display:block; 
  width:100%; 
  padding-top:66%; 
  border-radius:4px; 
}
.ind-material__name{
  margin-top:12px;
  font-weight:600;
}

@media (max-width:1024px){
  .ind-materials{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width:640px){
  .ind-materials{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Our Approach ===== */

/* ===== System Benefits ===== */
.ind-benefits{
  display:grid; 
  grid-template-columns:repeat(4,minmax(180px,1fr)); 
  gap:12px; 
  max-width:1100px; 
  margin:0 auto;
}
.ind-benefit{
  text-align:center; 
  background:#fff; 
  border:none; 
  padding:18px 14px;
}
.ind-benefit__icon img{ 
  width:100px; 
  height:auto; 
  display:block; 
  margin:4px auto 10px; 
}
.ind-benefit__icon--placeholder{ 
  display:inline-block; 
  width:100px; 
  height:100px; 
  background:var(--color-bg-soft); 
  border-radius:50%; }
.ind-benefit__title{ 
  margin:0 0 6px; 
  font-size:16px; 
  font-weight:700; 
}
.ind-benefit__desc{ 
  margin:0; 
  color:var(--color-muted); 
  font-size:0.875rem; 
}

/* ===== Key Applications (cards) ===== */
.ind-apps{
  background: #FFF;
}
.ind-card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.ind-card{
  display: flex;
  flex-direction: column;
  background:#fff; border:1px solid #e7ebf3; border-radius:4px; overflow:hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: all 0.25s ease;
  cursor: pointer;
}
.ind-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary); 
}
.ind-card__link{
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0 */
  z-index: 10;
  /* Ẩn text của link phủ */
  text-indent: -9999px;
  overflow: hidden;
  pointer-events: none;
}
.ind-card:hover .ind-card__link {
  pointer-events: auto;
}

.ind-card__media{
  aspect-ratio: 16/9;       /* hoặc 4/3 tùy bạn */
  overflow: hidden;
}
.ind-card__media img{ 
  width:100%; 
  height:100%;
  object-fit: cover; 
  display:block; }
.ind-card__ph{ display:block; width:100%; padding-top:58%; background:#edf1f7; }
.ind-card__body{ 
  display: flex;
  flex-direction: column;
  padding:14px 14px 12px;
  flex: 1;
 }
.ind-card__title{ margin:0 0 6px; font-weight:800; font-size:16px; }
.ind-card__title a{ color:inherit; text-decoration:none; }
.ind-card__excerpt{ 
  margin:0 0 10px; 
  color:var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* đổi 2–4 tùy ý */
  line-clamp: 3;             /* standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3); }
.ind-card__more{ 
  display:inline-flex; 
  align-self: flex-end;
  gap:8px; 
  align-items:center;
  text-decoration:none; 
  font-weight:400; 
  margin-top: auto;
  color: var(--color-primary);
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .ind-benefits{ grid-template-columns:repeat(2,1fr); }
  .ind-approach{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .ind-card-grid{ grid-template-columns:1fr; }
}



/* ===== Single-Industry: Header = in-flow (non-sticky) ===== */
/* Ổn định hàng actions để icon không phình, nút không lệch */
body.industry-toc-owns-top .search-icon {
  width: 23px !important;      /* giữ kích thước cố định */
  height: 23px !important;
  flex-shrink: 0;
  padding: 0 !important;
  margin-right: 6px !important;
  display: block;
}
body.industry-toc-owns-top .header-actions .btn-cta{
  margin: 0 !important;
  padding: 10px 12px !important;
}
/* ===== MOBILE MENU: full-width Contact Us button ===== */
@media (max-width: 991.98px) {

  /* khối chứa các nút dưới cùng */
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 16px;
    background: #fff;
  }

  /* nút Contact Us chiếm trọn hàng */
  .mobile-actions .btn-cta,
  .mobile-actions a.btn-cta {
    display: block;
    width: 100% !important;
    text-align: center;
    padding: 14px 0 !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    transition: background .25s ease;
  }

  .mobile-actions .btn-cta:hover {
    background: var(--color-primary-hover);
  }

  /* nếu có thêm nhiều nút (ví dụ Download, Subscribe, …) vẫn đều hàng */
  .mobile-actions a {
    flex: 1 1 100%;
  }
}
