/* ==========================================================================
   AL-FAJR ISLAMIC MAGAZINE - MASTER RESPONSIVE STYLESHEET
   Theme: Premium Islamic Editorial
   Palette: Deep Islamic Green (#622E1B), Emerald Green (#833F25), Dark Green/Navy (#421D10),
            Antique Gold (#C89B3C), Light Gold (#E3BE68), Parchment Cream (#F5EEDB),
            Warm Ivory (#FFFDF7), Soft Green Tint (#F8EFEA), Text (#17211D/#59655F)
   Supports: Desktop (1440px), Laptop (1366px), Tablet (768px-1024px), Mobile (360px-414px)
   ========================================================================== */

/* ==========================================================================
   OFFICIAL LOCAL ARABIC & URDU FONTS (@font-face DEFINITIONS)
   ========================================================================== */

/* 1. URDU NASTALEEQ FONT */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('Fonts/Jameel Noori Nastaleeq Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. ARABIC FONTS */
/* A. Tajawal (Clean Modern UI, Buttons, Navigation, Metadata) */
@font-face {
    font-family: 'Tajawal';
    src: url('Fonts/Tajawal/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('Fonts/Tajawal/Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('Fonts/Tajawal/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('Fonts/Tajawal/Tajawal-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* B. Almarai (Corporate Editorial, Subtitles, Card Titles) */
@font-face {
    font-family: 'Almarai';
    src: url('Fonts/Almarai/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Almarai';
    src: url('Fonts/Almarai/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Almarai';
    src: url('Fonts/Almarai/Almarai-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* C. El Messiri (Artistic Calligraphic, Quranic Verses, Main Headers, Bismillah) */
@font-face {
    font-family: 'El Messiri';
    src: url('Fonts/El_Messiri/ElMessiri-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* D. Beiruti (Rich Traditional Body & Magazine Article Text) */
@font-face {
    font-family: 'Beiruti';
    src: url('Fonts/Beiruti/Beiruti-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* E. Cairo Play (Crisp Graphic Titles, Badges, Section Headings) */
@font-face {
    font-family: 'Cairo Play';
    src: url('Fonts/Cairo_Play/CairoPlay-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ==========================================================================
       OFFICIAL AGENCY DESIGN SYSTEM TOKENS
       ========================================================================== */
    /* Color Palette */
    --clr-primary: #622E1B;         /* Primary Royal Logo Maroon */
    --clr-primary-light: #833F25;   /* Secondary Warm Terracotta / Emerald */
    --clr-primary-dark: #421D10;    /* Dark Maroon / Ink */
    --clr-accent: #833F25;          /* Warm Terracotta Accent */
    --clr-accent-gold: #C89B3C;     /* Antique Gold */
    --clr-gold-light: #E3BE68;      /* Light Shimmer Gold */
    --clr-gold-dark: #8C6514;       /* High-Contrast Gold (WCAG AA 4.8:1 on light backgrounds) */
    --clr-accent-dark: #A37926;     /* Deep Gold / Bronze */
    
    /* Backgrounds & Surfaces */
    --clr-bg-main: #FFFDF7;         /* Warm Ivory */
    --clr-surface: #FFFFFF;         /* Pure White (Cards & Containers) */
    --clr-surface-alt: #F5EEDB;     /* Parchment Cream */
    --clr-surface-green: #F8EFEA;   /* Soft Warm Tint */
    --clr-surface-maroon: #F8EFEA;  /* Soft Warm Tint Surface */
    
    /* Typography Colors */
    --clr-text-main: #17211D;       /* Primary Deep Ink Charcoal */
    --clr-text-muted: #59655F;      /* Secondary Slate Text (WCAG AA 4.6:1 on Ivory) */
    --clr-text-on-dark: #FFFDF7;    /* Warm Ivory for Dark Backgrounds */
    --clr-border: #F8EFEA;          /* Soft Tint Border */
    --clr-border-muted: #E2DDD0;    /* Muted Parchment Border */
    --clr-border-gold: #C89B3C;     /* Antique Gold Accent Border */
    --clr-border-gold-light: #E3BE68; /* Light Gold Accent Border */

    /* 4px/8px Based Consistent Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Consistent Border Radius Scale */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --radius-mihrab: 28px 28px 12px 12px;

    /* Elevated Shadow System */
    --shadow-sm: 0 2px 6px rgba(66, 29, 16, 0.05);
    --shadow-md: 0 6px 20px rgba(66, 29, 16, 0.08);
    --shadow-lg: 0 12px 32px rgba(66, 29, 16, 0.12);
    --shadow-xl: 0 20px 45px rgba(66, 29, 16, 0.18);
    --shadow-gold: 0 8px 24px rgba(200, 155, 60, 0.22);
    --shadow-soft: 0 6px 24px rgba(98, 46, 27, 0.05);
    --shadow-hover: 0 12px 32px rgba(98, 46, 27, 0.12);
    --shadow-3d: 0 16px 40px rgba(66, 29, 16, 0.25), 0 4px 15px rgba(200, 155, 60, 0.15);

    /* Fluid Typography Scale using clamp() */
    --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
    --text-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
    --text-base: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
    --text-lg: clamp(1.1rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.8vw, 2rem);
    --text-3xl: clamp(1.8rem, 1.55rem + 1.2vw, 2.5rem);
    --text-hero: clamp(2.2rem, 1.8rem + 2vw, 3.6rem);

    /* Standardized 2-Font Editorial Hierarchy + Urdu */
    --font-editorial: 'Amiri', serif;
    --font-ui: 'Tajawal', sans-serif;
    --font-nastaliq: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    --font-heading: 'Amiri', 'El Messiri', serif;
    --font-title: 'Amiri', serif;
    --font-subtitle: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --font-quran: 'Amiri', serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Legacy Token Aliases for 100% Backward Compatibility */
    --primary-blue: #622E1B;
    --dark-blue: #421D10;
    --primary-maroon: #622E1B;
    --dark-maroon: #421D10;
    --primary-orange: #C89B3C;
    --gold: #C89B3C;
    --soft-gold: #E3BE68;
    --ivory: #FFFDF7;
    --cream: #F5EEDB;
    --white: #FFFFFF;
    --text: #17211D;
    --muted-text: #59655F;
    --border: #F8EFEA;
    --success: #833F25;
    --error: #8F2D2D;
    --primary-green: #622E1B;
    --primary-green-dark: #421D10;
    --primary-green-light: #833F25;
    --secondary-gold: #C89B3C;
    --secondary-gold-light: #E3BE68;
    --secondary-gold-dark: #A37926;
    --gold-gradient: linear-gradient(135deg, #FFFDF7 0%, #E3BE68 50%, #C89B3C 100%);
    --amber-gold: #C89B3C;
    --amber-gold-light: #E3BE68;
    --amber-gold-dark: #A37926;
    --amber-gradient: linear-gradient(135deg, #FFFDF7 0%, #E3BE68 50%, #C89B3C 100%);

    --bg-dark-base: #622E1B;
    --bg-dark-gradient: linear-gradient(180deg, #622E1B 0%, #421D10 100%);
    
    --glass-bg: rgba(255, 253, 247, 0.96);
    --glass-bg-hover: rgba(245, 238, 219, 0.98);
    --glass-bg-card: #FFFFFF;
    --glass-bg-card-dark: #622E1B;
    --glass-blur: blur(16px);
    --glass-border: 1px solid #F8EFEA;
    --glass-border-light: 1px solid #F8EFEA;
    --glass-shadow: 0 8px 30px rgba(98, 46, 27, 0.06);
    --glass-shadow-hover: 0 15px 35px rgba(200, 155, 60, 0.18);

    --bg-cream: #F5EEDB;
    --bg-cream-dark: #F8EFEA;
    --bg-card: #FFFFFF;
    --text-dark: #17211D;
    --text-light: #FFFDF7;
    --border-gold: #C89B3C;
    --border-light: #F8EFEA;
}

/* BASE & RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-main);
    background-image: 
        radial-gradient(rgba(200, 155, 60, 0.08) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23C89B3C' fill-opacity='0.04'%3E%3Cpath d='M30 0l15 15-15 15L15 15zM0 30l15 15-15 15L-15 45zM60 30l15 15-15 15-15-15zM30 60l15 15-15 15L15 75z'/%3E%3Cpath d='M30 10l10 10-10 10-10-10zM10 30l10 10-10 10-10-10zM50 30l10 10-10 10-10-10zM30 50l10 10-10 10-10-10z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-attachment: fixed;
    color: var(--clr-text-main);
    direction: rtl;
    text-align: start;
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

*:focus-visible {
    outline: 2px solid var(--clr-accent-gold);
    outline-offset: 2px;
}

/* 3D CANVAS & SOFT LIGHTING OVERLAYS */
#islamic-canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.ambient-light-spot {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
    animation: pulseLight 12s ease-in-out infinite alternate;
}
.spot-1 {
    width: 550px;
    height: 550px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(227, 190, 104, 0.16) 0%, rgba(255, 253, 247, 0) 70%);
}
.spot-2 {
    width: 650px;
    height: 650px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(131, 63, 37,  0.10) 0%, rgba(255, 253, 247, 0) 70%);
    animation-delay: -6s;
}
.spot-3 {
    width: 450px;
    height: 450px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(200, 155, 60, 0.08) 0%, rgba(255, 253, 247, 0) 70%);
}
@keyframes pulseLight {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.75; }
    100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.55; }
}

/* FLOATING ANIMATIONS & SHIMMER */
@keyframes floatLevitate {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes goldenShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.floating-element { animation: floatLevitate 6s ease-in-out infinite; }
.gold-text-shimmer {
    background: linear-gradient(90deg, #C89B3C 0%, #FFFDF7 50%, #C89B3C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldenShimmer 5s linear infinite;
}

/* LTR Support for English */
html[dir="ltr"] body { direction: ltr; text-align: start; }
html[dir="ltr"] .star-bullet,
html[dir="ltr"] .fa-chevron-left { transform: rotate(180deg); }

/* ENGLISH TYPOGRAPHY FOR LTR */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
html[lang="en"] p,
html[lang="en"] a,
html[lang="en"] span,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] .nav-link,
html[lang="en"] .drawer-menu-link,
html[lang="en"] .card-title,
html[lang="en"] .card-excerpt {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
html[lang="en"] h1,
html[lang="en"] .single-article-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* URDU NASTALIQ TYPOGRAPHY OVERRIDE */
html[lang="ur"],
html[lang="ur"] body,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] h6,
html[lang="ur"] p,
html[lang="ur"] a,
html[lang="ur"] span,
html[lang="ur"] button,
html[lang="ur"] input,
html[lang="ur"] select,
html[lang="ur"] textarea,
html[lang="ur"] .nav-link,
html[lang="ur"] .drawer-menu-link,
html[lang="ur"] .hero-title,
html[lang="ur"] .hero-description,
html[lang="ur"] .card-title,
html[lang="ur"] .card-excerpt,
html[lang="ur"] .about-main-title,
html[lang="ur"] .archive-main-title,
html[lang="ur"] .form-title,
html[lang="ur"] .editor-name,
html[lang="ur"] .editor-quote,
html[lang="ur"] .pillar-title,
html[lang="ur"] .pillar-desc {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
    line-height: 2.3 !important;
}

html[lang="ur"] .hero-title,
html[lang="ur"] .main-issue-title,
html[lang="ur"] .about-main-title,
html[lang="ur"] .archive-main-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
    line-height: 2.1 !important;
    padding-bottom: 8px;
}

/* CONTEXTUAL ARABIC TYPOGRAPHY MAPPINGS ("MOQA MUNASIBAT SE") */

/* 1. Main Titles & Banner Headings: El Messiri / Cairo Play */
h1, .hero-title, .about-main-title, .archive-main-title, .single-article-title {
    font-family: 'El Messiri', 'Cairo Play', 'Beiruti', serif;
    font-weight: 800;
}

/* 2. Section Titles & Subheadings: El Messiri / Beiruti */
h2, h3, .section-title, .main-issue-title, .form-title {
    font-family: 'El Messiri', 'Beiruti', 'Cairo Play', serif;
    font-weight: 700;
}

/* 3. Subtitles, Category Badges & Card Titles: Almarai / Tajawal */
h4, h5, h6, .single-article-subtitle, .card-title, .category-badge-lg, .category-badge, .peex-card-header h4, .peex-brand-title {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-weight: 700;
}

/* 4. Quranic Verses, Bismillah & Sacred Callouts: El Messiri */
.bismillah, .hero-quran-verse, .quran-text, .quranic-callout-box .quran-text, .hero-quran-translation {
    font-family: 'El Messiri', 'Amiri', serif;
    font-weight: 700;
}

/* 5. UI Elements, Buttons, Navigation & Search Controls: Tajawal / Almarai */
.btn, .nav-link, .drawer-menu-link, input, select, textarea, .top-header, .lang-selector, .search-box input, .nav-cta-btn, .peex-search-box input {
    font-family: 'Tajawal', 'Almarai', sans-serif;
}

/* 6. Body Text & Article Content: Beiruti / Tajawal / Almarai */
body, .article-content-container, .article-text-content, p, .hero-description, .card-excerpt, .editor-quote {
    font-family: 'Beiruti', 'Tajawal', 'Almarai', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

a { color: var(--primary-green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-gold-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { outline: none; }

/* PROFESSIONAL 1280px GRID & CONTAINER SYSTEM */
.container {
    width: 100%;
    max-width: 1280px;
    padding-inline: clamp(16px, 2.5vw, 32px);
    margin-inline: auto;
}

@media (max-width: 767px) {
    .container {
        padding-inline: clamp(14px, 3vw, 20px);
    }
}

.section-padding { padding-block: clamp(36px, 6vw, 80px); }
.margin-top-xs { margin-top: 10px; }
.margin-top-sm { margin-top: 20px; }
.margin-top-md { margin-top: 35px; }
.margin-top-lg { margin-top: 60px; }
.margin-bottom-md { margin-bottom: 30px; }
.text-center { text-align: center; }

.star-icon { color: var(--secondary-gold); font-size: 0.9em; margin-inline: 4px; }

/* BUTTONS WITH GLASSMORPHISM & GOLD SHEEN */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    min-height: 46px;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(200, 155, 60, 0.35);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.btn-primary { 
    background: linear-gradient(135deg, #833F25 0%, #622E1B 100%); 
    color: #FFFFFF; 
    border-color: #C89B3C; 
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #622E1B 0%, #421D10 100%); 
    box-shadow: 0 10px 30px rgba(98, 46, 27,  0.4), 0 0 15px rgba(200, 155, 60, 0.25); 
    transform: translateY(-3px); 
    color: #E3BE68;
}
.btn-gold { 
    background: var(--gold-gradient); 
    color: #421D10; 
    border-color: #E3BE68; 
    font-weight: 800;
}
.btn-gold:hover { 
    background: linear-gradient(135deg, #FFFDF7 0%, #E3BE68 70%, #C89B3C 100%); 
    color: #622E1B; 
    box-shadow: 0 10px 30px rgba(200, 155, 60, 0.35); 
    transform: translateY(-3px); 
}
.btn-outline { 
    background: transparent; 
    color: #622E1B; 
    border-color: #C89B3C; 
}
.btn-outline:hover { 
    background: #622E1B; 
    color: #FFFDF7; 
    border-color: #622E1B;
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 0.88rem; border-radius: 6px; }

/* ================= HEADER & STICKY NAVBAR ================= */
.top-header {
    background: var(--clr-primary-dark);
    color: var(--clr-text-on-dark);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    padding-block: 8px;
    border-bottom: 1px solid rgba(200, 155, 60, 0.3);
    position: relative;
    z-index: 1001;
    min-height: 40px;
}
.top-header-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-date-display { display: flex; align-items: center; gap: 8px; color: var(--clr-text-on-dark); font-weight: 500; }
.top-date-display i { color: var(--clr-accent-gold); }
.date-separator { color: var(--clr-accent-gold); margin-inline: 6px; opacity: 0.7; }
.top-social-bar { display: flex; align-items: center; gap: 14px; }
.top-social-bar a { color: var(--clr-text-on-dark); font-size: 0.95rem; opacity: 0.85; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; transition: var(--transition); border-radius: 50%; }
.top-social-bar a:hover { color: var(--clr-accent-gold); opacity: 1; transform: scale(1.15); background: rgba(255,255,255,0.1); }

/* Language Selector Dropdown */
.lang-selector { 
    position: relative; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid var(--clr-accent-gold); 
    padding: 4px 12px; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: var(--transition);
}
.lang-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}
.lang-selector select { 
    background: transparent; 
    border: none; 
    color: var(--clr-text-on-dark); 
    font-family: var(--font-ui); 
    font-size: 0.85rem; 
    font-weight: 700; 
    cursor: pointer; 
}
.lang-selector select option { background-color: var(--clr-primary-dark); color: var(--clr-text-on-dark); }

/* Main Sticky Navbar */
.main-navbar {
    background: var(--clr-bg-main);
    box-shadow: 0 4px 20px rgba(98, 46, 27,  0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
}
.navbar-content { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    padding-block: 10px; 
    gap: clamp(12px, 1.5vw, 24px); 
}

.brand-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    flex-shrink: 0;
    margin-inline-end: 8px;
}
.logo-image-img {
    height: clamp(44px, 3.8vw, 56px);
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.brand-logo:hover .logo-image-img { transform: scale(1.03); }

.nav-menu { 
    display: flex; 
    align-items: center; 
    list-style: none; 
    gap: clamp(4px, 0.8vw, 14px); 
    margin-inline-end: auto;
    flex-wrap: nowrap;
}
.nav-link {
    font-family: var(--font-ui);
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    font-weight: 700;
    color: var(--clr-text-main);
    padding: 8px clamp(6px, 0.8vw, 12px);
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    inset-inline-start: 50%;
    width: 0;
    height: 3px;
    background: var(--clr-accent-gold);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(50%);
}
html[dir="ltr"] .nav-link::after { transform: translateX(-50%); }
.nav-link:hover, .nav-link.active { color: var(--clr-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 75%; }

/* ==========================================================================
   NAVBAR DROPDOWN SYSTEM (News, Columns & Media)
   ========================================================================== */
.nav-has-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}
.nav-dropdown-label {
    display: inline-block;
    line-height: 1.4;
}
.nav-dropdown-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.65rem !important;
    color: var(--clr-accent-gold) !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
    line-height: 1 !important;
    margin: 0 !important;
    margin-inline-start: 2px !important;
    flex-shrink: 0;
    align-self: center !important;
}
.nav-has-dropdown:hover .nav-dropdown-arrow,
.nav-has-dropdown:focus-within .nav-dropdown-arrow,
.nav-has-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg) !important;
    color: var(--clr-gold-light) !important;
}
.nav-dropdown-toggle::after {
    bottom: 0px !important;
}

.nav-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 300px;
    max-width: min(340px, 92vw);
    background: #FFFDF7;
    border: 1.5px solid var(--clr-accent-gold);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 14px 40px rgba(66, 29, 16,  0.16);
    list-style: none !important;
    list-style-type: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1050;
    margin: 0;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}
html[dir="ltr"] .nav-dropdown-menu {
    direction: ltr;
    text-align: left;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 10px;
    background: transparent;
}
.nav-has-dropdown:hover > .nav-dropdown-menu,
.nav-has-dropdown:focus-within > .nav-dropdown-menu,
.nav-has-dropdown.open > .nav-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.nav-dropdown-li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-dropdown-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
    direction: rtl !important;
    text-align: right !important;
}
html[dir="ltr"] .nav-dropdown-item {
    direction: ltr !important;
    text-align: left !important;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: #F8EFEA !important;
    transform: translateX(-3px) !important;
}
html[dir="ltr"] .nav-dropdown-item:hover,
html[dir="ltr"] .nav-dropdown-item.active {
    transform: translateX(3px) !important;
}

/* Icon: aligned directly on the right side for RTL, cleanly vertically centered */
.dropdown-item-icon {
    font-size: 1.15rem !important;
    color: var(--clr-accent-gold) !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
.nav-dropdown-item:hover .dropdown-item-icon,
.nav-dropdown-item.active .dropdown-item-icon {
    color: var(--clr-primary) !important;
    transform: scale(1.1) !important;
}

/* Text Container: Title & Desc */
.dropdown-item-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: right !important;
    direction: rtl !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
html[dir="ltr"] .dropdown-item-text {
    text-align: left !important;
    direction: ltr !important;
}
.dropdown-item-title {
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--clr-primary) !important;
    line-height: 1.35 !important;
    margin: 0 0 3px 0 !important;
    display: block !important;
    white-space: normal !important;
    word-break: normal !important;
}
.dropdown-item-desc {
    font-size: 0.77rem !important;
    color: var(--clr-text-muted) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-family: var(--font-ui) !important;
    display: block !important;
    white-space: normal !important;
    word-break: normal !important;
}
.dropdown-divider {
    height: 1px !important;
    background: rgba(200, 155, 60, 0.2) !important;
    margin: 5px 8px !important;
    list-style: none !important;
}

/* Mobile Drawer Submenu */
.drawer-submenu-list {
    list-style: none;
    padding-inline-start: 22px;
    padding-top: 4px;
    padding-bottom: 6px;
}
.drawer-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.92rem;
    color: #FFFDF7;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
}
.drawer-submenu-link:hover,
.drawer-submenu-link.active {
    background: rgba(200, 155, 60, 0.15);
    color: var(--clr-gold-light);
}

.nav-cta-btn {
    background: var(--clr-primary);
    color: #FFFFFF !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 15px rgba(98, 46, 27,  0.2);
    transition: var(--transition);
    border: 1px solid var(--clr-accent-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.nav-cta-btn:hover { 
    background: var(--clr-primary-light); 
    color: var(--clr-gold-light) !important; 
    box-shadow: 0 6px 20px rgba(98, 46, 27,  0.35);
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--clr-surface-alt);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    overflow: hidden;
    width: clamp(150px, 14vw, 210px);
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--clr-accent-gold);
    box-shadow: 0 0 15px rgba(200, 155, 60, 0.25);
    width: clamp(180px, 17vw, 240px);
}
.search-box input { border: none; background: transparent; padding: 8px 14px; width: 100%; font-size: 0.9rem; color: var(--clr-text-main); }
.search-btn { background: var(--clr-primary); color: #FFFFFF; border: none; padding: 8px 14px; min-width: 40px; min-height: 40px; cursor: pointer; transition: var(--transition); }
.search-btn:hover { background: var(--clr-accent); color: var(--clr-gold-light); }

/* Mobile Header Controls */
.mobile-header-bar { display: none; }
.mobile-toggle, .mobile-search-trigger {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FULL HEIGHT MOBILE NAVIGATION DRAWER */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(88vw, 320px);
    max-width: 100vw;
    background: #622E1B !important;
    backdrop-filter: blur(24px);
    z-index: 2600;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.9);
    border-inline-end: 2px solid #C89B3C;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RTL Drawer Slide */
html[dir="rtl"] .mobile-drawer { right: 0; left: auto; transform: translateX(100%); }
html[dir="rtl"] .mobile-drawer.active { transform: translateX(0); }

/* LTR Drawer Slide */
html[dir="ltr"] .mobile-drawer { left: 0; right: auto; transform: translateX(-100%); }
html[dir="ltr"] .mobile-drawer.active { transform: translateX(0); }

.drawer-header {
    background: linear-gradient(135deg, #622E1B 0%, #421D10 100%) !important;
    color: #FFFDF7 !important;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #C89B3C !important;
}
.drawer-title-box { display: flex; align-items: center; gap: 10px; }
.drawer-title-box img { height: 40px; width: auto; object-fit: contain; }
.drawer-title-text { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: #E3BE68 !important; }
.drawer-close-btn { background: none; border: none; color: #FFFDF7 !important; font-size: 1.8rem; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.drawer-close-btn:hover { color: #C89B3C !important; transform: scale(1.1); }

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #622E1B !important;
}
.drawer-menu-item {
    border-bottom: 1px solid rgba(200, 155, 60, 0.15) !important;
    background: transparent !important;
}
.drawer-menu-link,
.drawer-menu-link span,
.mobile-drawer a.drawer-menu-link,
.mobile-drawer a.drawer-menu-link span {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 22px !important;
    font-family: var(--font-ui) !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    color: #FFFDF7 !important;
    opacity: 1 !important;
    transition: var(--transition) !important;
    min-height: 50px !important;
    text-decoration: none !important;
}
.drawer-menu-link i,
.mobile-drawer a.drawer-menu-link i {
    color: #C89B3C !important;
    width: 24px !important;
    text-align: center !important;
    font-size: 1.2rem !important;
}
.drawer-menu-link:hover,
.drawer-menu-link:hover span,
.drawer-menu-link.active,
.drawer-menu-link.active span,
.mobile-drawer a.drawer-menu-link:hover,
.mobile-drawer a.drawer-menu-link:hover span,
.mobile-drawer a.drawer-menu-link.active,
.mobile-drawer a.drawer-menu-link.active span {
    background: linear-gradient(135deg, #833F25 0%, #622E1B 100%) !important;
    color: #E3BE68 !important;
    padding-inline-start: 26px !important;
}
.drawer-menu-link.active i,
.drawer-menu-link:hover i,
.mobile-drawer a.drawer-menu-link.active i,
.mobile-drawer a.drawer-menu-link:hover i {
    color: #E3BE68 !important;
}

.drawer-footer {
    margin-top: auto;
    padding: 20px;
    background: #421D10 !important;
    border-top: 1px solid rgba(200, 155, 60, 0.2) !important;
    text-align: center;
}
.drawer-footer p {
    color: #E3BE68 !important;
}

/* PAGE VIEWS */
.page-view { display: none; animation: fadeIn 0.4s ease-in-out forwards; }
.page-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ================= FULL-WIDTH ISLAMIC EDITORIAL HERO SLIDER ================= */
/* ================= FULL-WIDTH ISLAMIC EDITORIAL HERO SLIDER & HEADERS ================= */
.hero-banner {
    position: relative;
    background: 
        radial-gradient(ellipse at center, rgba(200, 155, 60, 0.12) 0%, rgba(98, 46, 27,  0.88) 75%, rgba(66, 29, 16,  0.98) 100%),
        linear-gradient(180deg, rgba(98, 46, 27,  0.85) 0%, rgba(66, 29, 16,  0.95) 100%),
        url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    border-bottom: 4px solid #C89B3C;
    min-height: clamp(520px, 60vh, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.7);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23C89B3C' fill-opacity='0.12'%3E%3Cpath d='M40 0l10 10 10-10 10 10v20L60 40l10 10v20L60 80l-10-10-10 10-10-10-10 10H0V60l10-10L0 40V20l10-10L0 0h40z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(rgba(200, 155, 60, 0.2) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 32px 32px;
    opacity: 0.85;
    pointer-events: none;
}

/* Inner Page Hero Headers with Islamic Wallpaper */
.about-hero-header, .archive-hero-header, .admin-hero-header {
    position: relative;
    background: 
        linear-gradient(180deg, rgba(98, 46, 27,  0.90) 0%, rgba(66, 29, 16,  0.97) 100%),
        url('https://images.unsplash.com/photo-1584286595398-a59f21d313f5?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: clamp(45px, 6vw, 75px) 20px;
    border-bottom: 3px solid #C89B3C;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
    overflow: hidden;
}
.about-hero-header::before, .archive-hero-header::before, .admin-hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23C89B3C' fill-opacity='0.1'%3E%3Cpath d='M30 0l15 15-15 15L15 15zM0 30l15 15-15 15L-15 45zM60 30l15 15-15 15-15-15zM30 60l15 15-15 15L15 75z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.about-header-content, .archive-header-content { position: relative; z-index: 2; text-align: center; }
.about-main-title, .archive-main-title { font-family: 'Amiri', serif; font-size: clamp(2rem, 4vw, 3.2rem); color: #FFFFFF; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.about-sub-title { font-family: var(--font-ui); font-size: 1.3rem; color: #E3BE68; margin-top: 4px; }
.about-org-tag { font-family: var(--font-ui); font-size: 1rem; color: #FFFDF7; margin-top: 6px; opacity: 0.9; }
.hero-content { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 40px; position: relative; z-index: 2; width: 100%; }

.bismillah-calligraphy-banner {
    font-family: var(--font-quran), 'Amiri', serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #FFFDF7;
    text-shadow: 0 0 20px rgba(200, 155, 60, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.issue-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    background: #833F25;
    border: 1px solid #C89B3C;
    padding: 6px 22px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(131, 63, 37,  0.35);
}
.hero-quran-verse { 
    font-family: 'Amiri', 'Cairo', serif;
    font-size: clamp(3.2rem, 6.5vw, 5.2rem); 
    font-weight: 800; 
    line-height: 1.25;
    margin-bottom: 14px;
    color: #FFFFFF;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 35px rgba(200, 155, 60, 0.4);
    letter-spacing: 1px;
}
.hero-quran-translation {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 600;
    color: #E3BE68;
    margin-bottom: 24px;
    display: block;
}
.hero-description { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #F5EEDB; max-width: 620px; margin-bottom: 32px; line-height: 1.9; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-magazine-side { display: flex; justify-content: center; position: relative; }
.magazine-3d-wrapper {
    position: relative;
    width: clamp(220px, 30vw, 290px);
    aspect-ratio: 10 / 13;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}
.magazine-3d-wrapper:hover { transform: scale(1.03); }
.magazine-cover-img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; border-radius: 8px; border: 3px solid #C89B3C; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.download-badge-floating {
    position: absolute;
    top: 50%;
    inset-inline-start: -25px;
    transform: translateY(-50%);
    background-color: #622E1B;
    color: #E3BE68;
    padding: 16px 12px;
    min-height: 44px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #C89B3C;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    text-decoration: none;
}
.download-badge-floating:hover { background-color: #833F25; color: #FFFFFF; border-color: #E3BE68; }

/* ================= HOME GRID LAYOUT & CARDS ================= */
.home-grid-layout { display: grid; grid-template-columns: clamp(300px, 30vw, 360px) 1fr; gap: 35px; }

.editor-message-card {
    background: #FFFFFF;
    border: 1px solid #F8EFEA;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 8px 30px rgba(98, 46, 27,  0.06);
    position: relative;
    transition: var(--transition);
}
.editor-message-card:hover {
    border-color: #C89B3C;
    box-shadow: 0 14px 40px rgba(200, 155, 60, 0.15);
    transform: translateY(-4px);
}
.card-header-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #F8EFEA;
    padding-bottom: 14px;
    margin-bottom: 20px;
    color: #622E1B;
}
.card-header-ornament h3 { 
    font-size: 1.35rem; 
    color: #622E1B;
    font-weight: 700;
}
.quote-body { position: relative; margin-bottom: 24px; }
.quote-mark { font-size: 4.5rem; color: #C89B3C; opacity: 0.25; position: absolute; top: -35px; inset-inline-end: -10px; font-family: serif; }
.quote-body p { font-size: 1.12rem; color: #17211D; position: relative; z-index: 1; text-align: justify; line-height: 2; }

.editor-avatar-icon, .author-avatar-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #622E1B;
    color: #E3BE68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid #C89B3C;
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3);
    flex-shrink: 0;
}

.editor-profile { display: flex; align-items: center; gap: 16px; border-top: 1px solid #F8EFEA; padding-top: 18px; }
.editor-name { font-size: 1.1rem; color: #622E1B; font-weight: 700; }
.editor-title { font-family: var(--font-ui); font-size: 0.88rem; color: #59655F; }

/* ARTICLES & CARDS GRID */
.section-title-wrapper { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #F8EFEA; padding-bottom: 14px; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-title { 
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); 
    color: #622E1B;
    font-weight: 700;
}
.view-all-link { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; color: #833F25; transition: var(--transition); text-decoration: none; }
.view-all-link:hover { color: #C89B3C; }

.articles-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.article-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid #F8EFEA;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(98, 46, 27,  0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 36px rgba(200, 155, 60, 0.18); 
    border-color: #C89B3C; 
}
.card-thumb { position: relative; height: 190px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-card:hover .card-thumb img { transform: scale(1.08); }

.category-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: rgba(98, 46, 27,  0.90);
    backdrop-filter: blur(8px);
    color: #E3BE68;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #C89B3C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; color: #17211D; transition: var(--transition); }
.article-card:hover .card-title { color: #833F25; }
.card-excerpt { font-size: 0.98rem; color: #59655F; line-height: 1.7; margin-bottom: 18px; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F8EFEA; padding-top: 14px; font-family: var(--font-ui); font-size: 0.85rem; }
.post-date { color: #59655F; }
.read-more-link { font-weight: 700; color: #833F25; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.read-more-link:hover { color: #C89B3C; transform: translateX(-4px); }

/* ================= TAREEKH E ADAB E URDU STYLE MODERN PDF READER ================= */

.pdf-reader-standalone-stage {
    position: relative;
    background: #F5EEDB;
    background-image: radial-gradient(rgba(98, 46, 27,  0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 620px;
    border-radius: var(--radius-md);
    padding: 30px 10px 80px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* READER MODE SWITCHER TABS */
.reader-mode-tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.reader-tab-btn {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}
.reader-tab-btn:hover, .reader-tab-btn.active {
    background-color: var(--primary-green);
    color: var(--secondary-gold-light);
    border-color: var(--primary-green);
}

/* PDF LOADING OVERLAY */
.pdf-loading-overlay {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: rgba(255, 253, 247, 0.94);
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--primary-green);
    font-family: var(--font-ui);
    font-weight: 700;
    transition: opacity 0.4s ease;
}
.pdf-loading-overlay .spinner-icon {
    font-size: 2.8rem;
    color: var(--secondary-gold);
}

/* NATIVE PDF IFRAME WRAPPER */
.native-pdf-iframe-wrapper {
    width: 100%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    background: #ffffff;
}

/* Floating Side Arrows (< >) */
.reader-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #444444;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.reader-side-arrow:hover {
    background-color: var(--primary-green);
    color: var(--secondary-gold-light);
    transform: translateY(-50%) scale(1.1);
}
.reader-arrow-left { left: 20px; }
.reader-arrow-right { right: 20px; }

/* Realistic Double-Page Book Spread */
.book-double-spread {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    max-width: 960px;
    width: 100%;
    min-height: 540px;
    transition: transform 0.3s ease;
}

/* Middle Spine Fold Gradient Shadow */
.book-spine-shadow {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    background: linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 40%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0.18) 100%);
    z-index: 10;
    pointer-events: none;
}

.book-page-canvas-wrapper {
    width: 50%;
    background-color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.book-page-left { border-right: 1px stroke rgba(0,0,0,0.06); }
.book-page-right { border-left: 1px stroke rgba(0,0,0,0.06); }

.pdf-page-canvas {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Floating Bottom Control Bar (Pill Toolbar) */
.reader-floating-bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 30px;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
    z-index: 30;
    font-family: var(--font-ui);
}

.pill-tool-btn {
    background: none;
    border: none;
    color: #555555;
    font-size: 1.1rem;
    cursor: pointer;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.pill-tool-btn:hover {
    background-color: rgba(98, 46, 27,  0.08);
    color: var(--primary-green);
}
.pill-divider {
    width: 1px;
    height: 22px;
    background-color: #e0e0e0;
}

.pill-page-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green);
}
.pill-page-input {
    width: 44px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 4px;
    font-weight: bold;
    color: var(--primary-green);
}

/* ================= ARCHIVE VIEW & GLASS CARDS ================= */
.archive-filter-bar { 
    background: var(--glass-bg-card); 
    backdrop-filter: var(--glass-blur); 
    border: 1px solid #F8EFEA; 
    border-radius: var(--radius-md); 
    padding: 18px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--glass-shadow); 
    margin-bottom: 35px; 
    flex-wrap: wrap; 
    gap: 16px; 
}
.filter-group { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-select { 
    padding: 10px 16px; 
    min-height: 44px; 
    border: 1px solid #C89B3C; 
    border-radius: var(--radius-sm); 
    background: #622E1B; 
    font-size: 0.95rem; 
    color: #FFFDF7; 
    cursor: pointer; 
}
.archive-search-input-wrapper { position: relative; width: clamp(220px, 30vw, 300px); }
.filter-input { 
    width: 100%; 
    padding: 10px 40px 10px 16px; 
    min-height: 44px; 
    border: 1px solid #C89B3C; 
    border-radius: var(--radius-sm); 
    background: #622E1B; 
    font-size: 0.95rem; 
    color: #FFFDF7;
}
.search-icon-inside { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); color: #C89B3C; }

.issues-archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.archive-issue-card { 
    background: var(--glass-bg-card); 
    backdrop-filter: var(--glass-blur); 
    border: 1px solid #F8EFEA; 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--glass-shadow); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    transform-style: preserve-3d;
}
.archive-issue-card:hover { 
    transform: translateY(-8px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); 
    border-color: #C89B3C; 
    box-shadow: var(--glass-shadow-hover); 
}

/* MAGAZINE COVER ASPECT RATIO RULES */
.archive-card-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: rgba(98, 46, 27,  0.2);
    position: relative;
}
.archive-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}
.archive-issue-card:hover .archive-card-thumb img { transform: scale(1.06); }

.archive-card-info { padding: 18px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.archive-issue-name { font-size: 1.15rem; color: #622E1B; margin-bottom: 4px; font-weight: 700; }
.archive-issue-date { font-family: var(--font-ui); font-size: 0.85rem; color: #59655F; margin-bottom: 14px; }
.archive-card-btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

.pagination-bar { display: flex; justify-content: center; align-items: center; gap: 8px; font-family: var(--font-ui); flex-wrap: wrap; margin-top: 35px; }
.page-btn { min-width: 44px; height: 44px; border: 1px solid #C89B3C; background: #FFFDF7; color: #622E1B; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.page-btn:hover, .page-btn.active { background: var(--gold-gradient); color: #421D10; border-color: #C89B3C; }
.page-arrow { padding-inline: 16px; }

/* ================= ARTICLE READING EXPERIENCE ================= */
.article-reader-grid { display: grid; grid-template-columns: 1fr 320px; gap: 35px; }
.article-main-body {
    background: #FFFFFF;
    border: 1px solid #F8EFEA;
    border-radius: var(--radius-md);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--glass-shadow);
}
.article-content-container {
    max-width: 760px;
    margin-inline: auto;
    line-height: 2;
}

.category-badge-lg { display: inline-block; background: var(--gold-gradient); color: #421D10; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 800; padding: 6px 20px; border-radius: 20px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3); }
.single-article-title { 
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); 
    color: #622E1B;
    margin-bottom: 8px; 
}
.single-article-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #833F25; margin-bottom: 20px; }
.author-meta-row { display: flex; gap: 24px; font-family: var(--font-ui); font-size: 0.92rem; color: #59655F; border-bottom: 1px solid #F8EFEA; padding-bottom: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.article-featured-image { height: clamp(220px, 35vw, 380px); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 25px; box-shadow: var(--shadow-soft); border: 1px solid #C89B3C; }
.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.reading-controls-bar { display: flex; justify-content: space-between; align-items: center; background: #F5EEDB; border: 1px solid #F8EFEA; border-radius: var(--radius-sm); padding: 10px 18px; margin-bottom: 30px; font-family: var(--font-ui); flex-wrap: wrap; gap: 12px; }
.font-resizer { display: flex; align-items: center; gap: 8px; }
.font-resizer button, .reading-actions button { background: #FFFDF7; border: 1px solid #C89B3C; color: #622E1B; padding: 6px 14px; min-height: 38px; border-radius: 6px; cursor: pointer; transition: var(--transition); font-weight: 700; }
.font-resizer button:hover, .reading-actions button:hover { background: var(--gold-gradient); color: #421D10; }

.quranic-callout-box { background: linear-gradient(135deg, rgba(131, 63, 37,  0.12), rgba(98, 46, 27,  0.2)); border: 2px solid #C89B3C; border-radius: var(--radius-md); padding: 30px; text-align: center; margin: 30px 0; box-shadow: 0 0 25px rgba(200, 155, 60, 0.15); }
.quran-header { font-family: var(--font-heading); font-size: 1.1rem; color: #833F25; font-weight: 700; margin-bottom: 12px; }
.quran-text { font-family: var(--font-quran); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; color: #622E1B; line-height: 1.9; margin-bottom: 12px; }
.quran-ref { font-family: var(--font-ui); font-size: 0.9rem; color: #59655F; }

.article-text-content { font-size: 1.25rem; line-height: 2.1; color: #17211D; }
.article-text-content p { margin-bottom: 22px; text-align: justify; }
.article-summary-quote { font-family: var(--font-heading); font-weight: 700; color: #622E1B; background: #F5EEDB; border-inline-start: 4px solid #C89B3C; padding: 18px 24px; border-radius: var(--radius-sm); }

.article-share-footer { display: flex; align-items: center; gap: 16px; border-top: 1px solid #F8EFEA; padding-top: 24px; margin-top: 35px; flex-wrap: wrap; }
.share-buttons { display: flex; gap: 10px; }
.share-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1rem; transition: var(--transition); }
.share-icon.fb { background-color: #3b5998; }
.share-icon.tw { background-color: #1da1f2; }
.share-icon.wa { background-color: #25d366; }
.share-icon.tg { background-color: #0088cc; }
.share-icon:hover { transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }

.sidebar-card { background: #FFFFFF; border: 1px solid #F8EFEA; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--glass-shadow); }
.author-card-body { padding: 24px; text-align: center; }
.author-card-name { font-size: 1.15rem; margin-bottom: 4px; color: #622E1B; font-weight: 700; }
.author-card-role { font-family: var(--font-ui); font-size: 0.85rem; color: #59655F; }
.author-card-bio { font-size: 0.95rem; color: #17211D; margin: 12px 0 16px 0; }
.related-list { padding: 12px; }
.related-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F8EFEA; }
.related-item img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.related-info h5 { font-size: 0.95rem; color: #17211D; line-height: 1.4; }
.related-info span { font-family: var(--font-ui); font-size: 0.78rem; color: #59655F; }

/* ================= ABOUT US PAGE & BOARD CARDS ================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.pillar-card {
    background: #FFFFFF;
    border: 1px solid #F8EFEA;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(98, 46, 27,  0.06);
    transition: var(--transition);
    position: relative;
}
.pillar-card:hover {
    transform: translateY(-6px);
    border-color: #C89B3C;
    box-shadow: 0 16px 40px rgba(200, 155, 60, 0.18);
}
.pillar-card.highlight-pillar {
    background: linear-gradient(140deg, #622E1B 0%, #421D10 100%);
    border: 2px solid #C89B3C;
    color: #FFFDF7;
    box-shadow: 0 14px 40px rgba(98, 46, 27,  0.25);
}
.pillar-card.highlight-pillar:hover {
    border-color: #E3BE68;
    box-shadow: 0 18px 50px rgba(200, 155, 60, 0.35);
}
.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #622E1B;
    color: #E3BE68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid #C89B3C;
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3);
    margin-bottom: 20px;
}
.pillar-card.highlight-pillar .pillar-icon {
    background: #C89B3C;
    color: #421D10;
    border-color: #E3BE68;
}
.pillar-title {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #622E1B;
    margin-bottom: 12px;
}
.pillar-card.highlight-pillar .pillar-title {
    color: #E3BE68;
}
.pillar-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #17211D;
    line-height: 2;
}
.pillar-card.highlight-pillar .pillar-desc {
    color: #FFFDF7;
}

/* Executive Board Grid */
.board-section-wrapper { margin-top: 60px; }
.executive-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.exec-card {
    background: #FFFFFF;
    border: 1px solid #F8EFEA;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(98, 46, 27,  0.06);
    transition: var(--transition);
}
.exec-card:hover {
    transform: translateY(-6px);
    border-color: #C89B3C;
    box-shadow: 0 16px 40px rgba(200, 155, 60, 0.18);
}
.exec-card.chief-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
    border: 2px solid #C89B3C;
    box-shadow: 0 14px 40px rgba(200, 155, 60, 0.2);
    transform: scale(1.02);
}
.exec-role-badge {
    background: #622E1B;
    color: #E3BE68;
    border: 1px solid #C89B3C;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.2);
}
.exec-role-badge.chief-badge {
    background: #C89B3C;
    color: #421D10;
    border-color: #E3BE68;
}
.exec-avatar-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #622E1B;
    color: #E3BE68;
    font-size: 2rem;
    border: 3px solid #C89B3C;
    box-shadow: 0 6px 20px rgba(200, 155, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}
.exec-name {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #622E1B;
    margin-bottom: 8px;
}
.exec-bio {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: #59655F;
    line-height: 1.8;
}

/* About Bottom Grid & Board List */
.about-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}
.board-members-box {
    background: #FFFFFF;
    border: 1px solid #F8EFEA;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(98, 46, 27,  0.06);
}
.box-title {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: #622E1B;
    font-weight: 700;
    border-bottom: 2px solid #F8EFEA;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.members-list { list-style: none; }
.members-list li {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    color: #17211D;
    padding: 12px 0;
    border-bottom: 1px solid #F5EEDB;
    display: flex;
    align-items: center;
    gap: 10px;
}
.star-bullet { color: #C89B3C; font-size: 1.1rem; }

/* Stats Counters */
.stats-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-box {
    background: #622E1B;
    color: #FFFDF7;
    border: 1px solid #C89B3C;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(98, 46, 27,  0.15);
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-4px);
    border-color: #E3BE68;
    box-shadow: 0 10px 30px rgba(200, 155, 60, 0.25);
}
.stat-icon { font-size: 1.6rem; color: #C89B3C; margin-bottom: 6px; }
.stat-number { font-family: var(--font-ui); font-size: 1.8rem; font-weight: 800; color: #E3BE68; margin-bottom: 2px; }
.stat-label { font-family: var(--font-ui); font-size: 0.88rem; color: #FFFDF7; line-height: 1.4; }
.books-illustration {
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    border: 2px solid #F8EFEA;
    box-shadow: 0 8px 24px rgba(98, 46, 27,  0.08);
}
.books-illustration img { width: 100%; height: 100%; object-fit: cover; }

/* ================= AUTHORS & NEWS/MEDIA ================= */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.author-profile-card { 
    background: #FFFFFF; 
    border: 1px solid #F8EFEA; 
    border-radius: var(--radius-md); 
    padding: 28px 20px; 
    text-align: center; 
    box-shadow: var(--glass-shadow); 
    transition: var(--transition); 
    transform-style: preserve-3d;
}
.author-profile-card:hover { transform: translateY(-8px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); border-color: var(--secondary-gold); box-shadow: var(--glass-shadow-hover); }

.media-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card { background: #FFFFFF; border-radius: var(--radius-md); border: 1px solid #F8EFEA; overflow: hidden; box-shadow: var(--glass-shadow); }
.media-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background-color: #000; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.play-btn-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.4); color: #C89B3C; font-size: 2.5rem; transition: var(--transition); }
.media-card:hover .play-btn-overlay { transform: scale(1.1); background-color: rgba(98, 46, 27,  0.6); }
.media-body { padding: 18px; }

/* ================= CONTACT FORM ================= */
/* ================= CONTACT FORM & ADMIN CARDS ================= */
.contact-layout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 35px; }
.contact-form-card, .contact-info-card { 
    background: #FFFFFF; 
    border: 1px solid #F8EFEA; 
    border-radius: 20px; 
    padding: clamp(22px, 4vw, 36px); 
    box-shadow: 0 10px 30px rgba(98, 46, 27,  0.06); 
}
.form-title, .info-title { 
    font-size: 1.5rem; 
    color: #622E1B; 
    font-weight: 700; 
    border-bottom: 2px solid #F8EFEA; 
    padding-bottom: 12px; 
    margin-bottom: 24px; 
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { 
    font-family: var(--font-ui); 
    font-size: 0.98rem; 
    font-weight: 700; 
    color: #622E1B; 
    margin-bottom: 4px;
}
.form-group input, .form-group textarea, .form-group select, select.filter-select { 
    padding: 14px 16px; 
    min-height: 48px; 
    border: 1.5px solid #F8EFEA; 
    border-radius: 10px; 
    font-size: 1.05rem; 
    font-family: var(--font-ui); 
    background: #F5EEDB; 
    color: #17211D; 
    transition: all 0.3s ease; 
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus, select.filter-select:focus { 
    border-color: #C89B3C; 
    box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.15); 
    background: #FFFFFF; 
    outline: none;
}
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #833F25, #622E1B); color: #E3BE68; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 4px 15px rgba(131, 63, 37,  0.3); }
.info-text h4 { font-size: 1.1rem; margin-bottom: 2px; color: #622E1B; font-weight: 700; }
.info-text p { font-size: 0.98rem; color: #59655F; }

/* ================= ADMIN CMS PANEL ================= */
.admin-layout-container { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; margin-top: 30px; }
.admin-sidebar { 
    background: #FFFFFF; 
    border: 1px solid #F8EFEA; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(98, 46, 27,  0.06); 
}
.admin-menu-list { list-style: none; padding: 0; margin: 0; }
.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.02rem;
    color: #622E1B;
    border-bottom: 1px solid #F8EFEA;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
}
.admin-menu-item i { color: #C89B3C; width: 24px; font-size: 1.1rem; text-align: center; transition: color 0.3s ease; }
.admin-menu-item:hover { background: #F5EEDB; color: #833F25; padding-inline-start: 24px; }
.admin-menu-item.active { 
    background: linear-gradient(135deg, #833F25 0%, #622E1B 100%); 
    color: #FFFDF7 !important; 
    border-inline-start: 5px solid #C89B3C; 
    box-shadow: 0 4px 15px rgba(98, 46, 27,  0.2); 
}
.admin-menu-item.active i { color: #E3BE68 !important; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-stat-card { 
    background: #FFFFFF; 
    border: 1px solid #F8EFEA; 
    border-top: 4px solid #C89B3C; 
    border-radius: 16px; 
    padding: 22px; 
    display: flex; 
    align-items: center; 
    gap: 18px; 
    box-shadow: 0 8px 25px rgba(98, 46, 27,  0.06); 
    transition: all 0.3s ease; 
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(98, 46, 27,  0.12);
}
.admin-stat-icon { 
    width: 58px; 
    height: 58px; 
    border-radius: 14px; 
    background: rgba(200, 155, 60, 0.15); 
    color: #C89B3C; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.6rem; 
    border: 1.5px solid #E3BE68; 
    box-shadow: 0 4px 12px rgba(98, 46, 27,  0.05); 
}
.admin-stat-val { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 900; color: #622E1B; line-height: 1; margin-bottom: 4px; }
.admin-stat-lbl { font-family: var(--font-ui); font-size: 0.9rem; color: #59655F; font-weight: 700; }

/* MOBILE ADD ISSUE WIZARD */
.wizard-steps-nav { display: flex; justify-content: space-between; border-bottom: 2px solid #F8EFEA; padding-bottom: 18px; margin-bottom: 30px; overflow-x: auto; gap: 12px; }
.wizard-step-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: var(--font-ui); 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #622E1B; 
    padding: 10px 18px; 
    border-radius: 25px; 
    background: #F5EEDB; 
    border: 1.5px solid #F8EFEA; 
    white-space: nowrap; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.wizard-step-item:hover { border-color: #C89B3C; background: #FFFFFF; }
.wizard-step-item.active { 
    background: linear-gradient(135deg, #833F25 0%, #622E1B 100%); 
    color: #FFFDF7 !important; 
    border-color: #C89B3C; 
    box-shadow: 0 4px 15px rgba(98, 46, 27,  0.25); 
}
.wizard-step-item.completed { background: #F8EFEA; color: #833F25; border-color: #833F25; }
.wizard-step-num { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    background-color: #C89B3C; 
    color: #421D10; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.88rem; 
    font-weight: 800; 
}
.wizard-step-item.active .wizard-step-num { background-color: #E3BE68; color: #622E1B; font-weight: 900; }
.wizard-step-item.completed .wizard-step-num { background-color: #833F25; color: #FFFFFF; }

.file-upload-dragzone {
    border: 2px dashed #C89B3C;
    background: #F5EEDB;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-dragzone:hover { background: #FFFFFF; border-color: #622E1B; box-shadow: 0 8px 25px rgba(200, 155, 60, 0.15); }
.dragzone-icon { font-size: 3rem; color: #C89B3C; margin-bottom: 12px; }

/* COMPACT MOBILE ARTICLE EDITOR TOOLBAR */
.mobile-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #622E1B;
    padding: 8px 12px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid #C89B3C;
    overflow-x: auto;
    white-space: nowrap;
}
.editor-tool-btn {
    background: none;
    border: 1px solid rgba(200, 155, 60, 0.3);
    color: #E3BE68;
    min-width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.editor-tool-btn:hover { background: var(--gold-gradient); color: #421D10; }
.editor-textarea {
    width: 100%;
    min-height: 250px;
    border: 1px solid #C89B3C;
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    background: #421D10;
    color: #FFFDF7;
}

/* ================= FOOTER GLASSMORPHISM ================= */
/* ================= FOOTER GLASSMORPHISM ================= */
.main-footer { 
    background: linear-gradient(180deg, #622E1B 0%, #421D10 100%);
    backdrop-filter: blur(20px);
    color: #FFFDF7; 
    padding-top: 60px; 
    border-top: 2px solid #C89B3C; 
    position: relative; 
    box-shadow: 0 -10px 40px rgba(98, 46, 27,  0.4);
}
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 50px; }
.footer-org-name { font-size: 1.1rem; color: #F5EEDB; margin: 12px 0; }
.reg-number-tag { display: inline-block; font-family: var(--font-ui); font-size: 0.8rem; background: rgba(200, 155, 60, 0.15); padding: 4px 12px; border-radius: 4px; border: 1px solid #C89B3C; color: #E3BE68; }
.footer-title { font-size: 1.3rem; color: #E3BE68; margin-bottom: 20px; position: relative; padding-bottom: 8px; font-weight: 700; }
.footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 2px; background: #C89B3C; }
.footer-contact-list, .footer-links-list { list-style: none; font-family: var(--font-ui); }
.footer-contact-list li, .footer-links-list li { margin-bottom: 12px; }
.footer-contact-list a, .footer-links-list a { color: #FFFDF7; opacity: 0.85; min-height: 44px; display: inline-flex; align-items: center; transition: var(--transition); }
.footer-contact-list a:hover, .footer-links-list a:hover { color: #E3BE68; opacity: 1; padding-inline-start: 6px; }
.social-circles { display: flex; gap: 10px; flex-wrap: wrap; }
.social-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(66, 29, 16,  0.7); color: #C89B3C; display: flex; align-items: center; justify-content: center; transition: var(--transition); border: 1px solid #C89B3C; }
.social-circle:hover { background: #C89B3C; color: #622E1B; transform: translateY(-3px); box-shadow: 0 0 20px rgba(200, 155, 60, 0.4); }
.footer-seal-wrapper { width: 90px; height: 90px; }
.footer-seal-svg { width: 100%; height: 100%; }
.footer-bottom-bar { background: #421D10; padding: 18px 0; font-family: var(--font-ui); font-size: 0.9rem; color: #E3BE68; border-top: 1px solid rgba(200, 155, 60, 0.25); }

.modal-overlay { position: fixed; inset: 0; background: rgba(66, 29, 16,  0.85); backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center; z-index: 3000; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-content { background: #421D10; backdrop-filter: blur(24px); border-radius: var(--radius-md); width: 100%; max-width: 600px; padding: 30px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(200, 155, 60, 0.25); border: 1px solid #C89B3C; max-height: 90vh; overflow-y: auto; color: #FFFDF7; }
.modal-close { position: absolute; top: 15px; inset-inline-end: 15px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #C89B3C; min-width: 44px; min-height: 44px; }

/* ================= 40-POINT COMPLETE RESPONSIVE BREAKPOINT SYSTEM ================= */

/* 1. LARGE DESKTOP (1441px+) */
@media (min-width: 1441px) {
    .container { width: 100%; max-width: 100%; }
    .hero-content { gap: 50px; }
}

/* 2. PRIMARY DESKTOP & LAPTOP (1200px – 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
    .container { width: 100%; max-width: 100%; }
    .hero-content { gap: 32px; }
    .articles-cards-grid { gap: 20px; }
    .issues-archive-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* 3. LAPTOP / SMALL DESKTOP (1025px – 1199px) */
@media (max-width: 1199px) {
    .nav-menu { gap: 14px; }
    .issues-archive-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-content { grid-template-columns: repeat(4, 1fr); }
}

/* 4. TABLET (768px – 1024px: iPad Portrait/Landscape, Android Tablets) */
@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
    .search-box { display: none !important; }
    .mobile-header-bar { display: flex !important; align-items: center; gap: 10px; }
    
    .home-grid-layout, .about-bottom-grid, .article-reader-grid, .contact-layout-grid, .admin-layout-container { grid-template-columns: 1fr !important; }
    .reader-layout-grid { grid-template-columns: 1fr !important; }
    
    .hero-content { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
    .hero-description { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    
    .articles-cards-grid, .pillars-grid, .executive-board-grid, .authors-grid, .media-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .editorial-board-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
    .issues-archive-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 18px; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .footer-content { grid-template-columns: repeat(2, 1fr) !important; gap: 30px; }

    /* Tablet PDF Reader Collapsible Drawer mode */
    .pdf-reader-standalone-stage { min-height: 520px; padding: 20px 10px 70px 10px; }
    .native-pdf-iframe-wrapper { max-width: 100%; }
}

/* 5. MOBILE PHONE (320px – 767px: Mobile Portrait & Small Screens) */
@media (max-width: 767px) {
    body { overflow-x: hidden; }
    .container { width: 100%; max-width: 100%; padding-inline: clamp(12px, 3.5vw, 18px); }
    .top-header { font-size: 0.82rem; }
    .top-header-content { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }
    .top-social-bar { display: none !important; }

    /* Mobile Headers & Hero Stack */
    .hero-banner { padding-block: clamp(25px, 5vw, 45px); }
    .hero-quran-verse { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
    .hero-quran-translation { font-size: 0.95rem; }
    .magazine-3d-wrapper { width: clamp(180px, 48vw, 230px); transform: none !important; margin: 0 auto; }
    .download-badge-floating { display: none !important; }

    /* Mobile Header Navbar Layout Fix */
    .main-navbar { padding-block: 6px !important; }
    .navbar-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-inline: 8px !important;
    }
    .brand-logo {
        margin-inline-end: 0 !important;
        max-width: 140px !important;
        flex-shrink: 1 !important;
    }
    .logo-image-img {
        height: 38px !important;
        max-width: 130px !important;
        object-fit: contain !important;
    }
    .nav-cta-btn {
        display: none !important;
    }
    .mobile-header-bar {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Mobile Single Column Layout Overrides */
    .articles-cards-grid, 
    .pillars-grid, 
    .executive-board-grid, 
    .authors-grid, 
    .media-cards-grid, 
    .editorial-board-grid,
    .form-row-grid,
    .current-issue-grid,
    .about-grid,
    .contact-layout-grid,
    .article-reader-grid { 
        grid-template-columns: 1fr !important; 
        gap: 16px !important; 
        width: 100% !important;
        max-width: 100% !important;
    }

    .editorial-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 20px !important;
    }
    .editorial-card .member-details { text-align: center !important; }

    .issues-archive-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    
    /* Mobile Article Reading Optimization */
    .article-content-container { max-width: 100% !important; padding-inline: 4px; line-height: 2.1; font-size: 1.12rem; overflow-wrap: break-word; word-break: break-word; }
    .single-article-title { font-size: clamp(1.4rem, 4.8vw, 2rem); overflow-wrap: break-word; word-break: break-word; }

    /* Mobile Compact PDF Reader Toolbar */
    .book-double-spread { flex-direction: column; min-height: auto; }
    .book-page-canvas-wrapper { width: 100%; padding: 12px; }
    .book-spine-shadow { display: none; }
    .reader-side-arrow { width: 44px; height: 44px; font-size: 1.1rem; }
    .reader-arrow-left { left: 8px; }
    .reader-arrow-right { right: 8px; }
    .reader-floating-bottom-bar { 
        width: calc(100% - 32px); 
        max-width: 380px; 
        padding: 6px 12px; 
        gap: 8px; 
        font-size: 0.85rem; 
        justify-content: space-between;
    }
    
    /* Mobile Stacked 1-Column Footer */
    .footer-content { grid-template-columns: 1fr !important; text-align: center; justify-items: center; gap: 24px; }
    .footer-title::after { inset-inline-start: 50%; transform: translateX(-50%); }
    html[dir="ltr"] .footer-title::after { transform: translateX(-50%); }

    /* Mobile Touch Target Enforcement (Min 44px x 44px) */
    .btn, .nav-link, .drawer-menu-link, .page-btn, .search-btn, .pill-tool-btn, .social-circle, .mobile-toggle, .mobile-search-trigger {
        min-height: 44px;
        min-width: 44px;
    }

    /* iOS Safari Auto-Zoom Fix */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* MOBILE QUICK SEARCH OVERLAY BANNER STYLES */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(66, 29, 16,  0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    padding: 14px 16px;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid #C89B3C;
}
.mobile-search-overlay.active {
    transform: translateY(0);
}
.mobile-search-container {
    max-width: 768px;
    margin: 0 auto;
}
.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFDF7;
    border-radius: 30px;
    padding: 6px 14px;
    border: 1px solid #C89B3C;
}
.mobile-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: #17211D;
    padding: 8px 4px;
}
.mobile-search-submit-btn {
    background: #622E1B;
    color: #FFFDF7;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.mobile-search-submit-btn:hover {
    background: #833F25;
}
.mobile-search-close-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #C89B3C;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}

/* 6. EXTRA SMALL MOBILE (320px – 480px) */
@media (max-width: 480px) {
    .btn { width: 100% !important; }
    .hero-actions { flex-direction: column !important; width: 100% !important; gap: 10px !important; }
    .issues-archive-grid { grid-template-columns: 1fr !important; }
    .filter-group { flex-direction: column !important; width: 100% !important; }
    .filter-select, .archive-search-input-wrapper { width: 100% !important; }
}

/* 7. MOBILE LANDSCAPE ORIENTATION (Short Viewport Height Optimization) */
@media (min-width: 568px) and (max-height: 500px) {
    .hero-banner { padding-block: 15px !important; }
    .section-padding { padding-block: 24px !important; }
    .top-header { display: none !important; }
    .magazine-3d-wrapper { width: 160px !important; }
    .modal-content { max-height: 85vh !important; overflow-y: auto !important; padding: 20px !important; }
}

/* ==========================================================================
   PEEX-STYLE ULTRA MODERN EXECUTIVE ADMIN DASHBOARD (LATEST UI MOCKUP)
   ========================================================================== */
.peex-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFDF7;
    border: 1px solid #F8EFEA;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(98, 46, 27,  0.05);
}
.peex-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.peex-brand-logo img {
    height: 40px;
    width: auto;
}
.peex-brand-title {
    font-family: var(--font-title);
    font-weight: 800;
    color: #622E1B;
    font-size: 1.2rem;
}
.peex-search-box {
    position: relative;
    width: clamp(200px, 35vw, 360px);
}
.peex-search-box input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    background: #F5EEDB;
    border: 1px solid #F8EFEA;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: #17211D;
}
.peex-search-box i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #C89B3C;
}
.peex-user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}
.peex-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.peex-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C89B3C;
}
.peex-user-name {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    color: #622E1B;
}

/* Executive Curved Hero Banner */
.peex-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #622E1B 0%, #833F25 50%, #421D10 100%);
    border-radius: 24px;
    padding: 34px 38px 75px 38px;
    color: #FFFDF7;
    box-shadow: 0 15px 35px rgba(98, 46, 27,  0.28);
    overflow: hidden;
    margin-bottom: -45px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.peex-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: rgba(200, 155, 60, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.peex-hero-content h2 {
    font-family: var(--font-title);
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: #FFFDF7 !important;
    margin-bottom: 8px;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow: visible;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.peex-hero-content p {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    color: #F5EEDB !important;
    max-width: 750px;
    line-height: 1.5;
}
.peex-announcement-badge {
    position: static;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 7px 18px;
    border-radius: 30px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    color: #FFFDF7;
    margin-bottom: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

/* Floating 4 KPI Cards */
.peex-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 10;
    padding-inline: 16px;
}
.peex-kpi-card {
    background: #FFFDF7;
    border: 1px solid #F8EFEA;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 10px 25px rgba(98, 46, 27,  0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.peex-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(98, 46, 27,  0.12);
}
.peex-kpi-title {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: #59655F;
    font-weight: 600;
    margin-bottom: 6px;
}
.peex-kpi-val {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
}
.peex-kpi-val small {
    font-size: 0.8rem;
    font-family: var(--font-ui);
    font-weight: bold;
}
.text-green { color: #833F25; }
.text-gold { color: #C89B3C; }
.text-maroon { color: #622E1B; }
.text-blue { color: #2563EB; }

/* Dashboard Grids */
.peex-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 24px;
}
.peex-grid-2 {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
}

/* Executive Cards */
.peex-card {
    background: #FFFDF7;
    border: 1px solid #F8EFEA;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(98, 46, 27,  0.05);
}
.peex-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F5EEDB;
}
.peex-card-header h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: #622E1B;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.peex-card-header h4 i {
    color: #C89B3C;
}

/* Donut Chart Center Text */
.peex-donut-wrapper {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.peex-donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.peex-donut-center-text .num {
    display: block;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
    color: #622E1B;
    line-height: 1;
}
.peex-donut-center-text .lbl {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #59655F;
    font-weight: 600;
}
.peex-legend-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: bold;
}
.badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-maroon::before { background: #622E1B; }
.dot-gold::before { background: #C89B3C; }
.dot-green::before { background: #833F25; }
.dot-blue::before { background: #2563EB; }

/* Calendar Widget */
.peex-calendar-widget {
    font-family: var(--font-ui);
}
.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #59655F;
    margin-bottom: 10px;
}
.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.cal-day-cell {
    padding: 8px 4px;
    font-size: 0.88rem;
    border-radius: 8px;
    color: #17211D;
    font-weight: 600;
}
.cal-day-cell.active-day {
    background: #622E1B;
    color: #FFFDF7;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(98, 46, 27,  0.3);
}
.cal-day-cell.event-day {
    background: #F5EEDB;
    border: 1px solid #C89B3C;
    color: #C89B3C;
}

/* Modern Executive Tables */
.peex-table-responsive {
    overflow-x: auto;
}
.peex-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.92rem;
}
.peex-table th {
    background: #F5EEDB;
    color: #622E1B;
    font-weight: 800;
    padding: 12px 14px;
    text-align: start;
    border-bottom: 2px solid #F8EFEA;
}
.peex-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F5EEDB;
    color: #17211D;
}
.peex-status-pill {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
}
.status-live { background: #F8EFEA; color: #622E1B; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-rejected { background: #FFEBEE; color: #C62828; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .peex-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .peex-grid-3 { grid-template-columns: 1fr !important; gap: 20px !important; }
    .peex-grid-2 { grid-template-columns: 1fr !important; gap: 20px !important; }
    .issues-archive-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}

@media (max-width: 992px) {
    /* Admin CMS Responsive Sidebar & Layout */
    .admin-layout-container { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .admin-sidebar { width: 100% !important; max-width: 100% !important; border: 1.5px solid #F8EFEA !important; border-radius: 16px !important; padding: 10px !important; background: #FFFDF7 !important; box-shadow: 0 4px 15px rgba(98, 46, 27,  0.05) !important; }
    .admin-menu-list { display: flex !important; flex-direction: row !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; gap: 8px !important; padding-bottom: 6px !important; white-space: nowrap !important; }
    .admin-menu-item { padding: 10px 16px !important; border-radius: 12px !important; font-size: 0.88rem !important; flex-shrink: 0 !important; margin-bottom: 0 !important; }

    /* Top Bar Mobile */
    .peex-top-bar { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 16px !important; }
    .peex-search-box { width: 100% !important; }
    .peex-user-area { justify-content: space-between !important; width: 100% !important; }
}

@media (max-width: 640px) {
    .peex-kpi-grid { grid-template-columns: 1fr !important; margin-bottom: 20px !important; gap: 12px !important; }
    .peex-hero-banner { margin-bottom: 10px !important; padding: 24px 20px 40px 20px !important; text-align: center !important; }
    .peex-announcement-badge { position: relative !important; top: auto !important; left: auto !important; margin-top: 14px !important; display: inline-block !important; }

    /* Mobile Form Rows */
    .form-row { flex-direction: column !important; gap: 12px !important; }
    .form-group { width: 100% !important; }

    /* Archive & Editorial Mobile Grids */
    .issues-archive-grid { grid-template-columns: 1fr !important; }
    .editorial-card { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 16px !important; padding: 20px !important; }
    .editorial-card .member-details { text-align: center !important; }

    /* Top Header Date Mobile Bar */
    .top-header-content { flex-direction: column !important; gap: 8px !important; text-align: center !important; }
    .top-date-display { font-size: 0.8rem !important; flex-wrap: wrap !important; justify-content: center !important; }


/* ==========================================================================
   GLOBAL ADMIN CONFIRMATION MODAL SYSTEM CSS
   ========================================================================== */
.admin-confirm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(66, 29, 16,  0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    animation: fadeInOverlay 0.2s ease-out !important;
}
.admin-confirm-overlay.active {
    display: flex !important;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
.admin-confirm-card {
    background: #FFFDF7 !important;
    border: 2px solid #C89B3C !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 480px !important;
    padding: 28px 24px 24px 24px !important;
    box-shadow: 0 30px 70px rgba(98, 46, 27,  0.35) !important;
    position: relative !important;
    box-sizing: border-box !important;
    animation: popUpCard 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
@keyframes popUpCard {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.admin-confirm-close {
    position: absolute !important;
    top: 14px !important;
    left: 18px !important;
    background: #F5EEDB !important;
    border: 1px solid #F8EFEA !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
    color: #622E1B !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.admin-confirm-close:hover {
    background: #622E1B !important;
    color: #FFFDF7 !important;
}
.admin-confirm-header {
    text-align: center !important;
    margin-bottom: 16px !important;
}
.admin-confirm-icon-circle {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    margin: 0 auto 14px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    box-shadow: 0 8px 20px rgba(98, 46, 27,  0.12) !important;
}
.admin-confirm-icon-circle.mode-edit {
    background: rgba(200, 155, 60, 0.15) !important;
    color: #C89B3C !important;
    border: 2px solid #C89B3C !important;
}
.admin-confirm-icon-circle.mode-delete {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border: 2px solid #EF4444 !important;
}
.admin-confirm-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #622E1B !important;
    margin: 0 !important;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}
.admin-confirm-message {
    text-align: center !important;
    font-size: 1rem !important;
    color: #59655F !important;
    margin: 0 0 16px 0 !important;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}
.admin-confirm-item-card {
    background: #F5EEDB !important;
    border: 1.5px solid #C89B3C !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    text-align: start !important;
}
.admin-confirm-item-type {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    background: #622E1B !important;
    color: #FFFDF7 !important;
    padding: 3px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
}
.admin-confirm-item-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #622E1B !important;
    word-break: break-word !important;
}
.admin-confirm-warning-box {
    background: #FEF2F2 !important;
    border: 1.5px solid #FCA5A5 !important;
    color: #991B1B !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
}
.admin-confirm-footer {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}
.admin-confirm-btn {
    flex: 1 !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    transition: all 0.2s ease !important;
}
.admin-confirm-btn-cancel {
    background: #F5EEDB !important;
    color: #59655F !important;
    border: 1px solid #F8EFEA !important;
}
.admin-confirm-btn-cancel:hover {
    background: #F8EFEA !important;
}
.admin-confirm-btn-action.mode-edit {
    background: linear-gradient(135deg, #622E1B 0%, #833F25 100%) !important;
    color: #FFFDF7 !important;
    box-shadow: 0 4px 14px rgba(98, 46, 27,  0.35) !important;
}
.admin-confirm-btn-action.mode-edit:hover {
    background: #833F25 !important;
}
.admin-confirm-btn-action.mode-delete {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}
.admin-confirm-btn-action.mode-delete:hover {
    background: #991B1B !important;
}
.admin-confirm-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   LATEST AL-FAJR RELEASE SECTION (PREMIUM RESPONSIVE REDESIGN)
   ========================================================================== */
.latest-release-section {
    background: #F5EEDB;
    border-top: 1px solid #F8EFEA;
    border-bottom: 1.5px solid #C89B3C;
    padding: clamp(35px, 5vw, 65px) 0;
    position: relative;
}

/* Header */
.latest-release-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.latest-release-header-text {
    flex: 1;
    min-width: 260px;
}

.latest-release-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #622E1B;
    color: #E3BE68;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(98, 46, 27,  0.2);
}

.latest-release-badge .star-icon {
    color: #C89B3C;
    font-size: 0.8rem;
}

.latest-release-badge .badge-dot {
    opacity: 0.6;
}

.latest-release-badge .issue-number-chip {
    color: #FFFDF7;
    background: rgba(200, 155, 60, 0.25);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.latest-release-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    color: #622E1B;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.latest-release-header-actions {
    display: flex;
    align-items: center;
}

.btn-release-header-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFDF7;
    color: #622E1B;
    border: 1.5px solid #C89B3C;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(98, 46, 27,  0.05);
}

.btn-release-header-all:hover {
    background: #622E1B;
    color: #E3BE68;
    border-color: #622E1B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 46, 27,  0.2);
}

.btn-release-header-all .arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.btn-release-header-all:hover .arrow-icon {
    transform: translateX(-3px);
}

html[dir="ltr"] .btn-release-header-all:hover .arrow-icon {
    transform: translateX(3px);
}

/* Main Magazine Card */
.latest-release-card {
    background: #FFFDF7;
    border: 1.5px solid #C89B3C;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(98, 46, 27,  0.08);
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: clamp(24px, 4vw, 45px);
    padding: clamp(20px, 3.5vw, 36px);
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.latest-release-card:hover {
    box-shadow: 0 14px 40px rgba(98, 46, 27,  0.14);
}

/* Cover Column & Frame */
.release-cover-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.release-cover-frame {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #FFFDF7 0%, #F5EEDB 100%);
    border: 2px solid #C89B3C;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(98, 46, 27,  0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
    max-width: 100%;
}

.release-cover-img {
    display: block;
    width: auto;
    max-width: 100%;
    /* DESKTOP: Max-Height strictly constrained between 480px and 520px */
    max-height: 490px;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(98, 46, 27,  0.2);
    transition: transform 0.3s ease;
}

.release-cover-frame:hover .release-cover-img {
    transform: scale(1.02);
}

.release-cover-badge {
    position: absolute;
    bottom: -10px;
    inset-inline-start: 50%;
    background: #833F25;
    color: #FFFDF7;
    border: 1.5px solid #C89B3C;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(131, 63, 37,  0.3);
    white-space: nowrap;
}

html[dir="rtl"] .release-cover-badge {
    transform: translateX(50%);
}
html[dir="ltr"] .release-cover-badge {
    transform: translateX(-50%);
}

/* Details Column */
.release-details-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.release-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.release-issue-tag {
    background: rgba(200, 155, 60, 0.15);
    color: #C89B3C;
    border: 1px solid #C89B3C;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.release-date-tag {
    color: #59655F;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
}

.release-magazine-name {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: #622E1B;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.release-description {
    font-size: 1rem;
    color: #59655F;
    line-height: 1.85;
    margin: 0 0 22px 0;
}

/* Spec Grid */
.release-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background: #FFFDF7;
    border: 1.5px solid #F8EFEA;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.release-spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.release-spec-item .spec-label {
    font-size: 0.78rem;
    color: #59655F;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.release-spec-item .spec-val {
    font-size: 0.98rem;
    color: #622E1B;
    font-weight: 800;
}

/* Buttons Row */
.release-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-release-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-release-primary {
    background: linear-gradient(135deg, #622E1B 0%, #421D10 100%);
    color: #FFFDF7 !important;
    border: 1.5px solid #622E1B;
    box-shadow: 0 4px 14px rgba(98, 46, 27,  0.3);
}

.btn-release-primary:hover {
    background: linear-gradient(135deg, #833F25 0%, #622E1B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(131, 63, 37,  0.4);
}

.btn-release-gold {
    background: linear-gradient(135deg, #C89B3C 0%, #B3862A 100%);
    color: #421D10 !important;
    border: 1.5px solid #E3BE68;
    box-shadow: 0 4px 14px rgba(200, 155, 60, 0.3);
    font-weight: 800;
}

.btn-release-gold:hover {
    background: linear-gradient(135deg, #E3BE68 0%, #C89B3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 155, 60, 0.45);
    color: #421D10 !important;
}

.btn-release-outline {
    background: #FFFDF7;
    color: #622E1B !important;
    border: 1.5px solid #C89B3C;
}

.btn-release-outline:hover {
    background: #F5EEDB;
    border-color: #622E1B;
    transform: translateY(-2px);
}

/* ==========================================================================
   TABLET RESPONSIVENESS (<= 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .latest-release-card {
        grid-template-columns: 320px 1fr;
        gap: 24px;
        padding: 24px;
    }

    .release-cover-img {
        max-height: 400px; /* Tablet constraint ~400px */
    }

    .release-magazine-name {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (<= 768px and <= 640px)
   ========================================================================== */
@media (max-width: 768px) {
    .latest-release-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .latest-release-header-actions {
        width: 100%;
    }

    .btn-release-header-all {
        width: 100%;
        justify-content: center;
    }

    .latest-release-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 20px 16px;
    }

    .release-cover-column {
        width: 100%;
    }

    .release-cover-frame {
        width: auto;
        padding: 12px;
    }

    .release-cover-img {
        /* Mobile max height strictly constrained between 320px and 380px */
        max-height: 350px;
    }

    .release-details-column {
        text-align: start;
    }

    .release-specs-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 10px;
    }

    .release-actions-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-release-action {
        width: 100%;
    }
}



