/* Reusable Tool Card Component */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tools-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  padding: 22px;
  box-shadow: var(--ps-shadow-sm);
  transition: transform var(--ps-transition), box-shadow var(--ps-transition), border-color var(--ps-transition);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow-card-hover);
  border-color: var(--ps-primary);
}

.tool-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--ps-radius-md);
  background-color: var(--ps-primary-light);
  color: var(--ps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ps-navy);
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 0.9rem;
  color: var(--ps-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ps-primary);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ps-text);
  background-color: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-full);
  cursor: pointer;
  transition: all var(--ps-transition);
}

.tab-btn:hover {
  border-color: var(--ps-primary);
  color: var(--ps-primary);
}

.tab-btn.active {
  background-color: var(--ps-primary);
  color: var(--ps-inverse);
  border-color: var(--ps-primary);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: start;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ps-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px 20px;
  font-size: 0.94rem;
  color: var(--ps-text);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform var(--ps-transition);
  flex-shrink: 0;
}

/* Ad Placement Wrapper (Fixed min-height prevents CLS) */
.ad-placement-wrapper {
  min-height: 90px;
  margin: 24px auto;
}
