/* ============ عالم رغد — Site styles (RTL/LTR aware) ============ */
:root {
  --brand: #a3345f;
  --brand-dark: #7d2447;
  --ink: #1f1a24;
  --ink-soft: #6b5f75;
  --bg: #faf8fb;
  --card: #ffffff;
  --line: #ece5ef;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(60, 30, 70, .07);
  --font: "Cairo", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }

/* ---------- Homepage: promo banner (long strip above slider + weather sidebar) ---------- */
.promo-banner {
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg, var(--brand), #c25a83);
  color: #fff; border-radius: var(--radius); padding: .9rem 1.3rem;
  margin-block: .8rem 1.2rem; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); color: #fff; }
.promo-banner-icon { font-size: 1.6rem; flex: none; }
.promo-banner-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.promo-banner-text strong { font-size: 1rem; }
.promo-banner-text span:last-child { font-size: .82rem; opacity: .92; }
.promo-banner-cta { flex: none; font-weight: 700; font-size: .88rem; background: rgba(255,255,255,.18); padding: .4rem .9rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .promo-banner-text span:last-child { display: none; } }

/* ---------- Header: centered logo, compact centered nav, search row below ---------- */
.site-header {
  background: var(--card); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(60,30,70,.05);
}
.header-brand-row { display: flex; align-items: center; justify-content: space-between; padding-block: .7rem; gap: 1rem; }
.header-side { flex: 1; display: flex; align-items: center; min-width: 0; }
.header-side-end { justify-content: flex-end; gap: .3rem; }
.logo { display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.logo:hover { transform: scale(1.03); }
.logo img { height: 46px; width: auto; display: block; }
@media (max-width: 600px) { .logo img { height: 36px; } }
.lang-switcher { display: flex; gap: .25rem; }
.lang-switcher a { padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; color: var(--ink-soft); transition: background .15s ease; }
.lang-switcher a.active, .lang-switcher a:hover { background: var(--brand); color: #fff; }

/* Search row: its own centered strip below the nav */
.header-search-row { display: flex; justify-content: center; padding-block: .8rem; border-top: 1px solid var(--line); }
.search-form { display: flex; width: 100%; max-width: 480px; }
.search-form input {
  flex: 1; border: 1.5px solid var(--line); border-inline-end: none;
  border-radius: 0 999px 999px 0; padding: .55rem 1.2rem; font-family: inherit; font-size: .95rem;
  background: var(--bg); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
[dir="ltr"] .search-form input { border-radius: 999px 0 0 999px; }
.search-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(163,52,95,.12); }
.search-form button {
  border: none; background: var(--brand); color: #fff; padding: .55rem 1.4rem;
  border-radius: 999px 0 0 999px; cursor: pointer; font-family: inherit; font-weight: 600; transition: background .15s ease;
}
[dir="ltr"] .search-form button { border-radius: 0 999px 999px 0; }
.search-form button:hover { background: var(--brand-dark); }

/* ---------- Sidebar navigation: old-portal-style directory list (Yahoo/Hotmail era) ---------- */
.site-body-layout { display: grid; grid-template-columns: 210px 1fr; align-items: start; gap: 1.5rem; padding-block: 1.2rem; }
.site-main { min-width: 0; }
.site-sidebar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(60,30,70,.06);
}
.sidebar-title {
  background: var(--brand); color: #fff; font-weight: 800; font-size: .82rem;
  padding: .55rem .9rem; letter-spacing: .02em;
}
.nav-links { display: flex; flex-direction: column; }
.nav-pill {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; font-weight: 700; font-size: .85rem;
  white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .15s ease, color .15s ease, padding-inline-start .15s ease;
}
.nav-links .nav-pill:last-child { border-bottom: none; }
.nav-pill:hover { background: color-mix(in srgb, var(--nav-brand, var(--brand)) 10%, transparent); color: var(--nav-brand, var(--brand)); padding-inline-start: 1.1rem; }
.nav-pill.active { background: color-mix(in srgb, var(--nav-brand, var(--brand)) 14%, transparent); color: var(--nav-brand, var(--brand)); border-inline-start: 3px solid var(--nav-brand, var(--brand)); }
.nav-pill-icon { font-size: .95rem; }
.nav-home { color: var(--brand); }
.sidebar-title-services { background: #6b5f75; }
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: .28rem;
  width: 2.4rem; height: 2.4rem; background: none; border: none; padding: .5rem; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 1.4rem; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-block: 1.5rem; }
.hero-side { display: flex; flex-direction: column; gap: .9rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(60, 30, 70, .13); }
.card-media { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #f6e9f0, #ede4f5); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; height: 100%; font-size: 2.5rem; color: var(--brand); opacity: .35; }
.badge-video {
  position: absolute; inset-inline-start: .6rem; bottom: .6rem;
  background: rgba(0,0,0,.72); color: #fff; border-radius: 999px;
  width: 2rem; height: 2rem; display: grid; place-items: center; font-size: .8rem;
}
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-cat { color: var(--brand); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.card-title { font-size: 1.02rem; line-height: 1.45; font-weight: 700; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { color: var(--ink-soft); font-size: .88rem; }
.card-meta { color: var(--ink-soft); font-size: .78rem; margin-top: auto; }

.card-lg .card-title { font-size: 1.5rem; }
.card-lg .card-media { aspect-ratio: 16/8.5; }
.card-sm { flex-direction: row; }
.card-sm .card-media { flex: 0 0 130px; aspect-ratio: auto; min-height: 86px; }
.card-sm .card-title { font-size: .9rem; }
.card-sm .card-body { padding: .6rem .8rem; }

/* ---------- Sections & grids ---------- */
.section { margin-block: 2.2rem; }
.section-title {
  font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem;
  padding-inline-start: .75rem; border-inline-start: 4px solid var(--brand);
}
.section-title a:hover { color: var(--brand); }
.cards-grid { display: grid; gap: 1.1rem; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: 1.4rem; }
.widget .section-title { font-size: 1.05rem; }
.popular-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.popular-list li { display: flex; gap: .7rem; align-items: baseline; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.popular-list a:hover { color: var(--brand); }
.rank {
  flex: 0 0 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: var(--bg); color: var(--brand); font-weight: 800; border-radius: 8px; font-size: .85rem;
}

/* ---------- Article page ---------- */
.article-page { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2.5rem); margin-block: 1.5rem; }
.article-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.4; margin-block: .5rem .6rem; }
.article-meta { color: var(--ink-soft); font-size: .88rem; display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.article-image img { border-radius: 10px; width: 100%; max-height: 480px; object-fit: cover; object-position: center 35%; }
.video-frame { border-radius: 10px; width: 100%; }
.video-frame { aspect-ratio: 16/9; border: none; display: block; background: #000; }
.article-excerpt { font-size: 1.1rem; color: var(--ink-soft); border-inline-start: 4px solid var(--brand); padding-inline-start: 1rem; margin-block: 1.3rem; }
.article-body { font-size: 1.06rem; margin-top: 1.3rem; }
.article-body h2, .article-body h3 { margin-block: 1.4rem .6rem; }
.article-body p { margin-block: .8rem; }
.article-body ul, .article-body ol { margin-block: .8rem; padding-inline-start: 1.6rem; }
.article-body img { border-radius: 10px; margin-block: 1rem; }
.article-body a { color: var(--brand); text-decoration: underline; }

/* ---------- Pages / misc ---------- */
.page-header { margin-block: 1.8rem 1.4rem; }
.page-header h1 { font-size: 1.7rem; }
.page-header p { color: var(--ink-soft); }
.search-hint { color: var(--ink-soft); margin-block: 2rem; }
.empty-state { text-align: center; padding: 4.5rem 1rem; }
.empty-icon { font-size: 3rem; color: var(--brand); opacity: .5; margin-bottom: 1rem; font-weight: 800; }
.empty-state h1, .empty-state h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty-state p { color: var(--ink-soft); }
.btn {
  display: inline-block; background: var(--brand); color: #fff; padding: .6rem 1.5rem;
  border-radius: 999px; font-weight: 600; margin-top: 1rem;
}
.btn:hover { background: var(--brand-dark); }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-block: 2rem; flex-wrap: wrap; }
.pagination a, .pagination .current {
  padding: .45rem 1rem; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-weight: 600;
}
.pagination a:hover { color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc4d8; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.site-footer h3 { color: #fff; margin-bottom: .7rem; font-size: 1.05rem; }
.social-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-links a { background: rgba(255,255,255,.08); padding: .4rem 1rem; border-radius: 999px; font-size: .88rem; }
.social-links a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.1rem; font-size: .85rem; text-align: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-block: 1.1rem .3rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs a:hover { color: var(--brand); }
.crumb-sep { opacity: .5; }
.crumb-current { font-weight: 600; color: var(--ink); }

/* ---------- Cooking hub ---------- */
.cooking-hero { text-align: center; padding-block: 2rem 1.5rem; }
.cooking-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .5rem; }
.cooking-hero p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.recipe-search-form { display: flex; max-width: 480px; margin-inline: auto; }
.recipe-search-form input {
  flex: 1; border: 1.5px solid var(--line); border-inline-end: none; border-radius: 0 999px 999px 0;
  padding: .65rem 1.2rem; font-family: inherit; font-size: 1rem; background: var(--card); outline: none;
}
[dir="ltr"] .recipe-search-form input { border-radius: 999px 0 0 999px; }
.recipe-search-form button {
  border: none; background: var(--brand); color: #fff; padding: .65rem 1.5rem; border-radius: 999px 0 0 999px;
  cursor: pointer; font-weight: 700;
}
[dir="ltr"] .recipe-search-form button { border-radius: 0 999px 999px 0; }

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.category-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 1.1rem .6rem; transition: transform .18s ease; }
.category-tile:hover { transform: translateY(-3px); color: var(--brand); }
.category-tile img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; margin-inline: auto .6rem; }
.tile-icon { display: block; font-size: 2rem; margin-bottom: .5rem; }
.tile-name { display: block; font-weight: 700; font-size: .92rem; margin-top: .4rem; }

/* ---------- Recipe cards ---------- */
.recipe-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease; display: flex; flex-direction: column; }
.recipe-card:hover { transform: translateY(-3px); }
.recipe-card .card-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #f6e9f0, #ede4f5); overflow: hidden; display: block; }
.recipe-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card .card-placeholder { display: grid; place-items: center; height: 100%; font-size: 2.3rem; opacity: .4; }
.badge-time { position: absolute; bottom: .5rem; inset-inline-start: .5rem; background: rgba(0,0,0,.68); color: #fff; font-size: .74rem; padding: .2rem .55rem; border-radius: 999px; }
.recipe-card .card-body { padding: .8rem .9rem 1rem; flex: 1; }
.recipe-card .card-title { font-size: .98rem; margin-bottom: .3rem; }
.recipe-meta-row { display: flex; gap: .8rem; font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }
.recipe-card.card-sm { flex-direction: row; }
.recipe-card.card-sm .card-media { flex: 0 0 110px; aspect-ratio: auto; }
.recipe-card.card-sm .card-body { padding: .6rem .8rem; }
.recipe-card.card-sm .card-title { font-size: .88rem; }

/* ---------- Filters + listing ---------- */
.recipe-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; margin-block: 1.5rem; align-items: start; }
.recipe-filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; position: sticky; top: 5.5rem; }
.recipe-filters h3 { font-size: 1rem; margin-bottom: .8rem; }
.recipe-filters label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .9rem; }
.recipe-filters select, .recipe-filters input { width: 100%; margin-top: .3rem; padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; }
.recipe-results .muted { margin-bottom: 1rem; }

/* ---------- Recipe detail page ---------- */
.recipe-page { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2.5rem); margin-block: 1rem 1.5rem; }
.recipe-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.4; margin-bottom: .5rem; }
.recipe-lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }
.recipe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.fact { background: var(--bg); border-radius: 10px; padding: .6rem .8rem; text-align: center; }
.fact-label { display: block; font-size: .72rem; color: var(--ink-soft); }
.fact-value { display: block; font-weight: 700; margin-top: .2rem; }
.recipe-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.views-count { color: var(--ink-soft); font-size: .85rem; margin-inline-start: auto; }
.recipe-image img, .recipe-image picture img { width: 100%; border-radius: 12px; max-height: 460px; object-fit: cover; margin-bottom: .3rem; }
.image-credit { font-size: .75rem; color: var(--ink-soft); margin-bottom: 1.2rem; }

.recipe-body { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.recipe-ingredients h2, .recipe-steps h2 { font-size: 1.2rem; margin-bottom: 1rem; padding-inline-start: .6rem; border-inline-start: 4px solid var(--brand); }
.ingredient-group { font-size: .92rem; color: var(--brand); margin: 1rem 0 .5rem; }
.ingredient-item { display: flex; align-items: flex-start; gap: .55rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: .93rem; }
.ingredient-item input { margin-top: .25rem; }
.ingredient-item.checked span { text-decoration: line-through; opacity: .5; }
.recipe-extra { font-size: .88rem; margin-top: 1rem; color: var(--ink-soft); }
.nutrition-box { background: var(--bg); border-radius: 10px; padding: 1rem; margin-top: 1.3rem; }
.nutrition-box h3 { font-size: .95rem; margin-bottom: .2rem; }
.nutrition-box ul { list-style: none; margin-top: .6rem; display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }

.recipe-steps ol { padding-inline-start: 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.recipe-steps ol li { padding-inline-start: .4rem; line-height: 1.8; }
.recipe-note { margin-top: 1.4rem; background: var(--bg); border-radius: 10px; padding: .9rem 1.1rem; }
.recipe-note h3 { font-size: .95rem; color: var(--brand); margin-bottom: .4rem; }

.recipe-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-top: 1.8rem; }
.recipe-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.recipe-tags a { background: var(--bg); padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; color: var(--ink-soft); }
.recipe-tags a:hover { background: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-filters { position: static; }
}

/* ---------- Homepage hero slider (compact — portal style, not a big banner) ---------- */
.hero-slider { position: relative; height: 200px; border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: 0; transition: opacity .6s ease; display: block;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: .8rem 1rem; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.1) 65%, transparent);
}
.hero-slide-icon { font-size: 1rem; }
.hero-slide-overlay h2 { color: #fff; font-size: clamp(.95rem, 2vw, 1.15rem); line-height: 1.4; max-width: 46rem; font-weight: 700; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: none; background: rgba(0,0,0,.35);
  color: #fff; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.hero-slider-arrow:hover { background: rgba(0,0,0,.6); }
.hero-slider-arrow.prev { inset-inline-start: .6rem; }
.hero-slider-arrow.next { inset-inline-end: .6rem; }
.hero-slider-dots { position: absolute; bottom: .5rem; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: .4rem; }
.hero-dot { width: .4rem; height: .4rem; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

/* ---------- Homepage: worlds section as right-to-left cards, 5 per row ---------- */
.world-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .world-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .world-cards-grid { grid-template-columns: repeat(2, 1fr); } }
.world-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem .8rem; color: var(--ink); border-top: 3px solid var(--card-brand, var(--brand));
  transition: transform .15s ease, box-shadow .15s ease;
}
.world-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(30,20,40,.15); color: var(--card-brand, var(--brand)); }
.world-card-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center; font-size: 1.5rem; border-radius: 50%;
  background: color-mix(in srgb, var(--card-brand, var(--brand)) 14%, transparent);
}
.world-card-name { font-weight: 800; font-size: .92rem; }
.world-card-count { font-size: .76rem; color: var(--ink-soft); }

/* ---------- Worlds hub grid (homepage + /worlds page) ---------- */
.worlds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.world-tile {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.1rem;
  text-align: center; display: flex; flex-direction: column; gap: .4rem; align-items: center;
  border-top: 4px solid var(--tile-brand, var(--brand)); transition: transform .18s ease;
}
.world-tile:hover { transform: translateY(-4px); color: var(--ink); }
.world-tile-icon { font-size: 2.2rem; }
.world-tile-name { font-weight: 800; font-size: 1.05rem; color: var(--tile-brand, var(--brand)); }
.world-tile-tagline { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- World engine: shared hero/search used by every عالم ---------- */
.world-hero { text-align: center; padding-block: 2rem 1.5rem; }
.world-hero-icon { font-size: 2.6rem; margin-bottom: .4rem; }
.world-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .5rem; }
.world-hero p { color: var(--ink-soft); margin-bottom: 1.2rem; }

/* Professional content-driven stat cards inside every world's hero, replacing plain tagline text */
.world-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: .3rem; }
.world-hero-stat-card {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  min-width: 6.5rem; padding: .8rem 1.2rem; background: var(--card); border-radius: 14px;
  box-shadow: 0 3px 12px rgba(30,20,40,.08); border-top: 3px solid var(--brand);
  color: var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.world-hero-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30,20,40,.15); color: var(--brand); }
.world-hero-stat-count { font-size: 1.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.world-hero-stat-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 500px) { .world-hero-stat-card { min-width: 5.2rem; padding: .6rem .8rem; } }

/* ---------- Games world: local leaderboard (no login required) ---------- */
.leaderboard-widget { background: var(--bg); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-block: 1.3rem; }
.leaderboard-widget h3 { font-size: .95rem; color: var(--brand); margin-bottom: .7rem; }
.lb-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.lb-list li { display: flex; align-items: center; gap: .8rem; background: var(--card); border-radius: 8px; padding: .5rem .8rem; font-size: .9rem; }
.lb-rank { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-weight: 800; font-size: .78rem; }
.lb-date { margin-inline-start: auto; color: var(--ink-soft); font-size: .78rem; }

/* ---------- World engine: advanced filters (cooking/games/child) ---------- */
.world-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 auto 1.5rem; max-width: 640px; }
.world-filters select {
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-family: inherit;
  font-size: .88rem; background: var(--card);
}
.world-filters-clear { font-size: .85rem; color: var(--ink-soft); align-self: center; }
.world-filters-clear:hover { color: var(--brand); }

/* ---------- Games world: playable-game container ---------- */
.game-play-wrap {
  background: var(--bg); border-radius: var(--radius); padding: clamp(1rem, 4vw, 2rem);
  margin-block: 1.3rem; display: flex; justify-content: center;
}
#game-root { width: 100%; max-width: 560px; }

/* ---------- Cities world: live weather + prayer-times widgets ---------- */
.city-live-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.3rem; }
.city-weather-card, .city-prayer-card { background: var(--bg); border-radius: var(--radius); padding: 1.1rem; }
.city-weather-card h3, .city-prayer-card h3 { font-size: .95rem; color: var(--brand); margin-bottom: .7rem; }
.city-weather-main { display: flex; align-items: center; gap: .6rem; }
.city-weather-icon { font-size: 2.2rem; }
.city-weather-temp { font-size: 2rem; font-weight: 800; }
.city-weather-desc { color: var(--ink-soft); font-size: .88rem; margin-top: .3rem; }
.city-prayer-list { display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.city-prayer-list li { display: flex; justify-content: space-between; padding-block: .15rem; border-bottom: 1px dashed var(--line); }
.city-prayer-list li:last-child { border-bottom: none; }
@media (max-width: 600px) { .city-live-widgets { grid-template-columns: 1fr; } }

/* ---------- Scholars/Scientists worlds: bio quote ---------- */
.bio-quote {
  font-size: 1.15rem; font-style: italic; color: var(--brand); text-align: center;
  padding: 1.2rem 1.5rem; margin-block: 1.3rem; border-inline-start: 4px solid var(--brand); background: var(--bg); border-radius: var(--radius);
}

/* ---------- Education world: lesson objectives list ---------- */
.lesson-objectives { margin-top: 1.4rem; }
.lesson-objectives h2 { font-size: 1.2rem; margin-bottom: .8rem; padding-inline-start: .6rem; border-inline-start: 4px solid var(--brand); }
.lesson-objectives ul { padding-inline-start: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .no-print, .cards-grid.related, .section.no-print { display: none !important; }
  main.container { max-width: 100%; padding: 0; }
  .recipe-page { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .home-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .header-search-row { padding-inline: 1rem; }
  .search-form { max-width: none; }
  .nav-toggle { display: flex; position: relative; z-index: 61; }
  .site-body-layout { display: block; padding-block: 0; }
  .site-sidebar {
    display: none; position: fixed; top: 118px; inset-inline: 1rem; z-index: 60;
    box-shadow: 0 12px 32px rgba(40,20,50,.22); max-height: min(70vh, 480px); overflow-y: auto;
  }
  .site-sidebar.open { display: block; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,10,25,.35); z-index: 55; }
  .nav-backdrop.open { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Homepage: main content stream + persistent weather/prayer sidebar ---------- */
.home-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.home-main { min-width: 0; }

.weather-sidebar {
  background: linear-gradient(160deg, #eaf5fb, #ffffff); border: 1px solid #d6ecf6;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.weather-sidebar .sidebar-widget:not(:last-child) { border-bottom: 1px dashed #c8e0ec; padding-bottom: 1rem; }
.sidebar-widget { display: flex; flex-direction: column; flex: 1; }
.weather-sidebar-title { font-size: .95rem; font-weight: 800; color: #1f6d8a; margin-bottom: .7rem; }
.weather-sidebar-title a { text-decoration: underline; }
.weather-sidebar-list { display: flex; flex-direction: column; gap: .5rem; flex: 1; justify-content: space-evenly; }
.weather-row {
  display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 12px;
  padding: .55rem .8rem; box-shadow: 0 1px 4px rgba(31,109,138,.1); transition: transform .15s ease;
}
.weather-row:hover { transform: translateX(-2px); }
[dir="ltr"] .weather-row:hover { transform: translateX(2px); }
.weather-row-icon { font-size: 1.5rem; }
.weather-row-city { font-weight: 700; font-size: .87rem; color: #1f6d8a; flex: 1; }
.weather-row-temp { font-weight: 800; font-size: 1rem; }

.prayer-widget-list { display: flex; flex-direction: column; gap: .3rem; }
.prayer-widget-row {
  display: flex; justify-content: space-between; font-size: .85rem; background: #fff;
  border-radius: 8px; padding: .4rem .7rem; box-shadow: 0 1px 4px rgba(31,109,138,.08);
}
.prayer-widget-row span:last-child { font-weight: 700; color: #1f6d8a; }

@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .hero-slider { height: 160px; } .hero-slider-arrow { width: 1.7rem; height: 1.7rem; font-size: 1rem; } }

/* ---------- Homepage: quote of the day ---------- */
.daily-quote { position: relative; }
.daily-quote-author { margin-top: .6rem; font-size: .9rem; font-style: normal; font-weight: 700; opacity: .85; }
.daily-quote-author a:hover { text-decoration: underline; }

/* ---------- Homepage: featured-stories spotlight (storybook style) ---------- */
/* Fixed column counts (not auto-fill) so the 3 spotlight cards always divide evenly per row. */
.story-spotlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .story-spotlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .story-spotlight-grid { grid-template-columns: 1fr; } }
.story-spotlight-card {
  position: relative; display: flex; flex-direction: column;
  background: #fdf6ea; border: 1px solid #ecdcb3; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(120, 90, 30, .12); color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.story-spotlight-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(120, 90, 30, .2); }
.story-spotlight-media { aspect-ratio: 16/10; overflow: hidden; }
.story-spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.story-spotlight-ribbon {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 1;
  background: #a3345f; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.story-spotlight-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.story-spotlight-quote { font-size: 2.4rem; line-height: .5; color: #a3345f; opacity: .45; }
.story-spotlight-card h3 { font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.story-spotlight-card p { color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }

/* ---------- Homepage: weekly quiz challenge (sidebar widget, above weather) ---------- */
.weekly-quiz-question { font-size: .92rem; font-weight: 700; margin-bottom: .8rem; line-height: 1.5; }
.weekly-quiz-options { display: flex; flex-direction: column; gap: .5rem; }
.weekly-quiz-opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .9rem;
  font-family: inherit; font-size: .85rem; cursor: pointer; text-align: start; transition: background .15s ease;
}
.weekly-quiz-opt:hover { background: #f0e9f3; }
.weekly-quiz.answered .weekly-quiz-opt { cursor: default; }
.weekly-quiz-opt.correct { background: #e6f7ec; border-color: #2f9c5a; color: #1e6b3d; }
.weekly-quiz-opt.wrong { background: #fdebec; border-color: #b3261e; color: #8a1c15; }
.weekly-quiz-feedback { margin-top: .8rem; font-weight: 700; font-size: .88rem; }
.weekly-quiz-feedback.ok { color: #1e6b3d; }
.weekly-quiz-feedback.no { color: #8a1c15; }

/* =========================================================================
   Per-world visual identity — each عالم gets a distinct hero/card treatment
   that matches its content, layered on top of the shared world engine above.
   ========================================================================= */

/* عالم المطبخ — warm kitchen: plate-shaped cards, tablecloth texture, fork/knife accents */
.world-cooking { --serif: Georgia, "Times New Roman", serif; }
.world-cooking .world-hero {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(192,86,47,.05) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 12% 25%, rgba(192,86,47,.12), transparent 42%),
    radial-gradient(circle at 88% 75%, rgba(192,86,47,.10), transparent 46%);
  border-radius: 22px; border-bottom: 4px solid var(--brand);
}
.world-cooking .world-hero-icon { animation: cooking-steam 2.4s ease-in-out infinite; }
@keyframes cooking-steam { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.world-cooking .card, .world-cooking .recipe-card { border-radius: 26px 26px 10px 10px; }
.world-cooking .card:hover { box-shadow: 0 10px 26px rgba(192,86,47,.22); }
.world-cooking .card-cat { font-style: italic; text-transform: none; }
.world-cooking .card-cat::before { content: '🍽️ '; }
.world-cooking .section-title { border-inline-start-style: double; border-inline-start-width: 6px; }
.world-cooking .section-title::before { content: '🍴 '; }

.recipe-tile-badge {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
}
.recipe-tile-badge.diff-easy { color: #1e6b3d; }
.recipe-tile-badge.diff-medium { color: #8a6d1f; }
.recipe-tile-badge.diff-hard { color: #8a1c15; }
.recipe-tile-meta { display: flex; gap: .8rem; font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

/* عالم الألعاب — arcade energy: pixel-dot backdrop, bold rounded font, bouncy cards */
.world-games .world-hero {
  position: relative;
  background:
    radial-gradient(rgba(47,111,192,.22) 2px, transparent 2px),
    linear-gradient(135deg, rgba(47,111,192,.14), rgba(255,183,3,.12));
  background-size: 18px 18px, 100% 100%;
  border-radius: 28px; border: 3px dashed rgba(47,111,192,.35);
}
.world-games .card { border-radius: 24px; border: 2px dashed rgba(47,111,192,.3); }
.world-games .card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 14px 28px rgba(47,111,192,.25); }
.world-games .section-title { border-radius: 999px; padding-inline: 1rem; background: rgba(47,111,192,.08); font-weight: 700; }
.world-games .section-title::before { content: '🎮 '; }

/* Games: dense arcade tile grid with a play overlay instead of blog-style cards */
.game-arcade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.1rem; }
.game-tile .card-media { aspect-ratio: 1/1; }
.game-tile-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,30,60,.45); color: #fff; font-weight: 700; font-size: .95rem;
  opacity: 0; transition: opacity .15s ease;
}
.game-tile:hover .game-tile-play { opacity: 1; }
.game-tile-stars { position: absolute; top: .5rem; inset-inline-end: .5rem; font-size: .8rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.game-tile-age { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
@media (max-width: 600px) { .game-arcade { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; } }

/* عالم التعليم — notebook feel: ruled grid, red margin line, sticky-note card corner */
.world-education .world-hero {
  position: relative;
  background-image:
    linear-gradient(rgba(47,156,90,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,156,90,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 12px; border-inline-start: 4px solid #d9534f;
}
.world-education .card {
  border-radius: 4px 14px 4px 4px; box-shadow: 0 1px 6px rgba(30,60,40,.1);
  background-image: linear-gradient(135deg, transparent 50%, rgba(47,156,90,.12) 50%) top right / 18px 18px no-repeat;
}
.world-education .card-cat { font-style: italic; text-transform: none; }
.world-education .section-title::before { content: '📚 '; }

/* Education: numbered curriculum list instead of a card grid */
.lesson-list { display: flex; flex-direction: column; gap: .6rem; }
.lesson-row {
  display: flex; align-items: center; gap: .9rem; background: var(--card); border-radius: 10px;
  padding: .6rem .9rem; box-shadow: 0 1px 6px rgba(30,60,40,.08); color: var(--ink); transition: box-shadow .15s ease, transform .15s ease;
}
.lesson-row:hover { box-shadow: 0 4px 14px rgba(30,60,40,.15); transform: translateX(-2px); }
[dir="rtl"] .lesson-row:hover { transform: translateX(2px); }
.lesson-row-num {
  flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: rgba(47,156,90,.12); color: #2f9c5a;
  font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.lesson-row-media { flex: 0 0 3.2rem; height: 3.2rem; border-radius: 8px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.lesson-row-media img { width: 100%; height: 100%; object-fit: cover; }
.lesson-row-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lesson-row-title { font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.lesson-row-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--ink-soft); }
.lesson-badge { background: rgba(47,156,90,.1); color: #2f9c5a; padding: .1rem .5rem; border-radius: 999px; }

/* ---------- Homepage: "تابع من حيث توقفت" (dismissible continue-reading cards) ---------- */
.continue-reading .section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.continue-reading-clear { border: none; background: none; color: var(--ink-soft); font-size: .8rem; font-weight: 600; cursor: pointer; }
.continue-reading-clear:hover { color: var(--brand); text-decoration: underline; }
.continue-reading-card { position: relative; }
.continue-reading-dismiss {
  position: absolute; top: .4rem; inset-inline-end: .4rem; z-index: 2; width: 1.6rem; height: 1.6rem;
  border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem;
  cursor: pointer; line-height: 1; display: grid; place-items: center;
}
.continue-reading-dismiss:hover { background: var(--brand); }

/* عالم المدن — travel/postcard: dotted map backdrop, compass watermark, postage-stamp card corner */
.world-cities .world-hero {
  position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(47,143,192,.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  border-radius: 16px;
}
.world-cities .world-hero::after {
  content: '🧭'; position: absolute; font-size: 7rem; opacity: .08; top: -1rem; inset-inline-end: -1rem; pointer-events: none;
}
.world-cities .card { border-radius: 16px 16px 16px 4px; position: relative; }
.world-cities .card::after {
  content: ''; position: absolute; top: .5rem; inset-inline-end: .5rem; width: 1.1rem; height: 1.1rem;
  border: 2px dashed rgba(47,143,192,.5); border-radius: 3px; z-index: 1;
}

/* Cities: image-forward tiles grouped by country, with a population badge */
.city-tile-badge {
  position: absolute; bottom: .5rem; inset-inline-start: .5rem; z-index: 1;
  background: rgba(0,0,0,.68); color: #fff; font-size: .74rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
}
.city-country-group:not(:last-child) { margin-bottom: .4rem; }

/* عالم علماء المسلمين — elegant heritage: geometric lattice, gold double borders */
.world-scholars .world-hero {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(138,109,31,.07) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, rgba(138,109,31,.07) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, rgba(138,109,31,.10), rgba(47,156,90,.06));
  border-block: 3px double rgba(138,109,31,.4);
  border-radius: 10px;
}
.world-scholars .card { border-radius: 10px; border-top: 3px double var(--brand); }
.world-scholars .card-title, .world-scholars .bio-quote { font-weight: 700; }
.world-scholars .section-title::before { content: '❖ '; }

/* عالم العلماء — modern lab: dark gradient hero, blueprint grid, corner brackets like a viewfinder */
.world-scientists .world-hero {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #0f2b38, #1f6d8a);
  color: #fff; border-radius: 12px; padding-block: 2.4rem 1.8rem;
}
.world-scientists .world-hero p { color: rgba(255,255,255,.82); }
.world-scientists .card { border-radius: 8px; position: relative; }
.world-scientists .card::before, .world-scientists .card::after {
  content: ''; position: absolute; width: .8rem; height: .8rem; border: 2px solid var(--brand); opacity: .5; z-index: 1;
}
.world-scientists .card::before { top: .4rem; inset-inline-start: .4rem; border-inline-end: none; border-bottom: none; }
.world-scientists .card::after { bottom: .4rem; inset-inline-end: .4rem; border-inline-start: none; border-top: none; }
.world-scientists .card-cat { letter-spacing: .03em; }
.world-scientists .section-title::before { content: '🔬 '; }

/* Scholars/Scientists: chronological biography timeline instead of a card grid */
.timeline { position: relative; padding-block: .5rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 1.15rem; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-entry { position: relative; padding-inline-start: 3rem; margin-bottom: 1.4rem; }
.timeline-dot {
  position: absolute; inset-inline-start: .75rem; top: .4rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line);
}
.timeline-card { display: flex; gap: 1rem; align-items: center; background: var(--card); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); }
.timeline-media {
  flex: 0 0 4.2rem; width: 4.2rem; height: 4.2rem; border-radius: 12px; overflow: hidden; background: var(--bg);
  display: grid; place-items: center; font-size: 1.6rem;
}
.timeline-media img { width: 100%; height: 100%; object-fit: cover; }
.timeline-content { min-width: 0; }
.timeline-years { font-size: .78rem; font-weight: 700; color: var(--brand); }
.timeline-field { font-size: .84rem; color: var(--ink-soft); margin-top: .2rem; }
@media (min-width: 700px) {
  .timeline::before { inset-inline-start: 50%; margin-inline-start: -1px; }
  .timeline-entry { width: 50%; padding-inline-start: 2.4rem; padding-inline-end: 0; }
  .timeline-entry:nth-child(even) { margin-inline-start: 50%; }
  .timeline-entry:nth-child(odd) { padding-inline-start: 0; padding-inline-end: 2.4rem; text-align: end; }
  .timeline-entry:nth-child(odd) .timeline-card { flex-direction: row-reverse; }
  .timeline-entry:nth-child(even) .timeline-dot { inset-inline-start: -.85rem; }
  .timeline-entry:nth-child(odd) .timeline-dot { inset-inline-start: auto; inset-inline-end: -.85rem; }
}

/* عالم القصص — storybook: parchment texture, giant quote watermark */
.world-stories .world-hero {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(0deg, #fbf3e3, #fbf3e3 3px, #f7ecd6 3px, #f7ecd6 5px);
  border-radius: 14px;
}
.world-stories .world-hero::before {
  content: '\201C'; position: absolute; font-size: 12rem; line-height: 1; top: -2rem; inset-inline-start: 1rem;
  color: var(--brand); opacity: .08; pointer-events: none;
}
.world-stories .card { background: #fdf6ea; border: 1px solid #e8d9b8; position: relative; overflow: hidden; }
.world-stories .card::after {
  content: ''; position: absolute; top: 0; inset-inline-end: .9rem; width: 0; height: 0; z-index: 1;
  border-inline: .6rem solid transparent; border-top: 1.1rem solid var(--brand); opacity: .8;
}
.world-stories .card-title { font-style: italic; }
.world-stories .section-title::before { content: '📖 '; }

/* Stories: staggered bookshelf masonry instead of a uniform grid */
.story-shelf { columns: 4 220px; column-gap: 1.2rem; }
.story-shelf .card { break-inside: avoid; margin-bottom: 1.2rem; width: 100%; }
@media (max-width: 900px) { .story-shelf { columns: 2 220px; } }
@media (max-width: 500px) { .story-shelf { columns: 1; } }

/* عالم الطفل — bright & bubbly: rainbow polka-dots, crayon border */
.world-child .world-hero {
  position: relative;
  background:
    radial-gradient(rgba(255,255,255,.6) 3px, transparent 3px),
    linear-gradient(120deg, rgba(192,47,143,.16), rgba(255,193,7,.16), rgba(47,156,90,.14));
  background-size: 22px 22px, 100% 100%;
  border-radius: 32px;
}
.world-child .card { border-radius: 28px; border: 3px dashed rgba(192,47,143,.3); }
.world-child .card:hover { transform: translateY(-4px) scale(1.02); }
.world-child .section-title { border-radius: 999px; padding-inline: 1rem; background: rgba(192,47,143,.08); }
.world-child .section-title::before { content: '🎨 '; }

/* Child: colorful activity-board tile grid instead of a card grid */
.child-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.1rem; }
.child-tile .card-media { aspect-ratio: 1/1; }
.child-tile-type {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; font-size: 1.2rem;
  background: rgba(255,255,255,.92); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center;
}
.child-tile-printable {
  position: absolute; bottom: .5rem; inset-inline-end: .5rem; z-index: 1; font-size: .68rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
}
.child-tile-age { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
@media (max-width: 600px) { .child-board { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; } }

/* عالم الصحة والعافية — calm clinical-but-warm: soft mint gradient, pulse-line accent */
.world-health .world-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(31,156,122,.14), rgba(31,156,122,.05));
  border-radius: 16px; border-bottom: 3px solid var(--brand);
}
.world-health .world-hero::after {
  content: ''; position: absolute; inset-inline-end: -2rem; bottom: -1rem; width: 12rem; height: 4rem;
  background: linear-gradient(90deg, transparent, rgba(31,156,122,.15) 40%, transparent 60%); pointer-events: none;
}
.world-health .card { border-radius: 14px; border-top: 3px solid var(--brand); }
.world-health .section-title::before { content: '🩺 '; }

/* Health: spotlight tiles + scannable digest grid */
.health-spotlight { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.health-digest { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.health-tile-topic {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #1f9c7a;
}
.health-tile-meta { display: flex; gap: .8rem; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.health-tile-reviewed { color: #1f9c7a; font-weight: 700; }
.health-facts .fact-value { color: #1f9c7a; }
@media (max-width: 700px) { .health-spotlight { grid-template-columns: 1fr; } }

/* عالم الجمال والعناية — vanity-mirror glow: rose-gold gradient, soft shimmer, rounded pearl cards */
.world-beauty .world-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(181,84,138,.14), rgba(232,180,120,.12));
  border-radius: 22px;
}
.world-beauty .world-hero::before {
  content: '✨'; position: absolute; font-size: 5rem; opacity: .12; top: -.5rem; inset-inline-start: 1rem; pointer-events: none;
}
.world-beauty .world-hero::after {
  content: '✨'; position: absolute; font-size: 3.5rem; opacity: .1; bottom: -.5rem; inset-inline-end: 2rem; pointer-events: none;
}
.world-beauty .card { border-radius: 20px; border-top: 3px solid var(--brand); }
.world-beauty .card:hover { box-shadow: 0 10px 26px rgba(181,84,138,.22); }
.world-beauty .section-title::before { content: '💅 '; }
.beauty-tile-topic {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #b5548a;
}
.beauty-tile-meta { display: flex; gap: .8rem; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.beauty-facts .fact-value { color: #b5548a; }

/* عالم الأم والحمل — warm & nurturing: blush gradient, soft rounded everything */
.world-motherhood .world-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(217,122,147,.16), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(217,122,147,.1), transparent 45%);
  border-radius: 26px;
}
.world-motherhood .world-hero::before {
  content: '💗'; position: absolute; font-size: 6rem; opacity: .07; top: -1rem; inset-inline-end: 1rem; pointer-events: none;
}
.world-motherhood .card { border-radius: 22px; }
.world-motherhood .section-title::before { content: '🤰 '; }

/* Motherhood: horizontal stage tracker + soft rounded card board */
.mother-stage-strip { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.4rem; }
.mother-stage-pill {
  padding: .5rem 1.1rem; border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; font-size: .88rem; box-shadow: 0 1px 6px rgba(217,122,147,.15); transition: background .15s ease, color .15s ease;
}
.mother-stage-pill:hover { background: rgba(217,122,147,.14); }
.mother-stage-pill.active { background: var(--brand); color: #fff; }
.mother-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.mother-tile-stage {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #d97a93;
}
.mother-tile-week { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.mother-tip-box {
  display: flex; gap: .9rem; align-items: flex-start; background: #fdf1f4; border: 1px solid #f3d9e0;
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-block: 1.3rem;
}
.mother-tip-icon { font-size: 1.6rem; }
.mother-tip-box h3 { color: #d97a93; margin-bottom: .3rem; font-size: 1rem; }
.mother-tip-box p { color: var(--ink); font-size: .93rem; }

/* ركن نصائح الأسرة — cozy parenting-blog identity for the legacy family-tips category page */
.category-family-tips { --brand: #b5657f; }
.category-family-tips .page-header {
  position: relative; overflow: hidden; text-align: center; padding-block: 2rem 1.5rem;
  background: radial-gradient(circle at 15% 20%, rgba(181,101,127,.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(240,180,110,.14), transparent 45%);
  border-radius: 18px;
}
.category-family-tips .page-header h1::before { content: '👪 '; }
.category-family-tips .card { background: #fff8f5; border: 1px solid #f2ddd3; border-radius: 18px; }
.category-family-tips .card-cat::before { content: '💡 '; }

/* ---------- Homepage: "اقتراح اليوم" spotlight banner ---------- */
.daily-pick {
  display: flex; gap: 1.2rem; align-items: center; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border-inline-start: 5px solid var(--pick-brand, var(--brand));
  padding: .8rem; margin-block: 1.3rem; color: var(--ink); overflow: hidden;
}
.daily-pick img { width: 220px; flex: 0 0 220px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.daily-pick-body { display: flex; flex-direction: column; gap: .4rem; }
.daily-pick-label { font-size: .8rem; font-weight: 800; color: var(--pick-brand, var(--brand)); }
.daily-pick-body h3 { font-size: 1.3rem; line-height: 1.4; }
.daily-pick-body p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 600px) {
  .daily-pick { flex-direction: column; align-items: stretch; }
  .daily-pick img { width: 100%; flex-basis: auto; }
}

/* ---------- Homepage: quote-of-day + did-you-know editorial row ---------- */
.editorial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-block: 1.3rem; }
.editorial-row .bio-quote { margin-block: 0; }
.daily-fact {
  display: flex; gap: .8rem; align-items: flex-start; background: #fff8e6; border: 1px solid #f2e2b3;
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.daily-fact-icon { font-size: 1.6rem; }
.daily-fact strong { display: block; margin-bottom: .3rem; color: #8a6d1f; }
.daily-fact p { font-size: .93rem; color: var(--ink); }
.daily-fact a { color: #8a6d1f; text-decoration: underline; }
@media (max-width: 900px) { .editorial-row { grid-template-columns: 1fr; } }

/* ---------- Homepage sidebar: رمضان/عيد countdown ---------- */
.islamic-countdown { text-align: center; }
.islamic-countdown-days { font-size: 1.8rem; font-weight: 800; color: #1f6d8a; }
.islamic-countdown-days span { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.islamic-countdown-note { font-size: .78rem; color: var(--ink-soft); margin-top: .3rem; }

/* ---------- Prayer widget: highlight the upcoming prayer ---------- */
.prayer-widget-row.next { background: #1f6d8a; }
.prayer-widget-row.next span { color: #fff; }
.next-badge { background: rgba(255,255,255,.25); border-radius: 999px; padding: .1rem .5rem; font-size: .7rem; margin-inline-start: .4rem; }

/* ---------- Child world: mark-activity-complete toggle (local, no login) ---------- */
.btn-complete {
  display: block; margin-block: 1.3rem; border: 1.5px solid var(--brand); background: var(--card); color: var(--brand);
  padding: .6rem 1.4rem; border-radius: 999px; font-weight: 700; font-family: inherit; cursor: pointer; font-size: .9rem;
}
.btn-complete.done { background: var(--brand); color: #fff; }

/* ---------- Star rating widget (cooking/stories items) ---------- */
.rating-widget { display: flex; align-items: center; gap: .8rem; margin-block: .8rem 0; flex-wrap: wrap; }
.rating-stars { display: flex; gap: .15rem; }
.rating-star { border: none; background: none; font-size: 1.5rem; color: #d9d3de; cursor: pointer; padding: 0; line-height: 1; }
.rating-star.filled { color: #f0a500; }
.rating-summary { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Comments section (cooking/stories items) ---------- */
.comments-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.3rem; }
.comment-item { background: var(--bg); border-radius: 10px; padding: .8rem 1rem; }
.comment-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .3rem; }
.comment-head span { color: var(--ink-soft); }
.comment-item p { font-size: .93rem; }
.comment-form, .submission-form {
  display: flex; flex-direction: column; gap: .7rem; max-width: 480px; background: var(--bg);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.comment-form input, .comment-form textarea, .submission-form input {
  border: 1.5px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font-family: inherit; font-size: .92rem; background: var(--card);
}
.comment-form button, .submission-form button {
  align-self: flex-start; border: none; background: var(--brand); color: #fff; padding: .55rem 1.4rem;
  border-radius: 999px; font-weight: 700; cursor: pointer;
}
.comment-form button:hover, .submission-form button:hover { background: var(--brand-dark); }
.comment-hint { font-size: .78rem; color: var(--ink-soft); margin: 0; }

/* ---------- Photo submissions gallery (cooking items) ---------- */
.submission-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.3rem; }
.submission-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.submission-gallery figcaption { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: .3rem; }

/* ---------- Article/world-item page: print button ---------- */
.btn-print {
  margin-inline-start: auto; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: .35rem .9rem; border-radius: 999px; font-family: inherit; font-size: .82rem; cursor: pointer;
}
.btn-print:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Cooking world: unit converter tool ---------- */
.unit-converter { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.2rem; margin-bottom: 1.3rem; }
.unit-converter summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.unit-converter-body { margin-top: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.unit-converter-row label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.unit-converter-inputs { display: flex; align-items: center; gap: .6rem; }
.unit-converter-inputs input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 8px; padding: .45rem .6rem; font-family: inherit;
}
.unit-converter-inputs span { color: var(--ink-soft); font-weight: 700; }

/* Cooking: the converter featured prominently at the top, open by default */
.unit-converter-feature {
  background: linear-gradient(135deg, var(--brand), #e08a5c);
  color: #fff; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); margin-block: 1rem 1.5rem;
}
.unit-converter-feature summary {
  color: #fff; font-size: 1.02rem; list-style: none; display: flex; align-items: center;
}
.unit-converter-feature summary::-webkit-details-marker { display: none; }
.unit-converter-feature[open] summary { margin-bottom: .4rem; }
.unit-converter-feature .unit-converter-row label { color: rgba(255,255,255,.9); }
.unit-converter-feature .unit-converter-inputs input { background: rgba(255,255,255,.95); border: none; }
.unit-converter-feature .unit-converter-inputs span { color: rgba(255,255,255,.85); }
@media (min-width: 700px) {
  .unit-converter-feature .unit-converter-body { flex-direction: row; flex-wrap: wrap; }
  .unit-converter-feature .unit-converter-row { flex: 1 1 220px; }
}

/* ---------- Site-wide flash messages ---------- */
.alert { padding: .8rem 1.1rem; border-radius: 10px; margin-block: 1rem; font-size: .93rem; }
.alert-success { background: #e5f5e9; color: #1d7a3a; }
.alert-error { background: #fdebec; color: #b3261e; }

/* ---------- Newsletter signup box (site footer) ---------- */
.newsletter-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: var(--radius); padding: 1.5rem 1.8rem; margin-block: 2rem;
}
.newsletter-box h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.newsletter-box p { color: rgba(255,255,255,.85); font-size: .9rem; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  border: none; border-radius: 999px; padding: .6rem 1.2rem; font-family: inherit; min-width: 220px;
}
.newsletter-form button {
  border: none; background: #fff; color: var(--brand); font-weight: 700; padding: .6rem 1.4rem;
  border-radius: 999px; cursor: pointer;
}
.newsletter-form button:hover { background: var(--bg); }
.newsletter-honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0; }

/* ---------- Unified search: trending tags + grouped per-world results ---------- */
.trending-searches { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: 1rem 1.6rem; }
.trending-label { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.trending-searches a {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem;
  font-size: .85rem; color: var(--ink);
}
.trending-searches a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-group .section-title { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; border-inline-start-color: var(--module-brand, var(--brand)); }
.search-group-more { font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-inline-start: auto; }
.search-group-more:hover { color: var(--module-brand, var(--brand)); }

/* ---------- Cities world: 7-day forecast strip ---------- */
.forecast-strip { margin-block: 1.3rem; }
.forecast-strip h3 { font-size: .95rem; color: var(--brand); margin-bottom: .7rem; }
.forecast-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.forecast-day { background: var(--bg); border-radius: 10px; padding: .6rem .3rem; text-align: center; }
.forecast-day-name { display: block; font-size: .72rem; color: var(--ink-soft); }
.forecast-day-icon { display: block; font-size: 1.4rem; margin-block: .2rem; }
.forecast-day-temps { font-size: .82rem; font-weight: 700; }

/* ---------- Services: Hijri/Gregorian date converter + age calculator ---------- */
.tool-grid { align-items: start; }
.tool-card { display: flex; flex-direction: column; }
.tool-card-solo { max-width: 480px; }
.tool-form { display: flex; flex-direction: column; gap: .9rem; margin-top: .3rem; }
.tool-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.tool-form input, .tool-form select {
  padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--ink);
}
.tool-form-hijri { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.tool-form-hijri label { flex: 1 1 7rem; }
.tool-form-hijri .btn { flex: 0 0 auto; margin-top: 0; }
.tool-submit { border: none; cursor: pointer; align-self: flex-start; }
.tool-result {
  margin-top: 1.1rem; padding: 1rem 1.1rem; background: var(--bg); border-radius: 10px;
  border-inline-start: 3px solid var(--brand); display: flex; flex-direction: column; gap: .3rem;
}
.tool-result-weekday { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.tool-result-date { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.tool-error { margin-top: 1rem; color: #b3261e; font-weight: 700; font-size: .88rem; }
.tool-disclaimer { margin-top: 1.4rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }

.age-result { display: flex; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.age-result-card {
  flex: 1 1 12rem; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem;
  background: var(--bg); border-radius: 10px; border-top: 3px solid var(--brand);
}
.age-result-label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.age-result-value { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.age-result-extra {
  margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
}
@media (max-width: 700px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-form-hijri { flex-direction: column; align-items: stretch; }
}
@media (max-width: 700px) { .forecast-days { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Baby names tool ---------- */
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-top: 1rem; }
.name-card {
  display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 12px;
  box-shadow: var(--shadow); padding: .8rem 1rem; border-inline-start: 4px solid var(--brand);
}
.name-card-girl { border-inline-start-color: #c0507f; }
.name-card-boy { border-inline-start-color: #2f6fc0; }
.name-card-icon { font-size: 1.4rem; flex: none; }
.name-card-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.name-card-name { font-weight: 800; font-size: 1rem; }
.name-card-meaning { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
