
:root {
    /* Islamic Color Palette */
    --primary: #1a4d2e;
    --primary-light: #f1f8f4;
    --secondary: #2c5f7c;
    --secondary-light: #e8f1f5;
    --accent: #b8956a;
    --accent-light: #f5f1e8;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
    
    /* Border Radius */
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, #15402a 100%);
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
}

.site-title {
    font-family: 'Amiri', serif;
    color: var(--accent);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* Header Images */
.header-images {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.header-img-box {
    flex: 1;
    min-width: 140px;
    max-width: 525px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-white);
}

.header-img-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.header-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   MAIN CONTENT WRAPPER
   ========================================== */
.content-wrapper {
    padding: 2rem 0;
}

/* ==========================================
   SIDEBAR - Numbered List
   ========================================== */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: visible;
    border: 1px solid var(--border-light);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    font-size: 22px;
    font-weight:700;
    
}

.sidebar-link:hover {
    background: var(--secondary-light);
    color: var(--secondary);
}

.link-number {
    color: #000;
    font-weight: 600;
    min-width: 2rem;
    font-size: medium;
    font-weight:700;
}

.sidebar-link .link-text {
    flex: 1;
}

/* ==========================================
   CONTENT AREA
   ========================================== */
#page_content {
    min-height: 500px;
}

/* Visit Counter in Content Area */
.stats-card {
    background: linear-gradient(135deg, #8b4513, #6b3410);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139,69,19,0.3);
}

.stats-card h4 {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.counter-display {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0 0 0;
    border: 2px solid rgba(255,255,255,0.25);
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-title {
    font-family: 'Amiri', serif;
    color: var(--primary);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-light);
    font-weight: 700;
}

.content-body {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, #8b4513, #6b3410);
    color: var(--bg-white);
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.8;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .site-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
    }
}

@media (max-width: 992px) {
    .site-header {
        padding: 1.5rem 0;
    }
    
    .header-images {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .header-images {
        gap: 0.8rem;
    }
    
    .header-img-box {
        min-width: 110px;
        max-width: 140px;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 1.2rem 0;
    }
    
    .header-images {
        gap: 0.6rem;
    }
}

/* High Zoom Support */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1320px;
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .sidebar-card,
    .site-footer,
    .stats-card {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
