/* ===== TECH INTRO ===== */
.tech-intro {
  padding: 40px 0 20px;
  text-align: center;
}

.tech-intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== SEARCH BAR ===== */
.tech-search {
  padding: 10px 0 30px;
  text-align: center;
}

.tech-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.tech-search-bar svg {
  color: var(--color-text-light);
  flex-shrink: 0;
}

.tech-search-bar input {
  border: none;
  outline: none;
  font-family: var(--font-family);
  color: var(--color-text);
  width: 100%;
}

/* ===== CATEGORY TABS ===== */
.tech-tabs-section {
  padding: 0 0 30px;
}

.tech-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  justify-content: center;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  background: var(--color-bg);
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cat-tab.active {
  background: var(--color-dark);
  color: var(--color-white);
}

.cat-tab:hover:not(.active) {
  color: var(--color-dark);
}

/* ===== SUB CATEGORY NAV ===== */
.tech-subcategory {
  padding: 0 0 30px;
}

.sub-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.sub-cat-btn {
  background: none;
  border: none;
  font-family: var(--font-family);
  color: var(--color-text-light);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sub-cat-btn.active {
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sub-cat-btn:hover:not(.active) {
  color: var(--color-dark);
}

/* ===== RESOURCE GRID ===== */
.tech-resources-content {
  padding: 0 0 80px;
}

.tech-panel {
  display: none;
}

.tech-panel.active {
  display: block;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== RESOURCE CARD (TDS, SDS, Processing, UL) ===== */
.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.resource-card-info h4 {
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.resource-card-info p {
  color: var(--color-text-light);
}

.resource-card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

/* ===== WHITEPAPER CARD ===== */

.whitepaper-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.whitepaper-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.whitepaper-preview {
  padding: 24px;
  min-height: 180px;
  border-bottom: 1px solid var(--color-border);
}

.whitepaper-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.whitepaper-preview-header h4 {
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

.whitepaper-preview-logo {
  width: 80px;
  flex-shrink: 0;
}

.whitepaper-preview-logo img {
  width: 100%;
}

.whitepaper-preview p {
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: justify;
}

.whitepaper-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.whitepaper-bottom-info h4 {
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.whitepaper-bottom-info p {
  color: var(--color-text-light);
}

.whitepaper-bottom-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

/* ===== COMPLIANCE SECTION ===== */
.compliance-group {
  margin-bottom: 50px;
}

.compliance-group-title {
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-dark);
}

.compliance-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.compliance-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.compliance-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.compliance-card-preview {
  height: 200px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
/*.compliance-card-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 60%, transparent 100%)
}*/

.compliance-card-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.compliance-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.compliance-card-bottom h4 {
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.compliance-card-bottom p {
  color: var(--color-text-light);
}

.compliance-card-bottom .resource-card-icon {
  flex-shrink: 0;
}

/* ===== SHOW MORE ===== */
.show-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.show-more-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.3s ease;
}

.show-more-btn:hover {
  background: #222;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-category-tabs {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }


}

@media (max-width: 480px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .cat-tab{
    font-size: 1.2rem;
    padding: 5px 10px;
  }
}

