/* V14 — HTML/CSS implementation of the owner-approved reference. Do not replace functional markup with an image. */
:root{--pine:#07513d;--deep:#022f28;--gold:#cda95b;--paper:#f4f6fa;--cream:#fffefd;--font:'Tajawal',Tahoma,Arial,sans-serif}
body{font-family:'Tajawal',Tahoma,sans-serif;background:linear-gradient(180deg,#f1f4f9 0%,#fff 58%);color:#14261f}
h1,h2,h3,.masthead .brand strong,.footer-brand{font-family:'Alexandria','Tajawal',sans-serif;letter-spacing:0}
.container{max-width:1510px;padding-inline:26px}
.masthead{background:#032d24 url('/assets/img/header-mosque-v14.webp') center center / cover no-repeat;min-height:192px;position:relative;overflow:visible;isolation:isolate;color:#fff}
.masthead:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#00362b8a 0%,transparent 30%,transparent 69%,#00362b86 100%)}
.masthead-top{display:none}
.masthead-main{min-height:188px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:0;padding-bottom:16px}
.masthead .brand{gap:18px;color:white;flex:0 0 auto;max-width:560px;flex-direction:row-reverse}
.masthead .brand img{width:110px;height:110px;object-fit:contain;border:0;background:transparent;box-shadow:none;border-radius:0;filter:drop-shadow(0 3px 6px #0003)}
.masthead .brand strong{font-size:clamp(27px,3vw,47px);font-weight:800;line-height:1.4;white-space:nowrap;text-shadow:0 3px 12px #001b1773}
.masthead .brand span{display:block;color:#eff2e9;font-weight:700;font-size:13px;line-height:1.7;margin-top:3px;text-shadow:0 2px 8px #001b17}
.masthead-search{width:min(100%,360px);height:52px;border:1px solid #ffffff63;border-radius:15px;overflow:hidden;background:#ffffff19;backdrop-filter:blur(7px);box-shadow:0 7px 14px #001c1738;margin-inline-start:auto;display:flex;flex:0 1 360px}
.masthead-search input{font-size:15px;font-weight:600;min-width:0;height:50px;background:transparent;color:#fff;padding-inline:19px}
.masthead-search button{color:#fff;height:50px;width:52px;background:#ffffff16}
.masthead-notice{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #ffffff69;border-radius:15px;background:#ffffff17;color:white;font-size:22px;backdrop-filter:blur(4px)}
.masthead-notice:hover{background:#fff;color:#07513d}
.header{position:relative!important;top:auto!important;background:transparent!important;border:0;box-shadow:none!important;backdrop-filter:none;z-index:70;margin-top:-32px;margin-bottom:2px}
.header .container.header-inner{background:linear-gradient(180deg,#fff,#f9f9f9);border:1px solid #fff;box-shadow:0 12px 22px #111d1a2c;border-radius:20px;min-height:75px;padding:9px 17px;gap:8px}
.nav{gap:4px;justify-content:space-between;flex:1}
.nav a{font-family:'Tajawal',sans-serif;font-size:16px;font-weight:800;color:#172722;border-radius:10px;padding:13px 14px;gap:9px;display:inline-flex;align-items:center;white-space:nowrap;transition:background .2s}
.nav a.active,.nav a:hover{background:linear-gradient(135deg,#006946,#004532);color:#fff;box-shadow:0 3px 8px #00644725}
.nav a .ui-icon{width:22px;height:22px;color:#126049}
.nav a.active .ui-icon,.nav a:hover .ui-icon{color:white}
.header-actions{gap:6px}
.header-actions .icon-action{width:41px;height:41px;border:0;background:#f5f7f6}
.header-actions .nav-install{font-size:12px;padding:8px 10px;min-height:41px}
.home-v14{padding-top:25px;background:transparent}
.home-v14 .home-layout{grid-template-columns:minmax(255px,290px) minmax(0,1fr);gap:23px}
.home-v14 .homepage-sidebar{gap:14px}
.home-v14 .homepage-content{min-width:0}
.home-v14 .sidebar-panel,.home-v14 .audio-home-card{border-radius:14px;border:1px solid #e4e6e3;background:#fff;box-shadow:0 7px 22px #21341b12;overflow:hidden}
.home-v14 .prayer-mini .sidebar-title{background:linear-gradient(100deg,#004b33,#0b6748);padding:11px 15px;min-height:45px;color:#fff}
.home-v14 .sidebar-title .ui-icon{color:#d9c785}
.home-v14 .sidebar-title h2{font-size:17px}
.home-v14 .sidebar-note{font-size:12px;padding-inline:13px;margin:12px 0 6px}
.home-v14 .prayer-mini .side-times{padding:0 12px}
.home-v14 .side-times .time-pill{border-bottom:1px solid #eff1ef;border-radius:7px;display:flex;justify-content:space-between;gap:10px;padding:5px 12px;min-height:37px;align-items:center;margin-bottom:2px}
.home-v14 .side-times .time-pill strong{font-size:15px;color:#073b32}
.home-v14 .sidebar-action{margin:9px 12px 13px;background:#005640;color:white;border-radius:8px;padding:10px;text-align:center}
.home-v14 .featured-story{min-height:296px;max-height:none;border-radius:15px;box-shadow:0 8px 22px #26372e1e;align-items:center;border:1px solid #bccdc4;background:linear-gradient(110deg,#f5cc75,#063e30)}
.home-v14 .featured-image{object-fit:cover;object-position:35% 58%;filter:saturate(1.04)}
.home-v14 .featured-shade{background:linear-gradient(270deg,#003d2efe 0%,#00432ef5 33%,#003927a1 52%,#00352400 83%)}
.home-v14 .featured-content{width:70%;min-height:296px;max-width:690px;padding:25px 36px 24px;margin-inline-end:auto}
.home-v14 .featured-label{background:#e9c782;color:#264334;padding:5px 14px;font-size:12px;border-radius:8px}
.home-v14 .featured-date{color:#e3d6b7!important;font-size:11px!important;margin:6px 0!important}
.home-v14 .featured-content h1{font-size:clamp(21px,2.65vw,35px);line-height:1.55;margin:9px 0 6px;max-width:560px}
.home-v14 .featured-content>p:not(.featured-date){font-size:13px;line-height:1.8;margin:0;max-width:540px}
.home-v14 .featured-actions{margin-top:13px}
.home-v14 .featured-actions .btn{min-height:39px;font-size:13px;padding:8px 16px}
.home-v14 .featured-actions .btn.gold{background:linear-gradient(#ffdf98,#e9b969)!important;border-color:#fbdba0!important;color:#253c2f!important}
.home-v14 .featured-watermark{display:none}
.home-v14 .quick-access{padding-top:12px}
.home-v14 .section-strip{display:none}
.home-v14 .quickbar{gap:10px}
.home-v14 .quick{min-height:88px;padding:12px 6px;background:linear-gradient(#fffefb,#f7f5ed);border:1px solid #e5e4dc;border-radius:13px;box-shadow:0 5px 8px #1c2d2514;gap:5px;font-size:13px;color:#063c30}
.home-v14 .quick .ui-icon{width:32px;height:32px;stroke-width:1.9}
.home-v14 .homepage-articles{padding-top:20px}
.home-v14 .homepage-articles .section-header{margin-bottom:10px;align-items:center}
.home-v14 .homepage-articles .section-header h2{font-size:21px;margin:0}
.home-v14 .homepage-articles .section-header .eyebrow,.home-v14 .homepage-articles .section-header p{display:none}
.home-v14 .featured-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-v14 .topic-card .topic-cover{height:118px}
.home-v14 .topic-inner{padding:10px 12px}
.home-v14 .topic-inner .badge{font-size:10px}
.home-v14 .topic-inner h3{font-size:13px;line-height:1.7;margin-top:6px}
.home-v14 .topic-inner p{display:none}
.home-v14 .topic-card .card-foot{font-size:10px;padding-top:6px}
.home-v14 .topic-card .card-foot span{display:none}
.home-v14 .topic-card .link{font-size:11px}
.audio-home-title{background:linear-gradient(90deg,#035136,#0b573c);color:#fff;padding:10px 12px;display:flex;align-items:center;gap:7px}
.audio-home-title .ui-icon{width:22px;height:22px}
.audio-home-title h2{font-size:15px;line-height:1.4;color:#fff;margin:0}
.audio-mini-cover{padding:12px;display:grid;grid-template-columns:108px 1fr;gap:12px;align-items:center}
.audio-mini-cover>img{width:108px;height:129px;object-fit:cover;border-radius:10px}
.audio-mini-cover strong{font-size:14px;color:#064231}
.audio-mini-cover p{font-size:11px;line-height:1.7;color:#536b5f;margin:3px 0 10px}
.audio-mini-cover .btn{min-height:38px;font-size:11px;padding:8px 11px;white-space:normal}
.audio-details{border-top:1px solid #e2e7df;padding:7px 12px}
.audio-details summary{font-size:12px;font-weight:700;color:#075741;cursor:pointer}
.home-audio-iframe{width:100%;height:410px;display:block;border:0;margin-top:10px;border-radius:8px}
.home-v14 .homepage-sidebar .sidebar-popular{display:block}
.home-v14 .sidebar-popular .sidebar-article-list a{padding:9px 12px}
.home-v14 .sidebar-quiz{border-radius:13px}
.home-daily-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 8px}
.daily-strip-card{background:linear-gradient(125deg,#fbf9f2,#fff);border:1px solid #e6e0cc;border-radius:13px;min-height:165px;padding:16px 18px;display:flex;flex-direction:column;box-shadow:0 6px 15px #2437280c}
.daily-strip-title{color:#063e2d;font-size:12px;font-weight:800;display:flex;align-items:center;gap:7px;border-bottom:1px solid #e9dfb8;padding-bottom:8px}
.daily-strip-title .ui-icon{width:20px;height:20px}
.daily-strip-card h3{font-size:15px;margin:12px 0 4px;line-height:1.7;color:#123b2e}
.daily-strip-card p{font-size:11px;line-height:1.8;margin:0 0 5px;color:#536054}
.daily-strip-card a{color:#006d4b;font-size:11px;font-weight:700;margin-top:auto;display:flex;align-items:center;gap:5px}
.daily-strip-card a .ui-icon{width:14px;height:14px}
.daily-strip-card.date{text-align:center;background:linear-gradient(#f6f4e8,#f0e9d2);align-items:center}
.daily-strip-card.date .daily-strip-title{width:100%;justify-content:center}
.daily-strip-card.date strong{font-size:18px;color:#043c2b;margin:9px 0;line-height:1.7}
.daily-strip-card.date span{font-size:12px;color:#72634a}
.home-v14 .home-categories .section-header h2{font-size:20px}
.home-v14 .home-categories .section-header{margin-bottom:12px}
.footer{background:#043d2f;box-shadow:inset 0 6px 0 #cdab6d;margin-top:24px;padding-top:30px}
.footer-brand{color:#fcf6e9}
/* Desktop/intermediate responsiveness: prioritize mobile usability, no clipped links. */
@media(max-width:1380px){.container{padding-inline:18px}.nav a{font-size:13px;padding:12px 7px;gap:5px}.nav a .ui-icon{width:18px;height:18px}.header-actions .nav-install{display:none}.home-v14 .featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.masthead .brand strong{font-size:28px}.masthead .brand img{width:84px;height:84px}.masthead-search{flex-basis:260px}.home-v14 .home-layout{grid-template-columns:240px minmax(0,1fr);gap:15px}.home-v14 .featured-content{width:77%;padding:20px}.home-v14 .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav a{font-size:12px;padding:10px 6px}.home-daily-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.masthead{min-height:175px}.masthead-main{min-height:166px}.home-v14 .home-layout{grid-template-columns:1fr}.home-v14 .homepage-sidebar{grid-row:2;grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-v14 .homepage-content{grid-column:1;grid-row:1}.home-v14 .sidebar-quiz{grid-column:span 2}.home-v14 .featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.nav a{font-size:12px}.header .container.header-inner{min-height:60px}}
@media(max-width:780px){.container{padding-inline:13px}.masthead{min-height:164px;background-position:50% 45%}.masthead-main{min-height:163px;align-items:flex-start;padding-top:25px;padding-bottom:16px}.masthead .brand{flex-direction:row-reverse;gap:7px;max-width:250px}.masthead .brand img{width:56px;height:56px}.masthead .brand strong{font-size:21px;white-space:normal}.masthead .brand span{font-size:9px;max-width:210px}.masthead-search{display:none}.masthead-notice{height:36px;width:36px;flex-basis:36px;border-radius:10px;font-size:15px;margin-inline-start:auto}.header{margin-top:-31px;margin-bottom:0}.header .container.header-inner{min-height:58px;border-radius:15px;padding:7px 11px}.header-actions{gap:7px}.header-actions .icon-action{height:40px;width:40px;background:#edf6f2}.header-actions .mobile-menu{display:grid}.header .nav{top:61px;right:12px;left:12px;border-radius:12px;background:#fff}.header .nav a{font-size:15px;color:#17362a;padding:12px 14px}.header .nav a.active{color:#fff}.header .nav .ui-icon{width:20px;height:20px}.home-v14{padding-top:17px}.home-v14 .featured-story{min-height:330px}.home-v14 .featured-content{min-height:330px;width:100%;padding:24px 22px}.home-v14 .featured-shade{background:linear-gradient(270deg,#003827e6,#003926c9 70%,#05362775)}.home-v14 .featured-content h1{font-size:24px}.home-v14 .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-v14 .quickbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-v14 .quick{font-size:12px;min-height:86px}.home-v14 .homepage-sidebar{grid-template-columns:1fr}.home-v14 .sidebar-quiz{grid-column:auto}.home-daily-strip{grid-template-columns:1fr}.daily-strip-card{min-height:120px}.home-v14 .featured-actions .btn.ghost{display:none}}
@media(max-width:420px){.masthead .brand img{width:48px;height:48px}.masthead .brand strong{font-size:18px}.masthead .brand span{font-size:8px}.home-v14 .featured-content h1{font-size:22px}.home-v14 .topic-card .topic-cover{height:100px}.audio-mini-cover{grid-template-columns:90px 1fr}.audio-mini-cover>img{width:90px;height:120px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* V14 refinements */
.masthead .brand{flex-direction:row}
.masthead .brand img{width:90px;height:100px}
.mobile-search-toggle{display:none}
@media(max-width:780px){
 .masthead .brand{flex-direction:row}
 .masthead .brand img{width:50px;height:56px;flex:0 0 auto}
 .mobile-search-toggle{display:grid}
 .masthead-main{position:relative}
 .masthead-search.search-open{display:flex;position:absolute;right:12px;left:12px;top:95px;width:auto;height:45px;flex:none;background:#064b3b;border:1px solid #f0d7aa;z-index:8}
 .masthead-search.search-open input,.masthead-search.search-open button{height:43px}
 .masthead-notice{margin-inline-start:0}
}
/* Approved reference places the prayers/audio sidebar on the LEFT on desktop. */
@media(min-width:901px){.home-v14 .home-layout{direction:ltr}.home-v14 .homepage-sidebar,.home-v14 .homepage-content{direction:rtl}}
