/******************************************/
/********** AIMX FAQ page         **********/
/******************************************/
.aimx-faq,
.aimx-faq-products {
  --faq-text: #242424;
  --faq-muted: #666666;
  --faq-border: #e5e5e5;

  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--faq-text);
  font-family: inherit;
}
.aimx-faq *,
.aimx-faq *::before,
.aimx-faq *::after,
.aimx-faq-products *,
.aimx-faq-products *::before,
.aimx-faq-products *::after {
  box-sizing: border-box;
}
.aimx-faq h1,
.aimx-faq-products h2,
.aimx-faq-products h3,
.aimx-faq p,
.aimx-faq-products p,
.aimx-faq ul,
.aimx-faq ol {
  margin-block-start: 0;
  text-transform: none;
}
/* Κενά <p>/<br> που μπορεί να προσθέσει το WordPress */
.aimx-faq__list > :not(.aimx-faq__item),
.aimx-faq-products__grid > :not(.aimx-faq-products__card) {
  display: none !important;
}

/*************** FAQ LIST ***************/
.aimx-faq {
  max-width: 900px;
  padding: clamp(40px, 6vw, 80px) 20px 40px;
}
.aimx-faq__title {
  margin: 0 0 32px;
  padding: 0;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-align: center;
}
.aimx-faq__list {
  border-top: 1px solid var(--faq-border);
}
.aimx-faq__item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--faq-border);
  background: transparent;
}
.aimx-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 20px 4px;
  color: var(--faq-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.aimx-faq__question::-webkit-details-marker { display: none; }
.aimx-faq__question::marker { content: ""; }
.aimx-faq__question:hover,
.aimx-faq__item[open] > .aimx-faq__question {
  color: var(--faq-muted);
}
.aimx-faq__question:focus-visible {
  outline: 2px solid var(--faq-muted);
  outline-offset: 2px;
}

/* Plus / minus icon */
.aimx-faq__icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.aimx-faq__icon::before,
.aimx-faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.aimx-faq__icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.aimx-faq__icon::after  { top: 0; left: 7px; width: 1.5px; height: 16px; transition: transform 0.25s ease; }
.aimx-faq__item[open] .aimx-faq__icon::after { transform: scaleY(0); }

/* Answer */
.aimx-faq__answer {
  padding: 0 44px 22px 4px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.aimx-faq__answer p { margin: 0 0 12px; }
.aimx-faq__answer p:last-child { margin-bottom: 0; }
.aimx-faq__answer p:empty { display: none !important; }
.aimx-faq__answer ul,
.aimx-faq__answer ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.aimx-faq__answer ul:last-child,
.aimx-faq__answer ol:last-child { margin-bottom: 0; }
.aimx-faq__answer li { margin: 0 0 6px; padding-left: 3px; }

/*************** PRODUCTS ***************/
.aimx-faq-products {
  max-width: 1150px;
  padding: 40px 20px clamp(40px, 6vw, 80px);
}
.aimx-faq-products__title {
  margin: 0 0 28px;
  padding: 0;
  font-family: inherit;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-align: center;
}
.aimx-faq-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
  align-items: start;
}
.aimx-faq-products__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.aimx-faq-products__card:hover {
  color: inherit;
  text-decoration: none;
}
.aimx-faq-products__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f6f3;
}
.aimx-faq-products__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.aimx-faq-products__img--hover { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .aimx-faq-products__card:hover .aimx-faq-products__img--hover { opacity: 1; }
  .aimx-faq-products__card:hover .aimx-faq-products__img:first-child { transform: scale(1.02); }
}
.aimx-faq-products__brand {
  margin: 14px 0 5px;
  color: #777777;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.aimx-faq-products__name {
  margin: 0;
  padding: 0;
  color: var(--faq-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.aimx-faq-products__card:hover .aimx-faq-products__name { color: var(--faq-muted); }
.aimx-faq-products__card:focus-visible {
  outline: 2px solid var(--faq-muted);
  outline-offset: 4px;
}

/*************** RESPONSIVE ***************/
@media (max-width: 767px) {
  .aimx-faq { padding: 32px 16px 28px; }
  .aimx-faq__title { margin-bottom: 22px; font-size: 28px; }
  .aimx-faq__question { min-height: 56px; gap: 16px; padding: 16px 2px; font-size: 16px; }
  .aimx-faq__answer { padding: 0 4px 18px; font-size: 14px; line-height: 1.75; }

  .aimx-faq-products { padding: 28px 16px 40px; }
  .aimx-faq-products__title { margin-bottom: 20px; font-size: 26px; }
  .aimx-faq-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .aimx-faq-products__name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .aimx-faq__question,
  .aimx-faq__icon::after,
  .aimx-faq-products__img,
  .aimx-faq-products__name { transition: none; }
}