/* ===========================================
   BOFFERLY ISLAMIC CORE FRONT STYLE (v2.0)
   Guided by Quran, Inspired by Sunnah.
   Author: Bofferly Media Co.
=========================================== */

:root {
  --boff-blue: #202F5B;
  --boff-gold: #FFD700;
  --boff-ink: #0d1024;
  --boff-cream: #F4F2EC;
  --boff-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --boff-radius: 14px;
  --boff-transition: all 0.3s ease;
}

/* ============ GENERAL ============ */
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--boff-ink);
  line-height: 1.6;
}

a {
  color: var(--boff-blue);
  text-decoration: none;
  transition: var(--boff-transition);
}
a:hover {
  color: var(--boff-gold);
}

/* ============ HERO ============ */
.boff-hero {
  background: var(--boff-blue);
  color: #fff;
  padding: 64px 24px;
  border-radius: var(--boff-radius);
  text-align: center;
  box-shadow: var(--boff-shadow);
}
.boff-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.boff-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 700;
}
.boff-hero-ref {
  opacity: 0.85;
  margin-bottom: 16px;
  font-style: italic;
}

/* ============ BUTTONS ============ */
.boff-btn {
  display: inline-block;
  background: var(--boff-gold);
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--boff-transition);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.boff-btn:hover {
  background: #ffeb6e;
  transform: translateY(-2px);
}

/* ============ QUICK LINKS ============ */
.boff-ql {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.boff-ql-item {
  background: #0f1a3f;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--boff-transition);
}
.boff-ql-item:hover {
  background: var(--boff-gold);
  color: #000;
}

/* ============ SECTION TITLES ============ */
.boff-section-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--boff-blue);
  font-weight: 700;
  text-align: left;
}

/* ============ GRID ============ */
.boff-grid {
  display: grid;
  gap: 18px;
}
.boff-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.boff-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .boff-grid.cols-2,
  .boff-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ============ CARDS ============ */
.boff-card {
  background: #ffffff;
  border-radius: var(--boff-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #e9e9ef;
  transition: var(--boff-transition);
  box-shadow: var(--boff-shadow);
}
.boff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.boff-card-img {
  padding-top: 56%;
  background-size: cover;
  background-position: center;
}
.boff-card-body {
  padding: 14px 16px;
}
.boff-card h3 {
  margin: 0 0 6px;
  color: var(--boff-blue);
  font-size: 18px;
  font-weight: 700;
}
.boff-card p {
  margin: 0;
  color: #404457;
}

/* ============ DUA BLOCKS ============ */
.boff-dua {
  background: var(--boff-cream);
  padding: 18px;
  border-radius: var(--boff-radius);
  border: 1px solid #e2decf;
  box-shadow: var(--boff-shadow);
}
.boff-dua-title {
  font-weight: 700;
  color: var(--boff-blue);
  margin-bottom: 8px;
  font-size: 18px;
}
.boff-arabic {
  font-family: "Scheherazade", serif;
  font-size: 24px;
  direction: rtl;
  text-align: right;
  margin: 6px 0;
}
.boff-translit {
  font-style: italic;
  opacity: 0.85;
}
.boff-translation {
  margin: 8px 0;
  font-weight: 500;
  color: #202020;
}
.boff-source {
  font-size: 13px;
  opacity: 0.8;
}

/* ============ PRAYER TIMES ============ */
.boff-prayer {
  background: #0f1a3f;
  color: #fff;
  border-radius: var(--boff-radius);
  padding: 18px;
  box-shadow: var(--boff-shadow);
}
.boff-prayer-head {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
}
.boff-prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 800px) {
  .boff-prayer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.boff-prayer-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.boff-prayer-item strong {
  color: var(--boff-gold);
}

/* ============ DONATION STRIP ============ */
.boff-donate {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0f1a3f, #202F5B);
  color: #fff;
  padding: 18px;
  border-radius: var(--boff-radius);
  margin: 22px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--boff-shadow);
  flex-wrap: wrap;
}
.boff-donate strong {
  color: var(--boff-gold);
  display: block;
  font-size: 18px;
}

/* ============ NEWSLETTER ============ */
.boff-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: var(--boff-radius);
  padding: 16px;
  box-shadow: var(--boff-shadow);
}
.boff-newsletter label {
  width: 100%;
  font-weight: 600;
  color: var(--boff-blue);
}
.boff-newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 10px;
  border: 1px solid #dfe3f1;
  border-radius: 10px;
  font-size: 15px;
}
.boff-newsletter button {
  background: var(--boff-gold);
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--boff-transition);
}
.boff-newsletter button:hover {
  background: #ffeb6e;
  transform: translateY(-2px);
}

/* ============ DARK MODE SUPPORT ============ */
body.dark .boff-card,
body.dark .boff-dua,
body.dark .boff-newsletter {
  background: #121526;
  border-color: #1e233f;
  color: #fff;
}
body.dark .boff-card h3,
body.dark .boff-dua-title {
  color: var(--boff-gold);
}
body.dark .boff-prayer {
  background: #141c3f;
}
body.dark .boff-prayer-item {
  background: rgba(255, 255, 255, 0.05);
}
body.dark .boff-newsletter input {
  background: #20233f;
  color: #fff;
  border-color: #30345b;
}
body.dark .boff-newsletter button {
  background: var(--boff-gold);
  color: #000;
}
