/* ============================================================
   EBFQ6 — FAQ Accordion (سيلا ميد ترافيل)
   Namespace  : ebfq6
   متناسق مع هوية الهيرو (ebhro14) والتايم لاين (ebpt9):
   كحلي/أزرق/كهرماني، دائري، ظلال ناعمة
============================================================ */

/* 1. Variables & Colors */
.ebfq6 {
  --ebfq6-bg: #FFFFFF;
  --ebfq6-text: #4A5B78;
  --ebfq6-title: #0B2E59;
  --ebfq6-subtitle: #4A5B78;
  --ebfq6-border: #C9EEF0;
  --ebfq6-card-bg: #FFFFFF;
  --ebfq6-card-title: #0B2E59;
  --ebfq6-card-text: #4A5B78;
  --ebfq6-icon-bg: #0B9AA5;
  --ebfq6-icon-text: #FFFFFF;
  --ebfq6-btn-bg: #0B9AA5;
  --ebfq6-btn-text: #FFFFFF;
  --ebfq6-secondary-bg: #E8F7F8;
  --ebfq6-secondary-text: #0B9AA5;
  --ebfq6-accent-warm: #0B9AA5;
  --ebfq6-padding-top: 4rem;
  --ebfq6-padding-bottom: 4rem;
}

/* 2. Reset داخل الـ namespace */
.ebfq6, .ebfq6 *, .ebfq6 *::before, .ebfq6 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebfq6 {
  position: relative;
  overflow: hidden;
  background: var(--ebfq6-bg);
  color: var(--ebfq6-text);
  font-family: "El Messiri", sans-serif;
  padding-top: var(--ebfq6-padding-top);
  padding-bottom: var(--ebfq6-padding-bottom);
  direction: rtl;
}

.ebfq6__shape-1,
.ebfq6__shape-2,
.ebfq6__shape-3 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ebfq6__shape-1 {
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, var(--ebfq6-icon-bg) 0%, transparent 70%);
  opacity: 0.08;
  top: -4rem;
  left: -4rem;
}

.ebfq6__shape-2 {
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, var(--ebfq6-accent-warm) 0%, transparent 70%);
  opacity: 0.12;
  bottom: 2rem;
  right: -3rem;
}

.ebfq6__shape-3 { display: none; }

.ebfq6__container {
  position: relative;
  z-index: 1;
  max-width: 75rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ebfq6__header { animation: ebfq6-rise 0.7s ease both; }

.ebfq6__eyebrow {
  display: inline-block;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ebfq6-secondary-text);
  margin-bottom: 0.75rem;
}

.ebfq6__title {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ebfq6-title);
  margin-bottom: 0.75rem;
}

.ebfq6__subtitle {
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  line-height: 1.85;
  color: var(--ebfq6-subtitle);
  max-width: 34rem;
}

.ebfq6__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ebfq6__item {
  background: var(--ebfq6-card-bg);
  border: 0.0625rem solid var(--ebfq6-border);
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.5rem rgba(11, 46, 89, 0.07);
  overflow: hidden;
  animation: ebfq6-rise 0.7s ease both;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ebfq6__item:hover {
  border-color: var(--ebfq6-icon-bg);
  box-shadow: 0 0.75rem 2rem rgba(11, 46, 89, 0.12);
}

.ebfq6__item:nth-child(1) { animation-delay: 0.05s; }
.ebfq6__item:nth-child(2) { animation-delay: 0.1s; }
.ebfq6__item:nth-child(3) { animation-delay: 0.15s; }
.ebfq6__item:nth-child(4) { animation-delay: 0.2s; }
.ebfq6__item:nth-child(5) { animation-delay: 0.25s; }
.ebfq6__item:nth-child(6) { animation-delay: 0.3s; }

.ebfq6__item-heading { font-size: 1em; font-weight: inherit; }

.ebfq6__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  color: var(--ebfq6-card-title);
  transition: background-color 0.25s ease;
}

.ebfq6__question:hover { background: var(--ebfq6-secondary-bg); }

.ebfq6__question-num {
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 700;
  color: #055158;
  flex-shrink: 0;
}

.ebfq6__question-text {
  flex: 1;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  font-weight: 600;
  line-height: 1.5;
}

.ebfq6__icon {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ebfq6-icon-bg);
}

.ebfq6__icon-line {
  position: absolute;
  background: var(--ebfq6-icon-text);
  top: 50%;
  left: 50%;
  border-radius: 0.2rem;
}

.ebfq6__icon-line--h {
  width: 0.7rem;
  height: 0.11rem;
  transform: translate(-50%, -50%);
}

.ebfq6__icon-line--v {
  width: 0.11rem;
  height: 0.7rem;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ebfq6--open .ebfq6__icon-line--v {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.ebfq6--open .ebfq6__question-text { color: var(--ebfq6-icon-bg); }

.ebfq6__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.ebfq6--open .ebfq6__answer-wrap { grid-template-rows: 1fr; }

.ebfq6__answer { overflow: hidden; }

.ebfq6__answer-text {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  line-height: 1.8;
  color: var(--ebfq6-card-text);
}

@keyframes ebfq6-rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ebfq6 * { animation: none !important; transition: none !important; }
}

/* 4. Breakpoints بالترتيب */
@media (max-width: 480px) {
  .ebfq6__container { padding-left: 0.85rem; padding-right: 0.85rem; }
  .ebfq6__question { padding: 0.9rem 0.85rem; gap: 0.5rem; }
  .ebfq6__question-num { font-size: 0.8rem; }
  .ebfq6__question-text { font-size: 0.95rem; line-height: 1.45; }
  .ebfq6__answer-text { padding: 0 0.85rem 1rem 0.85rem; font-size: 0.88rem; }
}

@media (min-width: 481px) {
  .ebfq6__container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 601px) {
  .ebfq6__question { padding: 1.4rem 1.75rem; }
}

@media (min-width: 769px) {
  .ebfq6__container {
    display: grid;
    grid-template-columns: 18rem 1fr;
    grid-template-areas: "header list";
    align-items: start;
    column-gap: 3rem;
  }
  .ebfq6__header { grid-area: header; position: sticky; top: 2rem; }
  .ebfq6__list { grid-area: list; }
}

@media (min-width: 1025px) {
  .ebfq6__container { grid-template-columns: 20rem 1fr; column-gap: 4rem; }
  .ebfq6 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1281px) {
  .ebfq6__container { max-width: 78rem; }
}

@media (min-width: 1441px) {
  .ebfq6__container { max-width: 82rem; column-gap: 5rem; }
}

@media (min-width: 1921px) {
  .ebfq6__container { max-width: 96rem; }
  .ebfq6 { padding-top: 6rem; padding-bottom: 6rem; }
}