/* ============================================================
   Lezaroty.com — Global stylesheet
   RTL, Arabic, mobile-first, max-width 1140px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Cairo:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
  background: #faf8f5;
  color: #2b2b2b;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e3da;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #6b4423;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-logo:hover { color: #8b5a30; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.main-nav a:hover { color: #6b4423; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #6b4423 0%, #8b5a30 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ---------- Main content ---------- */
main { padding: 2.5rem 0 3rem; }

article.post {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 6px;
  padding: 2rem 1.8rem;
  margin-bottom: 2rem;
}

article.post h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

article.post .post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ece6dc;
}

article.post .post-meta a { color: #6b4423; text-decoration: none; }

article.post h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  color: #3a2b1a;
}

article.post h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  color: #4a3520;
}

article.post p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

article.post ul, article.post ol {
  margin: 0 1.5rem 1rem 0;
  padding-right: 0.5rem;
}

article.post li { margin-bottom: 0.4rem; }

article.post a {
  color: #8b5a30;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

article.post a:hover { color: #6b4423; }

article.post img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.post-image {
  background: #f0ebe2;
  border: 1px solid #e0d8c8;
  padding: 3rem 1rem;
  text-align: center;
  color: #888;
  border-radius: 4px;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq-section { margin-top: 2rem; }

.faq-item {
  background: #fbf8f3;
  border-right: 3px solid #8b5a30;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 0 4px 4px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: #6b4423;
}

.faq-item p { margin: 0; font-size: 0.98rem; }

/* ---------- Cards / listings ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 6px;
  padding: 1.3rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(107,68,35,0.08);
  transform: translateY(-2px);
}

.card h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card h3 a { color: #2b2b2b; text-decoration: none; }
.card h3 a:hover { color: #6b4423; }

.card p { font-size: 0.93rem; color: #555; margin-bottom: 0.6rem; }

.card .card-meta { font-size: 0.82rem; color: #999; }

.card-tag {
  display: inline-block;
  background: #f0ebe2;
  color: #6b4423;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

/* ---------- Page intro ---------- */
.page-intro {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 6px;
  padding: 1.8rem 1.6rem;
  margin-bottom: 2rem;
}

.page-intro h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 2rem;
  color: #3a2b1a;
  margin-bottom: 0.6rem;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-intro p { font-size: 1.05rem; color: #555; }

/* ---------- Author box ---------- */
.author-box {
  background: #fbf8f3;
  border: 1px solid #ece6dc;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}

.author-box h4 {
  font-family: 'Cairo', sans-serif;
  margin-bottom: 0.4rem;
  color: #6b4423;
}

.author-box p { margin: 0; font-size: 0.95rem; color: #555; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2b2018;
  color: #d4c8b8;
  padding: 2.8rem 0 1.4rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }

.footer-grid a {
  color: #d4c8b8;
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #3d2f24;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9c8e7c;
}

/* ---------- Misc ---------- */
.btn {
  display: inline-block;
  background: #6b4423;
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover { background: #8b5a30; color: #fff; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  article.post { padding: 1.4rem 1.1rem; }
  article.post h1 { font-size: 1.5rem; }
  article.post h2 { font-size: 1.25rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 1rem; font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .page-intro h1 { font-size: 1.55rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
