/* ==========================================================================
   Harasta Website - Syrian Heritage Design System
   Inspired by kaferbatna.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

:root {
    /* Syrian Heritage Colors - Updated palette */
    /* Greens */
    --syrian-green: #002623;
    --syrian-teal: #054239;
    --syrian-action: #428177;

    /* Golds */
    --syrian-gold-dark: #988561;
    --syrian-gold: #b9a779;
    --gold-accent: #988561;
    --gold-light: #b9a779;

    /* Memorial Reds (deep, somber) */
    --syrian-memorial: #4a151e;
    --memorial-deep: #260f14;

    /* System Colors */
    --primary: #002623;
    --primary-foreground: #ffffff;
    --primary-hover: #054239;
    --secondary: #988561;
    --secondary-foreground: #002623;
    --accent: #988561;
    --accent-foreground: #002623;
    --background: #fafafa;
    --surface: #ffffff;
    --foreground: #2c3035;
    --muted: #f1f3f5;
    --muted-foreground: #5c6168;
    --border: #d4d7db;
    --input: #e3e5e8;
    --destructive: #dc2626;
    --success: #16a34a;

    /* Tokens */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tahoma', sans-serif;
    --font-heading: 'Cairo', 'Amiri', serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    /* Transitions */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-arabic);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--foreground);
    background-color: var(--background);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--syrian-action);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--syrian-green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--syrian-green);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--syrian-gold));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
    background: var(--syrian-green);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(152, 133, 97, 0.3);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-info i {
    color: var(--gold-accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--syrian-green);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-weight: 800;
    font-size: 1.25rem;
    border: 2px solid var(--gold-accent);
}

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

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--syrian-green);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--foreground);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--syrian-green);
    background: var(--muted);
}

.nav-link.active {
    color: var(--syrian-green);
    background: rgba(152, 133, 97, 0.12);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--syrian-green);
    font-size: 1.25rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background:
        linear-gradient(135deg, rgba(0, 38, 35, 0.92) 0%, rgba(5, 66, 57, 0.88) 100%),
        url('../images/hero/hero-bg.svg') center / cover no-repeat;
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(152, 133, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(152, 133, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(152, 133, 97, 0.15);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(152, 133, 97, 0.3);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 .gold {
    color: var(--gold-accent);
    background: linear-gradient(135deg, var(--gold-accent), var(--syrian-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--syrian-green);
    color: white;
    border-color: var(--syrian-green);
}

.btn-primary:hover {
    background: var(--syrian-teal);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--gold-accent);
    color: var(--syrian-green);
    border-color: var(--gold-accent);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--syrian-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--syrian-green);
}

.btn-ghost {
    background: transparent;
    color: var(--syrian-green);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--syrian-green);
}

.btn-danger {
    background: var(--destructive);
    color: white;
    border-color: var(--destructive);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gold-accent);
}

.card-image {
    margin: -1.5rem -1.5rem 1rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--muted);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--syrian-green);
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--foreground);
    line-height: 1.7;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Grid
   ========================================================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(152, 133, 97, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold-accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; }
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(152, 133, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: 0;
    position: relative;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 1rem;
    position: relative;
}

.breadcrumbs a {
    color: var(--gold-light);
}

.breadcrumbs a:hover {
    color: var(--gold-accent);
}

/* ==========================================================================
   Memorial Card (Martyrs) — Premium Memorial Design v2
   ========================================================================== */
.martyr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    text-align: center;
    position: relative;
    isolation: isolate;
    box-shadow: 0 2px 6px rgba(74, 21, 30, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.martyr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -10px rgba(74, 21, 30, 0.22), 0 8px 20px -8px rgba(74, 21, 30, 0.12);
    border-color: var(--gold-accent);
}

/* Photo container with frame */
.martyr-photo {
    aspect-ratio: 1;
    width: 100%;
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
    overflow: hidden;
    position: relative;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo - corner ornaments (top-right and top-left) */
.martyr-photo::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-top: 2px solid var(--gold-accent);
    border-right: 2px solid var(--gold-accent);
    z-index: 3;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.martyr-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(38, 15, 20, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.martyr-card:hover .martyr-photo::before {
    width: 32px;
    height: 32px;
    opacity: 1;
}

.martyr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(12%) contrast(1.05);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.martyr-card:hover .martyr-photo img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.1);
}

/* Bottom-left corner ornament */
.martyr-photo-corner {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid var(--gold-accent);
    border-left: 2px solid var(--gold-accent);
    z-index: 3;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.martyr-card:hover .martyr-photo-corner {
    width: 32px;
    height: 32px;
    opacity: 1;
}

/* "شهيد" Ribbon badge (top-left corner of photo) */
.martyr-card__ribbon {
    position: absolute;
    top: 18px;
    left: -2px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-accent));
    color: var(--memorial-deep);
    padding: 0.4rem 1rem 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(38, 15, 20, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.martyr-card__ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 8px solid var(--memorial-deep);
    border-right: 4px solid transparent;
    opacity: 0.6;
}

/* Default eagle placeholder */
.martyr-photo--default {
    background: linear-gradient(135deg, var(--memorial-deep) 0%, var(--syrian-memorial) 100%);
}

.martyr-photo--default img {
    object-fit: contain;
    padding: 0.5rem;
    filter: none;
}

.martyr-photo--default::after { display: none; }

.martyr-card:hover .martyr-photo--default img {
    transform: scale(1.05);
    filter: none;
}

/* Info block */
.martyr-info {
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tagline above name */
.martyr-info__tagline {
    font-size: 0.7rem;
    color: var(--gold-accent);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: none;
    margin-bottom: 0.4rem;
    opacity: 0.85;
}

/* Name */
.martyr-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.6rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.martyr-card:hover .martyr-name {
    color: var(--syrian-memorial);
}

/* Decorative gold underline below name */
.martyr-info::before {
    content: '';
    display: block;
    position: absolute;
    top: 4.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    transition: width 0.3s ease;
}

.martyr-card:hover .martyr-info::before {
    width: 80px;
}

/* Family chip */
.martyr-family-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(74, 21, 30, 0.08);
    color: var(--syrian-memorial);
    padding: 0.32rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 1rem auto 0.85rem;
    border: 1px solid rgba(74, 21, 30, 0.15);
    transition: all 0.25s;
    width: fit-content;
}

.martyr-card:hover .martyr-family-chip {
    background: rgba(152, 133, 97, 0.14);
    color: var(--syrian-green);
    border-color: rgba(152, 133, 97, 0.35);
    transform: scale(1.04);
}

/* Meta block */
.martyr-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
    margin-top: auto;
    margin-bottom: 0.85rem;
}

.martyr-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.4;
}

.martyr-meta-item svg {
    color: var(--syrian-action);
    flex-shrink: 0;
    opacity: 0.9;
}

/* Rahmah - Quranic style memorial blessing */
.martyr-rahmah {
    font-family: 'Amiri', 'Cairo', serif;
    font-size: 0.85rem;
    color: var(--gold-accent);
    padding: 0.65rem 0;
    margin: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(152, 133, 97, 0.04) 100%);
    border-top: 1px dashed rgba(152, 133, 97, 0.3);
    margin: 0 -1.25rem -1.25rem;
    margin-top: 0;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s;
}

.martyr-card:hover .martyr-rahmah {
    background: linear-gradient(180deg, rgba(152, 133, 97, 0.06) 0%, rgba(152, 133, 97, 0.12) 100%);
    color: var(--memorial-deep);
}

.martyr-rahmah::before {
    content: '✦';
    margin-left: 0.5rem;
    font-size: 0.7rem;
    vertical-align: middle;
    opacity: 0.6;
}

.martyr-rahmah::after {
    content: '✦';
    margin-right: 0.5rem;
    font-size: 0.7rem;
    vertical-align: middle;
    opacity: 0.6;
}

/* Backward compat */
.martyr-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Hide deprecated crown decoration if used */
.martyr-card__crown { display: none; }

/* ==========================================================================
   Martyrs Page Specific — Premium Search & Layout
   ========================================================================== */

/* Memorial-styled page header */
.martyrs-hero {
    background: linear-gradient(180deg, var(--memorial-deep) 0%, var(--syrian-memorial) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.martyrs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(212, 192, 138, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(185, 167, 121, 0.10) 0%, transparent 40%);
}

.martyrs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(45deg,
        rgba(185, 167, 121, 0.025) 0,
        rgba(185, 167, 121, 0.025) 1px,
        transparent 1px,
        transparent 14px);
    pointer-events: none;
}

.martyrs-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.martyrs-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Stats banner */
.martyrs-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.martyrs-stat {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.martyrs-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.martyrs-stat__value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.martyrs-stat__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Premium Search Bar
   ========================================================================== */
.martyrs-search-wrap {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 2rem;
}

.martyrs-search {
    background: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 20px 50px -12px rgba(74, 21, 30, 0.25),
        0 8px 16px -8px rgba(74, 21, 30, 0.15),
        0 0 0 1px rgba(152, 133, 97, 0.15);
    display: grid;
    grid-template-columns: 1.6fr 200px 130px auto;
    gap: 0.5rem;
    align-items: stretch;
    position: relative;
}

.martyrs-search::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--gold-accent), transparent 30%, transparent 70%, var(--syrian-memorial));
    z-index: -1;
    opacity: 0.15;
}

.martyrs-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.martyrs-search__icon {
    position: absolute;
    right: 1rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.martyrs-search__input-wrap:focus-within .martyrs-search__icon {
    opacity: 1;
    color: var(--syrian-memorial);
}

.martyrs-search__input {
    width: 100%;
    height: 56px;
    padding: 0 3rem 0 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.martyrs-search__input::placeholder {
    color: var(--muted-foreground);
}

.martyrs-search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.martyrs-search__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.martyrs-search__select-icon {
    position: absolute;
    right: 0.85rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.martyrs-search__select {
    width: 100%;
    height: 56px;
    padding: 0 2.4rem 0 0.9rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
    background-position: calc(0% + 12px) 50%, calc(0% + 17px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.martyrs-search__select:focus {
    outline: none;
    background-color: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.martyrs-search__btn {
    height: 56px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--syrian-memorial), var(--memorial-deep));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(74, 21, 30, 0.25);
}

.martyrs-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 21, 30, 0.35);
    background: linear-gradient(180deg, var(--memorial-deep), var(--syrian-memorial));
}

.martyrs-search__btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .martyrs-search {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
    .martyrs-search-wrap {
        margin-top: -1.5rem;
    }
    .martyrs-search__input,
    .martyrs-search__select,
    .martyrs-search__btn {
        height: 48px;
    }
}

/* Active filter chips */
.martyrs-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.martyrs-active-filters__label {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-left: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.martyrs-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(152, 133, 97, 0.12);
    color: var(--syrian-green);
    padding: 0.35rem 0.6rem 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(152, 133, 97, 0.3);
    text-decoration: none;
    transition: all var(--transition);
}

.martyrs-filter-chip:hover {
    background: var(--syrian-memorial);
    color: white;
    border-color: var(--syrian-memorial);
}

.martyrs-filter-chip svg {
    opacity: 0.7;
}

.martyrs-clear-all {
    color: var(--syrian-memorial);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    margin-right: 0.5rem;
}

/* Results count */
/* ==========================================================================
   MARTYRS COUNT — premium, no awkward wrapping, fully responsive
   ========================================================================== */
.martyrs-count {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin: 0 auto 2rem;
    padding: 0.85rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(107, 31, 42, 0.04) 100%),
        #ffffff;
    border: 1px solid rgba(185, 167, 121, 0.35);
    border-radius: 999px;
    box-shadow:
        0 1px 2px rgba(0, 38, 35, 0.04),
        0 6px 18px -10px rgba(107, 31, 42, 0.12);
    font-family: var(--font-arabic);
    font-size: 0.92rem;
    color: var(--foreground);
    width: fit-content;
    max-width: 100%;
}

/* Each side is a flex group that never breaks internally */
.martyrs-count__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Tiny ornamental icon */
.martyrs-count__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(107, 31, 42, 0.08);
    color: var(--syrian-memorial);
    flex-shrink: 0;
}

.martyrs-count__item:nth-child(3) .martyrs-count__icon {
    background: rgba(0, 38, 35, 0.08);
    color: var(--syrian-green);
}

.martyrs-count__label {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 500;
}

.martyrs-count__value {
    color: var(--syrian-memorial);
    font-size: 1.15rem;
    font-weight: 800;
    font-feature-settings: 'tnum';
    line-height: 1;
}

.martyrs-count__item:nth-child(3) .martyrs-count__value {
    color: var(--syrian-green);
}

.martyrs-count__unit {
    color: var(--foreground);
    font-size: 0.88rem;
    font-weight: 600;
}

.martyrs-count__divider {
    display: inline-block;
    width: 1px;
    height: 1.6rem;
    background: linear-gradient(180deg, transparent, rgba(185, 167, 121, 0.5), transparent);
    flex-shrink: 0;
}

/* Tablet — keep pill, reduce padding */
@media (max-width: 768px) {
    .martyrs-count {
        gap: 0.5rem 0.75rem;
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
    }
    .martyrs-count__value { font-size: 1.05rem; }
    .martyrs-count__icon  { width: 1.4rem; height: 1.4rem; }
}

/* Mobile — stack the two items vertically; keep each on one line */
@media (max-width: 540px) {
    .martyrs-count {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 1rem;
        padding: 0.85rem 1.1rem;
    }
    .martyrs-count__divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(185, 167, 121, 0.45), transparent);
    }
}

/* Tiny phones — drop "في السجل" / "من أصل N" trailing text to save space */
@media (max-width: 380px) {
    .martyrs-count {
        font-size: 0.82rem;
        padding: 0.75rem 0.85rem;
    }
    .martyrs-count__label { font-size: 0.78rem; }
    .martyrs-count__unit  { font-size: 0.82rem; }
}

/* Hide old filter style */
.martyrs-filter { display: none; }

@media (max-width: 768px) {
    .martyrs-hero h1 { font-size: 2rem; }
    .martyrs-hero { padding: 3rem 0 4rem; }
    .martyrs-stats { gap: 1.5rem; }
    .martyrs-stat:not(:last-child)::after { display: none; }
    .martyrs-stat__value { font-size: 1.5rem; }
}

/* ==========================================================================
   Martyrs Page Specific
   ========================================================================== */

/* Memorial-styled page header */
.martyrs-hero {
    background: linear-gradient(180deg, var(--memorial-deep) 0%, var(--syrian-memorial) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.martyrs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(212, 192, 138, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(185, 167, 121, 0.08) 0%, transparent 40%);
}

.martyrs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(45deg,
        rgba(185, 167, 121, 0.025) 0,
        rgba(185, 167, 121, 0.025) 1px,
        transparent 1px,
        transparent 14px);
    pointer-events: none;
}

.martyrs-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.martyrs-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Stats banner */
.martyrs-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.martyrs-stat {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.martyrs-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.martyrs-stat__value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.martyrs-stat__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* Filter bar */
.martyrs-filter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.martyrs-filter__row {
    display: grid;
    grid-template-columns: 1fr 200px 150px auto;
    gap: 0.75rem;
    align-items: end;
}

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

.martyrs-filter__label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Active filter chips */
.martyrs-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.martyrs-active-filters__label {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-left: 0.25rem;
}

.martyrs-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(152, 133, 97, 0.12);
    color: var(--syrian-green);
    padding: 0.3rem 0.5rem 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(152, 133, 97, 0.3);
    text-decoration: none;
    transition: all var(--transition);
}

.martyrs-filter-chip:hover {
    background: var(--syrian-memorial);
    color: white;
    border-color: var(--syrian-memorial);
}

.martyrs-filter-chip svg {
    opacity: 0.7;
}

.martyrs-clear-all {
    color: var(--syrian-memorial);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    margin-right: 0.5rem;
}

/* Results count rules live in the main MARTYRS COUNT section above */

@media (max-width: 768px) {
    .martyrs-hero h1 { font-size: 2rem; }
    .martyrs-stats { gap: 1.5rem; }
    .martyrs-stat:not(:last-child)::after { display: none; }
    .martyrs-stat__value { font-size: 1.5rem; }
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--syrian-green);
    font-size: 0.9rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--syrian-action);
    box-shadow: 0 0 0 3px rgba(66, 129, 119, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */
.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-bar .form-control {
    flex: 1;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--muted);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 38, 35, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   Gallery Page — Premium Hero, Filters, and Items
   ========================================================================== */

/* Gallery hero */
.gallery-hero {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(212, 192, 138, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(185, 167, 121, 0.10) 0%, transparent 40%);
}

.gallery-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.gallery-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.gallery-hero__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(185, 167, 121, 0.3);
}

.gallery-hero__stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold-light);
}

.gallery-hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

/* Filter strip — DEPRECATED, replaced by .gallery-search */
.gallery-filters {
    display: none !important;
}

/* Premium gallery search bar (overlapping the hero) */
.gallery-search-wrap {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 2rem;
}

.gallery-search {
    background: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 38, 35, 0.25),
        0 8px 16px -8px rgba(0, 38, 35, 0.15),
        0 0 0 1px rgba(152, 133, 97, 0.15);
    display: grid;
    grid-template-columns: 1.5fr 220px auto;
    gap: 0.5rem;
    align-items: stretch;
}

.gallery-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search__icon {
    position: absolute;
    right: 1rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.gallery-search__input-wrap:focus-within .gallery-search__icon {
    opacity: 1;
    color: var(--syrian-green);
}

.gallery-search__input {
    width: 100%;
    height: 56px;
    padding: 0 3rem 0 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.gallery-search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.gallery-search__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search__select-icon {
    position: absolute;
    right: 0.85rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.gallery-search__select {
    width: 100%;
    height: 56px;
    padding: 0 2.4rem 0 0.9rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: var(--muted);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
    background-position: calc(0% + 12px) 50%, calc(0% + 17px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.gallery-search__select:focus {
    outline: none;
    background-color: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.gallery-search__btn {
    height: 56px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.25);
}

.gallery-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 38, 35, 0.35);
}

.gallery-search__btn:active { transform: translateY(0); }

@media (max-width: 768px) {
    .gallery-search { grid-template-columns: 1fr; padding: 0.4rem; gap: 0.4rem; }
    .gallery-search-wrap { margin-top: -1.5rem; }
    .gallery-search__input,
    .gallery-search__select,
    .gallery-search__btn { height: 48px; }
}

/* The old (DEPRECATED) filter pill styles — kept for reference but unused */
.gallery-filter,
.gallery-filter--active,
.gallery-filter__icon,
.gallery-filter__name,
.gallery-filter__count {
    display: none !important;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    color: var(--syrian-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gallery-filter:hover {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.06), rgba(0, 38, 35, 0.04));
    color: var(--syrian-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 38, 35, 0.15);
}

.gallery-filter:hover .gallery-filter__icon {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.gallery-filter--active {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    border-color: var(--syrian-green);
    box-shadow: 0 8px 20px -4px rgba(0, 38, 35, 0.35);
}

.gallery-filter--active:hover {
    background: linear-gradient(135deg, var(--syrian-teal) 0%, var(--syrian-green) 100%);
    color: white;
    border-color: var(--syrian-green);
}

.gallery-filter--active .gallery-filter__icon {
    color: var(--gold-accent);
}

.gallery-filter--active:hover .gallery-filter__icon {
    color: var(--gold-light);
}

.gallery-filter__icon {
    color: var(--syrian-action);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.gallery-filter__name {
    line-height: 1;
}

.gallery-filter__count {
    background: rgba(152, 133, 97, 0.15);
    color: var(--syrian-green);
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

.gallery-filter--active .gallery-filter__count {
    background: rgba(152, 133, 97, 0.4);
    color: var(--gold-light);
}

/* Selected category info */
.gallery-category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 38, 35, 0.04), rgba(152, 133, 97, 0.04));
    border: 1px solid rgba(152, 133, 97, 0.2);
    border-right: 4px solid var(--gold-accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.gallery-category-info__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-category-info__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.25rem;
}

.gallery-category-info__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Gallery item — clickable button (overrides default button styles) */
.gallery-item {
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    text-align: right;
    background: var(--muted);
    color: inherit;
}

/* Magnifier zoom icon (visible on hover) */
.gallery-item__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 56px;
    height: 56px;
    background: rgba(0, 38, 35, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
    pointer-events: none;
    border: 2px solid rgba(212, 192, 138, 0.5);
}

.gallery-item:hover .gallery-item__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Category badge on gallery items */
.gallery-item__category-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 38, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(185, 167, 121, 0.35);
    transition: all 0.2s;
    line-height: 1;
}

.gallery-item:hover .gallery-item__category-badge {
    transform: scale(1.05);
    background: var(--syrian-green);
}

@media (max-width: 768px) {
    .gallery-hero h1 { font-size: 2rem; }
    .gallery-hero { padding: 3rem 0 2rem; }
    .gallery-filter {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
}

/* ==========================================================================
   Services Page — Hero, Search, Filters, Cards
   ========================================================================== */

.services-hero {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 192, 138, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(185, 167, 121, 0.10) 0%, transparent 40%);
}

.services-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, rgba(212, 192, 138, 0.2), rgba(185, 167, 121, 0.1));
    border: 2px solid rgba(212, 192, 138, 0.4);
    border-radius: 50%;
    color: var(--gold-light);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.services-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.services-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.services-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.services-hero__stat {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.services-hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.services-hero__stat-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.services-hero__stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* Search bar (overlapping) */
.services-search-wrap {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 2rem;
}

.services-search {
    background: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 38, 35, 0.25),
        0 8px 16px -8px rgba(0, 38, 35, 0.15),
        0 0 0 1px rgba(152, 133, 97, 0.15);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
}

.services-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.services-search__icon {
    position: absolute;
    right: 1rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.services-search__input-wrap:focus-within .services-search__icon {
    opacity: 1;
    color: var(--syrian-green);
}

.services-search__input {
    width: 100%;
    height: 56px;
    padding: 0 3rem 0 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.services-search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.services-search__btn {
    height: 56px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.25);
}

.services-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 38, 35, 0.35);
}

@media (max-width: 768px) {
    .services-search { grid-template-columns: 1fr; }
    .services-search-wrap { margin-top: -1.5rem; }
    .services-search__input,
    .services-search__btn { height: 48px; }
    .services-hero h1 { font-size: 2rem; }
    .services-hero { padding: 3rem 0 4rem; }
    .services-hero__stats { gap: 1.5rem; }
    .services-hero__stat:not(:last-child)::after { display: none; }
    .services-hero__stat-value { font-size: 1.5rem; }
}

/* Filter strip (same elegant style) */
.services-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.services-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    color: var(--syrian-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.services-filter:hover {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.06), rgba(0, 38, 35, 0.04));
    color: var(--syrian-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 38, 35, 0.15);
}

.services-filter:hover .services-filter__icon {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.services-filter--active {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    border-color: var(--syrian-green);
    box-shadow: 0 8px 20px -4px rgba(0, 38, 35, 0.35);
}

.services-filter--active:hover {
    background: linear-gradient(135deg, var(--syrian-teal) 0%, var(--syrian-green) 100%);
    color: white;
    border-color: var(--syrian-green);
}

.services-filter--active .services-filter__icon {
    color: var(--gold-accent);
}

.services-filter--active:hover .services-filter__icon {
    color: var(--gold-light);
}

.services-filter__icon {
    color: var(--syrian-action);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.services-filter__name {
    line-height: 1;
}

.services-filter__count {
    background: rgba(152, 133, 97, 0.15);
    color: var(--syrian-green);
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

.services-filter--active .services-filter__count {
    background: rgba(152, 133, 97, 0.4);
    color: var(--gold-light);
}

/* Selected category info */
.services-category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 38, 35, 0.04), rgba(152, 133, 97, 0.04));
    border: 1px solid rgba(152, 133, 97, 0.2);
    border-right: 4px solid var(--gold-accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.services-category-info__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-category-info__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.25rem;
}

.services-category-info__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Service Card v2 */
.services-grid {
    gap: 1rem;
}

.service-card-v2 {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--syrian-action);
    transition: all 0.25s;
}

.service-card-v2:hover {
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0, 38, 35, 0.18);
}

.service-card-v2:hover::before {
    background: var(--gold-accent);
    width: 6px;
}

.service-card-v2__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.service-card-v2:hover .service-card-v2__icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 8px 16px -4px rgba(0, 38, 35, 0.3);
}

.service-card-v2__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.service-card-v2__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 38, 35, 0.08);
    color: var(--syrian-green);
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 38, 35, 0.12);
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.service-card-v2__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.service-card-v2__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.service-card-v2__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
}

.service-card-v2__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--foreground);
}

.service-card-v2__meta-item svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.service-card-v2__meta-item a {
    color: var(--syrian-green);
    font-weight: 600;
}

.service-card-v2__meta-item a:hover {
    color: var(--syrian-memorial);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card-v2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .service-card-v2__icon { margin: 0 auto; }
    .service-card-v2__chip { align-self: center; }
    .service-card-v2__meta-item { justify-content: center; }
    .services-filter {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
}

/* ==========================================================================
   Mosques Page — Hero, Stats, Search, Cards, Events
   ========================================================================== */

/* Hero */
.mosques-hero {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mosques-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 192, 138, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(185, 167, 121, 0.10) 0%, transparent 40%);
}

.mosques-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(45deg,
        rgba(185, 167, 121, 0.025) 0,
        rgba(185, 167, 121, 0.025) 1px,
        transparent 1px,
        transparent 14px);
    pointer-events: none;
}

.mosques-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, rgba(212, 192, 138, 0.2), rgba(185, 167, 121, 0.1));
    border: 2px solid rgba(212, 192, 138, 0.4);
    border-radius: 50%;
    color: var(--gold-light);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mosques-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.mosques-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Stats banner */
.mosques-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.mosques-stat {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.mosques-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.mosques-stat__value {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.mosques-stat__label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* Search bar (overlapping the hero) */
.mosques-search-wrap {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 2.5rem;
}

.mosques-search {
    background: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 38, 35, 0.25),
        0 8px 16px -8px rgba(0, 38, 35, 0.15),
        0 0 0 1px rgba(152, 133, 97, 0.15);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
}

.mosques-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mosques-search__icon {
    position: absolute;
    right: 1rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.mosques-search__input-wrap:focus-within .mosques-search__icon {
    opacity: 1;
    color: var(--syrian-green);
}

.mosques-search__input {
    width: 100%;
    height: 56px;
    padding: 0 3rem 0 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.mosques-search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.mosques-search__btn {
    height: 56px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.25);
}

.mosques-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 38, 35, 0.35);
}

.mosques-search__btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mosques-search { grid-template-columns: 1fr; }
    .mosques-search-wrap { margin-top: -1.5rem; }
    .mosques-search__input,
    .mosques-search__btn { height: 48px; }
    .mosques-hero h1 { font-size: 2rem; }
    .mosques-hero { padding: 3rem 0 4rem; }
    .mosques-stats { gap: 1.5rem; }
    .mosques-stat:not(:last-child)::after { display: none; }
    .mosques-stat__value { font-size: 1.5rem; }
}

/* Mosques grid — natural heights, no forced stretching */
.mosques-grid {
    gap: 2rem;
    align-items: start;
}

/* Homepage mosque grid — natural heights too */
.home-mosques-grid {
    align-items: start;
}

/* ==========================================================================
   Simplified Mosque Tiles (with modal popup)
   ========================================================================== */
.mosque-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mosque-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 38, 35, 0.04);
    position: relative;
    isolation: isolate;
}

.mosque-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--syrian-green), var(--gold-accent), var(--syrian-green));
    z-index: 2;
    opacity: 0.85;
}

.mosque-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -12px rgba(0, 38, 35, 0.22), 0 8px 18px -8px rgba(0, 38, 35, 0.12);
    border-color: var(--gold-accent);
}

.mosque-tile:focus-visible {
    outline: 3px solid var(--gold-accent);
    outline-offset: 2px;
}

.mosque-tile__image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mosque-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosque-tile:hover .mosque-tile__image img {
    transform: scale(1.07);
}

.mosque-tile__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 38, 35, 0.45) 100%);
    pointer-events: none;
}

.mosque-tile__image--placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(212, 192, 138, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
}

.mosque-tile__year {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 0.32rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(185, 167, 121, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mosque-tile__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mosque-tile__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.65rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.mosque-tile:hover .mosque-tile__name {
    color: var(--syrian-memorial);
}

.mosque-tile__location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.mosque-tile__location svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.mosque-tile__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(152, 133, 97, 0.1);
    color: var(--syrian-green);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(152, 133, 97, 0.25);
    align-self: flex-start;
    margin-bottom: 1rem;
}

.mosque-tile__count svg {
    color: var(--gold-accent);
}

.mosque-tile__count--empty {
    background: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
}

.mosque-tile__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.7rem 1rem;
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mosque-tile:hover .mosque-tile__cta {
    background: linear-gradient(180deg, var(--gold-accent), var(--syrian-gold-dark));
    color: var(--syrian-green);
    transform: translateY(-1px);
}

@media (max-width: 540px) {
    .mosque-tiles { grid-template-columns: 1fr; gap: 1rem; }
    .mosque-tile__name { font-size: 1.1rem; }
}

/* ==========================================================================
   Mosque Modal (Popup with tabs)
   ========================================================================== */
.mosque-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mosque-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mosque-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 35, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.mosque-modal__dialog {
    position: relative;
    background: var(--surface);
    border-radius: 18px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(152, 133, 97, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mosque-modal.is-open .mosque-modal__dialog {
    transform: translateY(0) scale(1);
}

.mosque-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--syrian-green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.mosque-modal__close:hover {
    background: var(--syrian-memorial);
    color: white;
    transform: rotate(90deg);
}

/* Modal header */
.mosque-modal__header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 38, 35, 0.04), rgba(152, 133, 97, 0.06));
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.mosque-modal__image {
    width: 200px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 38, 35, 0.2);
    border: 2px solid var(--gold-accent);
}

.mosque-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosque-modal__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--syrian-green);
    margin: 0 0 0.5rem;
}

.mosque-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

/* Editorial inline meta — natural reading flow with quiet icons */
.mosque-modal__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.mm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--foreground);
    font-size: 0.92rem;
    font-weight: 500;
    min-width: 0;
}

.mm-meta-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--syrian-action);
    opacity: 0.7;
}

.mm-meta-item__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 22rem;
}

/* Subtle dot separator between items */
.mm-meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 0.85rem;
    background: var(--muted-foreground);
    border-radius: 50%;
    opacity: 0.35;
    flex-shrink: 0;
}

/* Per-item icon tint — gentle */
.mm-meta-item--location .mm-meta-item__icon { color: var(--syrian-action); }
.mm-meta-item--imam     .mm-meta-item__icon { color: var(--syrian-green); }
.mm-meta-item--year     .mm-meta-item__icon { color: #b48a1a; }

.mosque-modal__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}

.mosque-modal__desc p { margin: 0; }

/* Tabs */
.mosque-modal__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--surface);
}

.mm-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
}

.mm-tab:hover {
    color: var(--syrian-green);
    background: rgba(152, 133, 97, 0.04);
}

.mm-tab.is-active {
    color: var(--syrian-green);
    border-bottom-color: var(--gold-accent);
}

.mm-tab svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.mm-tab.is-active svg {
    color: var(--gold-accent);
}

.mm-tab__count {
    background: var(--muted);
    color: var(--syrian-green);
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.mm-tab.is-active .mm-tab__count {
    background: var(--syrian-green);
    color: var(--gold-light);
}

/* Tab panels */
.mosque-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(152, 133, 97, 0.03));
}

.mm-panel[hidden] { display: none; }

.mm-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: mm-fade 0.25s ease-out;
}

@keyframes mm-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Empty state inside tab */
.mm-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted-foreground);
}

.mm-empty svg {
    color: var(--border);
    margin-bottom: 0.85rem;
}

.mm-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* Event item inside modal */
.mm-event {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem 1.35rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border-right-width: 4px;
    box-shadow: 0 1px 2px rgba(0, 38, 35, 0.03);
}

.mm-event:hover {
    border-color: rgba(0, 38, 35, 0.18);
    box-shadow: 0 6px 20px -10px rgba(0, 38, 35, 0.18);
    transform: translateY(-1px);
}

.mm-event + .mm-event {
    margin-top: 0.85rem;
}

.mm-event:hover {
    border-color: var(--gold-accent);
    border-right-color: var(--gold-accent);
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.06);
}

.mm-event--lesson { border-right-color: var(--syrian-action); }
.mm-event--quran_circle { border-right-color: var(--syrian-memorial); }
.mm-event--event { border-right-color: var(--gold-accent); }
.mm-event--activity { border-right-color: var(--syrian-teal); }

.mm-event__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(0, 38, 35, 0.06);
}

.mm-event__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.mm-event__once {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(146, 64, 14, 0.2);
    line-height: 1;
    flex-shrink: 0;
    flex-shrink: 0;
}

.mm-event__row {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--foreground);
    margin: 0.4rem 0;
}

.mm-event__row strong {
    color: var(--syrian-green);
    font-weight: 700;
}

.mm-event__label {
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.83rem;
    flex-shrink: 0;
    min-width: 3.5rem;
}

.mm-event__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 38, 35, 0.1);
}

.mm-event__days {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--muted);
    line-height: 1.2;
    color: var(--foreground);
    border: 1px solid var(--border);
    line-height: 1.3;
}

.mm-chip--day {
    background: rgba(0, 38, 35, 0.06);
    color: var(--syrian-green);
    border-color: rgba(0, 38, 35, 0.15);
}

.mm-chip--friday {
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.18), rgba(212, 192, 138, 0.12));
    color: var(--syrian-green);
    border-color: rgba(152, 133, 97, 0.4);
    font-weight: 800;
}

.mm-chip--daily {
    background: rgba(66, 129, 119, 0.12);
    color: var(--syrian-action);
    border-color: rgba(66, 129, 119, 0.3);
    font-weight: 800;
}

.mm-chip--time {
    background: rgba(0, 38, 35, 0.06);
    color: var(--syrian-green);
    font-family: ui-monospace, monospace;
    font-weight: 700;
}

.mm-chip--duration {
    background: rgba(152, 133, 97, 0.1);
    color: var(--syrian-green);
    border-color: rgba(152, 133, 97, 0.3);
}

.mm-chip--age {
    background: rgba(5, 66, 57, 0.08);
    color: var(--syrian-teal);
    border-color: rgba(5, 66, 57, 0.2);
}

.mm-chip svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.mm-event__desc {
    margin: 0.85rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(0, 38, 35, 0.08);
    color: var(--muted-foreground);
    font-size: 0.87rem;
    line-height: 1.7;
}

/* Responsive modal */
@media (max-width: 768px) {
    .mosque-modal { padding: 0.5rem; }
    .mosque-modal__dialog { max-height: 96vh; border-radius: 14px; }

    .mosque-modal__header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.25rem;
    }
    .mosque-modal__image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .mosque-modal__meta {
        justify-content: center;
    }
    .mosque-modal__title { font-size: 1.35rem; }
    .mm-meta-item { font-size: 0.88rem; }
    .mm-meta-dot { margin: 0 0.65rem; }

    .mosque-modal__tabs {
        padding: 0 0.5rem;
        grid-template-columns: repeat(4, 1fr);
    }
    .mm-tab {
        padding: 0.7rem 0.25rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    .mm-tab span:first-of-type { font-size: 0.72rem; }
    .mm-tab__count { font-size: 0.65rem; }

    .mosque-modal__content { padding: 1rem; }
    .mm-event {
        padding: 1rem 1.1rem 0.95rem;
    }
    .mm-event__title { font-size: 0.97rem; }
    .mm-event__head {
        margin-bottom: 0.7rem;
        padding-bottom: 0.55rem;
    }
    .mm-event__row {
        font-size: 0.86rem;
        margin: 0.35rem 0;
    }
    .mm-event__label {
        font-size: 0.78rem;
        min-width: 3.2rem;
    }
    .mm-event__chips {
        gap: 0.4rem;
        margin-top: 0.75rem;
        padding-top: 0.65rem;
    }
    .mm-chip {
        padding: 0.3rem 0.6rem;
        font-size: 0.74rem;
    }
}

/* Tighter on small phones — keep readability */
@media (max-width: 480px) {
    .mosque-modal__meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    .mm-meta-item {
        font-size: 0.9rem;
        max-width: 100%;
    }
    .mm-meta-item__text {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
    /* Hide horizontal dots on mobile (items are stacked) */
    .mm-meta-dot { display: none; }

    .mm-event {
        padding: 0.95rem 1rem 0.9rem;
        border-radius: 12px;
    }
    .mm-event__row {
        flex-wrap: wrap;
        gap: 0.25rem 0.45rem;
    }
    .mm-event__label {
        min-width: auto;
    }
    .mm-chip {
        padding: 0.28rem 0.55rem;
        font-size: 0.72rem;
        gap: 0.3rem;
    }
    .mm-chip svg { width: 11px; height: 11px; }
}

/* Hide old mosque-card-v2 overrides on mosques page (no longer used there) */
.mosques-grid .mosque-card-v2 { display: none; }

/* ==========================================================================
   Premium Mosque Card v2 (used on homepage only now)
   ========================================================================== */
.mosque-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 38, 35, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

/* Top decorative gold bar */
.mosque-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--syrian-green) 0%,
        var(--gold-accent) 50%,
        var(--syrian-green) 100%);
    z-index: 2;
}

.mosque-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -10px rgba(0, 38, 35, 0.18), 0 8px 20px -8px rgba(0, 38, 35, 0.12);
    border-color: var(--gold-accent);
}

/* Image area */
.mosque-card-v2__image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
}

.mosque-card-v2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mosque-card-v2:hover .mosque-card-v2__image img {
    transform: scale(1.06);
}

.mosque-card-v2__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 38, 35, 0.5) 100%);
    pointer-events: none;
}

.mosque-card-v2__image--placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(212, 192, 138, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
}

/* Year ribbon (top-right of image, slanted) */
.mosque-card-v2__year-ribbon {
    position: absolute;
    top: 18px;
    right: -2px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-accent));
    color: var(--syrian-green);
    padding: 0.4rem 1rem 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mosque-card-v2__year-ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 8px solid var(--syrian-green);
    border-left: 4px solid transparent;
    opacity: 0.5;
}

/* Events count badge (bottom-left) */
.mosque-card-v2__events-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(185, 167, 121, 0.35);
    z-index: 3;
}

/* Body */
.mosque-card-v2__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mosque-card-v2__name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.85rem;
    line-height: 1.4;
}

/* Meta pills row */
.mosque-card-v2__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mosque-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--muted);
    color: var(--foreground);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.mosque-meta-item svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.mosque-meta-item--imam {
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.1), rgba(0, 38, 35, 0.05));
    color: var(--syrian-green);
    border-color: rgba(152, 133, 97, 0.3);
}

.mosque-meta-item--imam svg {
    color: var(--gold-accent);
}

/* Description */
.mosque-card-v2__desc {
    color: var(--foreground);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Events block (no margin-top auto — sits right after description) */
.mosque-events {
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(152, 133, 97, 0.04), rgba(0, 38, 35, 0.02));
    border: 1px solid rgba(152, 133, 97, 0.2);
    border-radius: 12px;
    padding: 1.1rem;
}

.mosque-events--empty {
    background: var(--muted);
    border-color: var(--border);
}

.mosque-events__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(152, 133, 97, 0.3);
}

.mosque-events__title svg {
    color: var(--gold-accent);
}

.mosque-events__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Event item */
.mosque-event {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed rgba(152, 133, 97, 0.18);
    transition: all 0.2s;
}

.mosque-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mosque-event:hover {
    transform: translateX(-3px);
}

.mosque-event__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--syrian-action);
    transition: all 0.2s;
}

/* Type-specific colors for icon */
.mosque-event--lesson .mosque-event__icon {
    background: rgba(66, 129, 119, 0.1);
    border-color: rgba(66, 129, 119, 0.3);
    color: var(--syrian-action);
}

.mosque-event--sermon .mosque-event__icon {
    background: rgba(74, 21, 30, 0.08);
    border-color: rgba(74, 21, 30, 0.25);
    color: var(--syrian-memorial);
}

.mosque-event--event .mosque-event__icon {
    background: rgba(152, 133, 97, 0.1);
    border-color: rgba(152, 133, 97, 0.3);
    color: var(--gold-accent);
}

.mosque-event--activity .mosque-event__icon {
    background: rgba(5, 66, 57, 0.08);
    border-color: rgba(5, 66, 57, 0.25);
    color: var(--syrian-teal);
}

.mosque-event:hover .mosque-event__icon {
    transform: scale(1.05);
}

.mosque-event__body {
    flex: 1;
    min-width: 0;
}

.mosque-event__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.mosque-event__title {
    font-size: 0.95rem;
    color: var(--syrian-green);
    line-height: 1.3;
}

/* Type chips */
.mosque-event__type-chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    line-height: 1;
}

.mosque-event__type-chip--lesson {
    background: rgba(66, 129, 119, 0.12);
    color: var(--syrian-action);
}

.mosque-event__type-chip--sermon {
    background: rgba(74, 21, 30, 0.1);
    color: var(--syrian-memorial);
}

.mosque-event__type-chip--event {
    background: rgba(152, 133, 97, 0.15);
    color: var(--gold-accent);
}

.mosque-event__type-chip--activity {
    background: rgba(5, 66, 57, 0.1);
    color: var(--syrian-teal);
}

/* Schedule (day + time) */
.mosque-event__schedule {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.mosque-event__day,
.mosque-event__time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    color: var(--foreground);
}

.mosque-event__day svg,
.mosque-event__time svg {
    color: var(--syrian-action);
    opacity: 0.7;
}

.mosque-event__day--friday {
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.12), rgba(212, 192, 138, 0.08));
    border-color: rgba(152, 133, 97, 0.4);
    color: var(--syrian-green);
    font-weight: 800;
}

.mosque-event__day--friday svg {
    color: var(--gold-accent);
    opacity: 1;
}

.mosque-event__day--daily {
    background: rgba(66, 129, 119, 0.08);
    border-color: rgba(66, 129, 119, 0.3);
    color: var(--syrian-action);
}

.mosque-event__day--daily svg {
    color: var(--syrian-action);
    opacity: 1;
}

/* Lesson-specific details */
.mosque-event__detail {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin: 0.2rem 0;
    color: var(--foreground);
}

.mosque-event__detail-label {
    font-weight: 700;
    color: var(--syrian-action);
}

.mosque-event__detail-value {
    color: var(--foreground);
}

/* Duration chip */
.mosque-event__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    background: rgba(152, 133, 97, 0.08);
    border: 1px solid rgba(152, 133, 97, 0.25);
    border-radius: 6px;
    font-weight: 600;
    color: var(--syrian-green);
    font-size: 0.78rem;
}

.mosque-event__duration svg { color: var(--gold-accent); opacity: 1; }

/* Age group chip */
.mosque-event__age {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    background: rgba(5, 66, 57, 0.06);
    border: 1px solid rgba(5, 66, 57, 0.2);
    border-radius: 6px;
    font-weight: 600;
    color: var(--syrian-teal);
    font-size: 0.78rem;
}

.mosque-event__age svg { color: var(--syrian-teal); opacity: 1; }

/* One-time badge */
.mosque-event__once-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(146, 64, 14, 0.2);
    line-height: 1;
}

.mosque-event__once-chip svg { color: #92400e; }

/* Quran circle type chip */
.mosque-event__type-chip--quran_circle {
    background: rgba(74, 21, 30, 0.1);
    color: var(--syrian-memorial);
}

/* Quran circle event icon style */
.mosque-event--quran_circle .mosque-event__icon {
    background: rgba(74, 21, 30, 0.08);
    border-color: rgba(74, 21, 30, 0.25);
    color: var(--syrian-memorial);
}

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

@media (max-width: 540px) {
    .mosque-card-v2__body { padding: 1.25rem; }
    .mosque-card-v2__name { font-size: 1.2rem; }
    .mosque-events { padding: 0.85rem; }
    .mosque-event__title { font-size: 0.88rem; }
    .mosque-event__icon {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Documents Page — Hero, Filters, Cards
   ========================================================================== */

.docs-hero {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.docs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(212, 192, 138, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(185, 167, 121, 0.10) 0%, transparent 40%);
}

.docs-hero h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.docs-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.docs-hero__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(185, 167, 121, 0.3);
}

.docs-hero__stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold-light);
}

.docs-hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

/* Filter strip — DEPRECATED, replaced by .docs-search */
.docs-filters {
    display: none !important;
}

/* Premium docs search bar (overlapping the hero) */
.docs-search-wrap {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 2rem;
}

.docs-search {
    background: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 38, 35, 0.25),
        0 8px 16px -8px rgba(0, 38, 35, 0.15),
        0 0 0 1px rgba(152, 133, 97, 0.15);
    display: grid;
    grid-template-columns: 1.5fr 220px auto;
    gap: 0.5rem;
    align-items: stretch;
}

.docs-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.docs-search__icon {
    position: absolute;
    right: 1rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.docs-search__input-wrap:focus-within .docs-search__icon {
    opacity: 1;
    color: var(--syrian-green);
}

.docs-search__input {
    width: 100%;
    height: 56px;
    padding: 0 3rem 0 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.docs-search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.docs-search__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.docs-search__select-icon {
    position: absolute;
    right: 0.85rem;
    color: var(--syrian-action);
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.docs-search__select {
    width: 100%;
    height: 56px;
    padding: 0 2.4rem 0 0.9rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: var(--muted);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
    background-position: calc(0% + 12px) 50%, calc(0% + 17px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.docs-search__select:focus {
    outline: none;
    background-color: var(--surface);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(152, 133, 97, 0.12);
}

.docs-search__btn {
    height: 56px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.25);
}

.docs-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 38, 35, 0.35);
}

.docs-search__btn:active { transform: translateY(0); }

@media (max-width: 768px) {
    .docs-search { grid-template-columns: 1fr; padding: 0.4rem; gap: 0.4rem; }
    .docs-search-wrap { margin-top: -1.5rem; }
    .docs-search__input,
    .docs-search__select,
    .docs-search__btn { height: 48px; }
}

/* Hide deprecated filter pills */
.docs-filter,
.docs-filter--active,
.docs-filter__icon,
.docs-filter__name,
.docs-filter__count {
    display: none !important;
}

.docs-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    color: var(--syrian-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.docs-filter:hover {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.06), rgba(0, 38, 35, 0.04));
    color: var(--syrian-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 38, 35, 0.15);
}

.docs-filter:hover .docs-filter__icon {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.docs-filter--active {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    border-color: var(--syrian-green);
    box-shadow: 0 8px 20px -4px rgba(0, 38, 35, 0.35);
}

.docs-filter--active:hover {
    background: linear-gradient(135deg, var(--syrian-teal) 0%, var(--syrian-green) 100%);
    color: white;
    border-color: var(--syrian-green);
}

.docs-filter--active .docs-filter__icon {
    color: var(--gold-accent);
}

.docs-filter--active:hover .docs-filter__icon {
    color: var(--gold-light);
}

.docs-filter__icon {
    color: var(--syrian-action);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.docs-filter__name {
    line-height: 1;
}

.docs-filter__count {
    background: rgba(152, 133, 97, 0.15);
    color: var(--syrian-green);
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

.docs-filter--active .docs-filter__count {
    background: rgba(152, 133, 97, 0.4);
    color: var(--gold-light);
}

/* Selected category info */
.docs-category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 38, 35, 0.04), rgba(152, 133, 97, 0.04));
    border: 1px solid rgba(152, 133, 97, 0.2);
    border-right: 4px solid var(--gold-accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.docs-category-info__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-category-info__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.25rem;
}

.docs-category-info__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Hero icon (consistent with mosques/services) */
.docs-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, rgba(212, 192, 138, 0.2), rgba(185, 167, 121, 0.1));
    border: 2px solid rgba(212, 192, 138, 0.4);
    border-radius: 50%;
    color: var(--gold-light);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hero stats banner */
.docs-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.docs-hero__stat {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.docs-hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.docs-hero__stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.docs-hero__stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* Toolbar (results count + sort) */
.docs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.docs-toolbar__count {
    color: var(--muted-foreground);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.docs-toolbar__count strong {
    color: var(--syrian-green);
    font-size: 1.2rem;
    font-weight: 800;
}

.docs-toolbar__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--syrian-memorial);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    background: rgba(74, 21, 30, 0.06);
    border-radius: 9999px;
    border: 1px solid rgba(74, 21, 30, 0.15);
    transition: all 0.2s;
}

.docs-toolbar__clear:hover {
    background: var(--syrian-memorial);
    color: white;
    border-color: var(--syrian-memorial);
}

.docs-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.docs-toolbar__sort-label {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.docs-sort-btn {
    padding: 0.4rem 0.85rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--syrian-green);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
}

.docs-sort-btn:hover {
    border-color: var(--gold-accent);
    background: rgba(152, 133, 97, 0.06);
}

.docs-sort-btn.is-active {
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    border-color: var(--syrian-green);
}

/* Documents Grid (2 cols on desktop) */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Premium Document Card v2 */
.doc-card-v2 {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    align-items: center;
}

.doc-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--syrian-action);
    transition: all 0.3s;
}

.doc-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -10px rgba(0, 38, 35, 0.18), 0 6px 14px -6px rgba(0, 38, 35, 0.1);
    border-color: var(--gold-accent);
}

.doc-card-v2:hover::before {
    background: var(--gold-accent);
    width: 6px;
}

/* Type-specific accent */
.doc-card-v2--pdf::before { background: #b91c1c; }
.doc-card-v2--pdf:hover::before { background: #dc2626; }

.doc-card-v2--jpg::before,
.doc-card-v2--jpeg::before,
.doc-card-v2--png::before,
.doc-card-v2--webp::before { background: var(--syrian-action); }

/* Year badge — large, prominent, top-left of card */
.doc-card-v2__year-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--gold-accent), var(--syrian-gold-dark));
    color: var(--syrian-green);
    padding: 0.35rem 0.85rem;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 0 14px 0 14px;
    box-shadow: 0 4px 10px rgba(152, 133, 97, 0.3);
}

.doc-card-v2__year-value {
    display: block;
    font-family: ui-monospace, monospace;
}

/* Icon area */
.doc-card-v2__icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 88px;
    flex-shrink: 0;
}

.doc-card-v2__icon {
    width: 72px;
    height: 88px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    /* Make it look like a document with corner */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.doc-card-v2__icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background: rgba(0, 0, 0, 0.18);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.doc-card-v2:hover .doc-card-v2__icon {
    transform: scale(1.04) rotate(-2deg);
}

/* File type badge below icon */
.doc-card-v2__type {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--muted);
    color: var(--syrian-green);
    border: 1px solid var(--border);
}

.doc-card-v2__type--pdf {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.25);
}

.doc-card-v2__type--jpg,
.doc-card-v2__type--jpeg,
.doc-card-v2__type--png,
.doc-card-v2__type--webp {
    background: rgba(66, 129, 119, 0.12);
    color: var(--syrian-action);
    border-color: rgba(66, 129, 119, 0.3);
}

/* Body */
.doc-card-v2__body {
    min-width: 0;
}

.doc-card-v2__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.4rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.doc-card-v2:hover .doc-card-v2__title {
    color: var(--syrian-memorial);
}

.doc-card-v2__desc {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 0.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.doc-card-v2__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.doc-card-v2__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 38, 35, 0.07);
    color: var(--syrian-green);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid rgba(0, 38, 35, 0.12);
}

.doc-card-v2__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.doc-card-v2__meta-item svg {
    color: var(--syrian-action);
}

/* Actions — centered vertically so they don't clash with the absolute year badge */
.doc-card-v2__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    align-self: stretch;
    flex-shrink: 0;
    padding-top: 1.75rem; /* clear the absolute year badge in the top-left corner */
}

.doc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 88px;
    line-height: 1;
}

.doc-action--view {
    background: var(--surface);
    color: var(--syrian-green);
    border-color: var(--border);
}

.doc-action--view:hover {
    background: rgba(152, 133, 97, 0.1);
    border-color: var(--gold-accent);
    color: var(--syrian-green);
}

.doc-action--download {
    background: linear-gradient(180deg, var(--syrian-green), var(--syrian-teal));
    color: white;
    border-color: var(--syrian-green);
    box-shadow: 0 2px 6px rgba(0, 38, 35, 0.2);
}

.doc-action--download:hover {
    background: linear-gradient(180deg, var(--syrian-teal), var(--syrian-green));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.3);
    color: white;
}

.doc-action--soon {
    color: var(--muted-foreground);
    background: var(--muted);
    border-color: var(--border);
    font-size: 0.78rem;
    cursor: default;
}

@media (max-width: 968px) {
    .docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .doc-card-v2 {
        grid-template-columns: 72px 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }
    .doc-card-v2__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
        padding-top: 0.75rem;
        border-top: 1px dashed var(--border);
        align-self: auto;
    }
    .doc-card-v2__icon-wrap { width: 72px; }
    .doc-card-v2__icon { width: 60px; height: 76px; }
    .doc-card-v2__year-badge {
        font-size: 0.78rem;
        padding: 0.3rem 0.65rem;
    }
    .doc-card-v2__title { font-size: 0.98rem; }
    .doc-action {
        flex: 1;
        min-width: 0;
    }

    .docs-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        text-align: center;
    }
    .docs-toolbar__count { justify-content: center; }
    .docs-toolbar__sort { justify-content: center; }

    .docs-hero__stats { gap: 1rem; }
    .docs-hero__stat:not(:last-child)::after { display: none; }
    .docs-hero__stat-value { font-size: 1.4rem; }
}

/* Hide deprecated old layout */
.docs-list {
    display: none;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--syrian-action);
    transition: all 0.25s;
}

.doc-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 38, 35, 0.15);
}

.doc-card:hover::before {
    background: var(--gold-accent);
    width: 6px;
}

.doc-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}

.doc-card:hover .doc-card__icon {
    transform: scale(1.05) rotate(-3deg);
}

.doc-card__body {
    flex: 1;
    min-width: 0;
}

.doc-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--syrian-green);
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.doc-card__desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0 0 0.6rem;
    line-height: 1.5;
}

.doc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.doc-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 38, 35, 0.08);
    color: var(--syrian-green);
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(0, 38, 35, 0.12);
}

.doc-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.doc-card__meta-item svg {
    color: var(--syrian-action);
}

/* File type badge */
.doc-card__type {
    background: var(--muted);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--syrian-green);
    letter-spacing: 0.5px;
}

.doc-card__type--pdf {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.doc-card__type--jpg,
.doc-card__type--jpeg,
.doc-card__type--png,
.doc-card__type--webp {
    background: rgba(66, 129, 119, 0.12);
    color: var(--syrian-action);
    border: 1px solid rgba(66, 129, 119, 0.25);
}

.doc-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .docs-hero h1 { font-size: 2rem; }
    .docs-hero { padding: 3rem 0 2rem; }
    .docs-filter {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
    .doc-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .doc-card__icon {
        margin: 0 auto;
    }
    .doc-card__meta {
        justify-content: center;
    }
    .doc-card__actions {
        justify-content: center;
    }
}

/* ==========================================================================
   Gallery Modal — Premium image viewer with full info + navigation
   ========================================================================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gallery-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.gallery-modal__dialog {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 192, 138, 0.2);
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    width: 100%;
    max-height: 92vh;
    transform: scale(0.95) translateY(8px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-modal.is-open .gallery-modal__dialog {
    transform: scale(1) translateY(0);
}

/* Close button (top-left in CSS, visually opposite of nav buttons) */
.gallery-modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gallery-modal__close:hover {
    background: var(--syrian-memorial);
    border-color: var(--syrian-memorial);
    transform: rotate(90deg) scale(1.05);
}

/* Navigation buttons */
.gallery-modal__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gallery-modal__nav:hover:not(:disabled) {
    background: var(--gold-accent);
    color: var(--syrian-green);
    border-color: var(--gold-accent);
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* In RTL: prev (›) is on the RIGHT, next (‹) is on the LEFT */
.gallery-modal__nav--prev { right: 1.5rem; }
.gallery-modal__nav--next { left: 1.5rem; }

/* Image area */
.gallery-modal__image-wrap {
    flex: 1;
    min-height: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-modal__image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

/* Info panel */
.gallery-modal__info {
    padding: 1.25rem 1.75rem;
    background: linear-gradient(180deg, var(--surface), rgba(152, 133, 97, 0.04));
    border-top: 1px solid var(--border);
}

.gallery-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--syrian-green);
    margin: 0 0 0.45rem;
    line-height: 1.4;
}

.gallery-modal__description {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 0.85rem;
}

.gallery-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.gm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--muted);
    color: var(--syrian-green);
    border: 1px solid var(--border);
}

.gm-chip svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.gm-chip--date {
    background: rgba(0, 38, 35, 0.06);
    color: var(--syrian-green);
    border-color: rgba(0, 38, 35, 0.15);
}

.gm-chip--category {
    background: rgba(152, 133, 97, 0.1);
    color: var(--syrian-green);
    border-color: rgba(152, 133, 97, 0.3);
}

.gm-chip--category svg {
    color: var(--gold-accent);
}

/* Counter (1 من 10) */
.gallery-modal__counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(212, 192, 138, 0.3);
    letter-spacing: 1px;
    pointer-events: none;
    font-family: ui-monospace, monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-modal { padding: 0.5rem; }
    .gallery-modal__dialog { max-height: 96vh; border-radius: 12px; }
    .gallery-modal__close {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }
    .gallery-modal__nav {
        width: 42px;
        height: 42px;
    }
    .gallery-modal__nav--prev { right: 0.5rem; }
    .gallery-modal__nav--next { left: 0.5rem; }
    .gallery-modal__info { padding: 1rem 1.25rem; }
    .gallery-modal__title { font-size: 1.1rem; }
    .gallery-modal__description { font-size: 0.88rem; }
    .gm-chip { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
    .gallery-modal__counter {
        bottom: 12px;
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-modal__nav {
        width: 36px;
        height: 36px;
    }
    .gallery-modal__nav svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   Lightbox (legacy — used on pages without galleryModal)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Mosque Card
   ========================================================================== */
.mosque-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border-right: 4px solid var(--syrian-action);
}

.mosque-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-right-color: var(--gold-accent);
}

.mosque-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--syrian-teal), var(--syrian-action));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-size: 3rem;
    overflow: hidden;
}

.mosque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosque-body {
    padding: 1.25rem;
}

.mosque-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--syrian-green);
    margin-bottom: 0.5rem;
}

.mosque-location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.events-list {
    list-style: none;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.events-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
    border-bottom: 1px dashed var(--border);
}

.events-list li:last-child { border-bottom: none; }

.events-list li::before {
    content: '◆';
    color: var(--gold-accent);
    font-size: 0.6rem;
    margin-top: 0.4rem;
}

/* ==========================================================================
   Service Card
   ========================================================================== */
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--gold-accent);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-action));
    color: var(--gold-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Document Card
   ========================================================================== */
.doc-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition);
}

.doc-item:hover {
    border-color: var(--gold-accent);
    background: rgba(152, 133, 97, 0.04);
}

.doc-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-info { flex: 1; }
.doc-title { font-weight: 700; color: var(--syrian-green); margin-bottom: 0.25rem; }
.doc-meta { font-size: 0.875rem; color: var(--muted-foreground); }

/* ==========================================================================
   Article (Static Content)
   ========================================================================== */
.article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.article h2 {
    color: var(--syrian-green);
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.article h2:first-child { margin-top: 0; }

.article h3 {
    color: var(--syrian-teal);
    margin-top: 1.5rem;
}

.article p {
    line-height: 1.9;
    margin-bottom: 1rem;
    text-align: justify;
}

.article blockquote {
    border-right: 4px solid var(--gold-accent);
    background: rgba(152, 133, 97, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--syrian-teal);
}

.article ul, .article ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.article li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .article { padding: 1.5rem; }
}

/* ==========================================================================
   Rich Content (from WYSIWYG editor)
   ========================================================================== */
.rich-content {
    line-height: 1.8;
    color: inherit;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: var(--syrian-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.rich-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 0.4rem;
}

.rich-content h3 {
    font-size: 1.25rem;
    color: var(--syrian-teal);
}

.rich-content h4 {
    font-size: 1.1rem;
}

.rich-content p {
    margin-bottom: 1rem;
}

.rich-content ul,
.rich-content ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.rich-content li {
    margin-bottom: 0.4rem;
}

.rich-content blockquote {
    border-right: 4px solid var(--gold-accent);
    background: rgba(152, 133, 97, 0.06);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--syrian-teal);
}

.rich-content blockquote p:last-child {
    margin-bottom: 0;
}

.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; }
.rich-content u { text-decoration: underline; }

.rich-content a {
    color: var(--syrian-action);
    text-decoration: underline;
}

.rich-content a:hover {
    color: var(--syrian-green);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.rich-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.rich-content table td,
.rich-content table th {
    padding: 0.5rem;
    border: 1px solid var(--border);
}

.rich-content table th {
    background: var(--muted);
    color: var(--syrian-green);
    font-weight: 700;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-accent), var(--syrian-action));
    transform: translateX(50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2.5rem;
    margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    margin-left: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-right: 50%;
    margin-left: auto;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--gold-accent);
    border: 3px solid var(--syrian-green);
    border-radius: 9999px;
    box-shadow: 0 0 0 4px var(--surface);
}

.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-date {
    color: var(--gold-accent);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--syrian-green);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .timeline::before { right: 1rem; transform: none; }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin: 0 0 1rem 0;
        padding-right: 3rem;
        padding-left: 1rem;
        text-align: right;
    }
    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        right: 0.5rem;
        left: auto;
    }
}

/* ==========================================================================
   Quick Links
   ========================================================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-link {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition);
    color: var(--syrian-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-link:hover {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-link:hover .quick-link-icon {
    background: var(--gold-accent);
    color: var(--syrian-green);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    background: rgba(152, 133, 97, 0.15);
    color: var(--gold-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
}

.quick-link-text {
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .quick-links { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--syrian-green);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--syrian-gold), var(--gold-accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer-list {
    list-style: none;
}

.footer-list li { margin-bottom: 0.5rem; }

.footer-list a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-list a:hover { color: var(--gold-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom .gold { color: var(--gold-accent); font-weight: 700; }

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-right: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #dcfce7;
    border-color: var(--success);
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--destructive);
    color: #991b1b;
}

.alert-info {
    background: rgba(66, 129, 119, 0.1);
    border-color: var(--syrian-action);
    color: var(--syrian-teal);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table th {
    background: var(--syrian-green);
    color: var(--gold-accent);
    padding: 0.875rem 1rem;
    text-align: right;
    font-weight: 700;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--muted); }

/* ==========================================================================
   Memorial / Martyr Details Page
   ========================================================================== */

/* Hero ---------------------------------------------------- */
.memorial-hero {
    position: relative;
    padding: 4rem 0 5rem;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(180deg, var(--memorial-deep) 0%, var(--syrian-memorial) 100%);
    isolation: isolate;
}

.memorial-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(212, 192, 138, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(185, 167, 121, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(74, 21, 30, 0.4) 0%, transparent 50%);
}

.memorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(185, 167, 121, 0.025) 0,
            rgba(185, 167, 121, 0.025) 1px,
            transparent 1px,
            transparent 14px);
    pointer-events: none;
}

/* Breadcrumbs in hero */
.memorial-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.memorial-breadcrumbs a {
    color: var(--gold-light);
    transition: color var(--transition);
}

.memorial-breadcrumbs a:hover {
    color: #d4c08a;
}

.memorial-breadcrumbs span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Hero content */
.memorial-hero__content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Photo frame */
.memorial-photo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.memorial-photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
    border: 4px solid var(--gold-accent);
    box-shadow:
        0 0 0 6px rgba(0, 0, 0, 0.3),
        0 0 0 10px rgba(185, 167, 121, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.memorial-photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.memorial-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
}

.memorial-photo-frame--default img {
    object-fit: contain;
    padding: 1rem;
    filter: none;
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
}

.memorial-photo-frame--default::before {
    display: none;
}

.memorial-ribbon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--gold-light), var(--gold-accent));
    color: var(--memorial-deep);
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(38, 15, 20, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
}

/* Tagline above name */
.memorial-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    opacity: 0.85;
    text-transform: none;
}

/* Name */
.memorial-name {
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.memorial-nickname {
    font-size: 1.125rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Dates */
.memorial-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem auto 1rem;
}

.memorial-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 130px;
}

.memorial-date__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 2px;
    opacity: 0.75;
}

.memorial-date__value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.memorial-dates__separator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-accent);
}

.memorial-line {
    width: 30px;
    height: 1px;
    background: var(--gold-accent);
    opacity: 0.6;
}

.memorial-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-accent);
}

.memorial-age {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.memorial-age strong {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin: 0 0.2rem;
}

/* Quranic verse */
.memorial-quran {
    margin: 3.5rem auto 0;
    max-width: 780px;
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius);
    border: 1px solid rgba(185, 167, 121, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
}

.memorial-quran::before,
.memorial-quran::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    top: 50%;
}

.memorial-quran::before { right: -30px; }
.memorial-quran::after { left: -30px; }

.memorial-quran__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gold-accent);
    margin-bottom: 1.25rem;
}

.memorial-quran__ornament span {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-accent));
}

.memorial-quran__ornament span:last-child {
    background: linear-gradient(-90deg, transparent, var(--gold-accent));
}

.memorial-quran__text {
    font-family: 'Amiri', 'Cairo', serif;
    /* Responsive scale that keeps the verse on ONE line across all screens */
    font-size: clamp(0.78rem, 2.3vw, 1.5rem);
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    /* Force the verse on a single line */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for clean look */
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: rtl;
    /* Subtle fade at edges to indicate scrollable when overflow */
    mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
}

.memorial-quran__text::-webkit-scrollbar {
    display: none;
}

.memorial-quran__source {
    font-size: 0.85rem;
    color: rgba(185, 167, 121, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

/* Sections ---------------------------------------------------- */
.memorial-section {
    padding: 4rem 0;
    position: relative;
}

.memorial-section--alt {
    background: var(--muted);
}

.memorial-section--related {
    background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.memorial-section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.memorial-section-title span {
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
    background: inherit;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--syrian-memorial);
}

.memorial-section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 10%,
        var(--gold-accent) 50%,
        transparent 90%);
    opacity: 0.5;
    z-index: 0;
}

.memorial-section-title span::before,
.memorial-section-title span::after {
    content: '◆';
    color: var(--gold-accent);
    font-size: 0.7rem;
    margin: 0 0.6rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.memorial-section--alt .memorial-section-title span {
    background: var(--muted);
}

/* Info Cards Grid */
.memorial-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.memorial-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.memorial-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--syrian-action);
    transition: all var(--transition);
}

.memorial-info-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.memorial-info-card:hover::before {
    background: var(--gold-accent);
    width: 6px;
}

.memorial-info-card--accent {
    background: linear-gradient(135deg,
        rgba(74, 21, 30, 0.04) 0%,
        rgba(74, 21, 30, 0.08) 100%);
    border-color: rgba(74, 21, 30, 0.2);
}

.memorial-info-card--accent::before {
    background: var(--syrian-memorial);
}

.memorial-info-card--accent .memorial-info-card__icon {
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
}

.memorial-info-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-info-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.memorial-info-card__label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.memorial-info-card__value {
    font-size: 1rem;
    color: var(--syrian-green);
    font-weight: 700;
}

.memorial-info-card--accent .memorial-info-card__value {
    color: var(--syrian-memorial);
}

/* Story Section */
.memorial-story {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem 3.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.memorial-story::before,
.memorial-story::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-accent);
    opacity: 0.4;
}

.memorial-story::before {
    top: 12px;
    right: 12px;
    border-bottom: none;
    border-left: none;
    border-radius: 0 var(--radius) 0 0;
}

.memorial-story::after {
    bottom: 12px;
    left: 12px;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 var(--radius);
}

.memorial-story__decoration {
    text-align: center;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.memorial-story .rich-content {
    font-size: 1.05rem;
    line-height: 2;
}

/* Actions Section */
.memorial-actions-section {
    padding: 2rem 0 0;
}

.memorial-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Print */
@media print {
    .memorial-hero {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    .memorial-hero__bg,
    .memorial-hero::before { display: none; }
    .memorial-name { color: black !important; text-shadow: none; }
    .memorial-tagline,
    .memorial-nickname,
    .memorial-date__label { color: #555 !important; }
    .memorial-date__value { color: black !important; }
    .memorial-photo-frame { border-color: #999; box-shadow: none; }
    .memorial-quran {
        background: white !important;
        border: 2px solid #999 !important;
        color: black !important;
    }
    .memorial-quran__text { color: black !important; }
    .memorial-actions, .navbar, .footer, .topbar, .memorial-section--related { display: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .memorial-hero { padding: 2.5rem 0 3rem; }
    .memorial-name { font-size: 1.85rem; }
    .memorial-photo-wrap { width: 170px; height: 170px; }
    .memorial-quran { padding: 1.5rem 1.25rem; margin: 2rem 1rem 0; }
    /* font-size handled by clamp() on the base rule — keep verse on one line */
    .memorial-quran::before,
    .memorial-quran::after { display: none; }
    .memorial-info-grid { grid-template-columns: 1fr; }
    .memorial-story { padding: 1.75rem 1.25rem; }
    .memorial-section { padding: 2.5rem 0; }
    .memorial-section-title span { font-size: 1.4rem; padding: 0 0.75rem; }
    .memorial-dates { gap: 1rem; }
    .memorial-dates__separator { transform: rotate(90deg); margin: 0.5rem 0; }
}

@media (max-width: 480px) {
    .memorial-name { font-size: 1.5rem; }
    .memorial-tagline { letter-spacing: 2px; font-size: 0.85rem; }
    .memorial-info-card { padding: 1rem; }
    .memorial-info-card__icon { width: 40px; height: 40px; }
}

/* ==========================================================================
   Empty State — Centered & Polished
   ========================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 540px;
    margin: 2rem auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative background pattern */
.empty-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(152, 133, 97, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(74, 21, 30, 0.04) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

/* Icon container: circular, centered, decorative */
.empty-state-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(152, 133, 97, 0.08), rgba(74, 21, 30, 0.04));
    border: 2px dashed rgba(152, 133, 97, 0.4);
    border-radius: 50%;
    color: var(--gold-accent);
    font-size: 0;
    line-height: 0;
    transition: transform 0.3s ease;
}

.empty-state:hover .empty-state-icon {
    transform: scale(1.05);
}

/* Force SVG inside to be centered and properly sized,
   overriding any inline width/height attributes set on the SVG */
.empty-state-icon svg {
    display: block;
    width: 44px !important;
    height: 44px !important;
    margin: 0;
    flex-shrink: 0;
}

.empty-state h3 {
    color: var(--syrian-green);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.empty-state p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 380px;
}

.empty-state .btn {
    margin-top: 1.5rem;
}

@media (max-width: 540px) {
    .empty-state {
        padding: 3rem 1.5rem;
        margin: 1.5rem auto;
    }
    .empty-state-icon {
        width: 80px;
        height: 80px;
    }
    .empty-state-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
    .empty-state h3 { font-size: 1.2rem; }
}

/* ==========================================================================
   Responsive Navigation
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open { display: flex; }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }

    .navbar-inner { position: relative; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .article { padding: 1.5rem; }
    .topbar-info { font-size: 0.75rem; gap: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .brand-tagline { display: none; }
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 1.75rem; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold-accent); }
.text-green { color: var(--syrian-green); }
.text-memorial { color: var(--syrian-memorial); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ==========================================================================
   Admin Specific
   ========================================================================== */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--syrian-green);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
}

.admin-sidebar .brand-name { color: white; }
.admin-sidebar .brand-tagline { color: var(--gold-accent); }

.admin-nav {
    list-style: none;
    margin-top: 2rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(152, 133, 97, 0.15);
    color: var(--gold-accent);
}

.admin-content {
    padding: 2rem;
    background: var(--background);
}

.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -2rem -2rem 2rem;
}

@media (max-width: 768px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: block;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    }
    .admin-shell.is-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-shell.is-sidebar-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    .admin-content {
        padding: 1rem;
    }
    .admin-topbar {
        margin: -1rem -1rem 1rem;
        padding: 0.85rem 1rem;
    }
    .admin-mobile-toggle {
        display: inline-flex !important;
    }
}

.admin-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--syrian-green);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.admin-mobile-toggle:hover {
    background: var(--syrian-green);
    color: white;
    border-color: var(--syrian-green);
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

@media (max-width: 600px) {
    .admin-topbar__greeting { display: none; }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE FIXES — Mobile-First Polish
   ========================================================================== */

/* Global: prevent horizontal scroll, allow word break for any long content */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Long URLs/emails/words break gracefully */
a[href^="tel:"],
a[href^="mailto:"],
.rich-content,
.rich-content a,
.martyr-name,
.mosque-card-v2__name,
.service-card-v2__title,
.doc-card__title,
.gallery-overlay,
.memorial-name,
.memorial-info-card__value {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Table wrappers always scroll on mobile */
.table-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* Ensure flex/grid items can shrink */
.card,
.grid > *,
.mosque-events,
.memorial-story,
.article {
    min-width: 0;
}

/* ────────────────────────────────────────────────
   ≤ 1024px — Tablets / small laptops
   ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }

    /* Section padding */
    .section { padding: 3rem 0; }

    /* Topbar simplifies */
    .topbar-info { gap: 1rem; font-size: 0.78rem; }

    /* Nav already collapses to mobile menu at 1024 (existing code) */
}

/* ────────────────────────────────────────────────
   ≤ 968px — Tablet
   ──────────────────────────────────────────────── */
@media (max-width: 968px) {
    /* Article + memorial story */
    .article { padding: 1.5rem; }
    .memorial-story { padding: 2rem 1.75rem; }
}

/* ────────────────────────────────────────────────
   ≤ 768px — Mobile
   ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* Headings */
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }

    /* Sections */
    .section { padding: 2.5rem 0; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 1.55rem; }
    .section-title p { font-size: 0.9rem; }

    /* Container heroes */
    .hero,
    .page-header,
    .martyrs-hero,
    .mosques-hero,
    .gallery-hero,
    .docs-hero,
    .services-hero,
    .memorial-hero {
        padding: 2.5rem 0 2rem;
    }

    .hero h1 { font-size: 1.85rem; line-height: 1.3; }
    .hero p { font-size: 0.95rem; line-height: 1.7; }

    .page-header h1,
    .martyrs-hero h1,
    .mosques-hero h1,
    .gallery-hero h1,
    .docs-hero h1,
    .services-hero h1 {
        font-size: 1.8rem;
    }

    /* Hero subtitle / description */
    .page-header p,
    .martyrs-hero p,
    .mosques-hero p,
    .gallery-hero p,
    .docs-hero p,
    .services-hero p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    /* Hero badges/icons smaller */
    .mosques-hero__icon,
    .services-hero__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 0.75rem;
    }
    .mosques-hero__icon svg,
    .services-hero__icon svg {
        width: 36px !important;
        height: 36px !important;
    }

    /* Hero actions buttons */
    .hero-actions { gap: 0.5rem; flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    .btn-lg { padding: 0.7rem 1.25rem; font-size: 0.95rem; }

    /* Hero badge */
    .hero-badge { font-size: 0.78rem; padding: 0.3rem 0.75rem; }

    /* Stats banners — remove separators on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item {
        border-right: none !important;
        padding: 0.5rem;
    }
    .stat-number { font-size: 1.85rem; }
    .stat-label { font-size: 0.85rem; }

    .martyrs-stats,
    .mosques-stats,
    .services-hero__stats {
        gap: 1rem;
    }

    .martyrs-stat:not(:last-child)::after,
    .mosques-stat:not(:last-child)::after,
    .services-hero__stat:not(:last-child)::after {
        display: none;
    }

    .martyrs-stat__value,
    .mosques-stat__value,
    .services-hero__stat-value {
        font-size: 1.5rem;
    }
    .martyrs-stat__label,
    .mosques-stat__label,
    .services-hero__stat-label {
        font-size: 0.72rem;
    }

    /* Hero stat oval (gallery/docs single stat) */
    .gallery-hero__stat,
    .docs-hero__stat {
        margin-top: 1rem;
    }

    /* Top bar */
    .topbar { padding: 0.4rem 0; }
    .topbar-inner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    .topbar-info {
        font-size: 0.72rem;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .topbar-info span:nth-child(2) { /* hide date on first row */
        display: none;
    }

    /* Navbar */
    .navbar-inner { padding: 0.75rem 0; }
    .brand-logo { width: 38px; height: 38px; font-size: 1rem; }
    .brand-name { font-size: 1rem; }
    .brand-tagline { display: none; }

    /* Articles & static pages */
    .article { padding: 1.5rem 1.25rem; }
    .article h2 { font-size: 1.3rem; }
    .article h3 { font-size: 1.1rem; }
    .article p { font-size: 0.95rem; line-height: 1.85; }

    /* Cards generic */
    .card { padding: 1.25rem; }

    /* Generic grid stacking on mobile */
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr !important; }

    /* Quick links use 2 cols */
    .quick-links { grid-template-columns: repeat(2, 1fr) !important; gap: 0.65rem; }
    .quick-link { padding: 1rem 0.75rem; }
    .quick-link-icon { width: 40px; height: 40px; }
    .quick-link-text { font-size: 0.85rem; }

    /* CTA section adjustments */
    .section[style*="background: linear-gradient(135deg, var(--syrian-green)"],
    .section[style*="background: linear-gradient(135deg, var(--memorial-deep)"] {
        padding: 2.5rem 0;
    }
    .section[style*="background: linear-gradient"] h2 { font-size: 1.5rem; }
    .section[style*="background: linear-gradient"] p { font-size: 0.95rem; }

    /* Footer */
    .footer { padding: 2rem 0 1.25rem; }
    .footer-grid { gap: 1.5rem; margin-bottom: 1.25rem; }
    .footer h4 { font-size: 1rem; }
    .footer-list a { font-size: 0.88rem; }
    .footer-bottom { font-size: 0.78rem; }

    /* Filter strips compact */
    .gallery-filter,
    .docs-filter,
    .services-filter {
        font-size: 0.82rem;
        padding: 0.5rem 0.85rem;
        gap: 0.4rem;
    }
    .gallery-filter__count,
    .docs-filter__count,
    .services-filter__count {
        font-size: 0.7rem;
        padding: 0.15rem 0.45rem;
    }

    /* Doc cards stack */
    .doc-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.85rem;
        padding: 1.25rem;
    }
    .doc-card__icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }
    .doc-card__meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    .doc-card__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Service card v2 */
    .service-card-v2 {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.25rem;
    }
    .service-card-v2__icon { margin: 0 auto; width: 56px; height: 56px; }
    .service-card-v2__chip { align-self: center; }
    .service-card-v2__meta-item { justify-content: center; }

    /* Mosque card v2 */
    .mosque-card-v2__body { padding: 1.25rem; }
    .mosque-card-v2__name { font-size: 1.2rem; }
    .mosque-card-v2__meta { justify-content: center; }
    .mosque-meta-item { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
    .mosque-card-v2__year-ribbon { font-size: 0.72rem; padding: 0.3rem 0.7rem; top: 12px; }

    /* Mosque events on mobile */
    .mosque-events { padding: 0.85rem; }
    .mosque-events__title { font-size: 0.9rem; }
    .mosque-event__title { font-size: 0.88rem; }
    .mosque-event__icon { width: 32px; height: 32px; }
    .mosque-event__schedule {
        gap: 0.4rem;
    }
    .mosque-event__day,
    .mosque-event__time,
    .mosque-event__duration,
    .mosque-event__age {
        font-size: 0.72rem;
        padding: 0.15rem 0.45rem;
    }

    /* Memorial */
    .memorial-name { font-size: 1.6rem; letter-spacing: 0.5px; }
    .memorial-tagline { font-size: 0.8rem; letter-spacing: 2px; }
    .memorial-photo-wrap { width: 150px; height: 150px; }
    .memorial-ribbon { font-size: 0.7rem; padding: 0.3rem 0.85rem; }
    .memorial-quran { padding: 1.25rem 1rem; margin: 2rem 0.5rem 0; }
    /* font-size handled by clamp() — verse stays on one line */
    .memorial-quran::before,
    .memorial-quran::after { display: none; }
    .memorial-info-grid { grid-template-columns: 1fr; }
    .memorial-info-card { padding: 0.85rem 1rem; }
    .memorial-info-card__icon { width: 40px; height: 40px; }
    .memorial-info-card__value { font-size: 0.9rem; }
    .memorial-story { padding: 1.5rem 1.25rem; }
    .memorial-story .rich-content { font-size: 0.95rem; }
    .memorial-section { padding: 2rem 0; }
    .memorial-section-title span { font-size: 1.25rem; padding: 0 0.75rem; }
    .memorial-dates { gap: 0.85rem; }
    .memorial-dates__separator {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }
    .memorial-actions { flex-direction: column; }
    .memorial-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    /* Martyr cards on mobile */
    .martyr-photo-wrap { width: auto; }
    .martyr-name { font-size: 1.05rem; }
    .martyr-card__ribbon { font-size: 0.7rem; padding: 0.3rem 0.7rem 0.3rem 0.8rem; }

    /* Tables in admin become more compact */
    table th,
    table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Forms */
    .form-control,
    .form-select,
    .form-textarea {
        font-size: 0.95rem;
        padding: 0.55rem 0.75rem;
    }
    .form-label { font-size: 0.85rem; }

    /* Lightbox */
    .lightbox img { max-width: 95vw; max-height: 80vh; }
    .lightbox-close {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }

    /* Service icons (homepage) */
    .service-card .service-icon {
        width: 48px;
        height: 48px;
    }
    .service-card h3 { font-size: 1rem; }
    .service-card p { font-size: 0.88rem; }

    /* Filter chips active filters */
    .martyrs-active-filters { justify-content: center; }
    .martyrs-filter-chip { font-size: 0.78rem; }

    /* Empty state */
    .empty-state { padding: 3rem 1.5rem; }
    .empty-state h3 { font-size: 1.15rem; }
    .empty-state p { font-size: 0.9rem; }

    /* Breadcrumbs wrap better */
    .breadcrumbs {
        flex-wrap: wrap;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
}

/* ────────────────────────────────────────────────
   ≤ 540px — Small mobile
   ──────────────────────────────────────────────── */
@media (max-width: 540px) {
    .container { padding: 0 0.875rem; }

    /* Even smaller headings */
    h1 { font-size: 1.55rem; }
    .hero h1 { font-size: 1.55rem; }
    .page-header h1,
    .martyrs-hero h1,
    .mosques-hero h1,
    .gallery-hero h1,
    .docs-hero h1,
    .services-hero h1 {
        font-size: 1.55rem;
    }

    /* Topbar — minimal */
    .topbar-info span { font-size: 0.68rem; }
    .topbar-info > :nth-child(n+2) { display: none; }

    /* Navbar brand */
    .brand-logo { width: 36px; height: 36px; font-size: 0.95rem; }
    .brand-name { font-size: 0.95rem; }

    /* Stats single column */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.7rem; }

    /* Cards tighter */
    .card { padding: 1rem; }

    /* Filter strips even smaller */
    .gallery-filter,
    .docs-filter,
    .services-filter {
        font-size: 0.78rem;
        padding: 0.45rem 0.7rem;
    }

    /* Search bars (premium ones) */
    .martyrs-search,
    .services-search,
    .mosques-search {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    .martyrs-search__input,
    .services-search__input,
    .mosques-search__input,
    .martyrs-search__select {
        height: 44px;
    }
    .martyrs-search__btn,
    .services-search__btn,
    .mosques-search__btn {
        height: 44px;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    /* Memorial smaller */
    .memorial-name { font-size: 1.35rem; }
    .memorial-photo-wrap { width: 130px; height: 130px; }
    .memorial-ribbon { top: -6px; }
    /* font-size handled by clamp() — verse stays on one line */

    /* Mosque card year ribbon repositioning */
    .mosque-card-v2__year-ribbon {
        top: 10px;
        font-size: 0.7rem;
    }

    /* Doc card meta breaking */
    .doc-card__meta { gap: 0.4rem; }
    .doc-card__chip,
    .doc-card__meta-item {
        font-size: 0.72rem;
    }

    /* Footer items per row */
    .footer-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Buttons */
    .btn { font-size: 0.9rem; padding: 0.55rem 1rem; min-height: 38px; }
    .btn-sm { font-size: 0.78rem; padding: 0.35rem 0.7rem; min-height: 30px; }
    .btn-lg { font-size: 0.95rem; padding: 0.65rem 1.25rem; }

    /* Multi-select chips smaller */
    .ms-field { min-height: 44px; padding: 0.35rem 0.5rem; }
    .ms-chip { font-size: 0.78rem; padding: 0.2rem 0.4rem 0.2rem 0.6rem; }

    /* Empty state icon smaller */
    .empty-state-icon { width: 80px; height: 80px; }
    .empty-state-icon svg { width: 36px !important; height: 36px !important; }
    .empty-state h3 { font-size: 1.1rem; }

    /* Hero actions stack */
    .hero-actions .btn-lg { padding: 0.65rem 1rem; font-size: 0.9rem; }

    /* Quick links 1 col */
    .quick-links { grid-template-columns: 1fr !important; gap: 0.5rem; }
    .quick-link { flex-direction: row; padding: 0.85rem 1rem; gap: 0.85rem; text-align: right; }
    .quick-link-icon { margin: 0; }

    /* Memorial actions */
    .memorial-actions { padding: 0; }

    /* Article tighter */
    .article { padding: 1.25rem 1rem; }
    .article h2 { font-size: 1.2rem; }
    .article p { font-size: 0.92rem; }
    .article blockquote { padding: 0.85rem 1rem; font-size: 0.9rem; }

    /* Section CTA */
    .section[style*="text-align: center"] h2 { font-size: 1.4rem !important; }
}

/* ────────────────────────────────────────────────
   ≤ 380px — Extra small
   ──────────────────────────────────────────────── */
@media (max-width: 380px) {
    .container { padding: 0 0.75rem; }

    h1 { font-size: 1.4rem; }
    .hero h1 { font-size: 1.4rem; }

    /* Even more compact */
    .topbar-info { font-size: 0.65rem; }
    .nav-link { padding: 0.55rem 0.7rem; font-size: 0.85rem; }
    .brand-logo { width: 34px; height: 34px; font-size: 0.9rem; }
    .brand-name { font-size: 0.92rem; }

    /* Cards */
    .card { padding: 0.85rem; }

    /* Memorial */
    .memorial-name { font-size: 1.2rem; }
    .memorial-photo-wrap { width: 110px; height: 110px; }
    .memorial-ribbon { font-size: 0.65rem; }
}

/* Print friendly */
@media print {
    .topbar, .navbar, .footer,
    .gallery-filters, .docs-filters, .services-filters,
    .martyrs-search, .mosques-search, .services-search,
    .breadcrumbs, .memorial-actions {
        display: none !important;
    }
}

/* ==========================================================================
   Martyr Modal — Popup with tabs (replaces martyr-details.php)
   ========================================================================== */
.martyr-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.martyr-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.martyr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 15, 20, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.martyr-modal__dialog {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: 18px;
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(152, 133, 97, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.martyr-modal.is-open .martyr-modal__dialog {
    transform: translateY(0) scale(1);
}

.martyr-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--syrian-memorial);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

.martyr-modal__close:hover {
    background: var(--syrian-memorial);
    color: white;
    transform: rotate(90deg);
}

/* Modal Header — memorial gradient with photo + name */
.mtm-header {
    background: linear-gradient(135deg, var(--memorial-deep) 0%, var(--syrian-memorial) 100%);
    color: white;
    padding: 1.5rem 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mtm-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 192, 138, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg,
            rgba(185, 167, 121, 0.025) 0,
            rgba(185, 167, 121, 0.025) 1px,
            transparent 1px,
            transparent 14px);
    pointer-events: none;
}

.mtm-photo-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.mtm-photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    box-shadow:
        0 0 0 3px rgba(38, 15, 20, 0.5),
        0 0 0 5px rgba(185, 167, 121, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
}

.mtm-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
}

.mtm-photo-frame--default img {
    object-fit: contain;
    padding: 0.4rem;
    filter: none;
}

.mtm-ribbon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--gold-light), var(--gold-accent));
    color: var(--memorial-deep);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(38, 15, 20, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.mtm-head-info {
    position: relative;
    z-index: 1;
}

.mtm-tagline {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    opacity: 0.9;
}

.mtm-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mtm-family {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-style: italic;
    opacity: 0.95;
}

/* Tabs */
.mtm-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 1rem;
    border-bottom: 2px solid var(--border);
    background: var(--surface);
}

.mtm-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
}

.mtm-tab:hover {
    color: var(--syrian-memorial);
    background: rgba(74, 21, 30, 0.04);
}

.mtm-tab.is-active {
    color: var(--syrian-memorial);
    border-bottom-color: var(--gold-accent);
}

.mtm-tab svg {
    color: var(--syrian-action);
    flex-shrink: 0;
}

.mtm-tab.is-active svg {
    color: var(--gold-accent);
}

.mtm-tab__count {
    background: var(--muted);
    color: var(--syrian-memorial);
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.mtm-tab.is-active .mtm-tab__count {
    background: var(--syrian-memorial);
    color: var(--gold-light);
}

/* Tab content */
.mtm-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(152, 133, 97, 0.03));
}

.mtm-panel[hidden] { display: none; }

.mtm-panel {
    animation: mtm-fade 0.25s ease-out;
}

@keyframes mtm-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Empty state inside tabs */
.mtm-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted-foreground);
}

.mtm-empty svg {
    color: var(--border);
    margin-bottom: 0.85rem;
}

.mtm-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* Info cards grid */
.mtm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mtm-info-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.mtm-info-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.mtm-info-card--accent {
    background: linear-gradient(135deg, rgba(74, 21, 30, 0.03), rgba(74, 21, 30, 0.07));
    border-color: rgba(74, 21, 30, 0.2);
}

.mtm-info-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--syrian-green), var(--syrian-teal));
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtm-info-card--accent .mtm-info-card__icon {
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
}

.mtm-info-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mtm-info-card__label {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.mtm-info-card__value {
    font-size: 0.95rem;
    color: var(--syrian-green);
    font-weight: 700;
    word-break: break-word;
}

.mtm-info-card--accent .mtm-info-card__value {
    color: var(--syrian-memorial);
}

/* Quranic verse inside info tab */
.mtm-verse {
    text-align: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(74, 21, 30, 0.03), rgba(152, 133, 97, 0.05));
    border: 1px solid rgba(152, 133, 97, 0.25);
    border-radius: var(--radius);
}

.mtm-verse__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--gold-accent);
    margin-bottom: 0.85rem;
}

.mtm-verse__ornament span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-accent));
}

.mtm-verse__ornament span:last-child {
    background: linear-gradient(-90deg, transparent, var(--gold-accent));
}

.mtm-verse__text {
    font-family: 'Amiri', 'Cairo', serif;
    font-size: clamp(0.78rem, 2.3vw, 1.25rem);
    font-weight: 700;
    color: var(--syrian-memorial);
    line-height: 1.7;
    margin: 0 0 0.5rem;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: rtl;
    mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
}

.mtm-verse__text::-webkit-scrollbar { display: none; }

.mtm-verse__source {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Story panel */
.mtm-story {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    line-height: 2;
    color: var(--foreground);
    position: relative;
}

.mtm-story::before,
.mtm-story::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--gold-accent);
    opacity: 0.45;
}

.mtm-story::before {
    top: 8px;
    right: 8px;
    border-bottom: none;
    border-left: none;
    border-radius: 0 var(--radius) 0 0;
}

.mtm-story::after {
    bottom: 8px;
    left: 8px;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 var(--radius);
}

/* Family panel */
.mtm-family-intro {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.75rem 1rem;
    background: rgba(152, 133, 97, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(152, 133, 97, 0.2);
}

.mtm-family-intro strong {
    color: var(--syrian-memorial);
}

.mtm-family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mtm-family-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: all 0.2s;
    border-right: 3px solid var(--syrian-memorial);
}

.mtm-family-card:hover {
    border-color: var(--gold-accent);
    border-right-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(74, 21, 30, 0.18);
}

.mtm-family-card__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--memorial-deep), var(--syrian-memorial));
    border: 2px solid var(--syrian-memorial);
}

.mtm-family-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.mtm-family-card__photo--default img {
    object-fit: contain;
    padding: 2px;
    filter: none;
}

.mtm-family-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mtm-family-card__info strong {
    color: var(--syrian-green);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.mtm-family-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.mtm-family-card__date svg {
    color: var(--syrian-action);
}

/* Responsive */
@media (max-width: 768px) {
    .martyr-modal { padding: 0.5rem; }
    .martyr-modal__dialog { max-height: 96vh; border-radius: 14px; }

    .mtm-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.25rem 1.25rem 1.5rem;
        gap: 0.85rem;
    }
    .mtm-photo-wrap {
        margin: 0 auto;
        width: 110px;
        height: 110px;
    }
    .mtm-photo-frame {
        box-shadow:
            0 0 0 2px rgba(38, 15, 20, 0.5),
            0 0 0 4px rgba(185, 167, 121, 0.4),
            0 8px 18px rgba(0, 0, 0, 0.4);
    }
    .mtm-name { font-size: 1.25rem; }
    .mtm-tagline { font-size: 0.72rem; letter-spacing: 2px; }
    .mtm-family { font-size: 0.85rem; }

    .mtm-tabs { padding: 0 0.4rem; }
    .mtm-tab {
        padding: 0.7rem 0.25rem;
        font-size: 0.78rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    .mtm-tab__count { font-size: 0.62rem; }

    .mtm-content { padding: 1rem; }

    .mtm-info-grid { grid-template-columns: 1fr; }
    .mtm-info-card { padding: 0.75rem 0.85rem; }
    .mtm-info-card__icon { width: 38px; height: 38px; }
    .mtm-info-card__icon svg { width: 18px !important; height: 18px !important; }
    .mtm-info-card__value { font-size: 0.88rem; }

    .mtm-story { padding: 1.25rem 1rem; font-size: 0.92rem; }

    .mtm-family-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MARTYR DETAILS PAGE — Comprehensive mobile polish
   ========================================================================== */

/* ≤968px — narrow tablet */
@media (max-width: 968px) {
    .memorial-section--related .grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* ≤768px — tablet portrait / large mobile */
@media (max-width: 768px) {
    /* Hero — reduce padding and tighten spacing */
    .memorial-hero {
        padding: 2rem 0 2.5rem;
    }

    /* Breadcrumbs wrap and shrink */
    .memorial-breadcrumbs {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 0.4rem;
        line-height: 1.5;
    }

    /* Photo — smaller, simpler shadow stack */
    .memorial-photo-wrap {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
    }
    .memorial-photo-frame {
        border-width: 3px;
        box-shadow:
            0 0 0 2px var(--surface),
            0 0 0 4px rgba(152, 133, 97, 0.4),
            0 12px 24px rgba(0, 0, 0, 0.4);
    }
    .memorial-photo-frame::before { display: none; }
    .memorial-photo-frame--default img { padding: 0.6rem; }

    /* Ribbon */
    .memorial-ribbon {
        top: -8px;
        font-size: 0.72rem;
        padding: 0.3rem 0.85rem;
        gap: 0.3rem;
    }

    /* Tagline */
    .memorial-tagline {
        font-size: 0.78rem;
        letter-spacing: 2px;
        margin-bottom: 0.4rem;
    }

    /* Name */
    .memorial-name {
        font-size: 1.5rem;
        line-height: 1.35;
        padding: 0 0.5rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.3px;
    }

    /* Family/nickname */
    .memorial-nickname {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    /* Dates — vertical layout */
    .memorial-dates {
        flex-direction: column;
        gap: 0.6rem;
        margin: 1.5rem auto 0.85rem;
        align-items: center;
    }
    .memorial-date {
        min-width: 0;
        gap: 0.15rem;
    }
    .memorial-date__label {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    .memorial-date__value {
        font-size: 0.92rem;
    }
    .memorial-dates__separator {
        transform: rotate(90deg);
        margin: 0;
    }
    .memorial-line {
        width: 24px;
    }

    .memorial-age {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    .memorial-age strong {
        font-size: 1rem;
    }

    /* Quranic verse — simplified ornament, no side decoration */
    .memorial-quran {
        margin: 2rem 0 0;
        padding: 1.25rem 1rem;
        max-width: none;
        border-radius: 12px;
    }
    .memorial-quran::before,
    .memorial-quran::after { display: none; }

    .memorial-quran__ornament {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .memorial-quran__ornament span {
        width: 32px;
    }
    .memorial-quran__ornament svg {
        width: 18px;
        height: 18px;
    }
    .memorial-quran__text {
        /* font-size handled by clamp() — verse stays on one line */
        line-height: 1.7;
        margin-bottom: 0.5rem;
    }
    .memorial-quran__source {
        font-size: 0.78rem;
        letter-spacing: 0.5px;
    }

    /* Sections padding */
    .memorial-section {
        padding: 2rem 0;
    }

    /* Section title — hide background line, simpler */
    .memorial-section-title {
        margin-bottom: 1.5rem;
    }
    .memorial-section-title::before {
        display: none;
    }
    .memorial-section-title span {
        font-size: 1.2rem;
        padding: 0 0.5rem;
        background: transparent;
    }
    .memorial-section-title span::before,
    .memorial-section-title span::after {
        font-size: 0.55rem;
        margin: 0 0.4rem;
    }

    /* Info cards — single column, compact */
    .memorial-info-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        max-width: 540px;
    }
    .memorial-info-card {
        padding: 0.85rem 1rem;
        gap: 0.85rem;
    }
    .memorial-info-card__icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .memorial-info-card__icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .memorial-info-card__body {
        min-width: 0;
    }
    .memorial-info-card__label {
        font-size: 0.72rem;
    }
    .memorial-info-card__value {
        font-size: 0.9rem;
        word-break: break-word;
    }

    /* Story — tighter padding, simpler decoration */
    .memorial-story {
        padding: 1.5rem 1.25rem;
        max-width: none;
    }
    .memorial-story::before,
    .memorial-story::after {
        width: 22px;
        height: 22px;
    }
    .memorial-story::before {
        top: 8px;
        right: 8px;
    }
    .memorial-story::after {
        bottom: 8px;
        left: 8px;
    }
    .memorial-story__decoration {
        margin-bottom: 1rem;
    }
    .memorial-story__decoration svg {
        width: 24px;
        height: 24px;
    }
    .memorial-story .rich-content {
        font-size: 0.92rem;
        line-height: 1.9;
    }

    /* Actions — vertical stack with max-width */
    .memorial-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        max-width: 320px;
        margin: 0 auto;
    }
    .memorial-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Related martyrs — 2 columns on mobile */
    .memorial-section--related .grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ≤540px — small mobile */
@media (max-width: 540px) {
    .memorial-hero {
        padding: 1.5rem 0 2rem;
    }

    .memorial-photo-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: 1.25rem;
    }

    .memorial-name {
        font-size: 1.35rem;
        padding: 0 0.25rem;
    }

    .memorial-tagline {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    .memorial-nickname {
        font-size: 0.88rem;
    }

    .memorial-quran {
        padding: 1.1rem 0.85rem;
    }
    .memorial-quran__text {
        /* font-size handled by clamp() — verse stays on one line */
        line-height: 1.7;
    }

    .memorial-info-card {
        padding: 0.75rem 0.85rem;
        gap: 0.7rem;
    }
    .memorial-info-card__icon {
        width: 34px;
        height: 34px;
    }
    .memorial-info-card__icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    .memorial-info-card__value {
        font-size: 0.85rem;
    }

    .memorial-story {
        padding: 1.25rem 1rem;
    }
    .memorial-story .rich-content {
        font-size: 0.88rem;
    }

    .memorial-section-title span {
        font-size: 1.05rem;
    }

    .memorial-section {
        padding: 1.75rem 0;
    }

    /* Related — single column */
    .memorial-section--related .grid.grid-4 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ≤380px — extra small */
@media (max-width: 380px) {
    .memorial-photo-wrap {
        width: 120px;
        height: 120px;
    }
    .memorial-name {
        font-size: 1.2rem;
    }
    /* memorial-quran__text font-size handled by clamp() — verse stays on one line */
    .memorial-info-card__value {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   FOOTER CONTACT — Icons always beside text (all screens)
   ========================================================================== */
.footer-list--contact li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.footer-list--contact li svg {
    color: var(--gold-accent);
    flex-shrink: 0;
}

.footer-list--contact li span {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

/* ==========================================================================
   HOMEPAGE MOSQUE CARDS — Adjustments
   ========================================================================== */
.mosque-card-v2__desc-short {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.mosque-card-v2__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--syrian-action);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    transition: all 0.2s;
}

.mosque-card-v2__link:hover {
    color: var(--syrian-memorial);
    gap: 0.6rem;
}

.mosque-card-v2__link svg {
    transition: transform 0.2s;
}

.mosque-card-v2__link:hover svg {
    transform: translateX(-3px);
}

/* ==========================================================================
   IMPROVED STATS ON MOBILE — 2x2 Cards
   ========================================================================== */
@media (max-width: 768px) {
    .stats {
        padding: 2.5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem;
    }

    .stat-item {
        background: rgba(0, 0, 0, 0.22);
        border: 1px solid rgba(212, 192, 138, 0.18);
        border-right: none !important;
        border-radius: var(--radius-sm);
        padding: 1.25rem 0.75rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .stat-number {
        font-size: 1.8rem;
        line-height: 1;
        margin-bottom: 0.4rem;
    }

    .stat-label {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 1rem 0.5rem;
    }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.72rem; }
}

/* ==========================================================================
   IMPROVED QUICK LINKS ON MOBILE — Horizontal list with arrow
   ========================================================================== */
@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }

    .quick-link {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0.85rem 1rem;
        gap: 0.85rem;
        text-align: right;
        position: relative;
        background: var(--surface);
        border: 1px solid var(--border);
    }

    .quick-link-icon {
        margin: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        font-size: 0;
    }

    .quick-link-text {
        flex: 1;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .quick-link::after {
        content: '';
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        opacity: 0.4;
        transition: all 0.2s;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002623' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .quick-link:hover::after {
        opacity: 1;
        transform: translateX(-4px);
    }

    .quick-link:hover {
        background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%) !important;
        color: white;
    }

    .quick-link:hover::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4c08a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
    }
}

/* ==========================================================================
   HOMEPAGE — Hide 4th martyr on small screens (show last 3)
   ========================================================================== */
@media (max-width: 768px) {
    .home-martyrs-grid > :nth-child(n+4) {
        display: none;
    }
}

/* ==========================================================================
   TOPBAR — Hide on small screens
   ========================================================================== */
@media (max-width: 540px) {
    .topbar {
        display: none;
    }
}

/* ==========================================================================
   FOOTER — Always icon + text horizontal
   ========================================================================== */
.footer-list--contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   PROFESSIONAL FOOTER ON MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.25rem;
        margin-top: 2.5rem;
    }

    /* About section: full-width, smaller and centered */
    .footer-grid {
        gap: 1.5rem 1.25rem;
    }

    .footer-about p {
        font-size: 0.88rem;
        line-height: 1.7;
        margin: 0;
    }

    .footer h4 {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
        position: relative;
        padding-bottom: 0.4rem;
    }

    .footer h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 32px;
        height: 2px;
        background: var(--gold-accent);
        opacity: 0.7;
    }

    .footer-list a {
        font-size: 0.88rem;
        padding: 0.25rem 0;
    }
}

/* Small mobile: 2-column compact layout for link sections */
@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
    }

    /* About + Contact span full width; the 2 link sections share 2 cols */
    .footer-grid > .footer-about,
    .footer-grid > :last-child {
        grid-column: 1 / -1;
    }

    .footer-about p:first-child {
        font-size: 0.85rem;
    }

    .footer-about p:nth-child(2) {
        margin-top: 0.75rem !important;
        font-size: 0.85rem;
    }

    .footer h4 {
        font-size: 0.92rem;
        color: var(--gold-light);
    }

    .footer-list a {
        font-size: 0.83rem;
        padding: 0.2rem 0;
    }

    .footer-list--contact li {
        font-size: 0.85rem;
        gap: 0.5rem;
        padding: 0.4rem 0.65rem;
        background: rgba(0, 0, 0, 0.18);
        border-radius: var(--radius-sm);
        margin-bottom: 0.4rem;
        border: 1px solid rgba(212, 192, 138, 0.12);
    }

    .footer-list--contact li svg {
        color: var(--gold-accent);
    }

    .footer-bottom {
        font-size: 0.75rem;
        line-height: 1.7;
        padding-top: 1.25rem;
    }

    /* Add subtle horizontal divider above contact section */
    .footer-grid > :last-child {
        position: relative;
        padding-top: 1.25rem;
        margin-top: 0.5rem;
    }

    .footer-grid > :last-child::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 192, 138, 0.3), transparent);
    }
}

@media (max-width: 380px) {
    .footer-list--contact li {
        font-size: 0.8rem;
        padding: 0.35rem 0.55rem;
    }
}

/* ==========================================================================
   ENSURE ICONS NEVER WRAP AWAY FROM THEIR TEXT (general rule)
   ========================================================================== */
.section-title h2 svg,
.mosque-events__title svg,
.brand svg,
.btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   PAGINATION — clean, accessible, responsive
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem auto 0;
    padding: 1rem;
    font-family: var(--font-arabic);
}

/* Prev / Next buttons */
.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 0.625rem;
    color: var(--syrian-green);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 38, 35, 0.04);
    user-select: none;
}

.pagination__btn:hover:not(.is-disabled) {
    background: var(--syrian-green);
    border-color: var(--syrian-green);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 38, 35, 0.15);
}

.pagination__btn:hover:not(.is-disabled) svg {
    transform: scale(1.1);
}

.pagination__btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pagination__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--muted-foreground);
}

/* Page numbers list */
.pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.55rem;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 0.55rem;
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.pagination__page:hover:not(.is-current) {
    border-color: var(--syrian-action);
    color: var(--syrian-green);
    background: rgba(66, 129, 119, 0.06);
    transform: translateY(-1px);
}

.pagination__page.is-current {
    background: linear-gradient(135deg, var(--syrian-green) 0%, var(--syrian-teal) 100%);
    border-color: var(--syrian-green);
    color: #ffffff;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 38, 35, 0.25);
    position: relative;
}

.pagination__page.is-current::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(212, 175, 55, 0.45);
    pointer-events: none;
}

.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2.5rem;
    color: var(--muted-foreground);
    font-weight: 600;
    letter-spacing: 0.1em;
    user-select: none;
}

/* Mobile compact info — hidden on desktop */
.pagination__info {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.pagination__info strong {
    color: var(--syrian-green);
    font-weight: 700;
}


/* ==========================================================================
   PAGINATION — RESPONSIVE
   ========================================================================== */

/* Tablet: keep numbers but slightly tighter */
@media (max-width: 768px) {
    .pagination {
        gap: 0.4rem;
        margin-top: 2.25rem;
        padding: 0.75rem 0.5rem;
    }

    .pagination__btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }

    .pagination__page {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }

    .pagination__ellipsis {
        min-width: 1.5rem;
        height: 2.25rem;
    }
}

/* Small mobile: hide button text, show only icon arrows; reveal compact info */
@media (max-width: 540px) {
    .pagination {
        gap: 0.35rem;
        justify-content: space-between;
    }

    .pagination__btn-text {
        display: none;
    }

    .pagination__btn {
        padding: 0.55rem 0.7rem;
        min-width: 2.5rem;
        justify-content: center;
    }

    .pagination__pages {
        gap: 0.25rem;
        flex: 1;
        justify-content: center;
    }

    .pagination__info {
        display: block;
        order: 10;
    }
}

/* Tiny phones: hide page numbers entirely, show only nav buttons + info */
@media (max-width: 380px) {
    .pagination__pages {
        display: none;
    }

    .pagination {
        justify-content: space-between;
    }

    .pagination__btn-text {
        display: inline;
    }

    .pagination__btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }

    .pagination__info {
        font-size: 0.8rem;
    }
}
