/* Kuran Yuvam site: calm cream and deep green, gold ornament, an
   eight-pointed star pattern and pointed (mihrab) arches. */
:root {
  --bg: #fbf6ea;
  --surface: #fffdf8;
  --border: #e8dcc0;
  --text: #1e2a28;
  --muted: #5f6b68;
  --green: #0f6e56;
  --green-deep: #08483a;
  --green-text: #0b5a46;
  --gold: #c98a1e;
  --gold-light: #ef9f27;
  --gold-soft: #f6e7c8;
  --cream: #faeeda;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c98a1e' stroke-width='1.2' opacity='.22'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3Cpath d='M0 0l12 12M72 0L60 12M0 72l12-12M72 72L60 60'/%3E%3C/g%3E%3C/svg%3E");
  --star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23faeeda' stroke-width='1.2' opacity='.14'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3Cpath d='M0 0l12 12M72 0L60 12M0 72l12-12M72 72L60 60'/%3E%3C/g%3E%3C/svg%3E");
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 16 50 0 50 0s50 16 50 34v66z'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1513;
    --surface: #15201d;
    --border: #2c3b35;
    --text: #e8ece6;
    --muted: #a7b3ad;
    --green-text: #9fe1cb;
    --gold: #e0a640;
    --gold-soft: #3a2b12;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background-color: var(--bg);
  background-image: var(--star);
}
a { color: var(--green-text); }
.band {
  height: 10px;
  background: var(--green-deep) var(--star-light);
  border-bottom: 3px solid var(--gold-light);
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

/* The pointed arch with the logo, the Besmele and the name. */
.mihrab {
  position: relative;
  margin: 8px auto 0;
  max-width: 560px;
  padding: 72px 28px 36px;
  text-align: center;
  color: var(--cream);
  background: var(--green) var(--star-light);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
}
.mihrab-frame {
  max-width: 576px;
  margin: 0 auto;
  padding: 8px;
  background: var(--gold-light);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
}
.basmala {
  font-family: 'Amiri', serif;
  font-size: 28px;
  line-height: 1.9;
  color: var(--gold-light);
  direction: rtl;
  margin: 0 0 12px;
}
.logo { width: 104px; height: 104px; border-radius: 24px; display: block; margin: 0 auto; border: 3px solid var(--cream); }
.mihrab h1 { font-size: 38px; line-height: 1.15; margin: 16px 0 6px; color: #fff; }
.mihrab .lead { color: var(--cream); font-size: 18px; margin: 0 auto 18px; max-width: 420px; }
.badge {
  display: inline-block;
  background: var(--gold-light);
  color: #412402;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 15px;
}

/* Ornamental divider: a gold star between two lines. */
.ornament { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament svg { width: 26px; height: 26px; flex: none; }
h2 { font-size: 24px; text-align: center; margin: 0 0 16px; color: var(--green-text); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-light);
  border-radius: 90px 90px 14px 14px / 40px 40px 14px 14px;
  padding: 28px 18px 18px;
  text-align: center;
}
.card b { display: block; color: var(--green-text); font-size: 18px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }

.hadith {
  position: relative;
  margin: 8px auto 0;
  max-width: 600px;
  padding: 26px 24px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  border-radius: 6px;
}
.hadith p { font-size: 21px; line-height: 1.5; margin: 0 0 10px; color: var(--green-text); font-weight: 700; }
.hadith cite { font-style: normal; color: var(--muted); font-size: 14px; }

.plain { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.plain h2 { text-align: left; }
.button {
  display: inline-block;
  background: var(--gold-light);
  color: #412402;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 30px;
  margin: 6px 0 10px;
}
.note { color: var(--muted); font-size: 15px; }
.mihrab .note { color: var(--cream); opacity: .85; }

footer {
  margin-top: 48px;
  background: var(--green-deep) var(--star-light);
  border-top: 3px solid var(--gold-light);
  color: var(--cream);
  font-size: 14px;
  text-align: center;
  padding: 24px 16px 32px;
}
footer a { color: var(--cream); }
footer .credits { opacity: .75; font-size: 13px; margin-top: 8px; }
.policy { margin-top: 16px; }
.policy h1 { font-size: 30px; color: var(--green-text); margin-top: 0; }
.policy h2 { font-size: 20px; margin-top: 28px; }
