/* ── Hero ── */
.page-hero {
  min-height: 420px;
  position: relative;
  background: url('../img/hero.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 140px 0 80px 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(164,64,53,0.82), rgba(26,14,12,0.9));
}

.hero-badge-modern {
  display: inline-block;
  background: #a44035;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.hero-main-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-main-title span { color: #d2ae6d; }

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 800px;
  margin: 0 auto;
}

/* ── Sections ── */
.detail-section {
  padding: 90px 0;
  overflow: hidden;
}

.text-accent-gold {
  color: #d2ae6d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

.section-heading-dark {
  font-size: 36px;
  font-weight: 800;
  color: #3a2a28;
  margin-bottom: 20px;
}

.section-heading-dark span { color: #a44035; }

/* ── Product Overview Image ── */
.detail-image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.detail-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── ASTM Tag below image ── */
.tech-tag-below {
  display: inline-block;
  background: #a44035;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ── Info Cards ── */
.id-split-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.id-card {
  background: #fff8f0;
  padding: 18px;
  border-left: 4px solid #d2ae6d;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  height: auto !important;
}

.id-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: #a44035;
  margin-bottom: 8px;
}

.id-card p {
  font-size: 13px;
  color: #3a2a28;
  margin: 0;
  line-height: 1.7;
  word-break: break-word;
  white-space: normal;
}

/* ── Card Image Wrapper (Types section) ── */
.id-card-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #fff8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.id-card-img-wrapper.img-contain {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  background: #fff8f0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-card-img-wrapper.img-contain img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #d2ae6d;
  box-shadow: 0 4px 15px rgba(164,64,53,0.12);
  padding: 8px;
  background: #fff8f0;
}

.id-card-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.id-card-fallback i { font-size: 36px; color: #a44035; }
.id-card-fallback span { font-size: 11px; color: #a44035; margin-top: 6px; font-weight: 600; }

/* ── Table ── */
.table-container-modern {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.data-table-industrial { width: 100%; border-collapse: collapse; }

.data-table-industrial th {
  background: #a44035;
  color: #fff;
  padding: 18px 20px;
  font-weight: 700;
  text-align: left;
  font-size: 14px;
}

.data-table-industrial td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #444;
  vertical-align: top;
}

/* ── Material Grade Cards ── */
.material-matrix-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  height: 100%;
}

.ss-border    { border-top: 5px solid #a44035; }
.cs-border    { border-top: 5px solid #3a2a28; }
.alloy-border { border-top: 5px solid #d2ae6d; }

.matrix-header {
  padding: 15px 20px;
  font-weight: 800;
  font-size: 15px;
  background: #fdfaf7;
  color: #3a2a28;
  border-bottom: 1px solid #eee;
}

.matrix-body { padding: 25px; }

.matrix-body h6 {
  font-size: 11px;
  font-weight: 800;
  color: #a44035;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grade-pill-container { display: flex; flex-wrap: wrap; gap: 8px; }

.grade-pill-container span {
  background: #f8f8f8;
  border: 1px solid #eee;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  color: #555;
}

/* ── Testing Grid ── */
.testing-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.t-item {
  text-align: center;
  background: #fff;
  padding: 22px 12px;
  border-radius: 10px;
  border: 1px solid rgba(164,64,53,0.12);
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.t-item:hover { background: #fff8f0; border-color: #a44035; transform: translateY(-4px); }
.t-item i { font-size: 32px; color: #a44035; margin-bottom: 12px; display: block; }
.t-item span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #3a2a28; line-height: 1.4; display: block; }

/* ── QC Badge ── */
.qc-badge {
  text-align: center;
  background: linear-gradient(135deg, #d2ae6d, #c49d5a);
  color: #1a0e0c;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(210,174,109,0.15), 0 20px 50px rgba(210,174,109,0.25);
}

.qc-badge i { font-size: 50px; margin-bottom: 10px; line-height: 1; }
.qc-badge h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 0 0 6px; line-height: 1.3; }
.qc-badge p { font-size: 11px; font-weight: 700; margin: 0; opacity: 0.8; }

/* ── FAQ ── */
.faq-item { border: none; border-bottom: 1px solid rgba(164,64,53,0.1); background: transparent; margin-bottom: 8px; }
.faq-item:last-child { border-bottom: none; }

.faq-btn {
  background: #ffffff;
  color: #3a2a28;
  font-weight: 700;
  font-size: 15px;
  padding: 20px 25px;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #a44035;
}

.faq-btn i { color: #a44035; font-size: 18px; }
.faq-btn:not(.collapsed) { background: #a44035; color: #ffffff; border-left-color: #d2ae6d; }
.faq-btn:not(.collapsed) i { color: #d2ae6d; }
.faq-btn:not(.collapsed)::after { filter: brightness(10); }
.faq-btn:focus { box-shadow: none; }

.faq-body {
  background: #ffffff;
  padding: 20px 25px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  border-left: 4px solid #d2ae6d;
  border-radius: 0 0 6px 6px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .detail-section { padding: 60px 0; }
  .section-heading-dark { font-size: 28px; }
  .testing-icons-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .page-hero { min-height: 320px; padding: 110px 0 60px 0; }
  .hero-main-title { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .detail-section { padding: 50px 0; }
  .section-heading-dark { font-size: 24px; }
  .id-split-box { grid-template-columns: 1fr 1fr; }
  .testing-icons-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-badge { width: 180px; height: 180px; margin-top: 30px; }
  .qc-badge i { font-size: 36px; }
  .qc-badge h3 { font-size: 13px; }
  .table-container-modern { overflow-x: auto; }
  .data-table-industrial { min-width: 500px; }
  .data-table-industrial th,
  .data-table-industrial td { padding: 12px 14px; font-size: 13px; }
  .faq-btn { font-size: 13px; padding: 15px 18px; }
  .matrix-body { padding: 15px; }
  .id-card { padding: 14px; }
  .id-card-img-wrapper,
  .id-card-img-wrapper.img-contain { height: 150px; }
  .id-card-img-wrapper.img-contain img { width: 120px; height: 120px; }
}

@media (max-width: 576px) {
  .page-hero { min-height: 280px; padding: 100px 0 50px 0; }
  .hero-main-title { font-size: 22px; }
  .hero-badge-modern { font-size: 10px; padding: 5px 12px; }
  .detail-section { padding: 40px 0; }
  .section-heading-dark { font-size: 22px; }
  .id-split-box { grid-template-columns: 1fr; }
  .testing-icons-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .t-item { padding: 16px 8px; }
  .t-item i { font-size: 26px; }
  .t-item span { font-size: 10px; }
  .qc-badge { width: 160px; height: 160px; }
  .qc-badge i { font-size: 30px; }
  .qc-badge h3 { font-size: 12px; }
  .tech-tag-below { font-size: 10px; padding: 4px 10px; }
  .text-accent-gold { font-size: 11px; }
  .grade-pill-container span { font-size: 11px; padding: 4px 9px; }
  .faq-btn { font-size: 12px; padding: 13px 14px; }
  .faq-body { padding: 15px; font-size: 13px; }
}
