/*
Theme Name: Bofferly Islamic Theme
Theme URI: https://bofferly.com
Author: Bofferly Media Co.
Author URI: https://bofferly.com
Description: Clean blue/gold Islamic theme with full-width hero and card layout. Optimized for the Bofferly Islamic Core plugin.
Version: 1.1.0
Text Domain: bofferly-islamic
*/

/* =====================================================
   🌙 GLOBAL VARIABLES
===================================================== */
:root {
  --boff-blue: #202F5B;
  --boff-gold: #FFD700;
  --boff-dark: #0f1a3f;
  --boff-light: #f4f4f9;
  --boff-text: #1b2237;
  --boff-radius: 10px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--boff-text);
  background: var(--boff-light);
}

/* =====================================================
   FIXED HEADER — STRAIGHT LINE ALIGNMENT (v6.3)
===================================================== */
.boff-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--boff-dark);
  z-index: 9999;
  border-bottom: 2px solid var(--boff-gold);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Topbar */
.boff-topbar {
  background: var(--boff-blue);
  color: #fff;
  font-size: 14px;
}
.boff-topbar .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

/* Header Inner */
.boff-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 20px;
  flex-wrap: nowrap;
}

/* Logo */
.boff-logo-text {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.boff-logo-text strong {
  font-size: 22px;
  color: var(--boff-gold);
  line-height: 1.2;
}
.boff-logo-text small {
  font-size: 12px;
  color: #ddd;
}

/* Navigation */
.boff-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.boff-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.boff-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}
.boff-menu li a:hover {
  color: var(--boff-gold);
}

/* Actions (icons) */
.boff-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.boff-actions button {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all .3s;
}
.boff-actions button:hover {
  background: var(--boff-gold);
  color: #000;
}

/* Header offset */
.boff-main {
  margin-top: 130px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .boff-nav {
    display: none;
    width: 100%;
  }
  .boff-nav.open {
    display: block;
    background: var(--boff-blue);
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 10px;
  }
  .boff-menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .boff-header-inner {
    flex-wrap: wrap;
  }
}

/* =====================================================
   MOBILE MENU (Responsive)
===================================================== */
@media (max-width: 900px) {
  .boff-header-inner {
    flex-wrap: wrap;
  }
  .boff-nav {
    display: none;
    width: 100%;
  }
  .boff-nav.open {
    display: block;
    background: var(--boff-blue);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 12px;
  }
  .boff-menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .boff-menu li a {
    display: block;
    width: 100%;
    padding: 8px 10px;
  }
}

/* =====================================================
   SCROLL EFFECT ON HEADER
===================================================== */
.boff-header.scrolled {
  background: #1b2548;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   FOOTER — BOFFERLY ISLAMIC THEME v5.3 (Premium Divider Edition)
===================================================== */
.boff-footer {
  background: #0f142b;
  color: #ddd;
  padding-top: 60px;
  padding-bottom: 20px;
  border-top: 3px solid var(--boff-gold);
  position: relative;
}

.boff-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

/* GOLDEN DIVIDERS BETWEEN COLUMNS */
.boff-footer-grid::before,
.boff-footer-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--boff-gold), transparent);
  opacity: 0.3;
  pointer-events: none;
}

/* Place dividers between first and second columns */
.boff-footer-grid::before {
  left: 33.33%;
}

/* And between second and third columns */
.boff-footer-grid::after {
  left: 66.66%;
}

.boff-footer-col {
  line-height: 1.8;
}

.boff-footer-title {
  color: var(--boff-gold);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.boff-footer-col p {
  color: #ccc;
  margin-bottom: 10px;
}

.boff-footer-tagline {
  font-style: italic;
  color: var(--boff-gold);
}

/* Links */
.boff-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.boff-footer-links li {
  margin-bottom: 8px;
}
.boff-footer-links a {
  color: #eee;
  text-decoration: none;
  transition: all .3s ease;
}
.boff-footer-links a:hover {
  color: var(--boff-gold);
}

/* Newsletter */
.boff-newsletter {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.boff-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 14px;
}
.boff-newsletter button {
  background: var(--boff-gold);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
  transition: 0.3s;
}
.boff-newsletter button:hover {
  background: #e0c200;
}

/* Social Icons */
.boff-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.boff-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--boff-gold);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: 0.3s;
}
.boff-footer-social a:hover {
  background: var(--boff-gold);
  color: #000;
}

/* Footer Bottom */
.boff-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  text-align: center;
  padding-top: 18px;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media(max-width:900px){
  .boff-footer-grid::before,
  .boff-footer-grid::after {
    display: none;
  }
  .boff-footer-grid {
    gap: 28px;
  }
  .boff-footer {
    padding-top: 40px;
  }
}


/* =====================================================
   UTILITY
===================================================== */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fadein.show {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   ARCHIVE PAGE STYLING
========================= */
.boff-archive-hero {
  background: linear-gradient(135deg, var(--boff-blue), var(--boff-dark));
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--boff-gold);
}
.boff-archive-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 10px;
}
.boff-archive-desc {
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  opacity: 0.9;
}
.boff-pagination {
  text-align: center;
  margin-top: 40px;
}
.boff-pagination .page-numbers {
  display: inline-block;
  background: #fff;
  color: var(--boff-blue);
  padding: 8px 14px;
  margin: 3px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: all .3s;
}
.boff-pagination .page-numbers.current,
.boff-pagination .page-numbers:hover {
  background: var(--boff-gold);
  color: #000;
  border-color: var(--boff-gold);
}
/* =========================
   SINGLE PAGE STYLING
========================= */
.boff-single {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.boff-title {
  color: var(--boff-blue);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.boff-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.boff-featured img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}
.boff-content {
  line-height: 1.8;
  font-size: 17px;
  color: #1a1a1a;
}
.boff-content blockquote {
  border-left: 4px solid var(--boff-gold);
  background: #faf8f0;
  padding: 12px 18px;
  font-style: italic;
  margin: 20px 0;
}
.boff-tags {
  margin-top: 25px;
  font-size: 14px;
  color: #333;
}
.boff-tags a {
  background: var(--boff-blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  margin: 2px;
  font-size: 13px;
}
.boff-tags a:hover {
  background: var(--boff-gold);
  color: #000;
}
.boff-share {
  margin-top: 30px;
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
}
.boff-share strong {
  display: block;
  margin-bottom: 8px;
  color: var(--boff-blue);
}
.boff-share a {
  display: inline-block;
  margin-right: 10px;
  color: var(--boff-blue);
  font-size: 18px;
  transition: color .3s;
}
.boff-share a:hover {
  color: var(--boff-gold);
}
.boff-nav-posts {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.boff-nav-posts a {
  text-decoration: none;
  color: var(--boff-blue);
  font-weight: 600;
  transition: color .3s;
}
.boff-nav-posts a:hover {
  color: var(--boff-gold);
}
/* =====================================================
   GLOBAL COLORS & THEME BASE (Bofferly Islamic)
===================================================== */
:root {
  --boff-blue: #202F5B;
  --boff-dark: #0f142b;
  --boff-gold: #FFD700;
  --boff-light: #f6f6f6;
}

/* GLOBAL BODY SETTINGS */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--boff-dark);
  color: #fff;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* CONTAINER */
.boff-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO SECTION BASE FIX */
.boff-hero {
  background-color: var(--boff-blue);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 20px;
  margin-top: 20px;
}
.boff-hero .boff-btn {
  background: var(--boff-gold);
  color: #000;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.boff-hero .boff-btn:hover {
  background: #e0c200;
}

/* SECTION BACKGROUNDS FIX */
.boff-section {
  background-color: var(--boff-dark);
  color: #fff;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Quick links + Prayer box contrast fix */
.boff-ql,
.boff-prayer {
  background-color: var(--boff-blue);
  border-radius: 10px;
  padding: 15px;
}

/* Ensure Cards & Widgets stay dark */
.boff-card, .boff-page, .boff-single {
  background-color: #182045;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
}

/* Footer inherits dark base */
.boff-footer {
  background-color: var(--boff-dark);
  color: #ccc;
}
