@import url('https://fonts.googleapis.com/css2?family=Markazi+Text:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #071a14;
  --bg-2: #0a221a;
  --surface: #0d2a21;
  --surface-2: #12352a;
  --text: #f3f0e8;
  --muted: #a8b5ae;
  --accent: #c6a15b;
  --accent-hover: #d4b56e;
  --accent-2: #1fa97a;
  --border: #1e3d32;
  --danger: #c45c5c;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Markazi Text", "Noto Naskh Arabic", serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(198, 161, 91, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(31, 169, 122, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #061510 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 26, 20, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #f5e6c2, var(--accent), #8fd9b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a8843d);
  color: #1a1205;
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.28);
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #1a1205;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(198, 161, 91, 0.22); }
  50% { box-shadow: 0 12px 36px rgba(198, 161, 91, 0.42); }
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 20, 0.35) 0%, rgba(7, 26, 20, 0.55) 40%, rgba(7, 26, 20, 0.95) 100%),
    linear-gradient(90deg, rgba(7, 26, 20, 0.75), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
  max-width: 720px;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.8rem 0 0.7rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: #e8e4da;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.3rem;
  color: #e8e4da;
}

.prose li {
  margin-bottom: 0.45rem;
}

.figure {
  margin: 1.75rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure figcaption {
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(198, 161, 91, 0.12), rgba(31, 169, 122, 0.08)),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2,
.cta-band h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 161, 91, 0.45);
}

.post-card a {
  color: inherit;
  display: block;
  height: 100%;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.post-card time {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.4rem 0 0.55rem;
  line-height: 1.3;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

.meta-row {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 2.5rem 0 2rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(7, 26, 20, 0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav .btn {
    width: 100%;
  }

  .posts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .cta-band {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary {
    animation: none;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

.nav a.is-active {
  color: var(--accent);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* Breadcrumbs + FAQ SEO blocks */
.breadcrumbs {
  padding: 0.85rem 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted, #a8b5ae);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.5rem;
  opacity: 0.55;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent, #c9a86a);
}
.breadcrumbs [aria-current="page"] {
  color: var(--text, #f2efe8);
}
#soalat h3 {
  margin-top: 1.25rem;
}
