        /* =========================================
           MEHR FONT DEFINITION
           ========================================= */
        @font-face {
            font-family: 'Mehr';
            src: url('../webfonts/Mehr_Nastaliq_Web-v.-2.0.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        :root {
            /* Primary Palette - Deep Teal & Gold */
            --primary: #1a5f5a;
            --primary-dark: #134845;
            --primary-light: #2a7a74;
            --accent-gold: #c9a227;
            --accent-gold-light: #e6c65a;
            --accent-gold-dark: #9e7d1a;

            /* Reading-Friendly Backgrounds */
            --bg-cream: #faf8f3;
            --bg-warm: #f5f2eb;
            --bg-paper: #fffef9;
            --bg-card: #ffffff;

            /* Text Colors */
            --text-primary: #2c2c2c;
            --text-secondary: #5a5a5a;
            --text-muted: #8a8a8a;
            --text-light: #b0b0b0;

            /* Semantic Colors */
            --hadith-bg: #f0f7f6;
            --hadith-border: var(--primary);
            --reference-color: var(--primary);
            --objection-bg: #fef9f0;
            --answer-bg: #f0faf9;

            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(26, 95, 90, 0.06);
            --shadow-md: 0 4px 20px rgba(26, 95, 90, 0.08);
            --shadow-lg: 0 8px 40px rgba(26, 95, 90, 0.12);

            /* Typography - Updated to Mehr & Noto Naskh Arabic */
            --font-urdu: 'Mehr', 'Jameel Noori Nastaleeq', serif;
            --font-arabic: 'Noto Naskh Arabic', serif;

            /* Reading Optimized */
            --content-width: 780px;
            --line-height-urdu: 2.4;
            --line-height-arabic: 2.2;
        }

        /* ===================== */
        /* BASE STYLES */
        /* ===================== */
        
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--font-urdu);
            background-color: var(--bg-warm);
            color: var(--text-primary);
            line-height: var(--line-height-urdu);
            font-size: 18px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
        
        /* Selection Color */
        ::selection {
            background-color: var(--accent-gold-light);
            color: var(--primary-dark);
        }
        
        /* ===================== */
        /* READING PROGRESS BAR */
        /* ===================== */
        
        .reading-progress {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: transparent;
            z-index: 9999;
        }
        
        .reading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent-gold));
            width: 0%;
            transition: width 0.1s ease-out;
        }
        
        /* ===================== */
        /* GEOMETRIC PATTERNS */
        /* ===================== */
        
        .islamic-pattern {
            position: absolute;
            opacity: 0.03;
            pointer-events: none;
        }
        
        .pattern-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%231a5f5a' stroke-width='0.5'/%3E%3C/svg%3E");
            background-size: 30px 30px;
        }
        
        /* ===================== */
        /* TOP BAR */
        /* ===================== */
        
        .top-bar {
            background: var(--primary-dark);
            padding: 8px 0;
            font-size: 14px;
        }
        
        .top-bar a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .top-bar a:hover {
            color: var(--accent-gold-light);
        }
        
        .hijri-date {
            color: var(--accent-gold-light);
            font-weight: 600;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            margin-right: 6px;
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            background: var(--accent-gold);
            transform: translateY(-2px);
        }
        
        /* ===================== */
        /* HEADER / NAVBAR */
        /* ===================== */
        
        .main-header {
            background: var(--bg-paper);
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .main-header.scrolled {
            box-shadow: var(--shadow-md);
        }
        
        .header-content {
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 12px;
        }
        
        .logo-icon {
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            box-shadow: 0 4px 15px rgba(26, 95, 90, 0.3);
        }
        
        .logo-text {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
            font-family: var(--font-urdu);
        }
        
        .logo-tagline {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: -5px;
        }
        
        /* Search Box */
        .search-box {
            position: relative;
            max-width: 400px;
            flex: 1;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 50px 12px 20px;
            border: 2px solid transparent;
            border-radius: 50px;
            background: var(--bg-warm);
            font-family: var(--font-urdu);
            font-size: 15px;
            transition: all 0.3s ease;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--bg-paper);
            box-shadow: var(--shadow-sm);
        }
        
        .search-box input::placeholder {
            color: var(--text-muted);
        }
        
        .search-box button {
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border: none;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-box button:hover {
            background: var(--primary-dark);
        }
        
        /* Header Actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .theme-toggle {
            width: 44px;
            height: 44px;
            border: 2px solid var(--bg-warm);
            background: transparent;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .theme-toggle:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .app-buttons .btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
        }
        
        /* ===================== */
        /* NAVIGATION */
        /* ===================== */
        
        .main-nav {
            background: var(--primary);
            padding: 0;
        }
        
        .nav-container {
            display: flex;
            justify-content: center;
        }
        
        .main-nav .nav-link {
            color: rgba(255, 255, 255, 0.9);
            padding: 15px 20px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .main-nav .nav-link:hover,
        .main-nav .nav-link.active {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .main-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 20px;
            left: 20px;
            height: 3px;
            background: var(--accent-gold);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .main-nav .nav-link:hover::after,
        .main-nav .nav-link.active::after {
            transform: scaleX(1);
        }
        
        .main-nav .dropdown-menu {
            background: var(--bg-paper);
            border: none;
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            padding: 10px;
            min-width: 220px;
            margin-top: 0;
        }
        
        .main-nav .dropdown-item {
            padding: 10px 15px;
            border-radius: 8px;
            font-family: var(--font-urdu);
            transition: all 0.2s ease;
        }
        
        .main-nav .dropdown-item:hover {
            background: var(--bg-warm);
            color: var(--primary);
        }
        
        /* ===================== */
        /* ARTICLE HERO */
        /* ===================== */
        
        .article-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }
        
        .article-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0zM40 20L20 40L40 60L60 40L40 20z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
            background-size: 40px 40px;
        }
        
        .article-hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
        }
        
        .article-categories {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .article-category {
            display: inline-block;
            background: var(--accent-gold);
            color: var(--primary-dark);
            padding: 6px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        a.article-category:hover {
            background: var(--accent-gold-light);
            color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
        }
        
        .article-title {
            color: white;
            font-size: 36px;
            font-weight: 700;
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto 25px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .article-meta {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 15px;
        }
        
        .meta-item i {
            color: var(--accent-gold-light);
        }
        
        /* ===================== */
        /* ARTICLE ACTIONS BAR */
        /* ===================== */
        
        .article-actions-bar {
            background: var(--bg-paper);
            border-bottom: 1px solid rgba(26, 95, 90, 0.1);
            padding: 12px 0;
            position: sticky;
            top: 0;
            z-index: 999;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        /* Enhanced shadow when scrolling */
        .article-actions-bar.is-sticky {
            box-shadow: 0 4px 20px rgba(26, 95, 90, 0.15);
            backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.98);
        }

        /* Tohed Actions Integration - Enhanced Styling */
        .article-actions-bar .tohed-actions {
            width: auto;
            justify-content: flex-start;
            margin: 0;
            gap: 12px;
        }

        /* Override default button styles from plugin */
        .article-actions-bar .tohed-actions button {
            width: 44px !important;
            height: 44px !important;
            padding: 0 !important;
            border-radius: 10px !important;
            background: var(--bg-warm) !important;
            border: 2px solid transparent !important;
            backdrop-filter: none !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            position: relative;
            overflow: visible;
        }

        /* Notes Button - Teal Variant */
        .article-actions-bar .tohed-notes-btn i {
            color: var(--primary) !important;
            font-size: 19px !important;
            filter: none !important;
        }

        .article-actions-bar .tohed-notes-btn:hover {
            background: var(--primary) !important;
            border-color: var(--primary) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(26, 95, 90, 0.3) !important;
        }

        .article-actions-bar .tohed-notes-btn:hover i {
            color: white !important;
        }

        /* Bookmark Button - Gold Variant */
        .article-actions-bar .tohed-bookmark-btn i {
            color: var(--accent-gold) !important;
            font-size: 19px !important;
            filter: none !important;
        }

        .article-actions-bar .tohed-bookmark-btn:hover {
            background: var(--accent-gold) !important;
            border-color: var(--accent-gold) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3) !important;
        }

        .article-actions-bar .tohed-bookmark-btn:hover i {
            color: var(--primary-dark) !important;
        }

        /* PDF Button - Accent Teal Variant */
        .article-actions-bar .tohed-pdf-btn i {
            color: #2a8a84 !important;
            font-size: 19px !important;
            filter: none !important;
        }

        .article-actions-bar .tohed-pdf-btn:hover {
            background: #2a8a84 !important;
            border-color: #2a8a84 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(42, 138, 132, 0.3) !important;
        }

        .article-actions-bar .tohed-pdf-btn:hover i {
            color: white !important;
        }

        /* Copy Button - Secondary Teal */
        .article-actions-bar .tohed-copy-btn i {
            color: #3d7a75 !important;
            font-size: 19px !important;
            filter: none !important;
        }

        .article-actions-bar .tohed-copy-btn:hover {
            background: #3d7a75 !important;
            border-color: #3d7a75 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(61, 122, 117, 0.3) !important;
        }

        .article-actions-bar .tohed-copy-btn:hover i {
            color: white !important;
        }

        /* Active/Processing States */
        .article-actions-bar .tohed-actions button.is-processing {
            opacity: 0.7 !important;
            cursor: wait !important;
            pointer-events: none !important;
        }

        .article-actions-bar .tohed-actions button.is-success {
            background: #10b981 !important;
            border-color: #10b981 !important;
        }

        .article-actions-bar .tohed-actions button.is-success i {
            color: white !important;
        }

        /* Bookmark Active State (when bookmarked) */
        .article-actions-bar .tohed-bookmark-btn.is-bookmarked {
            background: var(--accent-gold) !important;
            border-color: var(--accent-gold) !important;
        }

        .article-actions-bar .tohed-bookmark-btn.is-bookmarked i {
            color: var(--primary-dark) !important;
        }

        /* Enhanced Tooltips */
        .article-actions-bar .tohed-actions button::before {
            bottom: -35px !important;
            background: rgba(30, 41, 59, 0.95) !important;
            color: #f1f5f9 !important;
            padding: 6px 12px !important;
            border-radius: 6px !important;
            font-size: 13px !important;
            font-family: var(--font-urdu) !important;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
            white-space: nowrap !important;
        }

        /* Active State Animation */
        @keyframes buttonPress {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }

        .article-actions-bar .tohed-actions button:active {
            animation: buttonPress 0.2s ease !important;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border: 2px solid var(--bg-warm);
            background: transparent;
            border-radius: 8px;
            color: var(--text-secondary);
            font-family: var(--font-urdu);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .action-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--bg-warm);
        }
        
        .action-btn.primary {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }
        
        .action-btn.primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
        }
        
        /* Font Size Controls */
        .font-controls {
            display: flex;
            align-items: center;
            gap: 5px;
            background: var(--bg-warm);
            padding: 5px;
            border-radius: 8px;
        }
        
        .font-btn {
            width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }
        
        .font-btn:hover {
            background: var(--bg-paper);
            color: var(--primary);
        }
        
        .font-btn.active {
            background: var(--primary);
            color: white;
        }
        
        /* ===================== */
        /* MAIN CONTENT AREA */
        /* ===================== */
        
        .content-wrapper {
            display: block;
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .article-content {
            background: var(--bg-paper);
            border-radius: 20px;
            padding: 50px;
            box-shadow: var(--shadow-sm);
        }
        
        /* Share Section */
        .share-section {
            background: linear-gradient(135deg, rgba(26, 95, 90, 0.05) 0%, rgba(201, 162, 39, 0.08) 100%);
            border: 2px solid rgba(26, 95, 90, 0.15);
            border-radius: 16px;
            padding: 30px;
            margin-top: 50px;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            gap: 25px;
            transition: all 0.3s ease;
        }

        .share-section:hover {
            border-color: var(--primary);
            box-shadow: 0 8px 20px rgba(26, 95, 90, 0.12);
        }

        .share-icon {
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(26, 95, 90, 0.2);
        }

        .share-icon i {
            font-size: 26px;
            color: white;
        }

        .share-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .share-text {
            margin: 0;
            color: var(--text-primary);
            font-size: 17px;
            font-weight: 600;
            line-height: 1.6;
        }

        .share-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .share-btn {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .share-btn i {
            font-size: 20px;
        }

        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        }

        .share-whatsapp {
            background: #25D366;
            color: white;
        }

        .share-whatsapp:hover {
            background: #1fb855;
        }

        .share-facebook {
            background: #1877F2;
            color: white;
        }

        .share-facebook:hover {
            background: #0c63d4;
        }

        .share-twitter {
            background: #1DA1F2;
            color: white;
        }

        .share-twitter:hover {
            background: #0d8bd9;
        }

        .share-telegram {
            background: #0088cc;
            color: white;
        }

        .share-telegram:hover {
            background: #0077b3;
        }
        
        /* Section Headers */
        .section-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 50px 0 30px;
        }
        
        .section-number {
            width: 45px;
            height: 45px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            flex-shrink: 0;
        }
        
        .section-title {
            font-size: 26px;
            font-weight: 700;
            color: var(--primary);
            margin: 0;
        }
        
        /* Hadith Block */
        .hadith-block {
            background: var(--hadith-bg);
            border-right: 5px solid var(--primary);
            border-radius: 0 15px 15px 0;
            padding: 30px;
            margin: 25px 0;
        }
        
        .hadith-narrator {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed rgba(26, 95, 90, 0.2);
        }
        
        .hadith-arabic {
            font-family: var(--font-arabic);
            font-size: 24px;
            line-height: var(--line-height-arabic);
            color: var(--text-primary);
            direction: rtl;
            margin-bottom: 20px;
        }
        
        .hadith-urdu {
            font-size: 18px;
            line-height: var(--line-height-urdu);
            color: var(--text-secondary);
            padding-top: 15px;
            border-top: 1px dashed rgba(26, 95, 90, 0.2);
        }
        
        .hadith-reference {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(26, 95, 90, 0.1);
            font-size: 15px;
            color: var(--primary);
            font-weight: 600;
        }
        
        /* Regular Paragraph */
        .article-content p {
            font-size: 18px;
            line-height: var(--line-height-urdu);
            margin-bottom: 20px;
            text-align: justify;
        }
        
        /* Objection & Answer Blocks */
        .qa-block {
            margin: 40px 0;
            border-radius: 15px;
            overflow: hidden;
        }
        
        .objection-block {
            background: var(--objection-bg);
            padding: 25px 30px;
            border-right: 4px solid var(--accent-gold);
        }
        
        .objection-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .objection-icon {
            width: 35px;
            height: 35px;
            background: var(--accent-gold);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .objection-label {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent-gold-dark);
        }
        
        .answer-block {
            background: var(--answer-bg);
            padding: 25px 30px;
            border-right: 4px solid var(--primary);
        }
        
        .answer-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .answer-icon {
            width: 35px;
            height: 35px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .answer-label {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .answer-points {
            list-style: none;
            padding: 0;
            margin: 20px 0 0;
        }
        
        .answer-points li {
            padding: 12px 0;
            padding-right: 35px;
            position: relative;
            border-bottom: 1px dashed rgba(26, 95, 90, 0.15);
        }
        
        .answer-points li:last-child {
            border-bottom: none;
        }
        
        .answer-points li::before {
            content: '';
            position: absolute;
            right: 0;
            top: 20px;
            width: 20px;
            height: 20px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
        }
        
        .answer-points li:nth-child(1)::before { content: '۱'; }
        .answer-points li:nth-child(2)::before { content: '۲'; }
        .answer-points li:nth-child(3)::before { content: '۳'; }
        .answer-points li:nth-child(4)::before { content: '۴'; }
        .answer-points li:nth-child(5)::before { content: '۵'; }
        
        /* Reference Citation */
        .reference {
            color: var(--primary);
            font-weight: 600;
        }
        
        /* ===================== */
        /* SIDEBAR */
        /* ===================== */
        
        .sidebar {
            position: sticky;
            top: 150px;
            height: fit-content;
        }
        
        .sidebar-widget {
            background: var(--bg-paper);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: var(--shadow-sm);
        }
        
        .widget-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--bg-warm);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .widget-title i {
            color: var(--accent-gold);
        }
        
        /* Table of Contents */
        .toc-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .toc-list li {
            margin-bottom: 8px;
        }
        
        .toc-list a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 14px;
            transition: all 0.2s ease;
        }
        
        .toc-list a:hover,
        .toc-list a.active {
            background: var(--bg-warm);
            color: var(--primary);
        }
        
        .toc-number {
            width: 24px;
            height: 24px;
            background: var(--bg-warm);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .toc-list a.active .toc-number,
        .toc-list a:hover .toc-number {
            background: var(--primary);
            color: white;
        }
        
        /* Tags Widget */
        .tags-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag-link {
            display: inline-block;
            padding: 6px 14px;
            background: var(--bg-warm);
            border-radius: 50px;
            font-size: 13px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .tag-link:hover {
            background: var(--primary);
            color: white;
        }

        /* ===================== */
        /* POST NAVIGATION */
        /* ===================== */

        .post-navigation-section {
            background: var(--bg-paper);
            padding: 40px 0;
            border-top: 1px solid rgba(26, 95, 90, 0.1);
            border-bottom: 1px solid rgba(26, 95, 90, 0.1);
        }

        .post-nav-wrapper {
            display: flex;
            align-items: stretch;
            gap: 0;
        }

        .post-nav-item {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 25px 30px;
            text-decoration: none;
            transition: all 0.3s ease;
            border-radius: 12px;
        }

        .post-nav-item:hover {
            background: rgba(26, 95, 90, 0.04);
        }

        .post-nav-next {
            justify-content: flex-start;
            text-align: right;
        }

        .post-nav-prev {
            justify-content: flex-end;
            text-align: right;
        }

        .post-nav-divider {
            width: 1px;
            background: linear-gradient(to bottom, transparent, rgba(26, 95, 90, 0.2), transparent);
            margin: 10px 0;
        }

        .post-nav-content {
            flex: 1;
        }

        .post-nav-label {
            font-size: 14px;
            color: var(--accent-gold-dark);
            font-weight: 600;
            display: block;
            margin-bottom: 8px;
        }

        .post-nav-title {
            font-family: 'Mehr', 'Jameel Noori Nastaleeq', serif;
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-dark);
            margin: 0;
            line-height: 1.6;
            transition: color 0.3s ease;
        }

        .post-nav-item:hover .post-nav-title {
            color: var(--primary);
        }

        .post-nav-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, var(--primary) 0%, #2a8a84 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .post-nav-icon i {
            color: white;
            font-size: 16px;
        }

        .post-nav-item:hover .post-nav-icon {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(26, 95, 90, 0.3);
        }

        .post-nav-empty {
            flex: 1;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .post-nav-wrapper {
                flex-direction: column;
                gap: 0;
            }

            .post-nav-divider {
                width: 100%;
                height: 1px;
                margin: 0;
            }

            .post-nav-item {
                padding: 20px;
            }

            .post-nav-next {
                border-bottom: none;
            }

            .post-nav-title {
                font-size: 16px;
            }
        }

        /* ===================== */
        /* RELATED ARTICLES */
        /* ===================== */
        
        .related-section {
            background: var(--bg-warm);
            padding: 60px 0;
        }
        
        .section-heading {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .section-heading h2 {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .section-heading p {
            color: var(--text-muted);
            font-size: 16px;
        }
        
        .article-card {
            background: var(--bg-paper);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        
        .card-header-accent {
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--accent-gold));
        }
        
        .card-body {
            padding: 25px;
        }
        
        .card-category {
            display: inline-block;
            font-size: 12px;
            color: var(--accent-gold-dark);
            font-weight: 600;
            margin-bottom: 10px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        a.card-category:hover {
            color: var(--accent-gold);
            transform: translateX(-2px);
        }
        
        .card-title {
            font-size: 17px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.8;
            margin-bottom: 15px;
        }
        
        .card-title a {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s ease;
        }
        
        .card-title a:hover {
            color: var(--primary);
        }
        
        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-muted);
        }
        
        /* ===================== */
        /* NEWSLETTER */
        /* ===================== */
        
        .newsletter-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }
        
        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
            background-size: 30px 30px;
        }
        
        .newsletter-content {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .newsletter-icon {
            width: 70px;
            height: 70px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            font-size: 28px;
            color: var(--accent-gold-light);
        }
        
        .newsletter-content h3 {
            color: white;
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        .newsletter-content p {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 30px;
        }
        
        .newsletter-form {
            display: flex;
            gap: 12px;
            max-width: 450px;
            margin: 0 auto;
        }
        
        .newsletter-form input {
            flex: 1;
            padding: 15px 25px;
            border: none;
            border-radius: 50px;
            font-family: var(--font-urdu);
            font-size: 15px;
            background: white;
        }
        
        .newsletter-form input::placeholder {
            color: var(--text-muted);
        }
        
        .newsletter-form button {
            padding: 15px 30px;
            background: var(--accent-gold);
            color: var(--primary-dark);
            border: none;
            border-radius: 50px;
            font-family: var(--font-urdu);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .newsletter-form button:hover {
            background: var(--accent-gold-light);
            transform: translateY(-2px);
        }

        /* TML Form Integration Styles */
        .newsletter-section .tml-subscribe-wrapper {
            padding: 0;
            margin: 0;
        }

        .newsletter-section .tml-subscribe-form {
            background: transparent;
            border: none;
            box-shadow: none;
            max-width: 600px;
        }

        .newsletter-section .tml-subscribe-form:hover {
            transform: none;
            box-shadow: none;
        }

        .newsletter-section .tml-subscribe-form::before {
            display: none;
        }

        .newsletter-section .tml-header {
            background: transparent;
            border: none;
            padding: 0 0 30px;
        }

        .newsletter-section .tml-title {
            color: white;
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .newsletter-section .tml-title i {
            color: var(--accent-gold-light);
            font-size: 28px;
        }

        .newsletter-section .tml-subtitle {
            color: rgba(255, 255, 255, 0.85);
            font-size: 16px;
        }

        .newsletter-section .tml-form {
            padding: 0;
        }

        .newsletter-section .tml-input-group {
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-section .tml-input {
            background: white;
            border: none;
            border-radius: 50px;
            padding: 15px 45px 15px 25px;
            font-size: 15px;
            text-align: right;
            direction: rtl;
        }

        .newsletter-section .tml-input:focus {
            background: white;
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .newsletter-section .tml-input-icon {
            right: auto;
            left: 20px;
            color: var(--accent-gold);
        }

        .newsletter-section .tml-button {
            background: var(--accent-gold);
            color: var(--primary-dark);
            border-radius: 50px;
            padding: 15px 30px;
            box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
        }

        .newsletter-section .tml-button:hover {
            background: var(--accent-gold-light);
            box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
        }

        .newsletter-section .tml-notice-area .tml-notice {
            margin: 20px auto 0;
            max-width: 500px;
        }

        /* ===================== */
        /* FOOTER */
        /* ===================== */
        
        .main-footer {
            background: #1a1a1a;
            color: rgba(255, 255, 255, 0.7);
            padding-top: 60px;
        }
        
        .footer-top {
            padding-bottom: 40px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-brand {
            margin-bottom: 25px;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .footer-logo-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }
        
        .footer-logo-text {
            font-size: 28px;
            font-weight: 700;
            color: white;
        }
        
        .footer-desc {
            font-size: 15px;
            line-height: 1.8;
            max-width: 300px;
        }
        
        .footer-social {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .footer-social a {
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.3s ease;
        }
        
        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        
        .footer-title {
            font-size: 18px;
            font-weight: 700;
            color: white;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 12px;
        }
        
        .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40px;
            height: 3px;
            background: var(--accent-gold);
            border-radius: 2px;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 15px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .footer-links a:hover {
            color: var(--accent-gold);
            padding-right: 5px;
        }
        
        .footer-links a i {
            font-size: 12px;
            color: var(--accent-gold);
        }
        
        .app-download {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .app-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 18px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;
        }
        
        .app-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .app-btn i {
            font-size: 22px;
        }
        
        .app-btn span {
            font-size: 13px;
        }
        
        .app-btn strong {
            display: block;
            font-size: 14px;
        }
        
        .footer-bottom {
            padding: 25px 0;
            text-align: center;
            font-size: 14px;
        }
        
        .footer-bottom a {
            color: var(--accent-gold);
            text-decoration: none;
        }
        
        /* ===================== */
        /* SCROLL TO TOP */
        /* ===================== */
        
        .scroll-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
            z-index: 999;
        }
        
        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .scroll-top:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
        }

        /* ===================== */
        /* RESPONSIVE */
        /* ===================== */
        
        @media (max-width: 992px) {
            .article-content {
                padding: 30px;
            }

            .article-title {
                font-size: 28px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                font-size: 16px;
            }

            .search-box {
                display: none;
            }

            .article-hero {
                padding: 40px 0;
            }

            .article-title {
                font-size: 24px;
            }

            .article-content {
                padding: 25px;
                border-radius: 15px;
            }

            /* Mobile Action Buttons */
            .article-actions-bar .tohed-actions {
                gap: 8px;
            }

            .article-actions-bar .tohed-actions button {
                width: 40px !important;
                height: 40px !important;
            }

            .article-actions-bar .tohed-actions button i {
                font-size: 17px !important;
            }

            .article-actions-bar .tohed-actions button::before {
                font-size: 12px !important;
                padding: 5px 10px !important;
            }

            /* Mobile Share Section */
            .share-section {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 25px 20px;
                gap: 20px;
            }

            .share-icon {
                width: 50px;
                height: 50px;
            }

            .share-icon i {
                font-size: 22px;
            }

            .share-content {
                flex-direction: column;
                justify-content: center;
                gap: 15px;
            }

            .share-text {
                font-size: 15px;
            }

            .share-buttons {
                justify-content: center;
                gap: 10px;
            }

            .share-btn {
                width: 42px;
                height: 42px;
            }

            .share-btn i {
                font-size: 18px;
            }

            .hadith-block {
                padding: 20px;
            }

            .hadith-arabic {
                font-size: 20px;
            }
            
            .section-title {
                font-size: 22px;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .footer-top .row > div {
                margin-bottom: 30px;
            }
        }
        
        /* ===================== */
        /* ANIMATIONS */
        /* ===================== */
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }
        
        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        
        /* Print Styles */
        @media print {
            .main-header,
            .article-actions-bar,
            .newsletter-section,
            .main-footer,
            .scroll-top {
                display: none !important;
            }

            .article-content {
                box-shadow: none;
                padding: 0;
            }
        }

        /* =========================================
           CUSTOM CONTENT CLASSES (Mehr Font Integration)
           ========================================= */

        /* Enhanced Headings with Mehr Font - Teal Color Family */
        .article-content h1,
        .article-content h2,
        .article-content h3 {
            font-family: 'Mehr', 'Jameel Noori Nastaleeq', serif;
            font-weight: bold;
        }

        /* Primary Title - Darkest Teal */
        .article-content h1 {
            color: #0d3430;
            font-size: 32px;
            line-height: 1.6;
            margin: 30px 0 20px;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
        }

        /* Section Headings - Medium Teal */
        .article-content h2 {
            color: #1a5f5a;
            font-size: 28px;
            line-height: 1.6;
            margin: 25px 0 18px;
        }

        /* Subsection Headings - Lighter Teal */
        .article-content h3 {
            color: #2a8a84;
            font-size: 24px;
            line-height: 1.6;
            margin: 20px 0 15px;
        }

        /* Override Fix for nested spans */
        .article-content h1 .blue1,
        .article-content h2 .blue1,
        .article-content h3 .blue1,
        .article-content h1 span,
        .article-content h2 span,
        .article-content h3 span {
            color: inherit !important;
            font-size: inherit !important;
            line-height: inherit !important;
            font-family: inherit !important;
        }

        /* Legacy blue1 class */
        .blue1 {
            color: var(--primary);
            font-weight: bold;
            font-family: 'Mehr', 'Jameel Noori Nastaleeq', serif;
            font-size: 30px;
            line-height: 36px;
            margin-bottom: 15px;
            text-align: right;
            direction: rtl;
        }

        /* Reference citations - Distinct with subtle styling */
        .ref {
            font-family: 'Noto Naskh Arabic', serif;
            color: #3d6b5e;
            font-size: 20px;
            font-weight: 700;
            direction: rtl;
            unicode-bidi: isolate;
            background: rgba(201, 162, 39, 0.08);
            padding: 3px 8px;
            border-radius: 5px;
            border-right: 2px solid var(--accent-gold);
        }

        /* Arabic Text - Teal for Quranic/Arabic content */
        .uarabic1w {
            font-family: 'Noto Naskh Arabic', serif;
            font-size: 24px;
            line-height: 38px;
            color: var(--primary);
            font-weight: 600;
            direction: rtl;
            unicode-bidi: isolate;
            text-rendering: optimizeLegibility;
        }

        /* Author Reference Box (btahreer) */
        .btahreer {
            font-size: 26px;
            color: var(--primary-dark);
            line-height: 38px;
            text-align: right;
            padding: 18px 22px;
            margin-bottom: 25px;
            direction: rtl;
            font-family: 'Mehr', 'Jameel Noori Nastaleeq', serif;
            background: linear-gradient(135deg, #f0f9f8 0%, #e8f5f4 50%, #e0f2f1 100%);
            border: 1px solid rgba(26, 95, 90, 0.25);
            border-right: 5px solid var(--accent-gold);
            border-radius: 10px;
            box-shadow:
                0 3px 12px rgba(26, 95, 90, 0.1),
                0 1px 3px rgba(26, 95, 90, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
            padding-right: 54px;
        }

        .btahreer::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 50%, var(--primary) 100%);
        }

        /* Red pin icon */
        .btahreer::after {
            content: "📌";
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 22px;
            line-height: 1;
            filter: saturate(1.2);
            opacity: 0.95;
            pointer-events: none;
        }

        /* Links inside btahreer */
        .btahreer a {
            color: var(--primary);
            text-decoration: underline;
            text-decoration-color: var(--accent-gold);
            text-underline-offset: 4px;
            transition: all 0.3s ease;
        }

        .btahreer a:hover {
            color: var(--primary-dark);
            text-decoration-color: var(--primary);
        }

        /* Blue highlight class */
        .blue {
            color: #1a5fb4;
            font-weight: 600;
        }

        /* Selection Styling for content */
        .article-content ::selection {
            background: rgba(212, 168, 83, 0.3);
            color: #1a3a5c;
        }

        /* Horizontal Rule in content */
        .article-content hr {
            border: none;
            height: 2px;
            background: linear-gradient(90deg, transparent 0%, #d4a853 50%, transparent 100%);
            margin: 35px 0;
        }

        /* Mobile adjustments for custom classes */
        @media (max-width: 600px) {
            .btahreer {
                font-size: 22px;
                line-height: 34px;
                padding: 14px 16px;
                padding-right: 46px;
            }

            .btahreer::after {
                right: 14px;
                font-size: 20px;
            }

            .ref {
                font-size: 18px;
            }

            .blue1 {
                font-size: 26px;
                line-height: 32px;
            }
        }
    </style>
