/*
 Theme Name:   Boorjal Jannah Child
 Theme URI:    https://boorjal.com/
 Description:  Boorjal child theme for Jannah. Safe v1.0: keeps the existing Jannah homepage, improves typography, latest-news blocks, live strip, clickable chips and duplicate filtering.
 Author:       Boorjal
 Author URI:   https://boorjal.com/
 Template:     jannah
 Version:      1.0.0
 License:      license purchased
 Text Domain:  boorjal-jannah-child
 Tags:         rtl-language-support, custom-menu, featured-images, translation-ready
*/

:root{
  --bj-ink:#24160d;
  --bj-muted:#6f6258;
  --bj-paper:#fffaf1;
  --bj-soft:#f6ecdc;
  --bj-line:#ead7bd;
  --bj-gold:#b7791f;
  --bj-deep:#5b3416;
  --bj-red:#b42318;
  --bj-green:#22624a;
  --bj-blue:#235c78;
  --bj-shadow:0 20px 48px rgba(68,43,18,.10);
  --bj-font:'Noto Naskh Arabic','Bahij Nassim','Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;
}

body{
  background:linear-gradient(180deg,#fffaf2 0%,#f8efe0 55%,#fffaf4 100%) !important;
  color:var(--bj-ink);
  font-family:var(--bj-font) !important;
}
body.rtl, .rtl body, .entry-content, .post-content, .page .entry, .single-post .entry,
.post-title, .entry-title, h1,h2,h3,h4,h5,h6, .mag-box-title, .block-title{
  font-family:var(--bj-font) !important;
  font-feature-settings:"kern";
}
.entry-content,.post-content{font-size:18px;line-height:2.05;}
.entry-content p{line-height:2.08;}
a{transition:.18s ease;color:#7b3f16;}
a:hover{opacity:.92;}
.container-wrapper,.mag-box,.section-wrapper,.post-listing,.main-content{border-radius:18px;}
.container-wrapper,.mag-box{border-color:var(--bj-line) !important;box-shadow:0 10px 28px rgba(68,43,18,.05);}

/* Keep Jannah layout, but improve headline readability */
.post-title, .entry-title, .mag-box-title h3, .block-title, h1,h2,h3{letter-spacing:-.01em;color:var(--bj-ink);}
.post-title a, .entry-title a, .mag-box-title a{color:var(--bj-ink);}
.post-title a:hover, .entry-title a:hover{color:var(--bj-deep);}

/* Live headline strip */
.bj-live-strip{display:flex;align-items:center;gap:12px;background:#fffdf8;border:1px solid var(--bj-line);border-radius:18px;padding:10px 12px;margin:14px 0 20px;box-shadow:0 10px 24px rgba(68,43,18,.055);overflow:hidden;}
.bj-live-label{display:flex;align-items:center;gap:8px;white-space:nowrap;background:var(--bj-red);color:#fff;border-radius:999px;padding:7px 12px;font-weight:800;font-size:14px;}
.bj-live-dot{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.22);}
.bj-live-track{overflow:hidden;flex:1;}
.bj-live-scroll{display:flex;gap:20px;white-space:nowrap;animation:bjMarquee 42s linear infinite;}
.bj-live-strip:hover .bj-live-scroll{animation-play-state:paused;}
.bj-live-item{display:inline-flex;align-items:center;gap:8px;color:var(--bj-ink);font-weight:700;text-decoration:none;}
.bj-source-chip{display:inline-flex;align-items:center;border:1px solid rgba(183,121,31,.35);background:#fff3dd;color:#7a3e12;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:800;line-height:1.8;}
@keyframes bjMarquee{from{transform:translateX(-10%)}to{transform:translateX(100%)}}

/* Latest news shortcode */
.bj-news-section{margin:24px 0;}
.bj-news-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;border-bottom:2px solid var(--bj-line);padding-bottom:10px;}
.bj-news-section-head h2{font-size:26px;margin:0;font-weight:900;}
.bj-news-section-head a{font-weight:800;color:var(--bj-deep);}
.bj-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.bj-cols-1 .bj-news-grid{grid-template-columns:1fr;}
.bj-cols-2 .bj-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.bj-cols-4 .bj-news-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.bj-news-card{background:#fffdf8;border:1px solid var(--bj-line);border-radius:20px;padding:14px;box-shadow:0 10px 25px rgba(68,43,18,.055);transition:.18s ease;}
.bj-news-card:hover{transform:translateY(-2px);box-shadow:var(--bj-shadow);}
.bj-news-thumb{display:block;border-radius:16px;overflow:hidden;margin-bottom:10px;background:#f5ead8;}
.bj-news-thumb img{width:100%;height:170px;object-fit:cover;display:block;}
.bj-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--bj-muted);font-size:13px;margin-bottom:8px;}
.bj-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.bj-cat-chip{display:inline-flex;align-items:center;background:#f7ead8;border:1px solid var(--bj-line);border-radius:999px;padding:3px 9px;color:var(--bj-deep);font-size:12px;font-weight:800;text-decoration:none;}
.bj-news-card h3{font-size:20px;line-height:1.65;margin:7px 0 8px;font-weight:900;}
.bj-news-card h3 a{color:var(--bj-ink);text-decoration:none;}
.bj-news-card p{color:var(--bj-muted);font-size:15px;line-height:1.9;margin:0 0 10px;}
.bj-read-more{display:inline-flex;align-items:center;background:var(--bj-deep);color:#fff !important;border-radius:999px;padding:6px 13px;font-weight:800;text-decoration:none;}

/* Improve default Jannah category labels/chips */
.post-cat, .cat-counter a, a.post-cat, .cat-tags a, .entry-header .post-cat{border-radius:999px !important;font-family:var(--bj-font) !important;font-weight:800 !important;}

/* Radio / archive buttons can be placed via Jannah custom content */
.bj-radio-strip{background:linear-gradient(135deg,#271608,#5b3416);color:#fff;border-radius:20px;padding:18px 20px;margin:22px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:var(--bj-shadow);}
.bj-radio-strip a{background:#fff;color:#4d2a12;border-radius:999px;padding:8px 16px;font-weight:900;text-decoration:none;}

@media(max-width:900px){.bj-news-grid,.bj-cols-4 .bj-news-grid,.bj-cols-3 .bj-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.bj-live-strip{display:block}.bj-live-label{display:inline-flex;margin-bottom:8px}.bj-news-thumb img{height:145px}}
@media(max-width:600px){.bj-news-grid,.bj-cols-4 .bj-news-grid,.bj-cols-3 .bj-news-grid,.bj-cols-2 .bj-news-grid{grid-template-columns:1fr}.entry-content,.post-content{font-size:17px}.bj-radio-strip{display:block}.bj-radio-strip a{display:inline-flex;margin-top:10px}.bj-news-card h3{font-size:19px}}


/* v1.0 linked headings and multilingual chips */
.bj-news-section-head h2 a{color:var(--bj-ink);text-decoration:none;}
.bj-news-section-head h2 a:hover{color:var(--bj-deep);}
.bj-source-chip{text-decoration:none;}
.bj-loc-chip,.bj-tag-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800;text-decoration:none;line-height:1.8;}
.bj-loc-chip{background:#eaf4ef;border:1px solid rgba(34,98,74,.20);color:var(--bj-green);}
.bj-tag-chip{background:#eaf1f7;border:1px solid rgba(35,92,120,.20);color:var(--bj-blue);}
.bj-news-card a{cursor:pointer;}
.bj-news-section .bj-news-meta a:hover,.bj-chip-row a:hover{filter:brightness(.98);transform:translateY(-1px);}
