/* style-char.css */
/* Reset & base */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f7fbfa;
  color: #333;
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 900px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  background: #ffffff;
  border: 2px solid #3a997a;
  border-radius: 6px;
}

h1, h2 {
  color: #000000;
  font-weight: 700;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #3a997a;
  padding-bottom: 0.3rem;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #3a997a;
  padding-bottom: 0.2rem;
}

/* Textarea */
.textarea-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
}

textarea#text-input {
  width: 100%;
  border: 2px solid #3a997a;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: #fff;
  resize: vertical;
  transition: border-color 0.3s;
  min-height: 150px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  outline-offset: 2px;
}

textarea#text-input:focus {
  border-color: #2a6d57;
  outline: none;
  box-shadow: 0 0 6px rgba(58, 153, 122, 0.6);
}

/* Stats List */
.stats-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.15rem;
  background: #e6f4f1;
  border-radius: 8px;
  border: 1.5px solid #3a997a;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.stats-list li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #3a997a44;
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list strong {
  color: #3a997a;
}

/* Instructions */
.instructions p,
.instructions ul {
  font-size: 1rem;
  color: #444;
}

.instructions ul {
  margin-top: 0.5rem;
  padding-right: 1rem;
  list-style: inside disc;
}

.instructions li {
  margin-bottom: 0.4rem;
}

/* FAQ */
/* مظهر الاسئلة لتكون قابلة للنقر */
.faq-section dl {
  font-size: 1rem;
  color: #444;
  border: 1.5px solid #3a997a;
  background: #dff4f2;
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.faq-section dt {
  font-weight: 700;
  margin-top: 1rem;
  cursor: default;
  user-select: none;
  color: #2a6d57;
  position: relative;
  padding-right: 1.5rem;
  transition: color 0.3s;
}

.faq-section dt::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #3a997a;
  transition: transform 0.3s ease;
}

.faq-section dt.active {
  color: #18583f;
  font-weight: 800;
}

.faq-section dt.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* إخفاء الجواب عند عدم التفعيل مع الحركة */
.faq-section dd {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin: 0.3rem 0 1rem 0;
  padding-right: 1rem;
  font-weight: normal;
  line-height: 1.4;
  transition: none;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .stats-list {
    font-size: 1rem;
  }
  textarea#text-input {
    min-height: 120px;
  }
}