/* Card container */
.qa-item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 20px 24px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  max-width: 1140px;
  margin-left: 0;
  margin-right: auto;
}

/* Question / summary row: full width, whole card clickable */
.qa-item summary {
  cursor: pointer;
  display: block;
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

/* Question text: capped at 70%, this is what actually wraps */
.qa-item summary .qa-question-text {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 70%;
  color: #009EDB;
}

/* Arrow anchored to the card corner */
.qa-item::after {
  content: "▾";
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 2rem;
  color: #009EDB;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.qa-item[open]::after {
  transform: rotate(180deg);
}

.qa-item[open] summary {
  margin-bottom: 12px;
}

.qa-item p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.rows-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== Legal Q&A intro + download card ===== */
.text-long {
  display: flex !important;
  gap: 32px;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 24px;
  margin-bottom: 32px;
  width: 100% !important;
}

.text-long > p {
  flex: 0 0 65%;
  max-width: 65%;
  min-width: 0;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

.text-long > div {
  flex: 1 1 auto;
  background: #eaf4fb;
  border-left: 4px solid #009EDB;
  border-radius: 8px;
  padding: 16px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-long > div > div:first-child {
  color: #009EDB;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.text-long > div h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.text-long > div p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 14px;
}

.text-long > div a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #009EDB;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.text-long > div a:hover {
  background: #007bb5;
}

/* ===== RTL overrides for Arabic Q&A cards ===== */
[dir="rtl"] .qa-item {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .qa-item summary {
  text-align: right;
  padding-right: 0;
  padding-left: 48px;
}

[dir="rtl"] .qa-item summary .qa-question-text {
  text-align: right;
}

[dir="rtl"] .qa-item::after {
  right: auto;
  left: 24px;
}

/* RTL: flip download card accent border to right edge */
[dir="rtl"] .text-long > div {
  border-left: none;
  border-right: 4px solid #009EDB;
}