/* Al-Mustaqbal Islamic Foundation — static rebuild of the Benevolent WordPress theme look */

:root {
  --accent: #fcb216;        /* donate yellow */
  --accent-dark: #e09b00;
  --primary: #45c267;       /* Benevolent green (links, buttons) */
  --primary-dark: #0f907f;  /* Benevolent teal */
  --heading: #121212;
  --text: #666;
  --muted: #8a8a8a;
  --line: #e7e7e7;
  --bg: #fff;
  --bg-soft: #f6f6f6;
  --header-bg: #202020;
  --footer-bg: #202020;
  --footer-text: #b5b8ba;
  --radius: 4px;
  --wrap: 1170px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--accent); color: #000; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--accent-dark); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--heading); text-transform: none; font-size: 1.1rem; padding: 14px 30px; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-logo img { width: 120px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--heading);
  font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { background: transparent; color: var(--accent-dark); text-transform: none; font-weight: 600; font-size: 1rem; }
.header-actions .btn:hover { background: var(--accent); color: #fff; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; cursor: pointer; color: var(--heading);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .site-logo img { width: 96px; }
  .main-nav { display: none; width: 100%; order: 3; padding-bottom: 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .header-actions .btn { padding: 9px 16px; font-size: .8rem; }
}

/* Hero slider */
.hero { position: relative; overflow: hidden; background: #222; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; visibility: hidden;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: clamp(360px, 52vw, 620px); object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.hero-caption .text { max-width: 820px; margin: 0 auto; color: #fff; text-align: center; }
.hero-caption h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 3.4rem); margin-bottom: .5em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-caption p { font-size: 1.1rem; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 1.4rem; line-height: 1;
}
.hero-arrow:hover { background: var(--accent); color: #fff; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
@media (min-width: 600px) { .hero-caption .container { padding: 0 76px; } }
@media (max-width: 599px) { .hero-arrow { display: none; } }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-header p { font-size: 1.05rem; }
@media (max-width: 599px) { .section { padding: 56px 0; } }

/* Give cards (homepage intro) */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.give-card .thumb { position: relative; display: block; width: 160px; height: 160px; margin-bottom: 22px; }
.give-card .thumb > img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.give-card .icon { position: absolute; left: -8px; bottom: -6px; width: 68px; height: 68px; background: var(--primary); border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.give-card .icon img { width: 100%; height: 100%; }
.give-card h3 { font-weight: 500; font-size: 1.3rem; margin-bottom: 4px; }
.give-card .more { font-weight: 700; text-transform: uppercase; font-size: .95rem; }
@media (max-width: 799px) { .give-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 44px; } }

/* Stats */
.stats { text-align: center; }
.stats-header { background: var(--primary-dark); padding: 56px 16px; }
.stats-header h2 { color: #fff; margin: 0; font-size: 2.1rem; }
.stats-grid { display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 72px; }
.stat strong { display: block; font-size: 3.6rem; line-height: 1.1; font-weight: 400; color: var(--heading); }
.stat strong::after { content: ""; display: block; width: 28px; height: 2px; background: #ccc; margin: 18px auto 16px; }
.stat span { font-size: .95rem; font-weight: 700; color: var(--heading); text-transform: uppercase; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb img { width: 100%; aspect-ratio: 350 / 196; object-fit: cover; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--primary-dark); }
.post-card .more { margin-top: auto; font-weight: 700; font-size: .95rem; color: #777; }
.post-card .more:hover { color: var(--primary); }
.post-meta { font-size: .85rem; color: var(--primary-dark); margin-bottom: 10px; }
@media (max-width: 899px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .post-grid { grid-template-columns: 1fr; } }

/* Blog list */
.post-list { display: grid; gap: 40px; }
.post-row { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-row .thumb img { width: 100%; aspect-ratio: 780 / 437; object-fit: cover; border-radius: var(--radius); }
.post-row h2 { font-size: 1.5rem; }
.post-row h2 a { color: var(--heading); }
@media (max-width: 799px) { .post-row { grid-template-columns: 1fr; gap: 18px; } }

/* CTA band */
.cta { position: relative; background: var(--footer-bg); color: #fff; text-align: center; padding: 90px 0 30px; }
.cta .container { position: relative; }
.cta h3 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.3rem); max-width: 820px; margin: 0 auto 36px; }

/* Page header (inner pages) */
.page-header { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-header h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-dark); }

/* Article content */
.content { max-width: 860px; margin: 0 auto; padding: 56px 16px 72px; }
.content.wide { max-width: var(--wrap); }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content img { border-radius: var(--radius); }
.content .featured { margin-bottom: 32px; }
.content figure { margin: 0 0 24px; }
.content blockquote { margin: 0 0 1.2em; padding: 16px 24px; border-left: 4px solid var(--accent); background: var(--bg-soft); }
.content .cta-inline { margin: 32px 0; }
.notice { background: #fff8e6; border: 1px solid #f3dd9e; border-radius: var(--radius); padding: 16px 20px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 32px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gallery.two img { aspect-ratio: auto; }
@media (max-width: 599px) { .gallery.two { grid-template-columns: 1fr; } }

/* Donate */
.donate-options { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 32px 0 48px; }
.donate-option { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.donate-option img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.donate-option .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.donate-option .btn { align-self: flex-start; margin-top: auto; }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.bank-card { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.bank-card h3 { margin-top: 0; font-size: 1.1rem; }
.bank-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.bank-card dt { font-weight: 700; color: var(--heading); }
.bank-card dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .donate-options, .bank-grid { grid-template-columns: 1fr; } }

/* Appeals list */
.appeal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; font-weight: 600; }
.post-nav a { max-width: 48%; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: .95rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 16px 40px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--accent); }
.site-info { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .875rem; text-align: center; }
@media (max-width: 899px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 499px) { .footer-widgets { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
