/* ══════════════════════════════════════
   TECHNICAL RESOURCES PAGE CSS
══════════════════════════════════════ */

/* ─── HERO ─── */
.tr-page-hero {
  position: relative; min-height: 200px;
  display: flex; align-items: center;
  padding: 48px 40px; overflow: hidden;
}
.tr-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.tr-page-hero-bg::after { content: ''; position: absolute; inset: 0; background: #0F57A4CC; }
.tr-page-hero-content { position: relative; z-index: 1; width: 100%; }
.tr-page-hero h1 { font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.tr-page-hero p { font-size: 15px; color: rgba(255,255,255,0.85); max-width: 700px; line-height: 1.6; }

/* ─── BREADCRUMB ─── */
.breadcrumb-bar { background: #fff; padding: 14px 0 20px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; list-style: none; }
.breadcrumb a { color: #0F57A4; transition: color .2s; }
.breadcrumb a:hover { color: #0d4a8e; }
.breadcrumb-sep { color: #bbb; display: flex; align-items: center; }
.breadcrumb-current { color: #020A12; }

/* ─── GRAY WRAPPER ─── */
.tr-wrap { background: #F7F7F7; padding: 32px 0 60px; }

/* ─── TABS BAR ─── */
.tr-tabs-bar {
  background: #E8F1FB;
  padding: 8px; border-radius: 8px;
  display: flex; gap: 4px;
  margin-bottom: 24px;
}
.tr-tab-btn {
  flex: 1; text-align: center;
  padding: 11px 16px;
  font-size: 14px; font-weight: 500;
  color: #0F57A4; background: transparent;
  border: none; border-radius: 6px;
  cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap;
}
.tr-tab-btn.active {
  background: #fff; color: #0C2545;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(12,37,69,0.1);
}
.tr-tab-btn:hover:not(.active) { background: rgba(255,255,255,0.5); }

/* ─── TAB CONTENT ─── */
.tr-tab-content { display: none; }
.tr-tab-content.active { display: block; }

/* ─── CONTENT CARD ─── */
.tr-card {
  background: #fff; border-radius: 8px;
  border: 1px solid #E5E5E5; padding: 36px;
}
.tr-card-title { font-size: 24px; font-weight: 500; color: #0C2545; margin-bottom: 6px; }
.tr-card-sub { font-size: 14px; color: #020A12; margin-bottom: 24px; }

/* ─── SEARCH ─── */
.tr-search {
  display: flex; align-items: center;
  background: #EEF5FF; border-radius: 6px;
  overflow: hidden; margin-bottom: 28px;
}
.tr-search input {
  flex: 1; border: none; outline: none;
  background: transparent; padding: 13px 18px;
  font-size: 14px; color: #020A12; font-family: inherit;
}
.tr-search input::placeholder { color: #9DB3C8; }
.tr-search-btn {
  background: #0F57A4; border: none;
  padding: 13px 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tr-search-btn svg { width: 18px; height: 18px; color: #fff; }

/* ─── DOCUMENT LIST ─── */
.tr-doc-list { display: flex; flex-direction: column; }
.tr-doc-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid #E5E5E5; gap: 20px;
}
.tr-doc-item:last-child { border-bottom: none; }
.tr-doc-title { font-size: 15px; font-weight: 600; color: #0F57A4; margin-bottom: 4px; }
.tr-doc-meta { font-size: 12px; color: #020A12; }
.btn-tr-download {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid #0F57A4; color: #0F57A4;
  background: #fff; font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: 4px;
  cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.btn-tr-download:hover { background: #0F57A4; color: #fff; }
.btn-tr-download svg { width: 14px; height: 14px; }

/* ─── CERTIFICATIONS ─── */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cert-card { border: 1px solid #E5E5E5; border-radius: 8px; padding: 28px 24px; text-align: center; }
.cert-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: #EEF5FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cert-icon svg { width: 28px; height: 28px; color: #0F57A4; }
.cert-name { font-size: 15px; font-weight: 700; color: #0C2545; margin-bottom: 6px; }
.cert-desc { font-size: 13px; color: #020A12; line-height: 1.5; }

/* ─── POLICIES ─── */
.tr-policy-list { display: flex; flex-direction: column; }
.tr-policy-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid #E5E5E5; gap: 20px;
}
.tr-policy-item:last-child { border-bottom: none; }
.tr-policy-title { font-size: 15px; font-weight: 600; color: #0C2545; margin-bottom: 4px; }
.tr-policy-desc { font-size: 13px; color: #020A12; }

/* ─── CONTACT BANNER ─── */
.tr-contact-section { background: #F1F7FE; padding: 40px 0; margin-top: 0; }
.tr-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tr-contact-inner h3 { font-size: 22px; font-weight: 500; color: #0C2545; margin-bottom: 6px; }
.tr-contact-inner p { font-size: 14px; color: #020A12; max-width: 520px; }
.btn-tr-contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0F57A4; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 4px;
  border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .2s; flex-shrink: 0;
  text-decoration: none;
}
.btn-tr-contact:hover { background: #0d4a8e; }
.btn-tr-contact svg { width: 15px; height: 15px; }

/* ─── OTHER PRODUCTS ─── */
.tr-other-products { padding: 60px 0; background: #fff; }
.tr-other-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.tr-other-header h2 { font-size: 32px; font-weight: 500; color: #0C2545; }
.btn-tr-portfolio {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0F57A4; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 4px;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .2s; text-decoration: none;
}
.btn-tr-portfolio:hover { background: #0d4a8e; }
.btn-tr-portfolio svg { width: 14px; height: 14px; }

/* Product cards */
.tr-products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tr-product-card {
  border-radius: 8px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; text-decoration: none;
  box-shadow: 0 0 0 1px #eee; transition: box-shadow .25s;
}
.tr-product-card:hover { box-shadow: 0 0 0 2px #0F57A4, 0 4px 20px rgba(15,87,164,0.12); }
.tr-product-img-wrap { position: relative; height: 180px; background: #EBEBEB; overflow: hidden; flex-shrink: 0; }
.tr-product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-purity-badge { position: absolute; top: 10px; right: 0; background: #30ABE1; color: #fff; font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 3px 0 0 3px; white-space: nowrap; }
.tr-product-info { padding: 14px; background: #fff; transition: background .25s; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tr-product-card:hover .tr-product-info { background: #0F57A4; }
.tr-product-name { font-size: 13.5px; font-weight: 700; color: #0F57A4; transition: color .25s; }
.tr-product-card:hover .tr-product-name { color: #fff; }
.tr-product-desc { font-size: 11.5px; color: #020A12; line-height: 1.5; transition: color .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-product-card:hover .tr-product-desc { color: rgba(255,255,255,0.8); }
.tr-product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tr-product-tag { font-size: 10.5px; padding: 2px 8px; color: #30ABE1; background: #F7F7F7; }
.tr-product-card:hover .tr-product-tag { background: #fff; }

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .tr-products-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .tr-page-hero { padding: 36px 20px; }
  .tr-page-hero h1 { font-size: 28px; }
  .tr-wrap { padding: 24px 0 40px; }
  .tr-tabs-bar { flex-wrap: wrap; gap: 4px; }
  .tr-tab-btn { flex: unset; width: calc(50% - 4px); font-size: 13px; padding: 10px 8px; }
  .tr-card { padding: 24px 16px; }
  .cert-grid { grid-template-columns: 1fr; }
  .tr-contact-inner { flex-direction: column; gap: 20px; }
  .tr-other-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Desktop grid hidden on mobile */
  .tr-products-grid { display: none !important; }
  .tr-other-header .btn-tr-portfolio { display: none; }
  /* Mobile slider */
  .tr-slider-wrap { display: block !important; overflow: hidden; width: 100%; }
  .tr-slider-track { display: flex; transition: transform 0.35s ease; will-change: transform; }
  .tr-slider-track .tr-product-card { flex: 0 0 100%; min-width: 100%; max-width: 100%; }
  .tr-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
  .tr-slider-dots button { width: 24px; height: 6px; border-radius: 3px; border: none; background: #D5E3F0; cursor: pointer; transition: all .2s; padding: 0; }
  .tr-slider-dots button.active { background: #0F57A4; width: 32px; }
  .tr-mobile-portfolio-btn { display: block !important; margin-top: 16px; }
  .tr-mobile-portfolio-btn .btn-tr-portfolio { width: 100%; justify-content: center; padding: 14px 20px; }
}
@media (min-width: 769px) {
  .tr-slider-wrap { display: none !important; }
  .tr-products-grid { display: grid !important; }
  .tr-mobile-portfolio-btn { display: none !important; }
}

/* ── Certificate download button ── */
.cert-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #0F57A4;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.cert-download-btn:hover { background: #0C2545; }
