/* =========================
   TECHNICAL PAGE
========================= */

.technical-page {
  background: #f8fafc;
}


/* ===== HERO ===== */
.technical-hero {
  height: 40vh;
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(2,6,23,0.85), rgba(2,6,23,0.95)),
    url("/static/images/chemical-bg.jpg"); /* optional */

  background-size: cover;
  background-position: center;

  position: relative;
}

.technical-hero-content {
  color: white;
  max-width: 700px;
}

.technical-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.technical-hero-content p {
  font-size: 16px;
  color: #cbd5f5;
}
/* ===== TABLE SECTION ===== */

.technical-table-section {
  margin-top: 0px; /* overlap effect like your image */
  padding: 0 20px 60px;
}

.technical-table-container {
  max-width: 1100px;
  margin: auto;

  background: white;
  border-radius: 20px;
  padding: 25px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
/* SEARCH BAR */

/* SEARCH BAR FIXED */

.technical-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

/* SEARCH BOX */
.technical-search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 10px 14px;
  flex: 1;
  max-width: 420px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-icon {
  margin-right: 8px;
  font-size: 14px;
  color: #64748b;
}

.technical-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #0f172a;
}

/* WARNING BADGE */
.technical-warning {
  background: #fff7ed;
  color: #c2410c;

  padding: 10px 16px;
  border-radius: 999px;

  font-size: 13px;
  white-space: nowrap;

  border: 1px solid #fed7aa;
}
/* TABLE */

.technical-table {
  width: 100%;
  border-collapse: collapse;
}

.technical-table th {
  text-align: left;
  font-size: 13px;
  color: #64748b;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.technical-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.technical-table tr:hover {
  background: #f8fafc;
}
/* STATUS */

.status {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.status.resistant {
  background: #dcfce7;
  color: #166534;
}

.status.not-recommended {
  background: #fee2e2;
  color: #991b1b;
}
/* LOAD MORE */

.load-more {
  text-align: center;
  margin-top: 20px;
}

.load-more button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;

  transition: 0.2s;
}

.load-more button:hover {
  background: #f1f5f9;
}
/* ================= TECHNICAL RESPONSIVE ================= */

/* WRAPPER → enables horizontal scroll */
.technical-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* keep table width so scroll appears */
.technical-table {
  min-width: 720px;
}

/* ================= 992px ================= */
@media (max-width: 992px) {

  .technical-table-container {
    padding: 20px;
  }

  .technical-search-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .technical-search-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .technical-warning {
    width: 100%;
    text-align: center;
  }

}

/* ================= 768px ================= */
@media (max-width: 768px) {

  .technical-table-container {
    padding: 15px;
    border-radius: 14px;
  }

  /* stack search */
  .technical-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .technical-search-box {
    width: 100%;
  }

  .technical-warning {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* table readability */
  .technical-table th,
  .technical-table td {
    padding: 10px;
    font-size: 13px;
  }

}

/* ================= 480px ================= */
@media (max-width: 480px) {

  .technical-table-container {
    padding: 12px;
  }
  .technical-hero-content h1 {
    font-size: 24px;
  }
  .technical-hero-content p {
    font-size: 16px;
  }
  .technical-table th,
  .technical-table td {
    padding: 8px;
    font-size: 12px;
  }

  .technical-warning {
    font-size: 11px;
  }

}