body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #f3f0ea;
  color: #222;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

header {
  background: #111;
  color: white;
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 30px;
}

h1 {
  margin-top: 0;
}

.btn, button, a {
  display: inline-block;
  background: #222;
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.form {
  background: white;
  padding: 30px;
  border-radius: 20px;
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.reader {
  background: #0f1115;
}

.article-page {
  max-width: 900px;
  margin: auto;
  background: #f8f4ec;
  min-height: 100vh;
}

.hero {
  min-height: 420px;
  background: radial-gradient(circle at center, #5c4a34, #111);
  color: white;
  display: flex;
  align-items: end;
}

.hero-overlay {
  padding: 60px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.4;
}

article {
  padding: 50px 70px;
}

article p {
  font-size: 21px;
  line-height: 2.2;
  margin-bottom: 28px;
}

blockquote {
  font-size: 28px;
  line-height: 1.8;
  background: #111;
  color: white;
  padding: 30px;
  border-radius: 20px;
  margin: 40px 0;
}

.interactive-box {
  background: #e7dccb;
  padding: 30px;
  border-radius: 20px;
  margin: 40px 0;
}

.interactive-box button {
  margin: 5px;
}

footer {
  padding: 40px 70px;
}

.result-message {
  white-space: pre-wrap;
  line-height: 2;
}

.title-choice {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: #f4efe7;
  color: #2b2b2b;
  font-size: 18px;
  text-align: right;
  direction: rtl;
}

.title-card {
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
  text-align: right;
  direction: rtl;
  border: 1px solid rgba(0,0,0,0.06);
}

.title-card.selected {
  background: #e8f4df;
  border-color: #9fbe7a;
}

.title-card-text {
  font-size: 18px;
  line-height: 1.8;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.title-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.mini-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: #2b2b2b;
  color: white;
  font-size: 14px;
}

.mini-btn.secondary {
  background: #eee6da;
  color: #333;
}

.title-card {
  background: rgba(255,255,255,0.78);
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
  text-align: right;
  direction: rtl;
  border: 1px solid rgba(0,0,0,0.08);
}

.title-card.selected {
  background: #e8f4df;
  border-color: #9fbe7a;
}

.title-card-text {
  font-size: 18px;
  line-height: 1.8;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.title-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.mini-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: #2b2b2b;
  color: white;
  font-size: 14px;
}

.mini-btn.secondary {
  background: #eee6da;
  color: #333;
}
