/* ============================================================
   Northstowe Muslims — Public Site  |  Green & Gold Theme
   ============================================================ */

:root {
    --nm-green-dark:  #1A3A2A;
    --nm-green:       #243B30;
    --nm-green-light: #2E4D3A;
    --nm-gold:        #C9A050;
    --nm-gold-light:  #E0BB72;
    --nm-cream:       #F0E6C8;
    --nm-text-light:  #D4C89A;
    --nm-white:       #ffffff;
    --nm-body-bg:     #f7f5f0;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--nm-body-bg);
    color: #2c2c2c;
    line-height: 1.7;
}

a { color: var(--nm-green-dark); text-decoration: none; }
a:hover { color: var(--nm-gold); }

img { max-width: 100%; height: auto; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: var(--nm-green-dark);
    line-height: 1.3;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--nm-green-dark);
    margin-bottom: .35rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--nm-gold);
    border: none;
    margin: .5rem 0 1.5rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.nm-nav-wrapper {
    background: var(--nm-green-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.nm-navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nm-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nm-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.nm-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.nm-logo-text .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nm-cream);
    letter-spacing: .03em;
}

.nm-logo-text .tagline {
    font-size: .65rem;
    color: var(--nm-gold);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nm-nav-links {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nm-nav-links > li { position: relative; }

.nm-nav-links > li > a {
    display: block;
    padding: .55rem .9rem;
    color: var(--nm-text-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}

.nm-nav-links > li > a:hover,
.nm-nav-links > li > a.active { color: var(--nm-gold-light); }

.nm-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--nm-green);
    min-width: 200px;
    border: 1px solid rgba(201,160,80,.2);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 200;
    padding: .4rem 0;
}

.nm-dropdown a {
    display: block;
    padding: .5rem 1rem;
    color: var(--nm-text-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .8rem;
    transition: background .12s, color .12s;
}

.nm-dropdown a:hover { background: rgba(201,160,80,.12); color: var(--nm-gold-light); }

.nm-nav-links > li:hover .nm-dropdown { display: block; }

.nm-nav-actions { display: flex; gap: .6rem; align-items: center; }

/* LoginPartial navbar list */
.nm-nav-actions .navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .4rem;
}

.nm-nav-actions .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.nm-nav-actions .navbar-nav .nav-link {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .82rem;
    color: var(--nm-text-light);
    text-decoration: none;
    padding: .35rem .65rem;
    transition: color .15s;
    white-space: nowrap;
}

.nm-nav-actions .navbar-nav .nav-link:hover {
    color: var(--nm-gold-light);
}

.nm-nav-actions .navbar-nav button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: .35rem .65rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .82rem;
    color: var(--nm-text-light);
    transition: color .15s;
}

.nm-nav-actions .navbar-nav button.nav-link:hover {
    color: var(--nm-gold-light);
}

.btn-nav-donate,
.btn-nav-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem 1.1rem;
    border-radius: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    min-width: 80px;
    transition: background .15s, color .15s;
}

.btn-nav-donate {
    background: var(--nm-gold);
    color: var(--nm-green-dark);
}

.btn-nav-admin {
    background: #27ae60;
    color: #fff;
}

.btn-nav-donate:hover { background: var(--nm-gold-light); color: var(--nm-green-dark); }
.btn-nav-admin:hover  { background: #219150; color: #fff; }

.nm-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    flex-direction: column;
    gap: 5px;
}

.nm-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nm-cream);
    border-radius: 2px;
    transition: all .25s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.nm-hero {
    background: var(--nm-green-dark);
    position: relative;
    overflow: hidden;
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
}

.nm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,160,80,.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a050' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.nm-hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.nm-hero-arabic {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--nm-gold);
    font-family: 'Georgia', serif;
    margin-bottom: .4rem;
    display: block;
}

.nm-hero-translation {
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nm-text-light);
    margin-bottom: 1.5rem;
    display: block;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-hero-divider {
    width: 50px;
    height: 2px;
    background: var(--nm-gold);
    margin: 0 auto 1.75rem;
    border: none;
    opacity: .6;
}

.nm-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--nm-cream);
    margin: 0 0 .5rem;
    font-weight: 700;
}

.nm-hero-location {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nm-gold);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-bottom: 1.4rem;
}

.nm-hero-desc {
    font-size: 1.05rem;
    color: var(--nm-text-light);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    line-height: 1.8;
}

.nm-hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--nm-gold);
    color: var(--nm-green-dark);
    padding: .75rem 1.75rem;
    border-radius: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s;
}

.btn-hero-primary:hover { background: var(--nm-gold-light); color: var(--nm-green-dark); }

.btn-hero-outline {
    background: transparent;
    color: var(--nm-cream);
    padding: .75rem 1.75rem;
    border: 1.5px solid rgba(201,160,80,.5);
    border-radius: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .15s;
}

.btn-hero-outline:hover { border-color: var(--nm-gold); color: var(--nm-gold); }

.nm-hero-scroll {
    margin-top: 3rem;
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(201,160,80,.5);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Hero Slideshow ──────────────────────────────────────── */
.nm-hero-slideshow {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.nm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    min-height: 100vh;
}

.nm-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;   /* only active slide takes up space / drives height */
}

/* Brand slide keeps the original hero look */
.nm-hero-slide-brand {
    background: var(--nm-green-dark);
    padding: 5.5rem 1.5rem 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nm-hero-slide-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,160,80,.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a050' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/G%3E%3C/svg%3E");
    pointer-events: none;
}

/* Event slides: full bleed image background */
.nm-hero-slide-event {
    background-image: var(--slide-bg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100vh;
}

.nm-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,30,18,.25) 0%,
        rgba(10,30,18,.55) 60%,
        rgba(10,30,18,.82) 100%
    );
}

.nm-hero-slide-event-content {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding: 2.5rem 2rem 5rem;
    text-align: left;
}

.nm-hero-slide-event-label {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nm-gold);
    background: rgba(201,160,80,.15);
    border: 1px solid rgba(201,160,80,.35);
    border-radius: 3px;
    padding: .2rem .6rem;
    margin-bottom: .85rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-hero-slide-event-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #fff;
    font-weight: 700;
    margin: 0 0 .75rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.nm-hero-slide-event-meta {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 1.5rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

.nm-hero-slide-readmore {
    display: inline-block;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .65rem 1.4rem;
    border-radius: 4px;
    transition: background .2s, border-color .2s;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-hero-slide-readmore:hover {
    background: rgba(201,160,80,.3);
    border-color: var(--nm-gold);
    color: var(--nm-gold);
}

/* Prev / Next arrows */
.nm-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.nm-hero-nav:hover { background: rgba(201,160,80,.35); border-color: var(--nm-gold); }
.nm-hero-prev { left: 1.25rem; }
.nm-hero-next { right: 1.25rem; }

/* Dots */
.nm-hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: .5rem;
}

.nm-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    padding: 0;
}

.nm-hero-dot.active {
    background: var(--nm-gold);
    transform: scale(1.3);
}

/* ── Prayer Times Bar ─────────────────────────────────────── */
.nm-prayer-bar {
    background: var(--nm-green);
    border-top: 1px solid rgba(201,160,80,.2);
    border-bottom: 1px solid rgba(201,160,80,.2);
}

.nm-prayer-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.prayer-bar-label {
    color: var(--nm-gold);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.prayer-bar-times { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.prayer-item { display: flex; flex-direction: column; align-items: center; gap: .1rem; }

.prayer-item .p-name {
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nm-text-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.prayer-item .p-time {
    font-size: .9rem;
    font-weight: 700;
    color: var(--nm-cream);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.prayer-item.active .p-time { color: var(--nm-gold-light); }
.prayer-item.active .p-name { color: var(--nm-gold); }

/* ── Sections ─────────────────────────────────────────────── */
.nm-section { padding: 4rem 1.5rem; }
.nm-section-alt { background: #fff; }
.nm-container { max-width: 1200px; margin: 0 auto; }

.nm-section-header { margin-bottom: 2.5rem; }
.nm-section-header.center { text-align: center; }
.nm-section-header.center .section-divider { margin: .5rem auto 1.5rem; }

/* ── Cards grid ───────────────────────────────────────────── */
.nm-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.nm-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.5rem; }

/* ── Events slider ─────────────────────────────────────────── */
.nm-events-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nm-events-slider {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.nm-slider-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

.nm-slider-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--nm-gold);
    background: #fff;
    color: var(--nm-green-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    z-index: 1;
}

.nm-slider-btn:hover { background: var(--nm-green-dark); color: var(--nm-gold); }
.nm-slider-btn:disabled { opacity: .3; cursor: default; }

.nm-slider-dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 1.1rem;
}

.nm-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.nm-slider-dot.active { background: var(--nm-gold); transform: scale(1.3); }

.nm-card-public {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e2d4;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.nm-card-public:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,58,42,.1); }

.nm-card-img { height: 200px; object-fit: cover; width: 100%; display: block; }

.nm-card-img-placeholder {
    height: 200px;
    background: var(--nm-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--nm-gold);
}

.nm-card-body-pub {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nm-card-meta {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nm-gold);
    margin-bottom: .5rem;
    font-weight: 600;
}

.nm-card-title { font-size: 1.1rem; font-weight: 700; color: var(--nm-green-dark); margin-bottom: .5rem; line-height: 1.4; }
.nm-card-excerpt { font-size: .875rem; color: #555; flex: 1; margin-bottom: 1rem; }

.nm-card-link {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nm-gold);
}

.nm-card-link:hover { color: var(--nm-green-dark); }

/* ── Prayer Times Table (public) ──────────────────────────── */
.prayer-table-wrap { overflow-x: auto; }

.prayer-public-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .875rem;
}

.prayer-public-table thead th {
    background: var(--nm-green-dark);
    color: var(--nm-gold);
    padding: .7rem 1rem;
    text-align: center;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
}

.prayer-public-table thead th:first-child { text-align: left; }

.prayer-public-table tbody tr { border-bottom: 1px solid #ede9de; }
.prayer-public-table tbody tr:hover { background: #fdf9f2; }
.prayer-public-table tbody td { padding: .6rem 1rem; text-align: center; color: #444; }
.prayer-public-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--nm-green-dark); }

.prayer-public-table tr.today-row { background: #fffbf0; font-weight: 700; }
.prayer-public-table tr.today-row td { color: var(--nm-green-dark); }

.today-badge {
    background: var(--nm-gold);
    color: var(--nm-green-dark);
    font-size: .62rem;
    padding: .12rem .4rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-left: .4rem;
    vertical-align: middle;
}

/* ── Month navigation ─────────────────────────────────────── */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.month-nav-title { font-size: 1.3rem; font-weight: 700; color: var(--nm-green-dark); }

.btn-month {
    background: var(--nm-green-dark);
    color: var(--nm-gold);
    border: none;
    border-radius: 4px;
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.btn-month:hover { background: var(--nm-green-light); color: var(--nm-gold-light); }

/* ── Team ─────────────────────────────────────────────────── */
.nm-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }

.nm-team-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e2d4;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.nm-team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,58,42,.1); }

.nm-team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nm-gold);
    margin-bottom: 1rem;
}

.nm-team-initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--nm-green-dark);
    color: var(--nm-gold);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--nm-gold);
}

.nm-team-name { font-size: 1rem; font-weight: 700; color: var(--nm-green-dark); margin-bottom: .25rem; }

.nm-team-role {
    font-size: .78rem;
    color: var(--nm-gold);
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.nm-team-bio { font-size: .82rem; color: #666; line-height: 1.6; }

/* ── Team profile cards (horizontal, public /team page) ───── */
.nm-team-profile-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nm-team-profile-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e2d4;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(26,58,42,.06);
}

.nm-team-profile-photo-wrap { flex-shrink: 0; }

.nm-team-profile-photo {
    width: 140px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 3px solid var(--nm-gold);
}

.nm-team-profile-initials {
    width: 140px;
    height: 160px;
    border-radius: 8px;
    background: var(--nm-green-dark);
    color: var(--nm-gold);
    font-size: 3.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--nm-gold);
}

.nm-team-profile-body { flex: 1; min-width: 0; }

.nm-team-profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nm-green-dark);
    margin-bottom: .25rem;
}

.nm-team-profile-role {
    font-size: .8rem;
    font-weight: 700;
    color: var(--nm-gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .9rem;
}

.nm-team-profile-bio {
    font-size: .9rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: .9rem;
    white-space: pre-line;
}

.nm-team-profile-contact {
    font-size: .82rem;
    color: #555;
    margin-top: .5rem;
}

.nm-team-profile-contact a {
    color: var(--nm-green-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--nm-gold);
    padding-bottom: 1px;
}

.nm-team-profile-contact a:hover { color: var(--nm-gold); }

/* ── Gallery ──────────────────────────────────────────────── */
.nm-gallery-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nm-gallery-tab {
    padding: .45rem 1.1rem;
    border: 2px solid var(--nm-gold);
    border-radius: 20px;
    background: transparent;
    color: var(--nm-green-dark);
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.nm-gallery-tab.active,
.nm-gallery-tab:hover {
    background: var(--nm-green-dark);
    color: var(--nm-gold);
}

.nm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.nm-gallery-item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    background: #111;
}

.nm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.nm-gallery-item:hover img { transform: scale(1.04); }

.nm-gallery-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.nm-gallery-item:hover .nm-gallery-thumb-video { transform: scale(1.04); }

.nm-gallery-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    pointer-events: none;
    transition: transform .2s;
}

.nm-gallery-item:hover .nm-gallery-play-btn { transform: scale(1.15); }

.nm-gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    padding: .75rem .75rem .5rem;
    font-size: .78rem;
    opacity: 0;
    transition: opacity .25s;
}

.nm-gallery-item:hover .nm-gallery-caption { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────── */
.nm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.nm-lightbox.active { display: flex; }

.nm-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.nm-lightbox-content img,
.nm-lightbox-content video {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

.nm-lightbox-title {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    text-align: center;
    max-width: 600px;
}

.nm-lightbox-close {
    position: fixed;
    top: 1rem; right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    opacity: .8;
    transition: opacity .15s;
}

.nm-lightbox-close:hover { opacity: 1; }

.nm-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
    z-index: 10000;
}

.nm-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.nm-lightbox-prev { left: .5rem; }
.nm-lightbox-next { right: .5rem; }


/* ── Services page — full-width horizontal cards ──────────── */
.nm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.nm-service-card-full {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e5de;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    transition: box-shadow .2s, transform .2s;
}

.nm-service-card-full:hover {
    box-shadow: 0 6px 24px rgba(26,58,42,.1);
    transform: translateY(-2px);
}

.nm-service-card-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: .15rem;
}

.nm-service-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nm-green-dark);
    margin: 0 0 .5rem;
}

.nm-service-card-content p {
    font-size: .875rem;
    color: #444;
    line-height: 1.7;
    margin: 0 0 .75rem;
}

.nm-service-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
}

.nm-service-links a {
    font-size: .78rem;
    font-weight: 600;
    color: var(--nm-green-dark);
    text-decoration: none;
    letter-spacing: .03em;
    border-bottom: 1.5px solid var(--nm-gold);
    padding-bottom: 1px;
    transition: color .15s;
}

.nm-service-links a:hover { color: var(--nm-gold); }

/* ── About page ───────────────────────────────────────────── */
.nm-about-two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.nm-about-lead {
    font-size: 1.1rem;
    color: var(--nm-green-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.nm-about-body {
    font-size: .95rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.nm-about-quick-card {
    background: #fff;
    border: 1px solid #e8e2d4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(26,58,42,.06);
}

.nm-about-quick-title {
    background: var(--nm-green-dark);
    color: var(--nm-gold);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .65rem 1.1rem;
}

.nm-about-quick-link {
    display: block;
    padding: .75rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--nm-green-dark);
    border-bottom: 1px solid #f0ece4;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.nm-about-quick-link:last-child { border-bottom: none; }
.nm-about-quick-link:hover { background: var(--nm-body-bg); color: var(--nm-gold); }

.nm-about-charity-badge {
    background: var(--nm-green-dark);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: var(--nm-cream);
}

.nm-about-charity-icon { font-size: 2.4rem; margin-bottom: .5rem; }
.nm-about-charity-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nm-text-light); margin-bottom: .3rem; }
.nm-about-charity-num { font-size: 1.1rem; font-weight: 700; color: var(--nm-gold); }

/* ── Aims grid ────────────────────────────────────────────── */
.nm-aims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.nm-aim-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e2d4;
    border-left: 4px solid var(--nm-gold);
    border-radius: 8px;
    padding: 1.25rem 1.1rem;
    transition: transform .2s, box-shadow .2s;
}

.nm-aim-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,58,42,.09); }

.nm-aim-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1.2; }

.nm-aim-text { font-size: .88rem; color: #444; line-height: 1.7; }

/* ── About CTA banner ─────────────────────────────────────── */
.nm-about-cta-banner {
    background: linear-gradient(135deg, var(--nm-green-dark) 0%, var(--nm-green-light) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

/* ── Homepage services widget ─────────────────────────────── */
.nm-services-home { background: var(--nm-green-dark); }

.nm-services-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.nm-service-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(201,160,80,.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.nm-service-tile:hover {
    background: rgba(201,160,80,.12);
    transform: translateY(-3px);
}

.nm-service-tile-icon { font-size: 2rem; line-height: 1; }
.nm-service-tile-title { font-size: 1rem; font-weight: 700; color: var(--nm-cream); }
.nm-service-tile-desc { font-size: .8rem; color: var(--nm-text-light); line-height: 1.6; margin: 0; }

.btn-outline-nm-light {
    display: inline-block;
    padding: .6rem 1.75rem;
    border: 2px solid var(--nm-gold);
    color: var(--nm-gold);
    border-radius: 4px;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.btn-outline-nm-light:hover { background: var(--nm-gold); color: var(--nm-green-dark); }

/* ── Donation banner ──────────────────────────────────────── */
.nm-donate-banner {
    background: linear-gradient(135deg, var(--nm-green-dark) 0%, var(--nm-green-light) 100%);
    padding: 3.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nm-donate-banner::before {
    content: '☪';
    position: absolute;
    font-size: 18rem;
    color: rgba(201,160,80,.04);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
}

.nm-donate-banner h2 { color: var(--nm-cream); font-size: 2rem; margin-bottom: .5rem; position: relative; }
.nm-donate-banner p { color: var(--nm-text-light); max-width: 540px; margin: 0 auto 2rem; position: relative; }

/* ── Article / detail page ────────────────────────────────── */
.nm-article { max-width: 780px; margin: 0 auto; }
.nm-article-header { margin-bottom: 2rem; }

.nm-article-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: block;
}

.nm-article-body h2,
.nm-article-body h3 { color: var(--nm-green-dark); margin-top: 1.75rem; }
.nm-article-body p { margin-bottom: 1.1rem; color: #333; }

/* ── Page hero (inner pages) ──────────────────────────────── */
.nm-page-hero { background: var(--nm-green-dark); padding: 3.5rem 1.5rem 3rem; text-align: center; }

.nm-page-hero h1 { color: var(--nm-cream); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .35rem; }

.nm-page-hero .subtitle {
    color: var(--nm-gold);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ── Contact ──────────────────────────────────────────────── */
.nm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.nm-contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }

.nm-contact-icon {
    width: 44px; height: 44px;
    background: var(--nm-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--nm-gold);
}

.nm-contact-label {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--nm-gold);
    font-weight: 600;
    margin-bottom: .2rem;
}

.nm-contact-value { font-size: .9rem; color: #333; }

/* ── Footer ───────────────────────────────────────────────── */
.nm-footer { background: var(--nm-green-dark); color: var(--nm-text-light); padding: 3.5rem 1.5rem 1.5rem; }

.nm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.nm-footer-brand .arabic { font-size: 1.5rem; color: var(--nm-gold); display: block; margin-bottom: .25rem; }
.nm-footer-brand .name { font-size: 1.05rem; color: var(--nm-cream); font-weight: 700; display: block; margin-bottom: .5rem; }
.nm-footer-brand p { font-size: .82rem; line-height: 1.7; color: var(--nm-text-light); margin: 0; }

.nm-footer-heading {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nm-gold);
    font-weight: 700;
    margin-bottom: .85rem;
}

.nm-footer-links { list-style: none; margin: 0; padding: 0; }
.nm-footer-links li { margin-bottom: .4rem; }

.nm-footer-links a { font-size: .82rem; color: var(--nm-text-light); text-decoration: none; transition: color .15s; }
.nm-footer-links a:hover { color: var(--nm-gold-light); }

.nm-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201,160,80,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .75rem;
    color: rgba(201,160,80,.5);
}

.nm-footer-bottom a { color: rgba(201,160,80,.5); text-decoration: none; }
.nm-footer-bottom a:hover { color: var(--nm-gold); }

/* ── Utilities ────────────────────────────────────────────── */
.btn-primary-nm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--nm-gold);
    color: var(--nm-green-dark);
    padding: .65rem 1.5rem;
    border-radius: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s;
    border: none;
    cursor: pointer;
}

.btn-primary-nm:hover { background: var(--nm-gold-light); color: var(--nm-green-dark); }

.btn-outline-nm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    color: var(--nm-green-dark);
    padding: .65rem 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--nm-green-dark);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}

.btn-outline-nm:hover { background: var(--nm-green-dark); color: var(--nm-gold); }

.empty-state { text-align: center; padding: 3rem; color: #888; font-family: 'Segoe UI', system-ui, sans-serif; }
.empty-state .icon { font-size: 3rem; margin-bottom: .75rem; display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .nm-footer-inner { grid-template-columns: 1fr 1fr; }
    .nm-contact-grid { grid-template-columns: 1fr; }
    .nm-edit-layout  { grid-template-columns: 1fr; }   /* post/event detail pages */
    .nm-events-slider-wrap { overflow-x: auto; }
    .nm-hero-slide-event-content { padding: 2rem 1.5rem 4.5rem; }
}

@media (max-width: 640px) {
    .nm-navbar { height: 64px; }
    .nm-nav-links { display: none; }
    .nm-nav-toggle { display: flex; }

    .nm-nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 180px;
        background: var(--nm-green-dark);
        padding: 1.5rem 1rem;
        z-index: 998;
        border-top: 1px solid rgba(201,160,80,.2);
        overflow-y: auto;
        gap: 0;
        padding-bottom: 2rem;
    }

    .nm-nav-links.open > li {
        width: 100%;
        border-bottom: 1px solid rgba(201,160,80,.1);
    }

    .nm-nav-links.open > li > a {
        display: block;
        padding: 1rem 0;
        text-decoration: none;
    }

    .nm-nav-links.open .nm-dropdown {
        display: none;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    .nm-nav-links.open > li > a.dropdown-open + .nm-dropdown {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem 1rem;
    }

    .nm-nav-links.open .nm-dropdown a {
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .nm-nav-actions {
        display: none !important;
    }

    /* Show nav actions when toggle button is visible (mobile) */
    .nm-nav-toggle:not(:hidden) + * + .nm-nav-actions {
        position: fixed;
        bottom: 0;
        left: 0;    
        right: 0;
        z-index: 1000;
    }

    .nm-nav-actions.open {
        display: flex !important;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--nm-green);
        border-top: 1px solid rgba(201,160,80,.2);
        padding: 1rem;
        z-index: 1000;
        flex-direction: column;
        gap: 0.75rem;
        justify-content: flex-start;
        max-height: 180px;
        overflow-y: auto;
        width: 100%;
    }

    .nm-nav-actions.open .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nm-nav-actions.open .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(201,160,80,.1);
        padding: 0;
    }

    .nm-nav-actions.open .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: none;
        font-size: 0.82rem;
        color: var(--nm-text-light);
        text-decoration: none;
        display: block;
        width: 100%;
    }

    .nm-nav-actions.open form {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nm-nav-actions.open button.nav-link {
        padding: 0.75rem 0;
        text-align: left;
        width: 100%;
        background: none;
        border: none;
        color: var(--nm-text-light);
        font-size: 0.82rem;
        cursor: pointer;
        font-family: 'Segoe UI', system-ui, sans-serif;
    }

    .nm-nav-actions.open .btn-nav-donate {
        width: 100%;
        padding: 0.65rem 1rem;
        min-width: auto;
        text-align: center;
        order: -1;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--nm-gold);
        color: var(--nm-green-dark);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 4px;
        white-space: normal;
    }

    .nm-nav-toggle span {
        width: 20px;
        height: 2.5px;
    }

    .nm-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(11px);
    }

    .nm-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nm-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-11px);
    }

    .nm-footer-inner { grid-template-columns: 1fr; }
    .nm-grid-3, .nm-grid-2 { grid-template-columns: 1fr; }
    .nm-slider-card { flex: 0 0 100%; }
    .nm-team-grid { grid-template-columns: 1fr 1fr; }
    .nm-team-profile-card { flex-direction: column; align-items: center; text-align: center; }
    .nm-team-profile-photo, .nm-team-profile-initials { width: 120px; height: 130px; }
    .nm-about-two-col { grid-template-columns: 1fr; }
    .nm-aims-grid { grid-template-columns: 1fr; }
    .nm-services-grid { grid-template-columns: 1fr; }
    .nm-services-home-grid { grid-template-columns: 1fr; }
    .nm-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .nm-contact-grid { grid-template-columns: 1fr; }
    .nm-hero { padding: 4rem 1rem 3rem; }
    .section-title { font-size: 1.5rem; }
    .nm-page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

    /* Prayer times table */
    .nm-prayer-bar-inner { flex-direction: column; gap: .75rem; text-align: center; }
    .prayer-bar-times { flex-wrap: wrap; justify-content: center; gap: .5rem; }
    .prayer-item { min-width: 70px; }

    /* Events detail / news detail */
    .nm-article-layout { grid-template-columns: 1fr !important; }
    .nm-article-sidebar { order: -1; }

    /* Contact form */
    .nm-contact-form-row { grid-template-columns: 1fr !important; }

    /* Hero slideshow nav */
    .nm-hero-prev { left: .5rem; }
    .nm-hero-next { right: .5rem; }
    .nm-hero-nav { width: 38px; height: 38px; font-size: 1.5rem; }
    .nm-hero-slide-event-content { padding: 1.5rem 1rem 4rem; }
    .nm-hero-slide-event-title { font-size: clamp(1.4rem, 4vw, 2rem); }

    /* Tables on public pages */
    .nm-prayer-table-wrap { overflow-x: auto; }
    .nm-prayer-table-wrap table { min-width: 420px; }
}

@media (max-width: 480px) {
    .nm-logo-img { height: 40px; }
    .nm-navbar { height: 56px; padding: 0 1rem; }
    .nm-nav-links.open { top: 56px; padding: 1rem 0.75rem; }
    .nm-hero { padding: 3rem 1rem 2rem; }
    .nm-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
    .section-title { font-size: 1.3rem; }
    .nm-grid-3, .nm-grid-2 { grid-template-columns: 1fr; }
    .nm-team-grid { grid-template-columns: 1fr; }
    .nm-gallery-grid { grid-template-columns: 1fr 1fr; }
    .nm-about-quick-card { margin-bottom: 1rem; }
    .nm-team-profile-photo, .nm-team-profile-initials { width: 100px; height: 110px; font-size: 2.5rem; }
    .btn-hero-primary, .btn-hero-outline { padding: 0.65rem 1.25rem; font-size: 0.75rem; }
    .nm-footer { padding: 2rem 1rem 1rem; }
    .nm-section { padding: 2.5rem 1rem; }

    /* Prayer bar wrap on very small screens */
    .nm-prayer-bar-inner { padding: .85rem 1rem; }
    .prayer-bar-label { font-size: .7rem; }
    .prayer-item { flex-direction: column; gap: .1rem; min-width: 58px; }
    .p-name { font-size: .62rem; }
    .p-time { font-size: .8rem; }

    /* Page hero */
    .nm-page-hero { padding: 3rem 1rem 2rem; }
    .nm-page-hero h1 { font-size: 1.4rem; }

    /* Slider cards */
    .nm-slider-card { flex: 0 0 90%; }

    /* Footer two-col → one */
    .nm-footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Hero slideshow */
    .nm-hero-slide-event-content { padding: 1.25rem .85rem 3.5rem; }
    .nm-hero-slide-event-title { font-size: 1.35rem; }
    .nm-hero-nav { width: 34px; height: 34px; font-size: 1.3rem; }
    .nm-hero-slide-readmore { font-size: .75rem; padding: .55rem 1rem; }
    .nm-hero-dots { bottom: .75rem; }
    .nm-hero-dot { width: 6px; height: 6px; }
}

/* ── Rich-text (Quill) article body styles ────────────────
   These classes are emitted by Quill's snow theme and need
   public-facing styles so content renders correctly on the
   News / Events detail pages.
   ─────────────────────────────────────────────────────── */
.nm-article-body h2 { font-size: 1.5rem; margin: 1.75rem 0 .5rem; }
.nm-article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.nm-article-body h4 { font-size: 1.05rem; margin: 1.25rem 0 .35rem; }

.nm-article-body p  { margin-bottom: 1rem; }

.nm-article-body ul,
.nm-article-body ol { padding-left: 1.6rem; margin-bottom: 1rem; }

.nm-article-body li { margin-bottom: .3rem; }

.nm-article-body blockquote {
    border-left: 4px solid var(--nm-gold);
    margin: 1.25rem 0;
    padding: .5rem 1.1rem;
    background: rgba(201,160,80,.06);
    color: #555;
    font-style: italic;
}

.nm-article-body pre {
    background: #f5f3ee;
    border: 1px solid #e8e2d4;
    border-radius: 5px;
    padding: .85rem 1rem;
    overflow-x: auto;
    font-size: .82rem;
    margin-bottom: 1rem;
}

.nm-article-body a {
    color: var(--nm-green-dark);
    text-decoration: underline;
    text-decoration-color: var(--nm-gold);
    text-underline-offset: 3px;
}

.nm-article-body a:hover { color: var(--nm-gold); }

.nm-article-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: .5rem 0;
}

.nm-article-body strong { font-weight: 700; color: var(--nm-green-dark); }

.nm-article-body .ql-align-center { text-align: center; }
.nm-article-body .ql-align-right  { text-align: right; }
.nm-article-body .ql-align-justify{ text-align: justify; }

.nm-article-body .ql-indent-1 { padding-left: 2rem; }
.nm-article-body .ql-indent-2 { padding-left: 4rem; }

/* ============================================================
   Auth Pages (Login, Register, Forgot/Reset Password, Manage)
   ============================================================ */

.nm-auth-section {
    min-height: calc(100vh - 64px);
    background: var(--nm-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.nm-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(26,58,42,.10);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border: 1px solid rgba(201,160,80,.18);
}

/* ── Card header strip ───────────────────────────────────── */
.nm-auth-header {
    background: var(--nm-green-dark);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.nm-auth-header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: var(--nm-gold);
    opacity: .5;
}

/* ── Contact Form ─────────────────────────────────────────── */
.nm-contact-form-wrap { max-width: 680px; }

.nm-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.nm-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nm-contact-form .nm-auth-field label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--nm-green-dark);
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: block;
    margin-bottom: .3rem;
}

.nm-contact-form input,
.nm-contact-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid #d5d5d5;
    border-radius: 6px;
    font-size: .925rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #2c2c2c;
    background: #fafaf9;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    resize: vertical;
}

.nm-contact-form input:focus,
.nm-contact-form textarea:focus {
    outline: none;
    border-color: var(--nm-gold);
    box-shadow: 0 0 0 3px rgba(201,160,80,.15);
    background: #fff;
}

.nm-contact-alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-bottom: .5rem;
}

.nm-contact-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.nm-contact-alert-error {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.nm-contact-login-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e2d4;
    max-width: 480px;
    margin: 0 auto;
}

.nm-contact-login-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

.nm-contact-login-prompt h3 { margin: 0 0 .5rem; color: var(--nm-green-dark); font-size: 1.2rem; }
.nm-contact-login-prompt p  { color: #666; margin-bottom: 1.25rem; font-size: .9rem; }

@media (max-width: 640px) {
    .nm-contact-form-row { grid-template-columns: 1fr; }
}.nm-auth-arabic {
    display: block;
    font-size: 1.1rem;
    color: var(--nm-gold);
    font-family: 'Georgia', serif;
    margin-bottom: .5rem;
}

.nm-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--nm-cream);
    margin: 0 0 .3rem;
    font-family: 'Georgia', serif;
}

.nm-auth-sub {
    font-size: .8rem;
    color: var(--nm-text-light);
    margin: 0;
    letter-spacing: .04em;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Form body ───────────────────────────────────────────── */
.nm-auth-form {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nm-auth-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.nm-auth-field label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--nm-green-dark);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-auth-field input {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid #d5d5d5;
    border-radius: 6px;
    font-size: .925rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #2c2c2c;
    background: #fafaf9;
    transition: border-color .15s, box-shadow .15s;
}

.nm-auth-field input:focus {
    outline: none;
    border-color: var(--nm-gold);
    box-shadow: 0 0 0 3px rgba(201,160,80,.15);
    background: #fff;
}

.nm-auth-disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Checkbox row ────────────────────────────────────────── */
.nm-auth-check {
    font-size: .85rem;
    color: #555;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nm-auth-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--nm-green-dark);
    cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────── */
.nm-auth-btn {
    background: var(--nm-gold);
    color: var(--nm-green-dark);
    border: none;
    border-radius: 6px;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: background .15s;
    width: 100%;
    margin-top: .25rem;
}

.nm-auth-btn:hover { background: var(--nm-gold-light); color: var(--nm-green-dark); }

/* ── Validation error ────────────────────────────────────── */
.nm-auth-error {
    color: #c0392b;
    font-size: .75rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-auth-alert {
    margin: 0 2rem;
    padding: .65rem .9rem;
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    font-size: .82rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-auth-alert:empty { display: none; }

/* ── Footer links ────────────────────────────────────────── */
.nm-auth-links {
    padding: 0 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    font-size: .82rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.nm-auth-links a {
    color: var(--nm-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.nm-auth-links a:hover { color: var(--nm-gold); }

.nm-auth-links span { color: #bbb; }

/* ── Manage page nav tabs ────────────────────────────────── */
.nm-auth-manage-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin: 0 2rem .25rem;
    gap: .25rem;
}

.nm-auth-manage-nav a {
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: color .15s, border-color .15s;
}

.nm-auth-manage-nav a:hover { color: var(--nm-green-dark); }

.nm-auth-manage-nav a.active {
    color: var(--nm-green-dark);
    border-bottom-color: var(--nm-gold);
}

/* ── Status message (success/error from Identity) ────────── */
.nm-auth-card [class*="alert"] {
    margin: .75rem 2rem 0;
    padding: .6rem .9rem;
    border-radius: 4px;
    font-size: .82rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .nm-auth-card { border-radius: 0; box-shadow: none; border: none; }
    .nm-auth-section { padding: 0; align-items: flex-start; }
    .nm-auth-form { padding: 1.25rem 1.25rem; }
    .nm-auth-links { padding: 0 1.25rem 1.25rem; }
    .nm-auth-manage-nav { margin: 0 1.25rem .25rem; }
    .nm-auth-alert { margin: 0 1.25rem; }
    .nm-auth-card [class*="alert"] { margin: .75rem 1.25rem 0; }
}


/* ── Account Manage Page Layout ──────────────────────────– */
.nm-manage-container {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 64px);
}

.nm-manage-sidebar {
    flex: 0 0 240px;
}

.nm-manage-header {
    background: var(--nm-green-dark);
    padding: 1.25rem;
    border-radius: 8px 8px 0 0;
}

.nm-manage-nav {
    background: #fff;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e8e2d4;
    border-top: none;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26,58,42,.08);
}

.nm-manage-nav-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.1rem;
    border-left: 3px solid transparent;
    background: #fff;
    color: var(--nm-green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: background .12s, border-color .12s, color .12s;
}

    .nm-manage-nav-item:hover {
        background: #f9f5f0;
        color: var(--nm-gold);
    }

    .nm-manage-nav-item.active {
        background: rgba(201,160,80,.08);
        border-left-color: var(--nm-gold);
        color: var(--nm-gold);
        font-weight: 700;
    }

.nm-manage-nav-icon {
    font-size: 1.15rem;
    display: inline-block;
}

.nm-manage-content {
    flex: 1;
    min-width: 0;
}

.nm-manage-card {
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile: Stack layout */
@media (max-width: 768px) {
    .nm-manage-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .nm-manage-sidebar {
        flex: 1 1 auto;
    }

    .nm-manage-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        border-radius: 6px;
    }

    .nm-manage-nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: .6rem .9rem;
        font-size: .75rem;
    }

        .nm-manage-nav-item.active {
            border-left: none;
            border-bottom-color: var(--nm-gold);
        }
}