/* ==========================================================================
   Noor Al-Jamea — Warm Heritage Modern RTL Theme (Mobile-First)
   Palette: Deep Mosque Olive (#234234), Antique Gold (#C8963E), Ivory (#FAF8F3)
   ========================================================================== */

:root {
    --olive-900: #183026;
    --olive-800: #234234;
    --olive-700: #2F4F3E;
    --olive-600: #3D6650;
    --olive-100: #EAF1ED;
    --gold-600: #B3812D;
    --gold-500: #C8963E;
    --gold-400: #DDB264;
    --gold-100: #FBF4E6;
    --ivory-bg: #FAF8F3;
    --parchment: #F2EDE2;
    --surface: #FFFFFF;
    --border: #E5DFD2;
    --text-main: #1F2923;
    --text-muted: #5F6B64;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(24, 48, 38, 0.06);
    --shadow-md: 0 8px 24px rgba(24, 48, 38, 0.10);
    --font-ui: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-reading: 'Tajawal', 'Cairo', Tahoma, sans-serif;
    --reader-size: 18px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: var(--font-ui);
    background-color: var(--ivory-bg);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--olive-800);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--gold-600);
}

img {
    max-width: 100%;
    height: auto;
}

.noor-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- 1. Daily Saihat Prayer Times Top Bar ---------- */
.noor-prayer-bar {
    background: var(--olive-900);
    color: #E8E2D4;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(200, 150, 62, 0.28);
}

.noor-prayer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    flex-wrap: wrap;
}

.noor-prayer-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--gold-400);
    white-space: nowrap;
}

.noor-hijri-date {
    color: #D5CEBF;
    font-weight: 500;
    padding-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.noor-prayer-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1px;
}

.noor-prayer-list::-webkit-scrollbar {
    display: none;
}

.noor-prayer-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #EFEAE0;
}

.noor-prayer-item strong {
    color: #fff;
    font-weight: 700;
}

.noor-prayer-item.is-next {
    background: var(--gold-500);
    color: #18271F;
    font-weight: 700;
}

.noor-prayer-item.is-next strong {
    color: #18271F;
}

/* ---------- 2. Sticky Header & Navigation ---------- */
.noor-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(135deg, var(--olive-800) 0%, var(--olive-700) 100%);
    color: #fff;
    border-bottom: 3px solid var(--gold-500);
    box-shadow: 0 4px 16px rgba(24, 48, 38, 0.16);
}

/* Subtle Islamic geometric motif overlay */
.noor-header::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    pointer-events: none;
    background-image: radial-gradient(circle at 20px 20px, #E6C27A 1.5px, transparent 1.5px),
                      radial-gradient(circle at 0 0, #E6C27A 1.5px, transparent 1.5px);
    background-size: 40px 40px;
}

.noor-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 8px 0;
}

.noor-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.noor-brand:hover {
    color: #fff;
}

.noor-brand-emblem {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(200, 150, 62, 0.18);
    border: 1.5px solid var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-400);
}

.noor-brand-text {
    display: flex;
    flex-direction: column;
}

.noor-brand-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
}

.noor-brand-sub {
    font-size: 0.74rem;
    color: var(--gold-400);
    font-weight: 600;
}

/* Desktop nav */
.noor-nav {
    display: none;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.noor-nav > li {
    position: relative;
    padding-bottom: 4px;
    margin-bottom: -4px;
}

.noor-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 9px;
    border-radius: var(--radius-sm);
    color: #F4F1EA;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.noor-nav > li > a:hover,
.noor-nav > li:hover > a,
.noor-nav > li > a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-400);
}

.noor-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 195px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 1000;
}

/* Invisible hover bridge so moving the mouse downward never loses :hover */
.noor-nav li ul::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.noor-nav li:hover > ul,
.noor-nav li:focus-within > ul {
    display: block;
}

.noor-nav li ul li {
    position: relative;
}

.noor-nav li ul li a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
}

.noor-nav li ul li a:hover,
.noor-nav li ul li.has-sub:hover > a {
    background: var(--gold-100);
    color: var(--olive-800);
}

/* Nested Flyout Submenu (opens smoothly to the left in RTL with slight overlap so hover never drops) */
.noor-nav li ul li ul.noor-sub-flyout {
    display: none;
    position: absolute;
    top: -6px;
    right: calc(100% - 4px);
    left: auto;
    min-width: 175px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 6px;
    z-index: 1050;
}

.noor-nav li ul li.has-sub:hover > ul.noor-sub-flyout,
.noor-nav li ul li.has-sub:focus-within > ul.noor-sub-flyout {
    display: block;
}

.noor-drawer-details summary {
    padding: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--olive-800);
    cursor: pointer;
    list-style: none;
}

.noor-drawer-details summary::after {
    content: " ▾";
    color: var(--gold-600);
}

/* Header Action Buttons */
.noor-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.noor-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.noor-icon-btn:hover {
    background: rgba(200, 150, 62, 0.28);
    border-color: var(--gold-400);
    color: #fff;
}

.noor-login-pill {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--gold-500);
    color: #18271F;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.noor-login-pill:hover {
    background: var(--gold-400);
    color: #18271F;
}

/* Expandable Search Bar */
.noor-search-bar {
    display: none;
    background: var(--olive-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.noor-search-bar.is-open {
    display: block;
}

.noor-search-form {
    display: flex;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
}

.noor-search-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
}

.noor-search-form input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.25);
}

.noor-search-form button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gold-500);
    color: #18271F;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

/* Mobile Slide-Out RTL Drawer */
.noor-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 30, 23, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1100;
}

.noor-drawer-backdrop.is-open {
    display: block;
}

.noor-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: var(--surface);
    z-index: 1200;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.22);
    transition: right 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.noor-drawer.is-open {
    right: 0;
}

.noor-drawer-head {
    background: var(--olive-800);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--gold-500);
}

.noor-drawer-body {
    padding: 14px;
    flex: 1;
}

.noor-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noor-drawer-nav li {
    border-bottom: 1px solid var(--border);
}

.noor-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.96rem;
}

.noor-drawer-nav a:hover {
    color: var(--olive-700);
    background: var(--ivory-bg);
}

.noor-drawer-sub {
    list-style: none;
    padding: 0 18px 8px 0;
    margin: 0;
    background: var(--ivory-bg);
    border-radius: 8px;
}

.noor-drawer-sub li {
    border-bottom: none;
}

.noor-drawer-sub a {
    padding: 8px 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------- 3. Modern CSS News Ticker ---------- */
.noor-ticker-wrap {
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.noor-ticker-inner {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 12px;
}

.noor-ticker-label {
    background: var(--olive-800);
    color: var(--gold-400);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noor-ticker-track-outer {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to left, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, #000 3%, #000 97%, transparent);
}

.noor-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: noorTickerRTL 42s linear infinite;
}

.noor-ticker-track:hover {
    animation-play-state: paused;
}

.noor-ticker-track a {
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.noor-ticker-track a::before {
    content: "✦";
    color: var(--gold-500);
    font-size: 0.78rem;
}

.noor-ticker-track a:hover {
    color: var(--olive-700);
}

@keyframes noorTickerRTL {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(100%); }
}

/* ---------- 4. Muharram Horizontal Archive Pill Bar ---------- */
.noor-muharram-strip {
    background: linear-gradient(135deg, #213B2F 0%, #2C4D3D 100%);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 18px 0 22px;
    color: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(200, 150, 62, 0.35);
}

.noor-muharram-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.noor-muharram-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--gold-400);
}

.noor-muharram-hint {
    font-size: 0.76rem;
    color: #C9D6CE;
}

.noor-muharram-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.1);
}

.noor-muharram-pill {
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(221, 178, 100, 0.35);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.noor-muharram-pill:hover {
    background: var(--gold-500);
    color: #18271F;
    border-color: var(--gold-500);
}

.noor-muharram-pill span.cnt {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--gold-400);
}

.noor-muharram-pill:hover span.cnt {
    background: rgba(24, 39, 31, 0.18);
    color: #18271F;
}

/* ---------- 5. Main Layout Grid (Mobile 1-col -> Desktop 2-col) ---------- */
.noor-main-wrap {
    padding: 18px 0 40px;
}

.noor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* ---------- 6. Hero Featured Card ---------- */
.noor-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
}

.noor-hero-media {
    position: relative;
    background: linear-gradient(135deg, #1B352A 0%, #2B4A3B 100%);
    min-height: 260px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.noor-hero-media img {
    max-width: 100%;
    max-height: 390px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    display: block;
    transition: transform 0.35s ease;
}

.noor-hero-card:hover .noor-hero-media img {
    transform: scale(1.03);
}

.noor-hero-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noor-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.noor-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.noor-badge-gold {
    background: var(--gold-100);
    color: var(--gold-600);
    border: 1px solid rgba(200, 150, 62, 0.35);
}

.noor-badge-olive {
    background: var(--olive-100);
    color: var(--olive-800);
}

.noor-badge-video {
    background: #B91C1C;
    color: #fff;
}

.noor-video-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(24, 48, 38, 0.88);
    border: 1px solid var(--gold-400);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.noor-hero-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
}

.noor-hero-title a {
    color: var(--olive-900);
}

.noor-hero-title a:hover {
    color: var(--gold-600);
}

.noor-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.noor-hero-excerpt {
    margin: 0 0 16px;
    font-family: var(--font-reading);
    font-size: 0.98rem;
    color: #3A4640;
    line-height: 1.75;
}

/* ---------- 7. Section Headings & Cards ---------- */
.noor-section {
    margin-bottom: 26px;
}

.noor-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.noor-sec-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 72px;
    height: 3px;
    background: var(--gold-500);
    border-radius: 2px;
}

.noor-sec-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--olive-900);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.noor-sec-more {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--olive-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.noor-sec-more:hover {
    color: var(--gold-600);
}

/* Article Card Grid */
.noor-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.noor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.noor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 150, 62, 0.55);
}

.noor-card-thumb {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #EFE9DC 0%, #F8F5EE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    border-bottom: 1px solid #ECE6D8;
}

.noor-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.noor-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noor-card-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
}

.noor-card-title a {
    color: var(--text-main);
}

.noor-card-title a:hover {
    color: var(--olive-700);
}

.noor-card-excerpt {
    margin: 0 0 12px;
    font-family: var(--font-reading);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.noor-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid #F1ECE1;
}

/* Compact List Box (for Occasions / Friday Sermons dual panel) */
.noor-dual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

.noor-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.noor-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noor-compact-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F2EDE2;
}

.noor-compact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.noor-compact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.noor-compact-thumb {
    width: 58px;
    height: 68px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--parchment);
    padding: 2px;
}

.noor-ig-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: #fff !important;
    font-family: var(--font-ui) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin: 6px auto;
    box-shadow: 0 4px 12px rgba(221, 42, 123, 0.25);
}

.noor-ig-btn:hover {
    opacity: 0.92;
    color: #fff !important;
}

.noor-compact-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 4px;
}

.noor-compact-title:hover {
    color: var(--gold-600);
}

.noor-compact-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 8. Sidebar Widgets ---------- */
.noor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noor-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.noor-widget-head {
    background: var(--olive-800);
    color: #fff;
    padding: 11px 16px;
    font-size: 0.94rem;
    font-weight: 800;
    border-bottom: 2px solid var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.noor-widget-head a {
    color: #fff;
}

.noor-widget-body {
    padding: 14px 16px;
}

.noor-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.noor-cat-chip {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ivory-bg);
    border: 1px solid var(--border);
    color: var(--olive-800);
    font-size: 0.82rem;
    font-weight: 700;
}

.noor-cat-chip:hover {
    background: var(--olive-800);
    border-color: var(--olive-800);
    color: #fff;
}

.noor-mini-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.noor-mini-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.noor-mini-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.noor-mini-gallery a:hover img {
    transform: scale(1.06);
}

/* ---------- 9. Breadcrumbs ---------- */
.noor-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.noor-breadcrumbs a {
    font-weight: 700;
    color: var(--olive-700);
}

/* ---------- 10. Enhanced Arabic Article Reader ---------- */
.noor-article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.noor-article-title {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--olive-900);
    line-height: 1.4;
}

.noor-reader-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    margin: 14px 0 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.noor-font-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noor-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--ivory-bg);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.noor-tool-btn:hover {
    background: var(--olive-800);
    border-color: var(--olive-800);
    color: #fff;
}

.noor-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.noor-share-wa {
    background: #1D8A4E;
    border-color: #1D8A4E;
    color: #fff;
}

.noor-share-wa:hover {
    background: #166F3E;
    color: #fff;
}

.noor-share-x {
    background: #14171A;
    border-color: #14171A;
    color: #fff;
}

.noor-share-x:hover {
    background: #2C3338;
    color: #fff;
}

.noor-article-featured {
    margin: 0 0 20px;
    text-align: center;
}

.noor-article-featured img {
    max-height: 460px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.noor-article-body {
    font-family: var(--font-reading);
    font-size: var(--reader-size);
    line-height: 1.95;
    color: #202924;
    overflow-wrap: break-word;
}

.noor-article-body p {
    margin: 0 0 1em;
}

.noor-article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: 12px auto;
    display: block;
}

.noor-article-body table {
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
}

/* Responsive 16:9 Video Wrapper (injected by noor.js for all YouTube iframes) */
.noor-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
    margin: 18px 0;
    box-shadow: var(--shadow-sm);
}

.noor-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.noor-video-short {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    margin: 18px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.noor-video-short iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ---------- 11. Touch-Friendly Photo Gallery & Lightbox ---------- */
.noor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.noor-gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noor-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.noor-gallery-thumb {
    aspect-ratio: 4 / 3;
    background: var(--parchment);
    overflow: hidden;
}

.noor-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noor-gallery-caption {
    padding: 10px 12px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Lightbox Modal */
.noor-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 22, 17, 0.94);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.noor-lightbox.is-open {
    display: flex;
}

.noor-lb-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 0.9rem;
}

.noor-lb-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.noor-lb-btn:hover {
    background: var(--gold-500);
    color: #18271F;
}

.noor-lb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1050px;
    max-height: 76vh;
}

.noor-lb-stage img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.noor-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.noor-lb-prev { right: 8px; }
.noor-lb-next { left: 8px; }

.noor-lb-caption {
    margin-top: 14px;
    color: #EFEAE0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    max-width: 720px;
}

/* ---------- 12. Buttons, Forms & Pagination ---------- */
.noor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--olive-800);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.noor-btn:hover {
    background: var(--gold-500);
    color: #18271F;
}

.noor-btn-outline {
    background: transparent;
    border: 1.5px solid var(--olive-700);
    color: var(--olive-800);
}

.noor-btn-outline:hover {
    background: var(--olive-800);
    color: #fff;
}

.noor-field {
    margin-bottom: 14px;
}

.noor-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--olive-900);
}

.noor-input {
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid #D4CCBC;
    background: #fff;
    font-family: var(--font-ui);
    font-size: 0.94rem;
    color: var(--text-main);
    outline: none;
}

.noor-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.2);
}

.noor-pagination {
    margin-top: 22px;
    text-align: center;
}

.noor-pagination .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.noor-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--olive-800);
    font-size: 0.88rem;
    font-weight: 700;
}

.noor-pagination .page-item.active .page-link {
    background: var(--olive-800);
    border-color: var(--olive-800);
    color: #fff;
}

.noor-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- 13. Footer ---------- */
.noor-footer {
    background: var(--olive-900);
    color: #DDD6C7;
    border-top: 4px solid var(--gold-500);
    padding: 36px 0 22px;
    margin-top: 32px;
}

.noor-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.noor-footer h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-400);
}

.noor-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noor-footer ul li {
    margin-bottom: 7px;
}

.noor-footer a {
    color: #DDD6C7;
    font-size: 0.88rem;
}

.noor-footer a:hover {
    color: var(--gold-400);
}

.noor-footer-bottom {
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: #A8B5AE;
}

/* ---------- 14. Responsive Breakpoints ---------- */
@media (min-width: 640px) {
    .noor-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .noor-dual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .noor-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .noor-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .noor-article-card {
        padding: 28px;
    }
}

@media (min-width: 960px) {
    .noor-nav {
        display: flex;
    }
    .noor-login-pill {
        display: inline-flex;
    }
    .noor-mobile-only {
        display: none !important;
    }
    .noor-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .noor-hero-card {
        grid-template-columns: 1.15fr 1fr;
    }
    .noor-hero-media {
        aspect-ratio: auto;
        min-height: 290px;
    }
    .noor-hero-title {
        font-size: 1.55rem;
    }
    .noor-article-title {
        font-size: 1.85rem;
    }
    .noor-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media print {
    .noor-prayer-bar, .noor-header, .noor-ticker-wrap, .noor-sidebar, .noor-reader-toolbar, .noor-footer, .noor-breadcrumbs {
        display: none !important;
    }
    .noor-layout {
        display: block;
    }
    .noor-article-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
