/* ===== نور على نور — islamitisch thema ===== */
:root{
  --emerald:#0d5e4d;--emerald-d:#062f27;--emerald-l:#14806a;
  --gold:#c8a24a;--gold-l:#f3e3b3;--gold-d:#9c7a2b;
  --cream:#fbf7ee;--paper:#fffdf8;--ink:#1d2a26;--muted:#6a7a73;--line:#e6dcc3;--red:#b42318;
  --pat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230d5e4d' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='14' y='14' width='52' height='52'/%3E%3Cpath d='M40 3.2L76.8 40L40 76.8L3.2 40Z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
  --pat-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c8a24a' stroke-opacity='.22' stroke-width='1.2'%3E%3Crect x='14' y='14' width='52' height='52'/%3E%3Cpath d='M40 3.2L76.8 40L40 76.8L3.2 40Z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Cairo',Tahoma,Arial,sans-serif;background:var(--cream) var(--pat);color:var(--ink);line-height:1.8;font-size:16px}
a{color:var(--emerald);text-decoration:none}a:hover{color:var(--gold-d)}
img{max-width:100%}
.wrap{max-width:1240px;margin:0 auto;padding:0 1rem}
main.wrap{padding-top:1.5rem;padding-bottom:3rem;min-height:60vh}

/* ===== Header ===== */
.site-header{background:var(--emerald-d) var(--pat-gold);color:#fff;position:sticky;top:0;z-index:30;box-shadow:0 4px 18px #062f2755}
.site-header::after{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--gold-d),var(--gold-l),var(--gold),var(--gold-l),var(--gold-d))}
.bismillah{text-align:center;font-family:'Amiri',serif;color:var(--gold-l);font-size:1.15rem;padding:.2rem 0 0;line-height:1.5;opacity:.95}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.2rem;padding-bottom:.55rem}
.brand{display:flex;align-items:center;gap:.7rem;color:#fff}
.brand:hover{color:#fff}
.brand img{width:54px;height:54px;filter:drop-shadow(0 2px 6px #0006)}
.brand b{display:block;font-family:'Amiri',serif;font-size:1.7rem;line-height:1.1;color:var(--gold-l)}
.brand small{display:block;font-size:.78rem;opacity:.8;letter-spacing:.02em}
.nav{display:flex;gap:.2rem;flex-wrap:wrap}
.nav a{color:#fff;padding:.35rem .95rem;border-radius:999px;font-weight:600;font-size:.98rem;border:1px solid transparent}
.nav a:hover{border-color:var(--gold);color:var(--gold-l)}
.nav a.on{background:linear-gradient(135deg,var(--gold-l),var(--gold));color:var(--emerald-d)}
.menu-btn{display:none;background:none;border:1px solid var(--gold);color:var(--gold);font-size:1.4rem;border-radius:8px;padding:.1rem .6rem;cursor:pointer}

/* ===== Layout met zijbalk rechts ===== */
.layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:1.6rem;padding-top:1.5rem;padding-bottom:3rem;align-items:start}
.sidebar{position:sticky;top:112px;max-height:calc(100vh - 124px);overflow-y:auto;padding-left:.2rem;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
.content{min-width:0;min-height:60vh}
.side-box{background:var(--paper);border:1px solid var(--line);border-radius:18px;margin-bottom:1.1rem;overflow:hidden;box-shadow:0 4px 14px #0d5e4d12}
.side-title{margin:0;padding:.65rem 1rem;font-family:'Amiri',serif;font-size:1.35rem;color:var(--gold-l);background:var(--emerald) var(--pat-gold);border-bottom:3px solid var(--gold);display:flex;align-items:center;gap:.5rem}
.side-title::before{content:"❖";color:var(--gold);font-size:.9rem}
.sheikh-menu,.cat-list,.gen-list{list-style:none;margin:0;padding:0}
.sheikh-menu>li{border-bottom:1px solid var(--line)}
.sheikh-menu>li:last-child{border-bottom:0}
.sheikh-menu summary,.sheikh-link{display:flex;align-items:center;gap:.7rem;padding:.55rem .8rem;cursor:pointer;list-style:none;color:var(--ink);font-weight:700}
.sheikh-menu summary::-webkit-details-marker{display:none}
.sheikh-menu summary:hover,.sheikh-link:hover{background:#f6efd9;color:var(--emerald)}
.sheikh-menu .nm{flex:1;line-height:1.35;font-size:.98rem}
.sheikh-menu .cnt{font-size:.78rem;background:var(--gold-l);color:#6b5412;border-radius:999px;padding:0 .55rem;font-weight:700}
.sheikh-menu summary::after{content:"‹";color:var(--gold-d);font-size:1.3rem;transition:.2s;transform:rotate(0)}
.sheikh-menu details[open]>summary::after{transform:rotate(-90deg)}
.sheikh-menu details[open]>summary{background:#f6efd9}
.cat-list{background:#fbf6e6;padding:.3rem 0 .5rem}
.cat-list a{display:flex;justify-content:space-between;gap:.5rem;padding:.25rem 1rem .25rem .8rem;margin-right:2.2rem;border-right:2px solid var(--gold);color:#35504a;font-size:.94rem}
.cat-list a:hover,.cat-list a.on{color:var(--emerald);background:#f1e8c9;font-weight:700}
.cat-list small{color:var(--muted)}
.gen-list a{display:flex;justify-content:space-between;padding:.35rem 1rem;border-bottom:1px dashed var(--line);color:var(--ink)}
.gen-list a:hover{background:#f6efd9;color:var(--emerald)}
.gen-list small{color:var(--muted)}
.side-more{display:block;text-align:center;padding:.5rem;font-weight:700;background:#f6efd9;border-top:1px solid var(--line)}
.contact-box{padding:1rem;text-align:center}
.contact-box p{margin:.2rem 0 .6rem;color:var(--muted);font-size:.92rem}
.contact-box .mail{display:inline-block;direction:ltr;font-weight:700;background:linear-gradient(135deg,var(--emerald),var(--emerald-d));color:#fff;padding:.45rem 1rem;border-radius:999px;border:1px solid var(--gold);font-size:.92rem;word-break:break-all}
.contact-box .mail:hover{color:var(--gold-l)}

/* ===== Arch (محراب) foto's ===== */
.arch{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(160deg,var(--emerald-l),var(--emerald-d));border:2px solid var(--gold);box-shadow:0 0 0 2px var(--paper),0 0 0 3px var(--gold-d);flex:none;color:var(--gold-l);font-family:'Amiri',serif;font-weight:700}
.arch img{width:100%;height:100%;object-fit:cover;display:block}
.arch-sm{width:44px;height:54px;border-radius:22px 22px 6px 6px;font-size:1.4rem}
.arch-md{width:110px;height:136px;border-radius:55px 55px 10px 10px;font-size:2.8rem}
.arch-lg{width:170px;height:210px;border-radius:85px 85px 14px 14px;font-size:4.5rem}

/* ===== Hero ===== */
.hero{position:relative;background:linear-gradient(145deg,var(--emerald),var(--emerald-d)) ;color:#fff;text-align:center;border-radius:24px;padding:2rem 1rem 2.2rem;margin-bottom:2rem;border:2px solid var(--gold);box-shadow:0 10px 34px #0d5e4d44,inset 0 0 0 5px var(--emerald-d),inset 0 0 0 6px var(--gold-d);overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:var(--pat-gold);opacity:.9;pointer-events:none}
.hero>*{position:relative}
.hero .hero-logo{width:104px;height:104px;filter:drop-shadow(0 4px 14px #000a)}
.hero h1{margin:.2rem 0 0;font-family:'Amiri',serif;font-size:2.9rem;line-height:1.3;background:linear-gradient(180deg,#fff3c4,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.orn{display:flex;align-items:center;justify-content:center;gap:.7rem;color:var(--gold);margin:.2rem 0 .6rem}
.orn::before,.orn::after{content:"";height:1px;width:70px;background:linear-gradient(90deg,transparent,var(--gold))}
.orn::after{transform:scaleX(-1)}
.hero p{margin:0 0 1.2rem;opacity:.92;font-size:1.08rem}
.search{display:flex;max-width:540px;margin:0 auto;gap:.4rem}
.search input{flex:1;border-radius:999px!important;border:2px solid var(--gold)!important;padding:.65rem 1.2rem!important}
.search button{border-radius:999px}
.stats{margin-top:1.2rem;display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap}
.stats span{background:#ffffff14;border:1px solid #c8a24a88;color:var(--gold-l);padding:.15rem .9rem;border-radius:999px;font-weight:600;font-size:.95rem}

/* ===== Forms & buttons ===== */
input,select,textarea,button{font-family:inherit;font-size:1rem}
input[type=text],input[type=search],input[type=password],input[type=url],input[type=email],input[type=number],select,textarea{padding:.6rem .9rem;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);outline-offset:1px}
textarea{min-height:130px}
button,.btn{display:inline-block;background:linear-gradient(135deg,var(--gold-l),var(--gold));color:var(--emerald-d);border:1px solid var(--gold-d);padding:.55rem 1.3rem;border-radius:10px;font-weight:700;cursor:pointer;text-align:center}
button:hover,.btn:hover{filter:brightness(1.06);color:var(--emerald-d)}
.btn-green{background:linear-gradient(135deg,var(--emerald-l),var(--emerald));color:#fff;border-color:var(--emerald-d)}.btn-green:hover{color:#fff}
.btn-red{background:var(--red);color:#fff;border-color:#7a1810}.btn-red:hover{color:#fff}
.btn-sm{padding:.2rem .7rem;font-size:.9rem}

/* ===== Sections ===== */
.section{margin-bottom:2.4rem}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.sec-title{font-family:'Amiri',serif;font-size:1.8rem;color:var(--emerald);margin:0 0 1rem;display:flex;align-items:center;gap:.6rem}
.sec-title::before{content:"❖";color:var(--gold);font-size:1.1rem}
.sec-title::after{content:"";flex:1;height:2px;background:linear-gradient(270deg,var(--gold),transparent);margin-right:.4rem}
.sec-head .sec-title{flex:1}
.more{font-weight:700;white-space:nowrap}
.page-title{font-family:'Amiri',serif;color:var(--emerald);font-size:2.1rem;margin:.2rem 0 1rem;line-height:1.5}
.empty{text-align:center;color:var(--muted);padding:2rem;background:var(--paper);border-radius:14px;border:1px dashed var(--gold)}
.count{color:var(--muted);margin:.2rem 0 1rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{background:var(--paper);border:1px solid var(--gold);padding:.25rem 1rem;border-radius:999px;font-weight:600;color:var(--emerald-d)}
.chip small{color:var(--muted);margin-right:.3rem}
.chip:hover,.chip.on{background:var(--emerald);color:#fff;border-color:var(--emerald)}
.chip:hover small,.chip.on small{color:var(--gold-l)}
.filters{display:grid;grid-template-columns:2fr 1fr 1.4fr 1.4fr auto;gap:.6rem;margin-bottom:1rem}

/* ===== Cards ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.2rem}
.card{background:var(--paper);border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:.2s}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #0d5e4d26;border-color:var(--gold)}
.thumb{display:block;position:relative;aspect-ratio:16/9;background:var(--emerald-d)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .play{position:absolute;inset:0;margin:auto;width:54px;height:54px;border-radius:50%;background:#0d5e4dd9;color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.3rem;border:2px solid var(--gold)}
.thumb-audio{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--pat-gold),linear-gradient(135deg,var(--emerald),var(--emerald-d));font-size:3rem}
.card-body{padding:.8rem 1rem 1rem}
.card h3{margin:.4rem 0;font-size:1.05rem;line-height:1.55}
.card h3 a{color:var(--ink)}.card h3 a:hover{color:var(--emerald)}
.badges{display:flex;gap:.4rem;flex-wrap:wrap}
.badge{font-size:.76rem;padding:.02rem .6rem;border-radius:999px;font-weight:700}
.b-audio{background:#e3f3ea;color:#14532d}.b-video{background:#fde8e8;color:#9b1c1c}.b-cat{background:var(--gold-l);color:#6b5412}
.speaker{margin:.1rem 0;color:var(--muted);font-size:.93rem}
.meta{margin:.1rem 0;color:var(--muted);font-size:.85rem}

/* ===== Sheikh cards / profile ===== */
.sheikh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.2rem}
.sheikh-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:1.2rem .8rem 1rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.4rem;transition:.2s;color:var(--ink)}
.sheikh-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #0d5e4d26;border-color:var(--gold);color:var(--ink)}
.sheikh-card h3{margin:.3rem 0 0;font-family:'Amiri',serif;font-size:1.3rem;color:var(--emerald);line-height:1.4}
.sheikh-card .nums{display:flex;gap:.6rem;font-size:.85rem;color:var(--muted);flex-wrap:wrap;justify-content:center}
.sheikh-head{display:flex;gap:1.6rem;align-items:center;background:var(--emerald) var(--pat-gold);background-color:var(--emerald-d);color:#fff;border-radius:22px;padding:1.4rem 1.6rem;border:2px solid var(--gold);margin-bottom:1.5rem;box-shadow:0 8px 28px #0d5e4d33}
.sheikh-head h1{margin:0;font-family:'Amiri',serif;font-size:2.2rem;color:var(--gold-l);line-height:1.4}
.sheikh-head p{margin:.4rem 0;opacity:.92}
.sheikh-head .nums{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.6rem}
.sheikh-head .nums span{background:#ffffff14;border:1px solid #c8a24a88;color:var(--gold-l);padding:.1rem .8rem;border-radius:999px;font-size:.92rem;font-weight:600}
.status{display:inline-block;font-size:.78rem;font-weight:700;padding:.02rem .7rem;border-radius:999px}
.st-active{background:#d8f3e3;color:#0f5132}.st-quiet{background:#fdf0c9;color:#7a5a05}.st-empty{background:#eceff0;color:#555}

/* ===== Detail ===== */
.detail{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:1.5rem;margin-bottom:2rem;border-top:5px solid var(--gold)}
.detail h1{font-family:'Amiri',serif;color:var(--emerald);margin:.3rem 0;font-size:2rem;line-height:1.5}
.crumbs{color:var(--muted);font-size:.9rem}
.video-wrap{position:relative;aspect-ratio:16/9;margin:1rem 0;border-radius:14px;overflow:hidden;background:#000;border:3px solid var(--gold)}
.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.audio-box{background:var(--pat-gold),linear-gradient(135deg,var(--emerald),var(--emerald-d));border-radius:16px;padding:1.5rem;text-align:center;margin:1rem 0;border:3px solid var(--gold)}
.audio-ico{font-size:3rem}
.audio-box audio{width:100%;max-width:600px}
.desc{margin-top:1rem;line-height:2;font-size:1.05rem}

/* ===== Pager ===== */
.pager{display:flex;justify-content:center;gap:.4rem;margin-top:2rem;flex-wrap:wrap}
.pager a,.pager span{min-width:38px;text-align:center;padding:.3rem .6rem;border-radius:8px;background:var(--paper);border:1px solid var(--line)}
.pager .cur{background:var(--emerald);color:#fff;border-color:var(--emerald)}
.pager .dots{border:0;background:none}

/* ===== Footer ===== */
.site-footer{background:var(--emerald-d) var(--pat-gold);color:#d9e6e1;text-align:center;padding:1.8rem 0 1.2rem;border-top:4px solid var(--gold)}
.site-footer img{width:64px;height:64px}
.site-footer .ayah{font-family:'Amiri',serif;font-size:1.6rem;color:var(--gold-l);margin:.2rem}
.site-footer p{margin:.2rem}.site-footer .small{font-size:.8rem;opacity:.7}.site-footer a{color:#d9e6e1}
.site-footer .mail{direction:ltr;display:inline-block;color:var(--gold-l)}

/* ===== Contact ===== */
.contact-form{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:1.4rem;max-width:640px}
.hp{position:absolute;left:-9999px;opacity:0}

/* ===== Admin ===== */
.admin-bar{background:var(--emerald-d);color:#fff;border-bottom:4px solid var(--gold)}
.admin-bar .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding-top:.6rem;padding-bottom:.6rem}
.admin-bar strong{margin-left:1rem;color:var(--gold-l);display:flex;align-items:center;gap:.5rem}
.admin-bar strong img{width:30px;height:30px}
.admin-bar a{color:#fff;padding:.3rem .8rem;border-radius:8px}
.admin-bar a:hover,.admin-bar a.on{background:var(--gold);color:var(--emerald-d)}
.admin-bar .sp{flex:1}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:1.2rem;margin-bottom:1.2rem}
.panel h2{margin-top:0;color:var(--emerald);font-family:'Amiri',serif}
.alert{padding:.7rem 1rem;border-radius:10px;margin-bottom:1rem}
.alert.ok{background:#e3f3ea;color:#14532d}.alert.err{background:#fde8e8;color:#9b1c1c}
table.tbl{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}
.tbl th,.tbl td{padding:.55rem .8rem;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
.tbl th{background:var(--emerald);color:#fff;white-space:nowrap}
.tbl tr:hover td{background:#fbf8ef}
.tbl form{display:inline}
.tbl-wrap{overflow-x:auto}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.2rem}
.kpi{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:1rem;text-align:center;border-top:4px solid var(--gold)}
.kpi b{display:block;font-size:2rem;color:var(--emerald)}
.frow{margin-bottom:1rem}.frow label{display:block;font-weight:700;margin-bottom:.3rem}
.frow small{color:var(--muted)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.radios{display:flex;gap:1.5rem}.radios label{font-weight:600;display:flex;align-items:center;gap:.4rem}
.login-box{max-width:400px;margin:3rem auto;background:var(--paper);border:2px solid var(--gold);border-radius:18px;padding:2rem}
.login-box .lg{display:block;margin:0 auto .5rem;width:90px}
.inline-edit{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}.inline-edit input[type=text]{width:auto;flex:1;min-width:140px}.inline-edit input[type=number]{width:70px;padding:.5rem;border:1px solid var(--line);border-radius:10px}.inline-edit select{width:auto}
.photo-prev{display:flex;align-items:center;gap:1rem}

@media (max-width:980px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:static;max-height:none;order:2;padding:0}
  .filters{grid-template-columns:1fr 1fr}.filters input[type=search]{grid-column:1/-1}
}
@media (max-width:760px){
  .menu-btn{display:block}
  .nav{display:none;position:absolute;top:100%;right:0;left:0;background:var(--emerald-d);flex-direction:column;padding:.6rem 1rem;border-bottom:4px solid var(--gold)}
  body.nav-open .nav{display:flex}
  .brand img{width:44px;height:44px}.brand b{font-size:1.4rem}
  .hero h1{font-size:2.1rem}
  .sheikh-head{flex-direction:column;text-align:center}
  .two{grid-template-columns:1fr}
  .detail{padding:1rem}
  .arch-lg{width:140px;height:174px;border-radius:70px 70px 12px 12px}
}
