/*
Theme Name: DUNJ Theme
Theme URI: https://dunj.org
Author: DUNJ
Author URI: https://dunj.org
Description: Custom WordPress theme for Darul Uloom New Jersey
Version: 1.0.0
License: GNU General Public License v2 or later
*/

/* ===========================================
   DUNJ THEME — MASTER STYLESHEET
   Deep Teal & Gold — unique, warm, distinguished
   =========================================== */

/* ── CSS VARIABLES ────────────────────────── */
:root {
    --navy:        #1a3d4f;
    --navy-mid:    #215668;
    --navy-light:  #2a6f87;
    --gold:        #c8973a;
    --gold-light:  #e8b84b;
    --cream:       #f0f5f5;
    --cream-dark:  #e4eeee;
    --border:      #ddeaea;
    --white:       #ffffff;
    --text-dark:   #1a1a1a;
    --text-mid:    #4a4a4a;
    --text-light:  #7a7a7a;

    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Lato', system-ui, sans-serif;

    --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 32px rgba(26,61,79,0.10);

    --radius:      4px;
    --transition:  0s;

    --container:   1200px;
    --header-h:    82px;
}

/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

ul { list-style: none; }

/* ── GEOMETRIC PATTERN ────────────── */
.islamic-pattern {
    background-color: var(--cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Crect width='56' height='100' fill='%23f0f5f5'/%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66Z' fill='none' stroke='%23c8973a' stroke-width='0.5' stroke-opacity='0.2'/%3E%3Cpath d='M28 66L28 100M0 50L0 100M56 50L56 100' fill='none' stroke='%23c8973a' stroke-width='0.5' stroke-opacity='0.2'/%3E%3Cpath d='M28 0L28 34M0 16L28 34L56 16' fill='none' stroke='%23c8973a' stroke-width='0.5' stroke-opacity='0.2'/%3E%3C/svg%3E");
    background-size: 56px 100px;
}

/* ── CONTAINER ────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ── TYPOGRAPHY ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--navy);
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 13px 26px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--navy);
    transition: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--navy);
    padding: 13px 26px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--navy);
    transition: none;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 13px 34px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    transition: none;
    cursor: pointer;
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
}

/* ── SECTION HEADERS ──────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 32px;
    color: var(--navy);
    font-weight: 700;
}
.section-header p {
    color: var(--text-light);
    max-width: 520px;
    margin: 12px auto 0;
    font-size: 15px;
}
.divider {
    width: 44px;
    height: 3px;
    background: var(--gold);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ── TOP BAR ──────────────────────────────── */
.topbar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 7px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.topbar a {
    color: var(--gold-light);
    font-weight: 700;
}
.topbar a:hover { color: var(--white); }

.topbar-divider { margin: 0 0px; }

.topbar-hijri {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 12px;
}

.topbar-dates,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-sep {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

.topbar-address,
.topbar-phone {
    vertical-align: middle;
    line-height: 1;
}

/* ── HEADER TOP: Centered Logo ────────────── */

.header-top {
    background: var(--white);
    padding: 14px 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-top.scrolled { box-shadow: var(--shadow-md); }

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 0;
}

.header-top-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.header-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.header-donate-btn {
    background: var(--gold);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: none;
}
.header-donate-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* Hide donate button on mobile */
@media (max-width: 1024px) {
    .header-nav {
        top: 0px;
    }    
    .header-top-right { display: none; }
    .header-top-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .header-top-left { display: none; }
}

.logo-wrap {
    display: flex;
    justify-content: center;
}
.logo-link {
    display: contents;
}
.custom-logo-link {
    flex-shrink: 0;
    margin-right: 16px;
}
.custom-logo-link img,
.custom-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.logo-site-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.logo-site-title:hover { color: var(--gold); }
.logo-tagline {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-light);
    text-transform: uppercase;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* ── STICKY LOGO ──────────────────────────── */
.sticky-logo {
    display: none;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-right: 8px;
}
@media (max-width: 1024px) {
    .sticky-logo { display: none !important; }
    .header-top { display: none; }
    .topbar {
        padding: 0px 0;
    }
    .topbar .grid-x {
        justify-content: flex-start;
    }
    .topbar-right:last-child {
        display: none !important;
    }
    .topbar-hijri {
        font-size: 13px;
        color: var(--gold-light);
    }
    .topbar-divider {
        display: none;
    }
}
.sticky-logo img {
    height: 36px;
    width: auto;
}
.header-nav.is-sticky .sticky-logo {
    display: flex;
    opacity: 1;
}

/* ── HEADER NAV: Full Menu Row ────────────── */
.header-nav {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    border-top: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 99;
}
.primary-nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-mid);
    padding: 12px 12px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.nav-menu > li > a:hover {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.nav-menu > li.current-menu-item > a {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sticky-logo {
    width: 48px;
    flex-shrink: 0;
}
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
/* Invisible spacer to balance the sticky logo on the right */
.primary-nav::after {
    content: '';
    width: 48px;
    flex-shrink: 0;
}
.header-nav.is-sticky .sticky-logo {
    display: flex;
    opacity: 1;
}
.sticky-logo img {
    height: 36px;
    width: auto;
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.6;
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.nav-menu > li > .sub-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}
.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-mid);
    white-space: nowrap;
    transition: none;
}
.nav-menu .sub-menu li a:hover {
    background: var(--cream);
    color: var(--navy);
}

/* ── THIRD LEVEL SUB-MENU ─────────────────── */
.nav-menu .sub-menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -3px;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 201;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.nav-menu .sub-menu li > .sub-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}
.nav-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Indicator arrow for sub-menu parents */
.nav-menu .sub-menu li.menu-item-has-children > a::after {
    content: ' ›';
    float: right;
    font-size: 14px;
    color: var(--gold);
    line-height: 1;
}

.nav-menu > li > a[href="#"] {
    cursor: default;
}
.nav-menu > li > a[href="#"]:hover {
    border-bottom-color: transparent;
}

/* ── MOBILE MENU ──────────────────────────── */
.mobile-menu {
    display: none;
    background: var(--white);
    position: fixed;
    inset: 0;
    z-index: 999;
    padding: 70px 24px 40px;
    overflow-y: auto;
}
.mobile-menu.is-open { display: block; }

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    z-index: 1000;
}
.mobile-menu-close:hover { color: var(--gold); }

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav-menu > li {
    border-bottom: 1px solid var(--border);
}
.mobile-nav-menu > li > a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy);
}
.mobile-nav-menu > li > a:hover { color: var(--gold); }

/* Sub menu */
.mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}
.mobile-nav-menu .sub-menu li { border-bottom: none; }
.mobile-nav-menu .sub-menu a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: none;
    letter-spacing: 0;
}
.mobile-nav-menu .sub-menu a:hover { color: var(--gold); }

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 4px 0;
    border-radius: 2px;
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 0;
}

.mobile-donate-btn {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

/* ── MOBILE MENU LEVEL INDICATORS ────────── */

/* Parent items with children — show chevron */
.mobile-nav-menu > li.menu-item-has-children > a::after {
    content: '›';
    float: right;
    font-size: 18px;
    color: var(--gold);
    line-height: 1;
}

/* Sub-menu items — dash prefix */
.mobile-nav-menu .sub-menu > li > a::before {
    content: '–  ';
    color: var(--gold);
    font-weight: 400;
}

/* Sub-sub-menu items — double dash prefix */
.mobile-nav-menu .sub-menu .sub-menu > li > a::before {
    content: '––  ';
    color: var(--text-light);
    font-weight: 400;
}

/* Sub-sub-menu indentation */
.mobile-nav-menu .sub-menu .sub-menu {
    padding-left: 12px;
}
/* ── MOBILE TOPBAR CONTACT ICONS ──────────────────────── */
.mobile-topbar-contacts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.mobile-topbar-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    fill: var(--gold);
}
.mobile-topbar-icon svg {
    fill: var(--gold);
}
.mobile-topbar-icon:hover svg {
    fill: var(--gold);
}
.mobile-topbar-icon:hover { opacity: 0.8; }
/* ── MOBILE STICKY LOGO ───────────────────── */
.mobile-sticky-logo img {
    height: 40px;
    width: auto;
}
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}
.mobile-topbar-contacts .mobile-topbar-icon svg,
.mobile-topbar-contacts .topbar-quran-svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .header-top-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .header-top-left,
    .header-top-right { display: none; }
}

/* ── RESPONSIVE HELPERS ───────────────────── */
.dunj-mobile-only { display: none; }
.dunj-desktop-only { display: inline-flex; }

@media (max-width: 1024px) {
    .dunj-mobile-only { 
        display: inline-flex; 
    }
    .dunj-desktop-only { display: none; }
}

.prayer-bar-hijri {
    font-size: 10px;
    color: var(--gold-light);
    opacity: 0.8;
}

/* ── PRAYER BAR ───────────────────────────── */
.prayer-bar {
    background: var(--navy);
    padding: 12px 0;
    overflow-x: auto;
}
.prayer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 40px;
}
.prayer-bar-label {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-right: 22px;
    border-right: 1px solid rgba(255,255,255,0.12);
    margin-right: 22px;
    white-space: nowrap;
    flex-shrink: 0;
}
.prayer-time {
    text-align: center;
    flex-shrink: 0;
    padding: 0 14px;
}
.prayer-name {
    color: rgba(255,255,255,0.65);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.prayer-time-value {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.topbar-quran-link {
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.topbar-quran-link:hover {
    opacity: 1;
}

.topbar-quran-svg {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .dunj-desktop-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .dunj-mobile-only {
        display: none !important;
    }
}

/* ── ANNOUNCEMENT BANNER ──────────────────── */
.announcement-banner {
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-bottom: 1px solid var(--border);
    padding: 13px 0;
}
.announcement-banner .container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ann-badge {
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.announcement-banner p { font-size: 13px; color: var(--text-mid); }
.announcement-banner a { color: var(--navy); font-weight: 700; }
.announcement-banner a:hover { color: var(--gold); }

/* ── Announcement card Islamic border ── */
.ann-grid-card,
.ann-slide-inner {
    position: relative;
    border: 2px solid #c8973a;
    border-radius: var(--radius);
    outline: none;
    box-shadow: 0 0 0 1px rgba(200, 151, 58, 0.4);
    overflow: visible; /* was hidden — needed for corner brackets to show */
}

.ann-grid-card::before,
.ann-slide-inner::before {
    content: '';
    position: absolute;
    width: 28px; height: 28px; /* bigger corners */
    border-color: #c8973a;
    border-style: solid;
    border-width: 3px 0 0 3px;
    top: -4px; left: -4px;
    pointer-events: none;
    z-index: 2;
}

.ann-grid-card::after,
.ann-slide-inner::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    border-color: #c8973a;
    border-style: solid;
    border-width: 0 3px 3px 0;
    bottom: -4px; right: -4px;
    pointer-events: none;
    z-index: 2;
}

.ann-corner-tr {
    top: -4px; right: -4px;
    border-width: 3px 3px 0 0;
    width: 28px; height: 28px;
}

.ann-corner-bl {
    bottom: -4px; left: -4px;
    border-width: 0 0 3px 3px;
    width: 28px; height: 28px;
}

.ann-accent-top,
.ann-accent-bottom {
    font-size: 16px; /* bigger accent diamond */
    color: #c8973a;
    background: #1a2e1a; /* match your dark green carousel bg */
    padding: 0 8px;
}

.ann-accent-top  { top: -10px; }
.ann-accent-bottom { bottom: -10px; }

/* ── Announcement sparkle animations ── */
@keyframes dunjSparkleScale {
    0%   { transform: scale(0); }
    50%  { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes dunjSparkleSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(180deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    @keyframes dunjSparkleScale { 0%, 100% { transform: scale(0.8); } }
    @keyframes dunjSparkleSpin  { from, to { transform: none; } }
}

/* Featured card gets a subtle gold glow */
.ann-card-wrap[data-featured="yes"] {
    box-shadow: 0 0 12px rgba(200, 151, 58, 0.25);
}

/* Same time pulse for the diamonds on featured cards */
.ann-card-wrap[data-featured="yes"] .ann-accent-top,
.ann-card-wrap[data-featured="yes"] .ann-accent-bottom {
    animation: annDiamondSparkle 5s ease-in-out infinite;
    animation-delay: 0s; /* both at same time */
}

@keyframes annDiamondSparkle {
    0%, 100% {
        color: #c8973a;
        text-shadow: none;
        transform: translateX(-50%) scale(1);
    }
    50% {
        color: #f5d485;
        text-shadow: 0 0 8px rgba(200, 151, 58, 0.9), 0 0 16px rgba(200, 151, 58, 0.5);
        transform: translateX(-50%) scale(1.3);
    }
}

/* ── HERO ─────────────────────────────────── */
.hero-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(26,61,79,0.06);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-left: 4px solid var(--gold);
    margin-bottom: 28px;
    font-family: var(--font-sans);
}
.hero-title {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-accent { color: var(--gold); }
.hero-highlight { color: var(--navy); font-weight: 700; }
.hero-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.hero-body p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.9;
}
.hero-closing {
    font-family: var(--font-serif);
    font-size: 17px !important;
    color: var(--navy) !important;
    font-style: italic;
    margin-top: 6px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Donate iFrame */
.hero-donate {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-donate-label {
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}
.hero-iframe-wrap {
    width: 100%;
    height: 600px;
    background: var(--cream);
    overflow: hidden;
}
.hero-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive hero */
@media (max-width: 1024px) {
    .hero-donate { flex: 0 0 360px; }
    .hero-iframe-wrap { height: 480px; }
}
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; padding: 0 20px; }
    .hero-donate { flex: none; width: 100%; }
    .hero-iframe-wrap { height: 480px; }
}

/* ── SERVICES ─────────────────────────────── */
.services-section {
    background: var(--white);
    padding: 72px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: inherit;
}
.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--navy);
}
.service-card h3 {
    font-size: 17px;
    color: var(--navy);
    font-weight: 600;
}
.service-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
    flex: 1;
}
.service-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* ── ANNOUNCEMENTS ────────────────────────── */
.announcements-section {
    background: var(--cream);
    padding: 72px 0;
}
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ann-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: none;
}
.ann-card:hover { box-shadow: var(--shadow-lg); }
.ann-card-link { display: block; color: inherit; }
.ann-img { height: 180px; overflow: hidden; position: relative; }
.ann-img img { width: 100%; height: 100%; object-fit: cover; }
.ann-img-placeholder {
    width: 100%; height: 100%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    border-bottom: 3px solid var(--gold);
}
.ann-img-placeholder span {
    font-family: var(--font-serif);
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    text-align: center;
}
.ann-body { padding: 22px; }
.ann-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.ann-body h3 {
    font-size: 17px;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 8px;
}
.ann-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
}
.ann-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--navy);
    text-transform: uppercase;
}
.no-posts {
    color: var(--text-light);
    font-size: 14px;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

/* ── DONATE ───────────────────────────────── */
.donate-section {
    background: var(--navy);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.donate-section .container { position: relative; z-index: 1; }
.donate-section .section-header h2 { color: var(--white); }
.donate-section .section-header p { color: rgba(255,255,255,0.7); }
.donate-section .eyebrow { color: var(--gold-light); }
.donate-bottom > p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 18px; }

.donate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 36px;
    align-items: stretch;
}
.donate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    transition: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donate-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: var(--text-dark);
}
.donate-icon { font-size: 28px; margin-bottom: 10px; }

.donate-card h4 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.donate-card p { color: var(--text-dark); font-size: 15px; font-weight: 600; }

.donate-bottom { text-align: center; }
.donate-bottom > p { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 18px; }
.zakaat-link { margin-left: 18px; color: var(--gold-light); font-size: 13px; font-weight: 700; }
.zakaat-link:hover { color: var(--white); }

/* ── NEWSLETTER ───────────────────────────── */
.newsletter-section {
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
    padding: 52px 0;
    text-align: center;
}
.newsletter-section h2 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.newsletter-section p { color: var(--text-light); font-size: 14px; margin-bottom: 26px; }
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--text-dark);
    outline: none;
}
.newsletter-form input:focus { border-color: var(--navy); }
.newsletter-form button {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sans);
}
.newsletter-form button:hover { background: var(--navy-mid); }

/* ── FOOTER ───────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    padding: 60px 0 28px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand h3 { font-family: var(--font-serif); font-size: 18px; color: var(--white); margin-bottom: 12px; }
.footer-title { font-size: 13px; line-height: 1.8; max-width: 260px; margin-bottom: 16px; color: var(--gold);}
.footer-description { font-size: 13px; line-height: 1.8; max-width: 260px; margin-bottom: 16px;}
.footer-contact p { font-size: 13px; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-tax { margin-top: 18px; font-size: 10px; color: rgba(255,255,255,0.3); line-height: 1.8; }
.footer-col h4 {
    font-family: var(--font-sans);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-nav { display: flex; gap: 20px; }
.footer-bottom-nav a { color: rgba(255,255,255,0.4); }
.footer-bottom-nav a:hover { color: var(--gold-light); }

/* ── FOOTER NAV MENU ──────────────────────── */
.footer-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.footer-nav-menu li {
    margin-bottom: 8px;
    break-inside: avoid;
}
.footer-nav-menu a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.footer-nav-menu a:hover { color: var(--gold-light); }

/* Sub-menu items in footer */
.footer-nav-menu .sub-menu {
    list-style: none;
    margin: 4px 0 8px 10px;
    padding: 0;
}
.footer-nav-menu .sub-menu li {
    margin-bottom: 6px;
}
.footer-nav-menu .sub-menu a {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}
.footer-nav-menu .sub-menu a:hover {
    color: var(--gold-light);
}

/* ── SITE MAIN ────────────────────────────── */
.site-main { min-height: 60vh; }

/* ── FOUNDATION GRID ──────────────────────── */
.grid-container {
    max-width: var(--container);
    padding: 0 40px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .donate-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .grid-container { padding: 0 5px; }
    .topbar { font-size: 11px; }
    .header-nav { top: 0px; }
    .hero-section { padding: 48px 0; }
    .hero-inner { flex-direction: column; padding: 0 20px; gap: 36px; }
    .services-section,
    .announcements-section,
    .donate-section { padding: 48px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .announcements-grid { grid-template-columns: 1fr; }
    .donate-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { padding: 0 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section-header h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .donate-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; }
}

/* ── ANNOUNCEMENT CAROUSEL ────────────────── */
.ann-carousel {
    --s: 111px;
    --c1: #343736;
    --c2: #0f2a1e;
    --_g: radial-gradient(#0000 60%, var(--c1) 61% 63%, #0000 64% 77%, var(--c1) 78% 80%, #0000 81%);
    --_c: ,#0000 75%, var(--c2) 0;
    background:
        conic-gradient(at 12% 20% var(--_c)) calc(var(--s) * .44) calc(.9 * var(--s)),
        conic-gradient(at 12% 20% var(--_c)) calc(var(--s) * -.06) calc(.4 * var(--s)),
        conic-gradient(at 20% 12% var(--_c)) calc(.9 * var(--s)) calc(var(--s) * .44),
        conic-gradient(at 20% 12% var(--_c)) calc(.4 * var(--s)) calc(var(--s) * -.06),
        var(--_g), var(--_g) calc(var(--s) / 2) calc(var(--s) / 2) var(--c2);
    background-size: var(--s) var(--s);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}
.ann-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.ann-slide {
    min-width: 100%;
    padding: 20px 40px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.ann-slide {
    cursor: default;
}

.ann-slide-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.ann-slide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ann-slide-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ann-slide-icon-inline {
    font-size: 20px;
    flex-shrink: 0;
}
.ann-slide-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}
.ann-slide-bottom {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ann-slide-body {
    flex: 1;
    min-width: 0;
}

/* Allow swipe on entire carousel */
.ann-carousel-track {
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}
.ann-carousel-track:active {
    cursor: grabbing;
}

/* Carousel controls */
.ann-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 40px;
    background: rgba(0,0,0,0.15);
}
.ann-carousel-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    width: 24px; height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.ann-carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.ann-dots { display: flex; gap: 6px; align-items: center; }
.ann-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
}
.ann-dot.active { background: var(--gold); }

/* Lightbox */
.ann-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ann-lightbox.is-open {
    display: flex;
}
.ann-lightbox-inner {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ann-lightbox-header {
    background: var(--navy);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ann-lightbox-title {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
}
.ann-lightbox-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ann-lightbox-close:hover { color: var(--white); }
.ann-lightbox-body img {
    width: 100%;
    height: auto;
    display: block;
}

.ann-slide-title-link {
    color: var(--white);
    text-decoration: none;
}
.ann-slide-title-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}
.ann-slide-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
}
.ann-slide-text a {
    color: var(--gold-light);
    text-decoration: underline;
    font-weight: 600;
}
.ann-slide-text a:hover {
    color: var(--white);
}

.ann-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ann-lightbox-share {
    background: var(--gold);
    border: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    letter-spacing: 0.04em;
}
.ann-lightbox-share:hover { background: var(--gold-light); }

/* ── ANNOUNCEMENT GRID (Desktop 3-col) ───────────────── */
.ann-slide-flyer {
    flex-shrink: 0;
    width: 130px;
    height: 170px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    border: 2px solid rgba(200,151,58,0.4);
    align-self: center;
    background: var(--navy);
}
.ann-slide-flyer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ann-slide-flyer .ann-flyer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,61,79,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-size: 20px;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.ann-slide-flyer:hover .ann-flyer-overlay { opacity: 1; }
.ann-slide-flyer .ann-flyer-label { display: none; }
.ann-grid-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.ann-grid-card {
    background: rgba(0,10,255,0.06);
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 160px;
    box-shadow: none;
}
/* All decoration goes on the wrapper */
.ann-card-wrap {
    position: relative;
    border: 2px solid #c8973a;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(200, 151, 58, 0.3);
}

.ann-card-wrap::before,
.ann-card-wrap::after {
    display: none;
}

.ann-corner-tr,
.ann-corner-bl {
    display: none;
}

.ann-accent-top,
.ann-accent-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #c8973a;
    background: #1a3d4f; /* match your section background exactly */
    padding: 0 8px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.ann-accent-top  { top: -10px; }
.ann-accent-bottom { bottom: -10px; }


.ann-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ann-grid-thumb {
    width: 110px;
    height: 100%;
    min-height: 130px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--navy);
    order: 2;
    overflow: hidden;
    border-radius: 0; /* clip the image, not the card */
    flex-shrink: 0;
}
.ann-grid-thumb .ann-flyer-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-size: 14px;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.ann-grid-card:hover .ann-flyer-overlay {
    opacity: 1;
}
.ann-grid-thumb .ann-flyer-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.8);
    font-size: 8px;
    text-align: center;
    padding: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ann-grid-thumb-placeholder {
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: default;
    width: 110px;
    min-height: 130px;
    flex-shrink: 0;
    order: 2;
}
.ann-grid-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    order: 1;
}
.ann-grid-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-grid-title {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}
.ann-grid-excerpt {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 5px;
}
.ann-grid-link {
    font-size: 11px;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.ann-grid-excerpt a {
    color: var(--gold-light);
    text-decoration: underline;
    font-weight: 600;
}
.ann-grid-excerpt a:hover {
    color: var(--white);
}
.ann-grid-link:hover { color: var(--white); }

.ann-grid-desktop.dunj-desktop-only {
    display: grid;
}
.ann-slide-inner.dunj-mobile-only {
    display: none;
}
.ann-grid-count-1 {
    grid-template-columns: repeat(1, 340px);
    justify-content: center;
}
.ann-grid-count-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
}


.ann-carousel-track.dunj-desktop-only {
    display: flex;
}
.ann-carousel-track.dunj-mobile-only {
    display: none;
}
@media (max-width: 1024px) {
    .ann-carousel-track.dunj-desktop-only {
        display: none;
    }
    .ann-carousel-track.dunj-mobile-only {
        display: flex;
    }
}
.ann-carousel-controls.dunj-desktop-only {
    display: flex;
}
.ann-carousel-controls.dunj-mobile-only {
    display: none;
}
@media (max-width: 1024px) {
    .ann-carousel-controls.dunj-desktop-only {
        display: none;
    }
    .ann-carousel-controls.dunj-mobile-only {
        display: flex;
    }
}

@media (max-width: 768px) {
    .ann-slide-top { flex-wrap: wrap; }
    .ann-slide-bottom { flex-direction: row; align-items: center; gap: 12px; }
    .ann-slide-flyer {
        width: 130px;
        max-width: 130px;
        align-self: center;
    }
    .ann-flyer-thumb {
        width: 100%;
        height: auto;
    }
    .ann-carousel {
        overflow: hidden;
    }
    .ann-carousel-track {
        display: flex;
        width: 100%;
    }
    .ann-slide {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        padding: 20px 16px;
        overflow: hidden;
    }
    .ann-slide-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        max-width: 100%;
    }
    .ann-slide-body {
        width: 100%;
        min-width: 0;
    }
    .ann-slide-text {
        font-size: 13px;
        max-width: 100%;
        overflow: hidden;
    }
}

/* ── PAST ANNOUNCEMENTS ───────────────────── */
.ann-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    letter-spacing: 0.04em;
}
.ann-view-all {
    text-align: center;
    margin-top: 40px;
}

/* ── NEXT PRAYER HIGHLIGHT ────────────────── */
.prayer-time.is-next .prayer-name {
    color: var(--gold-light);
}
.prayer-time.is-next .prayer-time-value {
    color: var(--gold-light);
}
.next-prayer-badge {
    /* display: inline-block; */
    color: var(--gold);
    /* font-size: 14px; */
}

/* ── PAGE HERO ────────────────────────────── */
.page-hero {
    background-color: var(--navy-mid);
    padding: 0px 0;
    border-bottom: 3px solid var(--gold);
}
.page-hero .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}
.page-hero-inner {
    max-width: calc(var(--container) - 300px - 48px);
}
.page-sidebar-spacer {
    width: 300px;
    flex-shrink: 0;
}
.page-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}
.breadcrumbs {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* ── PAGE LAYOUT ──────────────────────────── */
.page-content-wrap {
    padding: 52px 0;
    background: var(--white);
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.page-main { min-width: 0; }

/* ── PROSE CONTENT ────────────────────────── */
.prose h2 {
    font-size: 26px;
    color: var(--navy);
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.prose h3 {
    font-size: 20px;
    color: var(--navy);
    margin: 24px 0 10px;
}
.prose p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 16px;
}
.prose ul, .prose ol {
    margin: 0 0 16px 24px;
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.85;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}
.prose blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--cream);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { color: var(--text-mid); font-style: italic; margin: 0; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.prose table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.prose table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
}
.prose table tr:nth-child(even) td { background: var(--cream); }

/* ── SIDEBAR ──────────────────────────────── */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* position: sticky; */
    top: 180px;
}
.sidebar-widget {
    background: var(--cream);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px;
}
.sidebar-widget-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Sidebar menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-menu li { border-bottom: 1px solid var(--border); }
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    transition: none;
}
.sidebar-menu a:hover { color: var(--navy); }
.sidebar-menu .current-menu-item a { color: var(--navy); font-weight: 700; }

/* Sidebar prayer times */
.sidebar-prayer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.sidebar-prayer-row:last-child { border-bottom: none; }
.sidebar-prayer-name { color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-prayer-time { color: var(--navy); font-weight: 700; font-size: 13px; }
.sidebar-prayer-row.is-next .sidebar-prayer-name { color: var(--gold); }
.sidebar-prayer-row.is-next .sidebar-prayer-time { color: var(--gold); }

/* Sidebar donate */
.sidebar-donate p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.sidebar-zakaat-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.sidebar-zakaat-link:hover { color: var(--gold); }

.sidebar-prayer-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
}
.sidebar-prayer-icon svg {
    width: 28px;
    height: 28px;
}

.sidebar-prayer-row {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    gap: 8px;
}
.sidebar-prayer-name {
    flex: 1;
}
.sidebar-prayer-time {
    margin-left: auto;
}

/* ── PRAYER ICON REVEAL ANIMATION ────────── */
.sidebar-prayer-icon svg {
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: icon-reveal 0.6s ease forwards;
    opacity: 0;
}

.sidebar-prayer-row:nth-child(1) .sidebar-prayer-icon svg { animation-delay: 0.1s; }
.sidebar-prayer-row:nth-child(2) .sidebar-prayer-icon svg { animation-delay: 0.3s; }
.sidebar-prayer-row:nth-child(3) .sidebar-prayer-icon svg { animation-delay: 0.5s; }
.sidebar-prayer-row:nth-child(4) .sidebar-prayer-icon svg { animation-delay: 0.7s; }
.sidebar-prayer-row:nth-child(5) .sidebar-prayer-icon svg { animation-delay: 0.9s; }
.sidebar-prayer-row:nth-child(6) .sidebar-prayer-icon svg { animation-delay: 1.1s; }
.sidebar-prayer-row:nth-child(7) .sidebar-prayer-icon svg { animation-delay: 1.3s; }

@keyframes icon-reveal {
    0%   { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    60%  { opacity: 1; transform: scale(1.1) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Redraw on hover */
.sidebar-prayer-icon svg.redraw {
    animation: icon-reveal 0.5s ease forwards !important;
    animation-delay: 0s !important;
}

.sidebar-prayer-row:hover .sidebar-prayer-icon svg {
    filter: drop-shadow(0 2px 6px rgba(200, 151, 58, 0.5));
}

/* ── PAGE RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .page-sidebar {
        position: static;
    }
    .page-title { font-size: 28px; }
}

/* ── SINGLE POST ──────────────────────────── */
.post-hero-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.post-hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    margin-bottom: 10px;
}
.post-featured-img {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 48%;
}
.post-nav-next { align-items: flex-end; text-align: right; }
.post-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}
.post-nav-title {
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.3;
}
.post-nav-title:hover { color: var(--gold); }
.post-back { margin-top: 24px; }

/* Sidebar recent posts */
.sidebar-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-recent-posts li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-recent-posts li:last-child { border-bottom: none; }
.sidebar-recent-posts a {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}
.sidebar-recent-posts a:hover { color: var(--gold); }
.sidebar-recent-posts span {
    font-size: 11px;
    color: var(--text-light);
}

/* ── ARCHIVE PAGINATION ───────────────────── */
.archive-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.archive-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.archive-pagination a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.archive-pagination .current {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── PRAYER TIMES PAGE ────────────────────── */
.next-prayer-banner {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 32px;
    border-top: 4px solid var(--gold);
}
.next-prayer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.next-prayer-name {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}
.next-prayer-time {
    font-size: 22px;
    color: var(--gold-light);
    font-weight: 700;
}
.prayer-times-table-wrap {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.prayer-times-table {
    width: 100%;
    border-collapse: collapse;
}
.prayer-times-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.prayer-times-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-mid);
}
.prayer-times-table tr:last-child td { border-bottom: none; }
.prayer-times-table tr:nth-child(even) td { background: var(--cream); }
.prayer-times-table tr.is-next-row td {
    background: rgba(200,151,58,0.08);
    color: var(--navy);
    font-weight: 700;
}
.prayer-times-notes { margin-top: 8px; }

/* ── EVENTS PAGE ──────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: none;
}
.event-card:hover { box-shadow: var(--shadow-lg); }
.event-card-link { display: block; color: inherit; }
.event-img { height: 220px; overflow: hidden; position: relative; }
.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-img-placeholder {
    width: 100%; height: 100%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    border-bottom: 3px solid var(--gold);
}
.event-img-placeholder span {
    font-family: var(--font-serif);
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    text-align: center;
}
.event-body { padding: 20px; }
.event-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}
.event-presenter,
.event-date {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
    align-items: baseline;
}
.event-meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    flex-shrink: 0;
}
.event-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--navy);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid { grid-template-columns: 1fr; }
}

/* ── EVENTS FILTER ────────────────────────── */
.events-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.events-filter-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
}
.events-filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.events-filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ── SINGLE EVENT LAYOUT ──────────────────── */
.event-single-layout {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.event-single-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 480px;
    width: 100%;
}
.event-single-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
    box-shadow: var(--shadow-lg);
}
.event-single-meta {
    background: var(--navy);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
}
.event-single-meta-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.event-single-meta-row:last-child { border-bottom: none; }
.event-single-meta-row .event-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.event-single-meta-row span:last-child {
    font-size: 15px;
    color: var(--white);
    font-weight: 600;
}
.event-single-content {
    width: 100%;
}

/* Audio player wrapper */
.event-single-content .prose {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    border: none;
}
.event-single-content .wp-audio-shortcode {
    width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
}
.event-single-content .mejs-container {
    background: var(--navy) !important;
    border-radius: 8px;
}
.event-single-content .mejs-controls {
    background: var(--navy) !important;
}
.event-single-content .mejs-time-rail .mejs-time-total {
    background: rgba(255,255,255,0.2) !important;
}
.event-single-content .mejs-time-rail .mejs-time-current {
    background: var(--gold) !important;
}

@media (max-width: 768px) {
    .event-single-layout {
        flex-direction: column;
        align-items: center;
    }
}

/* ── JOURNAL LIST ─────────────────────────── */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.journal-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: none;
}
.journal-item:hover { box-shadow: var(--shadow-md); }
.journal-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: inherit;
}
.journal-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.journal-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.journal-item-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.journal-item-body { flex: 1; min-width: 0; }
.journal-item-title {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}
.journal-item:hover .journal-item-title { color: var(--gold); }
.journal-item-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.journal-item-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}
.journal-item-arrow {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    font-weight: 700;
}

/* ── PDF Download Button ──────────────────── */
.prose a[href$=".pdf"] {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.prose a[href$=".pdf"]:hover {
    background: var(--navy);
    color: var(--white);
}

/* ── DONATE PAGE ──────────────────────────── */
.donate-section-block {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
}
.donate-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.donate-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.donate-page-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
}
.donate-page-card:hover {
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.donate-page-icon { font-size: 32px; margin-bottom: 4px; }
.donate-page-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
}
.donate-page-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}
.donate-page-handle {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 4px;
}
.donate-page-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

/* Note */
.donate-note {
    background: var(--cream);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.donate-note-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.donate-note p { font-size: 13px; color: var(--text-mid); line-height: 1.75; margin: 0; }
.donate-note a { color: var(--navy); font-weight: 700; }

/* Zakaat */
.donate-zakaat-section {
    background: var(--cream);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.donate-zakaat-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.donate-zakaat-icon { font-size: 36px; flex-shrink: 0; }
.donate-zakaat-body { flex: 1; min-width: 200px; }
.donate-zakaat-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
}
.donate-zakaat-body p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* Matching gifts */
.donate-matching {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .donate-page-grid { grid-template-columns: 1fr; }
    .donate-zakaat-inner { flex-direction: column; }
    .donate-matching { grid-template-columns: 1fr; }
}

.donate-full-divider {
    width: 100%;
    height: 2px;
    background: var(--gold);
    margin: 14px 0 0;
    border-radius: 2px;
}

/* ── MAILCHIMP FORM ───────────────────────── */
.dunj-mailchimp-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 32px;
}
.dunj-mc-form { display: flex; flex-direction: column; gap: 0; }
.dunj-mc-fields { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }

.dunj-mc-field { display: flex; flex-direction: column; gap: 6px; }
.dunj-mc-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.03em;
}
.dunj-mc-field input[type="email"],
.dunj-mc-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
}
.dunj-mc-field input:focus {
    border-color: var(--navy);
    background: var(--white);
}

/* Two column row */
.dunj-mc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Phone field */
.dunj-mc-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-mid);
}
.dunj-mc-phone .phonepart {
    padding: 11px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
    text-align: center;
}
.dunj-mc-phone .phonepart:focus {
    border-color: var(--navy);
    background: var(--white);
}

/* Required / optional labels */
.dunj-mc-required { color: var(--gold); font-weight: 700; }
.dunj-mc-optional { color: var(--text-light); font-weight: 400; font-size: 12px; }

/* Submit row */
.dunj-mc-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.dunj-mc-note {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}
.dunj-mc-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sans);
}
.dunj-mc-btn:hover { background: var(--navy-mid); }

/* Response messages */
.dunj-mc-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}
.dunj-mc-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .dunj-mc-field-row { grid-template-columns: 1fr; }
    .dunj-mc-submit { flex-direction: column; align-items: flex-start; }
    .dunj-mc-btn { width: 100%; text-align: center; }

    .prayer-bar {
        padding: 0;
    }
    .prayer-bar-inner {
        flex-wrap: wrap;
        padding: 6px 2px;
        gap: 0;
        justify-content: space-around;
        align-items: flex-start;
    }
    .prayer-bar-label {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 6px;
        margin-bottom: 8px;
    }
    .prayer-time {
        flex: 0 0 19%;
        text-align: center;
        padding: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        overflow: hidden;
    }
    .prayer-time:nth-child(7),
    .prayer-time:nth-child(8) {
        flex: 0 0 48%;
        padding-top: 8px;
        margin-top: 6px;
    }
    .prayer-time:nth-child(7) {
        border-top: 1px solid rgba(255,255,255,0.1);
        align-items: center;
    }
    .prayer-time:nth-child(8) {
        border-top: 1px solid rgba(255,255,255,0.1);
        align-items: center;
    }
    .prayer-name {
        font-size: 8px;
        letter-spacing: 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
    }
    .prayer-time-value {
        font-size: 11px;
        white-space: nowrap;
        margin-top: 0;
    }
    .next-prayer-badge { display: none; }

}

/* ── GALLERY FULL WIDTH ───────────────────── */
.gallery-full-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* ── SITE ALERT BANNER ────────────────────── */
@keyframes alert-pulse {
    0%   { background: #c0392b; }
    50%  { background: #e74c3c; }
    100% { background: #c0392b; }
}
.site-alert {
    animation: alert-pulse 0.5s ease-in-out 2 forwards;
    border-bottom: 2px solid #922b21;
    padding: 11px 0;
    text-align: center;
    position: relative;
    z-index: 101;
}
.site-alert-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.site-alert-icon {
    font-size: 18px;
    animation: shake 1s ease-in-out 2 forwards;
}
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(-15deg); }
    40%       { transform: rotate(15deg); }
    60%       { transform: rotate(-10deg); }
    80%       { transform: rotate(10deg); }
}
.site-alert-message {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}
.site-alert-link {
    color: #fde8e8;
    font-weight: 700;
    text-decoration: underline;
}
.site-alert-link:hover { color: #ffffff; }

@media (max-width: 768px) {
    .site-alert-message { font-size: 13px; }
}

/* ── HUFFAZ PAGE ──────────────────────────── */
.huffaz-intro {
    min-height: calc(100vh - 340px);
    padding: 48px 28px;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.huffaz-intro-ayah {
    font-size: 24px;
    color: var(--gold);
    direction: rtl;
    margin-bottom: 8px;
    font-family: var(--font-serif);
    line-height: 1.6;
}

.huffaz-intro-ayah-trans {
    font-size: 12px;
    color: rgba(200, 151, 58, 0.6);
    font-style: italic;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.huffaz-intro-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.huffaz-intro-divider:last-child {
    margin-bottom: 0;
    margin-top: 22px;
}

.huffaz-intro-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 151, 58, 0.5));
}

.huffaz-intro-divider span:last-child {
    background: linear-gradient(to left, transparent, rgba(200, 151, 58, 0.5));
}

.huffaz-intro-divider i {
    color: var(--gold);
    font-size: 14px;
    font-style: normal;
}

.huffaz-intro-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
    font-family: var(--font-serif);
    font-style: italic;
    margin: 0;
}

.huffaz-scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(200, 151, 58, 0.8);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.huffaz-scroll-cta:hover {
    color: var(--gold);
}

.huffaz-scroll-cta svg {
    animation: huffazBounce 1.8s ease-in-out infinite;
}

@keyframes huffazBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* Gender section */
.huffaz-gender-section { margin-bottom: 60px; }
.huffaz-gender-header { margin-bottom: 32px; }
.huffaz-gender-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 10px;
}
.huffaz-gender-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* ── Huffaz page star background ── */
.huffaz-page-wrap {
    background: #0f2a38;
    position: relative;
    overflow: hidden;
    padding: 48px 0;
}

.huffaz-star-layer {
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 1px;
    background: transparent;
    pointer-events: none;
}

/* Year section */
.huffaz-year-section { margin-bottom: 40px; }
.huffaz-year-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.huffaz-year-line { flex: 1; height: 1px; background: var(--border); }
.huffaz-year-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 10px 24px;
    text-align: center;
}
.huffaz-year-label { font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); }
.huffaz-year-number { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--white); line-height: 1; }
.huffaz-year-count { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }

/* Graduate cards */
.huffaz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.huffaz-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 151, 58, 0.25);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.huffaz-card-body {
    flex: 1; min-width: 0;
    position: relative;
    z-index: 1;
}

.huffaz-card-name {
    font-family: var(--font-serif);
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.huffaz-card-meta span:last-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: none;
}

.huffaz-card-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.huffaz-meta-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(200, 151, 58, 0.7);
}

.huffaz-card-seal {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(200, 151, 58, 0.15);
    border: 1.5px solid rgba(200, 151, 58, 0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;

}

.huffaz-card-number {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Gender header text needs to be white now */
.huffaz-gender-header h2 {
    color: var(--white);
    border: none;
}

.huffaz-gender-divider {
    display: none;
}

.huffaz-meta-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.huffaz-card-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 6px;
}

.huffaz-card-date {
    font-size: 11px;
    color: rgba(200, 255, 255, 0.6);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(200, 151, 58, 0.15);
}

/* ── Huffaz intro write-in animation ── */
.huffaz-intro-ayah,
.huffaz-intro-ayah-trans,
.huffaz-intro-divider,
.huffaz-intro-text {
    opacity: 0;
    transform: translateY(12px);
}

.huffaz-intro.huffaz-intro-animate .huffaz-intro-ayah {
    animation: huffazFadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
}

.huffaz-intro.huffaz-intro-animate .huffaz-intro-ayah-trans {
    animation: huffazFadeUp 0.7s ease forwards;
    animation-delay: 0.7s;
}

.huffaz-intro.huffaz-intro-animate .huffaz-intro-divider:first-of-type {
    animation: huffazFadeUp 0.6s ease forwards;
    animation-delay: 1.2s;
}


.huffaz-intro.huffaz-intro-animate .huffaz-intro-divider:last-of-type {
    animation: huffazFadeUp 0.6s ease forwards;
    animation-delay: 2.6s;
}

@keyframes huffazFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .huffaz-cards { grid-template-columns: 1fr; }
    .huffaz-intro-inner { flex-direction: column; }
}

/* ── HEADER GOLD GLOW ─────────────────────── */
.header-nav {
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 20px rgba(200, 151, 58, 0.3);
}

/* ── MAGHRIB CRESCENT ─────────────────────── */
@keyframes crescent-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 4px rgba(200, 151, 58, 0.4));
        opacity: 0.8;
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(200, 151, 58, 1));
        opacity: 1;
    }
}
.maghrib-crescent-fixed {
    position: fixed;
    top: 40px;
    right: 20px;
    width: auto;
    display: inline-block;
    font-size: 28px;
    z-index: 998;
    animation: crescent-pulse 2s ease-in-out infinite;
    cursor: default;
    line-height: 1;
    background: none !important;
}
.maghrib-crescent-fixed img.emoji {
    width: 28px;
    height: 28px;
    display: inline;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .maghrib-crescent-fixed {
        display: none;
    }
}

.topbar-gregorian {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-left: -4px;
}



/* ── EID BANNER ───────────────────────────── */
@keyframes eid-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
.eid-banner {
    background: linear-gradient(270deg, #c8973a, #e8b84b, #c8973a, #a07830);
    background-size: 400% 400%;
    animation: eid-shimmer 4s ease infinite;
    padding: 10px 0;
    text-align: center;
}
.eid-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.eid-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.eid-star { font-size: 18px; }

/* ── LOGO HOVER GLOW ──────────────────────── */
.header-top-center .custom-logo,
.header-top-center img {
    transition: filter 0.3s ease;
}
.header-top-center .custom-logo:hover,
.header-top-center img:hover {
    filter: drop-shadow(0 0 12px rgba(200, 151, 58, 0.7));
    cursor: pointer;
}

/* ── TASBIH COUNTER ───────────────────────── */
.tasbih-wrap {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 900;
}
.tasbih-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--gold);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    touch-action: manipulation;
}
.tasbih-toggle:hover { background: var(--navy-mid); }

.tasbih-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 20px 16px;
    width: 300px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tasbih-panel.is-open { display: flex; }

#tasbihDuaMode {
    width: 100%;
}

.tasbih-header { display: flex; flex-direction: column; gap: 2px; }
.tasbih-title { font-size: 22px; color: var(--gold-light); font-family: var(--font-serif); }
.tasbih-subtitle { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase; }

/* Mode toggle */
.tasbih-mode-toggle {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    width: 100%;
}
.tasbih-mode-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 16px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-sans);
    touch-action: manipulation;
}
.tasbih-mode-btn.active {
    background: var(--gold);
    color: var(--white);
}

/* Progress */
.tasbih-progress-wrap { width: 100%; }
.tasbih-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}
.tasbih-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.tasbih-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Phases */
.tasbih-phases {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}
.tasbih-phase {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.tasbih-phase.active {
    border-color: var(--gold);
    background: rgba(200,151,58,0.12);
}
.tasbih-phase.done {
    border-color: rgba(200,151,58,0.3);
    background: rgba(200,151,58,0.06);
}
.tasbih-phase-arabic { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 3px; }
.tasbih-phase.active .tasbih-phase-arabic { color: var(--gold-light); }
.tasbih-phase.done .tasbih-phase-arabic { color: rgba(200,151,58,0.5); }
.tasbih-phase-count { font-size: 9px; color: rgba(255,255,255,0.3); font-weight: 700; }
.tasbih-phase.active .tasbih-phase-count { color: rgba(255,255,255,0.7); }

/* Count display */
.tasbih-count {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1;
}
.tasbih-dhikr { font-size: 16px; color: var(--gold-light); }
.tasbih-translit { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

/* Tap button */
.tasbih-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    box-shadow: 0 0 0 6px rgba(200,151,58,0.15), 0 0 0 12px rgba(200,151,58,0.07);
    touch-action: manipulation;
}
.tasbih-btn:active { transform: scale(0.96); }
.tasbih-btn:hover { background: var(--gold-light); }

/* Actions */
.tasbih-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}
.tasbih-action-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    touch-action: manipulation;
}
.tasbih-action-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
    .tasbih-wrap { bottom: 20px; left: 20px; }
    .tasbih-panel { width: 240px; }
}

.tasbih-toggle {
    cursor: grab;
}
.tasbih-toggle:active {
    cursor: grabbing;
}

/* ── GUTENBERG BLOCK STYLES ───────────────────────────── */
.wp-block-columns {
    gap: 20px;
}
.wp-block-column {
    border-radius: var(--radius);
}
.wp-block-button__link {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius) !important;
}
.is-style-fill .wp-block-button__link {
    background: var(--navy) !important;
    color: var(--white) !important;
}
.is-style-outline .wp-block-button__link {
    border-color: var(--navy) !important;
    color: var(--navy) !important;
    background: transparent !important;
}
.is-style-outline .wp-block-button__link:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}
.has-navy-background-color { background-color: var(--navy) !important; }
.has-gold-background-color { background-color: var(--gold) !important; }
.has-cream-background-color { background-color: var(--cream) !important; }
.has-navy-color  { color: var(--navy) !important; }
.has-gold-color  { color: var(--gold) !important; }
.has-white-color { color: var(--white) !important; }

/* ── COURSES PAGE ─────────────────────────────────────── */
.courses-page-wrap {
    padding: 52px 0 72px;
    background: var(--cream);
}
.courses-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.course-tile {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    color: inherit;
    border-bottom: 3px solid var(--gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.course-tile-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,151,58,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.course-tile-name {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.course-tile-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0;
}
.course-tile-btn {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(200,151,58,0.4);
    border-radius: 20px;
    padding: 5px 14px;
}
.course-tile:hover .course-tile-btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

@media (max-width: 768px) {
    .courses-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .courses-tiles { grid-template-columns: 1fr; }
}
/* ── ISLAMIC DAY TOPBAR HIGHLIGHT ─────────────────────── */
.topbar-hijri-active {
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
    animation: crescent-pulse 2s ease-in-out infinite;
    cursor: pointer;
    border-bottom: 1px dashed rgba(200,151,58,0.5);
}
.topbar-hijri-active:hover {
    color: var(--white);
}
/* ── DEEN DATES ARCHIVE ───────────────────────────────── */
.deen-dates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
}
.deen-date-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.deen-date-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: inherit;
}
.deen-date-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.deen-date-name {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
    margin: 0;
}
.deen-date-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .deen-dates-grid { grid-template-columns: 1fr; }
}

/* ── NISAB TABLE ──────────────────────────────────────── */
.nisab-wrap {
    margin: 24px 0;
}
.nisab-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 15px;
}
.nisab-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nisab-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
}
.nisab-table tr:nth-child(even) td {
    background: var(--cream);
}
.nisab-table tr:last-child td {
    border-bottom: none;
}
.nisab-amount {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}
.nisab-meta {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
}
.nisab-updated {
    color: var(--gold);
    font-weight: 600;
}
.nisab-error {
    color: var(--text-light);
    font-style: italic;
}

/* ── HISTORICAL NISAB ─────────────────────────────────── */
.nisab-history-wrap {
    margin: 24px 0;
    padding: 24px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius);
}
.nisab-history-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
    margin: 0 0 8px;
}
.nisab-history-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.7;
}
.nisab-history-form { margin-bottom: 20px; }
.nisab-history-fields {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.nisab-date-input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    outline: none;
}
.nisab-date-input:focus { border-color: var(--navy); }
.nisab-history-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sans);
}
.nisab-history-btn:hover { background: var(--navy-mid); }
.nisab-history-result { margin-top: 20px; }

/* ── NISAB TABS ───────────────────────────────────────── */
.nisab-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.nisab-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    letter-spacing: 0.04em;
}
.nisab-tab:hover { color: var(--navy); }
.nisab-tab.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.nisab-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    cursor: pointer;
}
.nisab-select:focus { border-color: var(--navy); }


/* ── NISAB DISCLAIMER ─────────────────────────────────── */
.nisab-disclaimer-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.03em;
    text-decoration: underline;
}
.nisab-disclaimer-toggle:hover { color: var(--text-mid); }
.nisab-disclaimer-toggle.is-open { color: var(--navy); }
.nisab-disclaimer-body {
    margin-top: 14px;
    padding: 16px 20px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.8;
}
.nisab-disclaimer-body p {
    margin: 0 0 12px;
}
.nisab-disclaimer-body p:last-child {
    margin-bottom: 0;
}
.nisab-disclaimer-body strong {
    color: var(--navy);
    display: block;
    margin-bottom: 2px;
}
.nisab-disclaimer-body a {
    color: var(--navy);
    font-weight: 700;
}
.nisab-disclaimer-body a:hover { color: var(--gold); }


/* ============================================
   Hijri to Gregorian Converter
   ============================================ */

.hijri-converter-wrap {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 600px;
}

.hijri-converter-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 6px;
}

.hijri-converter-desc {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.hijri-converter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hijri-conv-select {
    flex: 1;
    min-width: 110px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--navy);
    background: var(--white);
}

.hijri-conv-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hijri-conv-btn:hover {
    background: var(--gold);
}

.hijri-conv-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--navy);
}

.hijri-conv-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fdf0f0;
    border: 1px solid #e8b4b4;
    border-radius: var(--radius);
    color: #a33;
    font-size: 13px;
}


/* Add/replace in hijri-converter.css */

.hijri-conv-date-input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--navy);
    background: var(--white);
}

.hijri-conv-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}