/* ================================================================
   FAQ PAGE
   ================================================================ */

#faq-page {
  box-shadow: -13px 0 20px -13px #A7ABB04D, 13px 0 20px -13px #A7ABB04D;
}

.faq-intro {
  padding: 3rem 3rem 1.5rem;
}

.faq-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007CC4;
  margin-bottom: 0;
}

/* ---- FAQ group ---- */
.faq-group {
  padding: 1.5rem 3rem 2rem;
}

.faq-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.faq-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #8DC43C;
  margin-bottom: 0;
}

.faq-view-more {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #007CC4;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.faq-view-more:hover {
  text-decoration: underline;
}

/* ---- Tables inside accordion ---- */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.faq-table th {
  background: #e9ecef;
  font-weight: 600;
  padding: 7px 10px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.faq-table td {
  padding: 7px 10px;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

/* ---- Accordion (mirrors ep-accordion) ---- */
.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0 !important;
  background: #F1F3F4;
}

.faq-accordion .accordion-item:first-child {
  border-radius: 10px 10px 0 0 !important;
}

.faq-accordion .accordion-item:last-child {
  border-radius: 0 0 10px 10px !important;
  border-bottom: none;
}

.faq-accordion .accordion-button {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4E4E4E;
  background: #F1F3F4;
  box-shadow: none;
  padding: 1rem 1.5rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #4E4E4E;
  background: #F1F3F4;
  box-shadow: none;
}

/* Replace chevron with + / − */
.faq-accordion .accordion-button::after {
  background-image: none;
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: #007CC4;
  transform: none !important;
  transition: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  content: "−";
}

.faq-accordion .accordion-body {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding: 0.5rem 1.5rem 1rem;
}

.faq-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Compatible devices grid ---- */
.compatible-devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 1.25rem 0 1rem;
}

.device-image {
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-height: 80px;
  transition: box-shadow 0.2s;
}

.device-image:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.device-image img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.compatible-devices-note {
  font-size: 0.82rem;
  color: #666;
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  #faq-page {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
  }

  .faq-intro {
    padding: 3rem 1.5rem 1rem;
    text-align: center;
  }

  .faq-group {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .faq-main-title {
    font-size: 2rem;
  }

  .compatible-devices {
    grid-template-columns: repeat(2, 1fr);
  }
}
