/* ========================================
   Tab FAQ Cards – .ctf-wrapper
   ======================================== */

.ctf-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Section header --- */
.ctf-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Desktop: in-grid header visible, mobile header hidden */
.ctf-header--desktop {
  text-align: left;
  height: 100%;
}

.ctf-header--mobile {
  display: none;
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .ctf-header--desktop {
    display: none;
  }
  .ctf-header--mobile {
    display: flex;
  }
}

.ctf-tagline {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bricks-color-primary, #2563eb);
  margin-bottom: 0.5rem;
}

.ctf-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: inherit;
}

.ctf-description {
  font-size: 1.0625rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
  @media (max-width: 767px) {
    margin: 0 auto;
  }
}

/* --- Tabs bar (desktop) --- */
.ctf-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: var(--space-l);
    width: fit-content;
    background-color: #ffffff;
    padding: var(--space-xs);
    border-radius: var(
  --radius-circle);
    box-shadow: 0 4px 6px 0 var(
  --base-dark-trans-20);
    @media (max-width: 1200px) {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      justify-content: flex-start;
      scrollbar-width: none;
    }
}

.ctf-tabs-bar::-webkit-scrollbar {
  display: none;
}

.ctf-tab {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 20px 30px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ctf-tab:hover {
  background: #f3f4f6;
}

.ctf-tab.is-active {
  background: var(--bricks-color-primary, #2563eb);
  color: #fff;
  border-color: var(--bricks-color-primary, #2563eb);
  font-weight: 600;
}

.ctf-tab i {
  font-size: 1rem;
}

/* --- Tab panels --- */
.ctf-panel {
  display: none;
}

.ctf-panel.is-active {
  display: block;
}

/* --- Card grid (3x3 default via inline CSS) --- */
.ctf-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

/* --- Card individual icon (hidden on desktop, shown on mobile) --- */
.ctf-card-individual-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: auto;
  height: auto;
  font-size: 1.5rem;
  color: var(--bricks-color-primary, #2563eb);
}

.ctf-card-individual-icon svg {
  width: 28px;
  height: 28px;
}

.ctf-card-individual-icon i {
  font-size: inherit;
}

/* --- Card --- */
.ctf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: var(--space-m);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  height: 100%;
  @media (min-width: 768px) {
    min-height: 280px;
  }
}

.ctf-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.ctf-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  @media (min-width: 768px) {
    flex-direction: column;
  }
}

.ctf-card-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-direction: row;
  @media (min-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ctf-card-question {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.ctf-card-icon {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #6b7280;
  transition: background 0.2s ease;
}

.ctf-card-icon svg {
  transition: transform 0.25s ease;
}

.ctf-card.is-open .ctf-card-icon svg {
  transform: rotate(45deg);
}

.ctf-card-answer {
  max-height: none;
  overflow: visible;
  margin-top: 1rem;
  opacity: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #6b7280;
}

/* --- Linked card --- */
a.ctf-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.ctf-card--link:hover {
  text-decoration: none;
}

a.ctf-card--link .ctf-card-question,
a.ctf-card--link .ctf-card-answer {
  color: inherit;
}

a.ctf-card--link .ctf-card-answer {
  color: #6b7280;
}

