.dpl-faq {
  padding: 64px 0;
}

.dpl-faq__header {
  margin-bottom: 48px;
}

.dpl-faq__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 8px;
}

.dpl-faq__subtitle {
  font-size: 15px;
  font-weight: 300;
  color: #6B6B6B;
  margin: 0;
}

/* Layout */
.dpl-faq__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar nav */
.dpl-faq__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 100px;
}

.dpl-faq__tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #0D0D0D;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dpl-faq__tab:hover {
  background: #F7F7F7;
}

.dpl-faq__tab.active {
  background: #F7F7F7;
  font-weight: 500;
  color: #0D0D0D;
}

/* Content panels */
.dpl-faq__panel {
  display: none;
}

.dpl-faq__panel.active {
  display: block;
}

.dpl-faq__panel-title {
  font-size: 22px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 24px;
}

/* Accordion items */
.dpl-faq__item {
  border-bottom: 1px solid #E5E5E5;
}

.dpl-faq__item:first-of-type {
  border-top: 1px solid #E5E5E5;
}

.dpl-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #0D0D0D;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.dpl-faq__question::-webkit-details-marker {
  display: none;
}

.dpl-faq__question::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s;
}

.dpl-faq__item[open] .dpl-faq__question::after {
  transform: rotate(180deg);
}

.dpl-faq__answer {
  font-size: 14px;
  font-weight: 300;
  color: #4B4B4B;
  line-height: 1.7;
  margin: 0 0 18px;
  padding-right: 36px;
}

/* Mobile */
@media screen and (max-width: 767px) {
  .dpl-faq {
    padding: 40px 0;
  }

  .dpl-faq__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dpl-faq__nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 8px;
  }

  .dpl-faq__tab {
    width: auto;
    padding: 8px 14px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    font-size: 13px;
  }

  .dpl-faq__tab.active {
    background: #0D0D0D;
    color: #FFFFFF;
    border-color: #0D0D0D;
  }
}
