It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: http://darulifta.info

  1. <!DOCTYPE html>
  2. <html dir="rtl" lang="ur" data-theme="books">
  3. <head>
  4.    <meta charset="utf-8">
  5.    <meta name="google-site-verification" content="V47Gk7016Q0YQGLflcALRq7bpOPIGq32atC3-UhJj7Q" />
  6.    <meta name="viewport" content="user-scalable=yes, initial-scale=1, maximum-scale=5, minimum-scale=1, width=device-width">
  7.    <meta name="format-detection" content="telephone=no">
  8.    <meta name="msapplication-tap-highlight" content="no">
  9.    <link rel="icon" href="https://www.darulifta.info/public/images/icon/96.png" type="image/png">
  10.    <meta property="og:image" content="https://www.darulifta.info/public/images/og.icon.png">
  11.    <meta property="og:image:width" content="96">
  12.    <meta property="og:image:height" content="96">
  13.    <meta name="description" content="دار الافتاء انفو ایک مفت اسلامی ویب سائٹ ہے جو مفت فتاوی، اسلامی مضامین، اور دینی معلومات فراہم کرتی ہے۔ یہاں آپ کو مختلف موضوعات پر مستند اسلامی رہنمائی ملے گی۔">
  14.    <meta name="keywords" content="دار الافتاء, فتاوی, اسلامی مضامین, دینی معلومات, مفت فتاوی, اسلامی ویب سائٹ, شرعی مسائل, اسلامی تعلیمات, قرآن و حدیث, اسلامی رہنمائی">
  15.    <title>دار الافتاء . انفو | Darulifta.info</title>
  16.    <link rel="stylesheet" href="https://www.darulifta.info/public/build/web/assets/web-CQdcThB0.css">
  17. <script type="module" src="https://www.darulifta.info/public/build/web/assets/web-C_r3nzUa.js"></script>
  18.    
  19.  
  20.    
  21.    <!-- Alpine.js for interactive components -->
  22.    
  23.    <!-- Critical CSS for faster rendering -->
  24.    <style>
  25.        @font-face{
  26.            font-family:'meher';
  27.            font-style:normal;
  28.            font-weight:400;
  29.            src:url('https://www.darulifta.info/public/fonts/mehr_nastaliq_web.ttf') format('truetype');
  30.            font-display: swap;
  31.        }
  32.        .font-ur {
  33.            font-family: "meher", "jameel noori nastaliq", "Noto Sans Arabic", sans-serif;
  34.        }
  35.        /* Critical above-fold styles */
  36.        body { font-family: "meher", sans-serif; }
  37.        .hero-gradient { background: linear-gradient(135deg, #059669 0%, #065f46 100%); }
  38.        .loading-skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; }
  39.        @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  40.    </style>
  41.  
  42.  
  43.  
  44.  
  45.  
  46.    
  47.        <!--head-str -->
  48.        
  49.    
  50.  
  51. </head>
  52. <body class="font-ur min-h-screen flex flex-col bg-gray-50 dark:bg-gray-950 transition-colors duration-300">
  53.    
  54.    <!-- Modern Header with Auto-hide -->
  55.    <header id="main-header" class="sticky top-0 z-50 w-full border-b shadow-sm transition-all duration-300 bg-white/90 border-green-100 backdrop-blur-md dark:bg-gray-900/90 dark:border-gray-800">
  56.        <div class="container mx-auto px-2 sm:px-4">
  57.            <nav class="navbar py-1 sm:py-2 flex items-center justify-between">
  58.                <!-- Mobile Menu Toggle -->
  59.                <button onclick="toggleMobileMenu()" class=" btn btn-ghost btn-circle text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-gray-800 transition-all p-1">
  60.                    <span id="menu-icon" class="icon-[mdi--menu] text-2xl sm:text-3xl"></span>
  61.                </button>
  62. <a href="https://www.darulifta.info" class="flex items-center mx-1 sm:mx-2 md:mx-0">
  63.                        <img src="https://www.darulifta.info/public/images/nav-bar-logo.png" class="h-9 sm:h-7 drop-shadow-md" alt="Logo" >
  64.                    </a>
  65.                <!-- Desktop Links -->
  66.                <div class="hidden lg:flex items-center gap-1 xl:gap-2">
  67.                  
  68.                    <a href="https://www.darulifta.info/dars" class="nav-link text-sm xl:text-base">
  69.                        <span class="icon-[mdi--list-box-outline] text-base xl:text-lg"></span>
  70.                        فتاوی
  71.                    </a>
  72.                    <a href="https://www.darulifta.info/ask" class="nav-link text-sm xl:text-base">
  73.                        <span class="icon-[mdi--help-circle-outline] text-base xl:text-lg"></span>
  74.                        سوال پوچھیں
  75.                    </a>
  76.                    <a href="https://www.darulifta.info/about" class="nav-link text-sm xl:text-base">
  77.                        <span class="icon-[mdi--information-outline] text-base xl:text-lg"></span>
  78.                        تعارف
  79.                    </a>
  80.                </div>
  81.                
  82.              
  83.                    
  84.              
  85.                
  86.                <!-- Controls -->
  87.                <div class="navbar-end gap-2">
  88.                    <a href="https://www.darulifta.info/search" class="btn btn-ghost btn-circle text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-gray-800 transition-all p-1">
  89.                        <span class="icon-[mdi--search] text-xl sm:text-2xl"></span>
  90.                    </a>
  91.                    
  92.                                    </div>
  93.            </nav>
  94.        </div>
  95.    </header>
  96.  
  97.    <!-- Mobile Menu Overlay -->
  98.    <div id="mobile-overlay" class="fixed inset-0 bg-black/40 dark:bg-black/60 backdrop-blur-sm z-[9998]  transition-opacity duration-300 opacity-0 pointer-events-none"></div>
  99.  
  100.    <!-- Mobile Menu Drawer -->
  101.    <aside id="mobile-menu" class="fixed top-0 right-0 h-full w-72 shadow-2xl z-[9999] bg-white dark:bg-gray-900 border-l border-gray-200 dark:border-gray-800 transition-transform duration-300  flex flex-col translate-x-full">
  102.        <div class="p-4 flex-shrink-0 border-b border-gray-100 dark:border-gray-800 flex items-center justify-between">
  103.            <a href="https://www.darulifta.info" class="flex items-center gap-3">
  104.                <img src="https://www.darulifta.info/public/images/nav-bar-logo.png" class="h-10 drop-shadow-md" alt="Logo" >
  105.            </a>
  106.            <button onclick="closeMobileMenu()" class="btn btn-ghost btn-circle">
  107.                <span class="icon-[mdi--close] text-2xl"></span>
  108.            </button>
  109.        </div>
  110.        <nav class="flex-1 overflow-y-auto p-4 space-y-2">
  111.            <a href="https://www.darulifta.info" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  112.                <span class="icon-[mdi--home-variant-outline] text-xl text-green-700 dark:text-green-400"></span>
  113.                سرورق
  114.            </a>
  115.            <a href="https://www.darulifta.info/dars" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  116.                <span class="icon-[mdi--list-box-outline] text-xl text-green-700 dark:text-green-400"></span>
  117.               فتاوی
  118.            </a>
  119.          
  120.            <div class="border-t my-2 border-gray-200 dark:border-gray-700"></div>
  121.          
  122.            <h2 class="text-base text-gray-300 dark:text-white text-center">مفید خدمات اور لنکس</h2>
  123.            <a href="https://www.darulifta.info/zakat-calculator" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  124.                <span class="icon-[mdi--calculator-variant-outline] text-xl text-green-700 dark:text-green-400"></span>
  125.                زکوۃ کیلکولیٹر
  126.            </a>
  127.            <a href="https://www.darulifta.info/edda-calculator" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  128.                <span class="icon-[mdi--calendar-clock-outline] text-xl text-green-700 dark:text-green-400"></span>
  129.                عدت وفات کیلکولیٹر
  130.            </a>
  131.            <a href="https://www.darulifta.info/fidya-calculator" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  132.                <span class="icon-[mdi--hand-coin-outline] text-xl text-green-700 dark:text-green-400"></span>
  133.                فدیہ کیلکولیٹر
  134.            </a>
  135.            <a href="https://www.darulifta.info/awzan-calculator" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  136.                <span class="icon-[mdi--scale-balance] text-xl text-green-700 dark:text-green-400"></span>
  137.                اوزان شرعیہ کیلکولیٹر
  138.            </a>
  139.             <a href="https://t.me/FatwaBot" target="_blank" rel="noopener" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  140.                <span class="icon-[mdi--robot-happy-outline] text-xl text-green-700 dark:text-green-400"></span>
  141.                تلاش فتویٰ ٹیلی گرام بوٹ
  142.            </a>
  143.            <div class="border-t my-2 border-gray-200 dark:border-gray-700"></div>
  144.             <a href="https://www.darulifta.info/ask" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  145.                <span class="icon-[mdi--help-circle-outline] text-xl text-green-700 dark:text-green-400"></span>
  146.                سوال پوچھیں
  147.            </a>
  148.            <a href="https://www.darulifta.info/about" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  149.                <span class="icon-[mdi--information-outline] text-xl text-green-700 dark:text-green-400"></span>
  150.                تعارف
  151.            </a>
  152.  
  153.            
  154.             <a href="https://www.darulifta.info/contact-us" class="mobile-link text-green-800 dark:text-white hover:text-green-900 dark:hover:text-white">
  155.                <span class="icon-[mdi--phone-outline] text-xl text-green-700 dark:text-green-400"></span>
  156.                رابطہ کریں
  157.            </a>
  158.          
  159.        </nav>
  160.    </aside>
  161.    
  162.    <!-- Main Content -->
  163.    <main class="flex-grow">
  164.        <div class="min-h-[60vh]">
  165.            <!-- Modern Hero Section with Clean Design -->
  166.    <section class="bg-gradient-to-b from-green-50 to-white dark:from-gray-900 dark:to-gray-800 py-8 md:py-16 lg:py-20">
  167.        <div class="container px-3 sm:px-4 mx-auto">
  168.            <!-- Clean Counter Text -->
  169.            <div class="text-center mb-6 sm:mb-8">
  170.                <p class="text-base sm:text-lg md:text-xl mb-8 px-2">
  171.                    <span class="text-green-600 dark:text-green-400 font-bold animate-pulse">
  172.                        190159
  173.                    </span>
  174.                    <span class="text-gray-700 dark:text-gray-300">
  175.                        مستند فتاوی جات میں تلاش کی سہولت
  176.                    </span>
  177.                </p>
  178.            </div>
  179.  
  180.            <!-- Modern Search Form Component -->
  181.            <div class="max-w-4xl mx-auto mb-8 sm:mb-12 relative z-10">
  182.                <div class="w-full" x-data="searchForm(null)">
  183.    <form method="GET" action="search" class="w-full" @submit="handleSubmit">
  184.        <div class="bg-white/90 backdrop-blur-xl dark:bg-gray-800/90 rounded-xl p-3 sm:p-4 shadow-lg border border-gray-200 dark:border-gray-700">
  185.            <!-- Main Search with Autocomplete -->
  186.            <div class="flex flex-col sm:flex-row sm:items-stretch mb-3 sm:mb-4 gap-2 sm:gap-3">
  187.                <div class="relative flex-grow">
  188.                    <div class="flex items-center bg-gray-50/80 dark:bg-gray-700/80 border border-gray-200 dark:border-gray-600 rounded-lg focus-within:border-green-500 dark:focus-within:border-green-400 focus-within:ring-2 focus-within:ring-green-200 dark:focus-within:ring-green-800 transition-all backdrop-blur-sm">
  189.                        <span class="icon-[mdi--magnify] text-green-600 dark:text-green-400 text-lg sm:text-xl mr-2 sm:mr-3 ml-2 sm:ml-3 flex-shrink-0"></span>
  190.                        <input
  191.                            x-ref="searchInput"
  192.                            type="search"
  193.                            name="q"
  194.                            x-model="searchQuery"
  195.                            @input="handleInput"
  196.                            @keydown="handleKeydown"
  197.                            @focus="handleFocus"
  198.                            @blur="handleBlur"
  199.                            placeholder="تلاش کے الفاظ۔۔۔"
  200.                            class="flex-grow px-2 sm:px-3 py-2.5 sm:py-3 text-base sm:text-lg border-0 focus:outline-none bg-transparent text-gray-800 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 min-w-0"
  201.                            autocomplete="off"
  202.                        />
  203.                        <!-- Loading indicator -->
  204.                        <span x-show="isLoading" class="icon-[mdi--loading] w-4 h-4 animate-spin text-gray-400 mr-2 flex-shrink-0"></span>
  205.                    </div>
  206.                    
  207.                    <!-- Autocomplete Dropdown -->
  208.                    <div
  209.                        x-show="isOpen && suggestions.length > 0"
  210.                        x-transition:enter="transition ease-out duration-100"
  211.                        x-transition:enter-start="opacity-0 scale-95"
  212.                        x-transition:enter-end="opacity-100 scale-100"
  213.                        x-transition:leave="transition ease-in duration-75"
  214.                        x-transition:leave-start="opacity-100 scale-100"
  215.                        x-transition:leave-end="opacity-0 scale-95"
  216.                        class="absolute top-full left-0 right-0 mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600 rounded-lg shadow-2xl max-h-64 overflow-y-auto z-50"
  217.                    >
  218.                        <template x-for="(suggestion, index) in suggestions" :key="index">
  219.                            <div
  220.                                @mousedown.prevent="selectSuggestion(suggestion)"
  221.                                @mouseenter="hoveredIndex = index"
  222.                                @mouseleave="hoveredIndex = -1"
  223.                                x-bind:class="{
  224.                                    'px-4 py-3 cursor-pointer transition-colors duration-150 flex items-center text-right relative': true,
  225.                                    'bg-green-50 dark:bg-green-900/30 text-green-700 dark:text-green-300': index === selectedIndex || index === hoveredIndex,
  226.                                    'hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300': index !== selectedIndex && index !== hoveredIndex
  227.                                }"
  228.                            >
  229.                                <span class="icon-[mdi--magnify] w-4 h-4 ml-3 text-gray-400 dark:text-gray-500 flex-shrink-0"></span>
  230.                                <span class="flex-grow font-medium" x-html="highlightMatch(suggestion.text || suggestion, searchQuery)"></span>
  231.                                <span class="icon-[mdi--arrow-top-right] w-3 h-3 text-gray-400 dark:text-gray-500 opacity-50 flex-shrink-0"></span>
  232.                            </div>
  233.                        </template>
  234.                    </div>
  235.                </div>
  236.                <button
  237.                    type="submit"
  238.                    x-bind:disabled="isSubmitting"
  239.                    x-show="!isAdvancedOpen"
  240.                    class="bg-green-600 hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed text-white px-4 py-2.5 sm:py-3 rounded-lg font-semibold transition-all duration-200 flex items-center justify-center min-w-[3rem] hover:shadow-md"
  241.                >
  242.                    <span x-show="!isSubmitting" class="icon-[mdi--magnify] text-lg sm:text-xl"></span>
  243.                    <span x-show="isSubmitting" class="icon-[mdi--loading] text-lg sm:text-xl animate-spin"></span>
  244.                </button>
  245.            </div>
  246.            
  247.            <!-- Advanced Search Toggle -->
  248.                        <button
  249.                type="button"
  250.                @click="isAdvancedOpen = !isAdvancedOpen"
  251.                class="text-green-600 dark:text-green-400 text-sm hover:text-green-700 dark:hover:text-green-300 flex items-center transition-colors relative"
  252.            >
  253.                <span x-bind:class="isAdvancedOpen ? 'icon-[mdi--close]' : 'icon-[mdi--tune-variant]'" class="mr-2"></span>
  254.                تفصیلی تلاش
  255.                <!-- Active indicator with count -->
  256.                <span
  257.                    x-show="hasActiveAdvancedFields"
  258.                    x-text="activeFieldsCount"
  259.                    x-bind:class="isAdvancedOpen ? '-top-1 -right-6' : '-top-1 -right-2'"
  260.                    class="absolute min-w-[1rem] h-4 bg-green-500 text-white text-xs font-bold rounded-full flex items-center justify-center shadow-sm transition-all duration-200"
  261.                    title="فعال فیلڈز کی تعداد"
  262.                ></span>
  263.            </button>
  264.            
  265.            <!-- Advanced Search Panel -->
  266.            <div
  267.                x-show="isAdvancedOpen"
  268.                x-transition:enter="transition ease-out duration-300"
  269.                x-transition:enter-start="opacity-0 max-h-0"
  270.                x-transition:enter-end="opacity-100 max-h-96"
  271.                x-transition:leave="transition ease-in duration-300"
  272.                x-transition:leave-start="opacity-100 max-h-96"
  273.                x-transition:leave-end="opacity-0 max-h-0"
  274.                class="overflow-hidden"
  275.            >
  276.                <div class="mt-4 pt-4 border-t border-gray-200 dark:border-gray-600">
  277.                    <!-- Search engine selector -->
  278.                    <div class="mb-4">
  279.                        <div class="flex items-center gap-4">
  280.                            <label class="inline-flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300">
  281.                                <input type="radio" name="search_engine" value="google" x-model="searchEngine" class="text-green-600 focus:ring-green-500" />
  282.                                <span>گوگل</span>
  283.                            </label>
  284.                            <label class="inline-flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300">
  285.                                <input type="radio" name="search_engine" value="internal" x-model="searchEngine" class="text-green-600 focus:ring-green-500" />
  286.                                <span>اندرونی سرچ انجن</span>
  287.                            </label>
  288.                        </div>
  289.                    </div>
  290.  
  291.                    <div x-show="searchEngine === 'internal'" class="grid grid-cols-1 md:grid-cols-2 gap-4">
  292.                        <div>
  293.                            <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">دار الافتاء</label>
  294.                            <div class="relative">
  295.                                <select
  296.                                    name="dar_id"
  297.                                    x-model="selectedDar"
  298.                                    x-bind:disabled="searchEngine === 'google'"
  299.                                    class="w-full px-3 py-2 pr-8 border border-gray-300 dark:border-gray-600 rounded-lg bg-white/80 dark:bg-gray-700/80 text-gray-800 dark:text-white focus:ring-2 focus:ring-green-200 dark:focus:ring-green-800 focus:border-green-500 dark:focus:border-green-400 transition-all text-base backdrop-blur-sm"
  300.                                >
  301.                                    <option value="">تمام دار الافتاء</option>
  302.                                                                                                                        <option value="1">دار الافتاء دار العلوم دیوبند</option>
  303.                                                                                                                                                                <option value="7">دار الافتاء دار العلوم (وقف) دیوبند </option>
  304.                                                                                                                                                                <option value="2">دار الافتاء دار العلوم کراچی</option>
  305.                                                                                                                                                                <option value="3">دار الافتاء جامعۃ العلوم الاسلامیۃ بنوری ٹاؤن</option>
  306.                                                                                                                                                                <option value="8">دار الافتاء جامعہ فاروقیہ</option>
  307.                                                                                                                                                                <option value="12">دار الافتاء اشرف المدارس کراچی</option>
  308.                                                                                                                                                                <option value="15">دار الافتاء جامعہ حقانیہ اکوڑہ خٹک</option>
  309.                                                                                                                                                                <option value="16">دار الافتاء خیر المدارس ملتان</option>
  310.                                                                                                                                                                <option value="4">دار الافتاء جامعۃ الرشید کراچی</option>
  311.                                                                                                                                                                <option value="5">دار الافتاء جامعہ بنوریہ کراچی</option>
  312.                                                                                                                                                                <option value="6">دار الافتاء جامعہ اشرفیہ لاہور</option>
  313.                                                                                                                                                                <option value="20">دار الافتاء جامعہ عثمانیہ پشاور</option>
  314.                                                                                                            </select>
  315.                                <!-- Clear button for dar selection -->
  316.                                <button
  317.                                    type="button"
  318.                                    x-show="selectedDar && selectedDar !== ''"
  319.                                    @click="selectedDar = ''"
  320.                                    class="absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors"
  321.                                    title="صاف کریں"
  322.                                >
  323.                                    <span class="icon-[mdi--close] w-4 h-4"></span>
  324.                                </button>
  325.                            </div>
  326.                        </div>
  327.                        <div>
  328.                            <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">فتوی نمبر</label>
  329.                            <div class="relative">
  330.                                <input
  331.                                    type="search"
  332.                                    name="fatwa_no"
  333.                                    x-model="fatwaNo"
  334.                                    x-bind:disabled="searchEngine === 'google'"
  335.                                    dir="ltr"
  336.                                    class="w-full px-3 py-2 pr-8 border border-gray-300 dark:border-gray-600 rounded-lg bg-white/80 dark:bg-gray-700/80 text-gray-800 dark:text-white focus:ring-2 focus:ring-green-200 dark:focus:ring-green-800 focus:border-green-500 dark:focus:border-green-400 transition-all text-base backdrop-blur-sm"
  337.                                    placeholder="مثال: ۲۳۴۵"
  338.                                />
  339.                                <!-- Clear button for fatwa number -->
  340.                                <button
  341.                                    type="button"
  342.                                    x-show="fatwaNo && fatwaNo.trim() !== ''"
  343.                                    @click="fatwaNo = ''"
  344.                                    class="absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors"
  345.                                    title="صاف کریں"
  346.                                >
  347.                                    <span class="icon-[mdi--close] w-4 h-4"></span>
  348.                                </button>
  349.                            </div>
  350.                        </div>
  351.                    </div>
  352.                    <div class="mt-4 text-center">
  353.                        <button
  354.                            type="submit"
  355.                            x-bind:disabled="isSubmitting"
  356.                            class="bg-green-600 hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed text-white px-8 py-2.5 rounded-lg font-semibold transition-colors hover:shadow-lg hover:scale-105 duration-300"
  357.                        >
  358.                            <span class="flex items-center gap-2">
  359.                                <span class="icon-[mdi--magnify] w-5 h-5"></span>
  360.                                <span></span>
  361.                            </span>
  362.                        </button>
  363.                    </div>
  364.                </div>
  365.            </div>
  366.                                </div>
  367.    </form>
  368. </div>
  369.  
  370. <script>
  371. function searchForm() {
  372.    const initialDarId = null;
  373.    const initialFatwaNo = "";
  374.    const initialQuery = "";
  375.    const initialSearchEngine = "google";
  376.  
  377.    return {
  378.        searchQuery: initialQuery || '',
  379.        selectedDar: (initialDarId) ? String(initialDarId) : '',
  380.        fatwaNo: initialFatwaNo || '',
  381.        searchEngine: initialSearchEngine || 'google',
  382.        isAdvancedOpen: false,
  383.        isLoading: false,
  384.        isSubmitting: false,
  385.        isOpen: false,
  386.        suggestions: [],
  387.        selectedIndex: -1,
  388.        hoveredIndex: -1,
  389.        debounceTimer: null,
  390.        lastSearchTime: 0,
  391.        
  392.        // Computed property to check if any advanced fields are active
  393.        get hasActiveAdvancedFields() {
  394.            if (this.searchEngine !== 'internal') return false;
  395.            return (this.selectedDar && this.selectedDar !== '') ||
  396.                   (this.fatwaNo && this.fatwaNo.trim() !== '');
  397.        },
  398.        
  399.        // Computed property to count active advanced fields
  400.        get activeFieldsCount() {
  401.            if (this.searchEngine !== 'internal') return 0;
  402.            let count = 0;
  403.            if (this.selectedDar && this.selectedDar !== '') count++;
  404.            if (this.fatwaNo && this.fatwaNo.trim() !== '') count++;
  405.            return count;
  406.        },
  407.        
  408.        init() {
  409.            // If a dar_id prop was provided but advanced panel is not shown,
  410.            // ensure it's kept in a hidden input so form submits it.
  411.            // (UI select will also show the selection when panel is opened)
  412.        },
  413.        
  414.        handleInput(event) {
  415.            const value = event.target.value;
  416.            this.searchQuery = value;
  417.            
  418.            // Simple autocomplete simulation (you can replace with actual API calls)
  419.            if (value.length >= 3 && false) {
  420.                this.debounceSearch(value);
  421.            } else {
  422.                this.closeAutocomplete();
  423.            }
  424.        },
  425.        
  426.        debounceSearch(query) {
  427.            clearTimeout(this.debounceTimer);
  428.            this.debounceTimer = setTimeout(() => {
  429.                this.performSearch(query);
  430.            }, 500);
  431.        },
  432.        
  433.        async performSearch(query) {
  434.            const now = Date.now();
  435.            if (now - this.lastSearchTime < 1000) return; // Rate limiting
  436.            
  437.            this.lastSearchTime = now;
  438.            this.isLoading = true;
  439.            
  440.            try {
  441.                const response = await fetch(`/search/autocomplete?q=${encodeURIComponent(query)}`, {
  442.                    method: 'GET',
  443.                    headers: {
  444.                        'Accept': 'application/json',
  445.                        'X-Requested-With': 'XMLHttpRequest'
  446.                    }
  447.                });
  448.                
  449.                if (response.ok) {
  450.                    const data = await response.json();
  451.                    this.suggestions = data.suggestions || [];
  452.                    this.isOpen = this.suggestions.length > 0;
  453.                } else {
  454.                    throw new Error('Network response was not ok');
  455.                }
  456.            } catch (error) {
  457.                console.error('Search error:', error);
  458.                
  459.                // Fallback to mock suggestions if API fails
  460.                this.suggestions = [
  461.                  
  462.                ].slice(0, 3);
  463.                
  464.                this.isOpen = this.suggestions.length > 0;
  465.            } finally {
  466.                this.isLoading = false;
  467.            }
  468.        },
  469.        
  470.        handleKeydown(event) {
  471.            if (!this.isOpen) return;
  472.  
  473.            switch (event.key) {
  474.                case 'ArrowDown':
  475.                    event.preventDefault();
  476.                    this.selectedIndex = Math.min(this.selectedIndex + 1, this.suggestions.length - 1);
  477.                    this.hoveredIndex = -1;
  478.                    break;
  479.                case 'ArrowUp':
  480.                    event.preventDefault();
  481.                    this.selectedIndex = Math.max(this.selectedIndex - 1, -1);
  482.                    this.hoveredIndex = -1;
  483.                    break;
  484.                case 'Enter':
  485.                    event.preventDefault();
  486.                    if (this.selectedIndex >= 0) {
  487.                        this.selectSuggestion(this.suggestions[this.selectedIndex]);
  488.                    } else {
  489.                        this.submitForm();
  490.                    }
  491.                    break;
  492.                case 'Escape':
  493.                    this.closeAutocomplete();
  494.                    this.$refs.searchInput.blur();
  495.                    break;
  496.            }
  497.        },
  498.        
  499.        handleFocus() {
  500.            if (this.searchQuery.length >= 3 && this.suggestions.length > 0) {
  501.                this.isOpen = true;
  502.            }
  503.        },
  504.        
  505.        handleBlur() {
  506.            // Delay closing to allow clicking on suggestions
  507.            setTimeout(() => {
  508.                this.closeAutocomplete();
  509.            }, 200);
  510.        },
  511.        
  512.        selectSuggestion(suggestion) {
  513.            this.searchQuery = suggestion.text || suggestion;
  514.            this.closeAutocomplete();
  515.            
  516.            // Auto-submit after selection
  517.            setTimeout(() => {
  518.                this.submitForm();
  519.            }, 100);
  520.        },
  521.        
  522.        closeAutocomplete() {
  523.            this.isOpen = false;
  524.            this.selectedIndex = -1;
  525.            this.hoveredIndex = -1;
  526.        },
  527.        
  528.        highlightMatch(text, query) {
  529.            if (!query.trim()) return text;
  530.            
  531.            const regex = new RegExp(`(${query.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
  532.            return text.replace(regex, '<strong class="font-semibold">$1</strong>');
  533.        },
  534.        
  535.        handleSubmit(event) {
  536.            // Let the form submit naturally for now
  537.            this.isSubmitting = true;
  538.            
  539.            // Reset after a delay
  540.            setTimeout(() => {
  541.                this.isSubmitting = false;
  542.            }, 2000);
  543.        },
  544.        
  545.        submitForm() {
  546.            this.$el.querySelector('form').submit();
  547.        }
  548.    }
  549. }
  550. </script>
  551.            </div>
  552.            
  553.            <!-- Professional Quick Access Grid -->
  554.            <div class="flex flex-wrap justify-center gap-3 sm:gap-4 max-w-4xl mx-auto relative z-10">
  555.                <a href="https://www.darulifta.info/dars" class="flex flex-col items-center p-2 sm:p-3 min-w-[100px] sm:min-w-[120px] bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md group transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-green-300 dark:hover:border-green-600">
  556.                    <span class="icon-[mdi--list-box-outline] text-3xl sm:text-4xl text-green-600 dark:text-green-400 mb-1 sm:mb-2 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors"></span>
  557.                    <span class="text-xs sm:text-sm text-gray-700 dark:text-gray-300 text-center group-hover:text-green-700 dark:group-hover:text-green-300 font-medium"> فتاوی </span>
  558.                </a>
  559.                
  560.                <a href="https://www.darulifta.info/zakat-calculator" class="flex flex-col items-center p-2 sm:p-3 min-w-[100px] sm:min-w-[120px] bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md group transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-green-300 dark:hover:border-green-600">
  561.                    <span class="icon-[mdi--calculator-variant-outline] text-3xl sm:text-4xl text-green-600 dark:text-green-400 mb-1 sm:mb-2 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors"></span>
  562.                    <span class="text-xs sm:text-sm text-gray-700 dark:text-gray-300 text-center group-hover:text-green-700 dark:group-hover:text-green-300 font-medium">زکوٰۃ کیلکولیٹر</span>
  563.                </a>
  564.                
  565.                <a href="https://www.darulifta.info/edda-calculator" class="flex flex-col items-center p-2 sm:p-3 min-w-[100px] sm:min-w-[120px] bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md group transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-green-300 dark:hover:border-green-600">
  566.                    <span class="icon-[mdi--calendar-clock-outline] text-3xl sm:text-4xl text-green-600 dark:text-green-400 mb-1 sm:mb-2 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors"></span>
  567.                    <span class="text-xs sm:text-sm text-gray-700 dark:text-gray-300 text-center group-hover:text-green-700 dark:group-hover:text-green-300 font-medium">عدت کیلکولیٹر</span>
  568.                </a>
  569.                
  570.                <a href="https://www.darulifta.info/fidya-calculator" class="flex flex-col items-center p-2 sm:p-3 min-w-[100px] sm:min-w-[120px] bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md group transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-green-300 dark:hover:border-green-600">
  571.                    <span class="icon-[mdi--hand-coin-outline] text-3xl sm:text-4xl text-green-600 dark:text-green-400 mb-1 sm:mb-2 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors"></span>
  572.                    <span class="text-xs sm:text-sm text-gray-700 dark:text-gray-300 text-center group-hover:text-green-700 dark:group-hover:text-green-300 font-medium">فدیہ کیلکولیٹر</span>
  573.                </a>
  574.                
  575.                <a href="https://www.darulifta.info/awzan-calculator" class="flex flex-col items-center p-2 sm:p-3 min-w-[100px] sm:min-w-[120px] bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md group transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-green-300 dark:hover:border-green-600">
  576.                    <span class="icon-[mdi--scale-balance] text-3xl sm:text-4xl text-green-600 dark:text-green-400 mb-1 sm:mb-2 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors"></span>
  577.                    <span class="text-xs sm:text-sm text-gray-700 dark:text-gray-300 text-center group-hover:text-green-700 dark:group-hover:text-green-300 font-medium">اوزانِ شرعیہ</span>
  578.                </a>
  579.            </div>
  580.        </div>
  581.    </section>
  582.    
  583.  
  584.    <!-- Main Content Area -->
  585.    <section class="bg-gray-50 dark:bg-gray-900 py-8 sm:py-12">
  586.        <div class="container mx-auto px-3 sm:px-4">
  587.            <div class="flex flex-col md:flex-row gap-4 sm:gap-6">
  588.                <!-- First column (Fihrist Dar ul-Ifta) -->
  589.                <div class="w-full md:w-2/5 order-2 md:order-1">
  590.                    <div class="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-3 sm:p-4 shadow-md">
  591.                      
  592.                        
  593.                        <!-- Dar list -->
  594.                        <div class="space-y-1">
  595.                                                        <a href="https://www.darulifta.info/d/deoband"
  596.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  597.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  598.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  599.                                    دار الافتاء دار العلوم دیوبند                                </span>
  600.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  601.                            </a>
  602.                                                        <a href="https://www.darulifta.info/d/deobandw"
  603.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  604.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  605.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  606.                                    دار الافتاء دار العلوم (وقف) دیوبند                                 </span>
  607.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  608.                            </a>
  609.                                                        <a href="https://www.darulifta.info/d/darululoomkarachi"
  610.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  611.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  612.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  613.                                    دار الافتاء دار العلوم کراچی                                </span>
  614.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  615.                            </a>
  616.                                                        <a href="https://www.darulifta.info/d/banuritown"
  617.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  618.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  619.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  620.                                    دار الافتاء جامعۃ العلوم الاسلامیۃ بنوری ٹاؤن                                </span>
  621.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  622.                            </a>
  623.                                                        <a href="https://www.darulifta.info/d/farooqia"
  624.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  625.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  626.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  627.                                    دار الافتاء جامعہ فاروقیہ                                </span>
  628.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  629.                            </a>
  630.                                                        <a href="https://www.darulifta.info/d/ashrafulmadaris"
  631.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  632.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  633.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  634.                                    دار الافتاء اشرف المدارس کراچی                                </span>
  635.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  636.                            </a>
  637.                                                        <a href="https://www.darulifta.info/d/haqqania"
  638.                                class="flex items-center py-2 sm:py-2.5 px-2 sm:px-3 text-gray-700 dark:text-gray-300 hover:bg-green-50 dark:hover:bg-green-700/20 rounded-lg group transition-all duration-200">
  639.                                <span class="icon-[mdi--mosque-outline] text-base sm:text-lg ml-2 sm:ml-3 text-green-500 dark:text-green-400 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  640.                                <span class="flex-grow text-sm sm:text-base font-medium group-hover:text-green-700 dark:group-hover:text-green-200 truncate">
  641.                                    دار الافتاء جامعہ حقانیہ اکوڑہ خٹک                                </span>
  642.                                <span class="icon-[mdi--chevron-left] text-gray-400 dark:text-gray-500 opacity-50 group-hover:opacity-100 group-hover:text-green-600 dark:group-hover:text-green-300 flex-shrink-0"></span>
  643.                            </a>
  644.                                                    </div>
  645.                        
  646.                        <div class="flex justify-center mt-4 pt-3 border-t border-gray-200 dark:border-gray-700">
  647.                            <a href="https://www.darulifta.info/dars"
  648.                                class="inline-flex items-center px-3 sm:px-4 py-2 text-sm font-medium text-green-700 dark:text-green-300 hover:text-green-800 dark:hover:text-green-200 bg-green-100 dark:bg-green-700/30 hover:bg-green-200 dark:hover:bg-green-600/40 rounded-lg transition-all duration-200">
  649.                                تمام دارالافتاء
  650.                                <span class="icon-[mdi--arrow-left] mr-1 sm:mr-2 text-sm sm:text-base"></span>
  651.                            </a>
  652.                        </div>
  653.                    </div>
  654.                </div>
  655.  
  656.                <!-- Second column (Selected Fatawa) -->
  657.                <div class="w-full md:w-3/5 order-1 md:order-2 space-y-6">
  658.                                        <div class="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 sm:p-5 shadow-md">
  659.                        <h2 class="pb-3 mb-4 text-xl  text-gray-800 dark:text-white border-b border-gray-200 dark:border-gray-700 flex items-center">
  660.                            <span class="icon-[mdi--star-check-outline] text-yellow-500 mr-3  dark:text-yellow-400"></span>
  661.                          ان دنوں زیادہ دیکھے گئے فتاوی
  662.                        </h2>
  663.                        
  664.                        <div class="space-y-0">
  665.                                                        <!-- Small Fatwa List Item Component -->
  666. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  667.    <a href="https://www.darulifta.info/question/ciIC/baad-ghyr-mslm-mmalk-my-msagd-mhdod-on-aor-nmazyo-ky-kthyr-taadad-k-pysh-nthr-ayk-msgd-my-kyy-gmaaaty-kran-ky-shraay-hythyt" class="block">
  668.        <div class="flex items-start gap-2">
  669.            <i class="icon-[mdi--book-open-variant] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  670.            <div class="flex-grow min-w-0">
  671.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  672.                    بعض غیر مسلم ممالک میں مساجد محدود ہونے اور نمازیوں کی کثیر تعداد
  673. کے پیش نظر ایک مسجد میں کئی جماعتیں کرانے کی شرعی حیثیت
  674.                </h3>
  675.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  676.                                        
  677.                                        
  678.                                            <span>
  679.                            فتاوی عثمانی جلد 2 - یونیکوڈ - غیر موافق للمطبوع
  680.                            • صفحہ 757
  681.                        </span>
  682.                                    </div>
  683.            </div>
  684.        </div>
  685.    </a>
  686. </div>
  687.                                                        <!-- Small Fatwa List Item Component -->
  688. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  689.    <a href="https://www.darulifta.info/d/usmaniapsh/fatwa/z7a/nisab-e-zakat-mein-zam-baal-ajza-ka-aasaan-tareeqa" class="block">
  690.        <div class="flex items-start gap-2">
  691.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  692.            <div class="flex-grow min-w-0">
  693.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  694.                    نصاب زكوة ميں ضم بالاجزاء كا آسان طريقہ
  695.                </h3>
  696.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  697.                                            <span>جامعہ عثمانیہ پشاور</span>
  698.                                        
  699.                                            <span>• فتویٰ: 1442700</span>
  700.                                        
  701.                                    </div>
  702.            </div>
  703.        </div>
  704.    </a>
  705. </div>
  706.                                                        <!-- Small Fatwa List Item Component -->
  707. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  708.    <a href="https://www.darulifta.info/d/banuritown/fatwa/sGC/adat-e-wafat-ke-dauran-shohar-ke-ghar-ke-ek-kamar-se-dusre-kamar-mein-shift-hone-ka-hukum" class="block">
  709.        <div class="flex items-start gap-2">
  710.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  711.            <div class="flex-grow min-w-0">
  712.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  713.                    عدتِ وفات کے دوران شوہر کے گھر کے ایک کمرے سے دوسرے کمرے میں شفٹ ہونے کا حکم
  714.                </h3>
  715.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  716.                                            <span>جامعہ بنوری ٹاؤن</span>
  717.                                        
  718.                                            <span>• فتویٰ: 144204200260</span>
  719.                                        
  720.                                    </div>
  721.            </div>
  722.        </div>
  723.    </a>
  724. </div>
  725.                                                        <!-- Small Fatwa List Item Component -->
  726. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  727.    <a href="https://www.darulifta.info/d/banuritown/fatwa/zj3/fajr-ki-namaz-se-pehle-100-marraba-subhanallah-wa-bihamdihi-subhanallah-al-azeem-astaghfirullah-parhna" class="block">
  728.        <div class="flex items-start gap-2">
  729.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  730.            <div class="flex-grow min-w-0">
  731.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  732.                    حدیث صبح صادق سے فجر کی نماز تک سو (100) مرتبہ
  733.                </h3>
  734.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  735.                                            <span>جامعہ بنوری ٹاؤن</span>
  736.                                        
  737.                                            <span>• فتویٰ: 144212202374</span>
  738.                                        
  739.                                    </div>
  740.            </div>
  741.        </div>
  742.    </a>
  743. </div>
  744.                                                        <!-- Small Fatwa List Item Component -->
  745. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  746.    <a href="https://www.darulifta.info/d/onlinefatawa/fatwa/mmi/adhan-ke-waqt-masjid-mein-record-shuda-adhan-chalana" class="block">
  747.        <div class="flex items-start gap-2">
  748.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  749.            <div class="flex-grow min-w-0">
  750.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  751.                    اذان کے وقت مسجد میں ریکارڈ شدہ اذان چلانا
  752.                </h3>
  753.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  754.                                            <span>جامعہ بنوریہ</span>
  755.                                        
  756.                                            <span>• فتویٰ: 27241</span>
  757.                                        
  758.                                    </div>
  759.            </div>
  760.        </div>
  761.    </a>
  762. </div>
  763.                                                        <!-- Small Fatwa List Item Component -->
  764. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  765.    <a href="https://www.darulifta.info/d/deoband/fatwa/wVt/al-firaqu-ashadd-min-al-mawt-kya-yeh-hadith-hai" class="block">
  766.        <div class="flex items-start gap-2">
  767.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  768.            <div class="flex-grow min-w-0">
  769.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  770.                     اَلْفِراقُ اَشَدُّ مِنَ الْمَوتِ&rlm;، كیا یہ حدیث ہے؟
  771.                </h3>
  772.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  773.                                            <span>دار العلوم دیوبند</span>
  774.                                        
  775.                                            <span>• فتویٰ: 604537</span>
  776.                                        
  777.                                    </div>
  778.            </div>
  779.        </div>
  780.    </a>
  781. </div>
  782.                                                        <!-- Small Fatwa List Item Component -->
  783. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  784.    <a href="https://www.darulifta.info/d/deoband/fatwa/dQm/agar-imam-sahab-fajr-ki-namaz-mein-wa-idha-raaw-tijara-aw-lahuwan-unfidu-ilaihi-ki-jagah-ilay-allah-padhe-to-namaz-ka-kya-hukum-hai" class="block">
  785.        <div class="flex items-start gap-2">
  786.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  787.            <div class="flex-grow min-w-0">
  788.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  789.                    اگر امام صاحب فجر کی نماز میں وإذا رأوا تجارة أو لہوا انفضوا الیہا کی جگہ الی اللہ پڑھے تو نماز کا کیا حکم ہے؟
  790.                </h3>
  791.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  792.                                            <span>دار العلوم دیوبند</span>
  793.                                        
  794.                                            <span>• فتویٰ: 68820</span>
  795.                                        
  796.                                    </div>
  797.            </div>
  798.        </div>
  799.    </a>
  800. </div>
  801.                                                        <!-- Small Fatwa List Item Component -->
  802. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  803.    <a href="https://www.darulifta.info/d/banuritown/fatwa/zji/marha-naam-rakhna" class="block">
  804.        <div class="flex items-start gap-2">
  805.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  806.            <div class="flex-grow min-w-0">
  807.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  808.                    مرحا نام رکھنا
  809.                </h3>
  810.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  811.                                            <span>جامعہ بنوری ٹاؤن</span>
  812.                                        
  813.                                            <span>• فتویٰ: 144209200364</span>
  814.                                        
  815.                                    </div>
  816.            </div>
  817.        </div>
  818.    </a>
  819. </div>
  820.                                                        <!-- Small Fatwa List Item Component -->
  821. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  822.    <a href="https://www.darulifta.info/d/jamiaturrasheed/fatwa/5Im/medical-store-kholne-ke-liye-pharmacy-degree-ko-ijarah-par-dene-ka-hukm" class="block">
  823.        <div class="flex items-start gap-2">
  824.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  825.            <div class="flex-grow min-w-0">
  826.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  827.                    میڈکل سٹور کھولنے کے لیے فارمیسی ڈگری کو اجارہ پر دینے کا حکم
  828.                </h3>
  829.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  830.                                            <span>جامعۃ الرشید</span>
  831.                                        
  832.                                            <span>• فتویٰ: 81820</span>
  833.                                        
  834.                                    </div>
  835.            </div>
  836.        </div>
  837.    </a>
  838. </div>
  839.                                                        <!-- Small Fatwa List Item Component -->
  840. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  841.    <a href="https://www.darulifta.info/d/banuritown/fatwa/xAA/forex-trading-ka-hukm" class="block">
  842.        <div class="flex items-start gap-2">
  843.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  844.            <div class="flex-grow min-w-0">
  845.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  846.                    فاریکس ٹریڈنگ (forex trading) کا حکم
  847.                </h3>
  848.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  849.                                            <span>جامعہ بنوری ٹاؤن</span>
  850.                                        
  851.                                            <span>• فتویٰ: 144204200810</span>
  852.                                        
  853.                                    </div>
  854.            </div>
  855.        </div>
  856.    </a>
  857. </div>
  858.                                                        <!-- Small Fatwa List Item Component -->
  859. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  860.    <a href="https://www.darulifta.info/d/banuritown/fatwa/3Nn/kya-zamal-naam-rakhna-durust-hai" class="block">
  861.        <div class="flex items-start gap-2">
  862.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  863.            <div class="flex-grow min-w-0">
  864.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  865.                    کیا زمل نام رکھنا درست ہے ؟
  866.                </h3>
  867.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  868.                                            <span>جامعہ بنوری ٹاؤن</span>
  869.                                        
  870.                                            <span>• فتویٰ: 144403100992</span>
  871.                                        
  872.                                    </div>
  873.            </div>
  874.        </div>
  875.    </a>
  876. </div>
  877.                                                        <!-- Small Fatwa List Item Component -->
  878. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  879.    <a href="https://www.darulifta.info/question/cif0/hdrt-aaly-ko-krm-all-og-kyo-kt-y" class="block">
  880.        <div class="flex items-start gap-2">
  881.            <i class="icon-[mdi--book-open-variant] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  882.            <div class="flex-grow min-w-0">
  883.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  884.                    حضرت علی کو ’’کرم اللہ وجہہ‘‘ کیوں کہتے ہیں؟
  885.                </h3>
  886.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  887.                                        
  888.                                        
  889.                                            <span>
  890.                            کتاب النوازل جلد 2 - یونیکوڈ - غیر موافق للمطبوع
  891.                            • صفحہ 324
  892.                        </span>
  893.                                    </div>
  894.            </div>
  895.        </div>
  896.    </a>
  897. </div>
  898.                                                        <!-- Small Fatwa List Item Component -->
  899. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  900.    <a href="https://www.darulifta.info/d/jamiaturrasheed/fatwa/ylO/meri-taraf-farigh-ho-talaq-deta-hun-aur-aazad-ho-kehne-ka-hukm" class="block">
  901.        <div class="flex items-start gap-2">
  902.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  903.            <div class="flex-grow min-w-0">
  904.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  905.                    میری طرف فارغ ہو، طلاق دیتا ہوں اور آزاد ہو کہنے کا حکم
  906.                </h3>
  907.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  908.                                            <span>جامعۃ الرشید</span>
  909.                                        
  910.                                            <span>• فتویٰ: 70518</span>
  911.                                        
  912.                                    </div>
  913.            </div>
  914.        </div>
  915.    </a>
  916. </div>
  917.                                                        <!-- Small Fatwa List Item Component -->
  918. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  919.    <a href="https://www.darulifta.info/d/jamiaturrasheed/fatwa/ngb/nikah-mein-ijaab-wa-qabool-ka-sahih-tareeqa" class="block">
  920.        <div class="flex items-start gap-2">
  921.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  922.            <div class="flex-grow min-w-0">
  923.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  924.                    نکاح  میں ایجا ب وقبول  کا صحیح  طریقہ
  925.                </h3>
  926.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  927.                                            <span>جامعۃ الرشید</span>
  928.                                        
  929.                                            <span>• فتویٰ: 56589</span>
  930.                                        
  931.                                    </div>
  932.            </div>
  933.        </div>
  934.    </a>
  935. </div>
  936.                                                        <!-- Small Fatwa List Item Component -->
  937. <div class="py-2.5 px-2 border-b border-gray-100 text-gray-700 hover:bg-gray-50 rounded-md transition-colors duration-150 group">
  938.    <a href="https://www.darulifta.info/d/jamiaturrasheed/fatwa/5TM/crypto-currency-mein-spot-trading-ka-hukum" class="block">
  939.        <div class="flex items-start gap-2">
  940.            <i class="icon-[mdi--file-document-outline] text-green-500 mt-1 flex-shrink-0 group-hover:text-green-600"></i>
  941.            <div class="flex-grow min-w-0">
  942.                <h3 class="font-medium text-gray-800 group-hover:text-green-700">
  943.                    کرپٹو کرنسی میں اسپاٹ ٹریڈنگ کا حکم
  944.                </h3>
  945.                <div class="flex items-center gap-2 mt-1 text-sm text-gray-500">
  946.                                            <span>جامعۃ الرشید</span>
  947.                                        
  948.                                            <span>• فتویٰ: 80493</span>
  949.                                        
  950.                                    </div>
  951.            </div>
  952.        </div>
  953.    </a>
  954. </div>
  955.                                                    </div>
  956.                        
  957.                        <div class="flex justify-center mt-4 pt-3 border-t border-gray-200 dark:border-gray-700">
  958.                            <a href="https://www.darulifta.info/selected_fatawa"
  959.                                class="inline-flex items-center px-4 py-2 text-sm font-medium text-blue-600 hover:text-blue-700 bg-blue-100 hover:bg-blue-200 rounded-lg transition-all duration-200 dark:text-blue-400 dark:hover:text-blue-300 dark:bg-blue-700/30 dark:hover:bg-blue-600/40">
  960.                               مزید
  961.                                <span class="icon-[mdi--arrow-left] mr-2 text-sm"></span>
  962.                            </a>
  963.                        </div>
  964.                    </div>
  965.                                    </div>
  966.            </div>
  967.        </div>
  968.    </section>
  969.  
  970.    <!-- Enhanced Counter Animation Script -->
  971.    <script>
  972.        document.addEventListener('DOMContentLoaded', function() {
  973.            var countElements = document.querySelectorAll('.count');
  974.            countElements.forEach(function(element) {
  975.                var counter = 0;
  976.                var targetCount = parseInt(element.textContent.replace(/,/g, ''), 10);
  977.                var duration = 2000;
  978.                var jumpAmount = Math.ceil(targetCount / (duration / 50));
  979.                
  980.                var animation = setInterval(function() {
  981.                    counter += jumpAmount;
  982.                    if (counter >= targetCount) {
  983.                        counter = targetCount;
  984.                        clearInterval(animation);
  985.                    }
  986.                    element.textContent = formatNumberWithCommas(counter);
  987.                }, 50);
  988.            });
  989.  
  990.            function formatNumberWithCommas(number) {
  991.                return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  992.            }
  993.        });
  994.    </script>
  995.        </div>
  996.    </main>
  997.  
  998.    <!-- Scroll to Top Button -->
  999.    <button id="scroll-top" class="fixed left-4 bottom-4 z-50 w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all duration-300 hover:shadow-xl hover:-translate-y-1 bg-green-600 dark:bg-green-700 text-white dark:text-green-50 opacity-0 pointer-events-none">
  1000.        <span class="icon-[mdi--arrow-up] text-xl"></span>
  1001.    </button>
  1002.  
  1003.    <!-- Modern Footer -->
  1004.    <footer class="bg-gradient-to-br from-gray-900 to-gray-950 dark:from-gray-950 dark:to-black text-gray-200 border-t-2 border-green-600 dark:border-green-500">
  1005.        <div class="max-w-7xl mx-auto py-8 px-4">
  1006.            <!-- Main Grid -->
  1007.            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
  1008.                <!-- About Section -->
  1009.                <div class="space-y-6">
  1010.                    <div class="flex items-center justify-start gap-3">
  1011.                        <img src="https://www.darulifta.info/public/images/nav-bar-logo.png" class="h-10" alt="Logo" >
  1012.                        <h4 class="text-xl font-bold text-white">دار الافتاء ڈاٹ انفو</h4>
  1013.                    </div>
  1014.                    <ul class="space-y-3">
  1015.                        <li class="flex items-start gap-3 group">
  1016.                            <span class="icon-[mdi--check-circle] text-green-400 mt-1 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1017.                            <span class="text-gray-300 text-sm">مختلف دار الافتاؤں کے فتاوی سے استفادہ کرنے کے لئے ایک منفرد سرچ انجن</span>
  1018.                        </li>
  1019.                        <li class="flex items-start gap-3 group">
  1020.                            <span class="icon-[mdi--check-circle] text-green-400 mt-1 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1021.                            <span class="text-gray-300 text-sm">دنیا بھر کے دار الافتاؤں کی ویب سائٹس پر موجود فتاوی یکجا</span>
  1022.                        </li>
  1023.                        <li class="flex items-start gap-3 group">
  1024.                            <span class="icon-[mdi--check-circle] text-green-400 mt-1 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1025.                            <span class="text-gray-300 text-sm">یونیکوڈ، پی ڈی ایف فارمیٹ میں دستیاب</span>
  1026.                        </li>
  1027.                        <li class="flex items-start gap-3 group">
  1028.                            <span class="icon-[mdi--check-circle] text-green-400 mt-1 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1029.                            <span class="text-gray-300 text-sm">مستند با حوالہ فتاوی</span>
  1030.                        </li>
  1031.                    </ul>
  1032.                </div>
  1033.                
  1034.                <!-- Quick Links -->
  1035.                <div class="space-y-6">
  1036.                    <h4 class="text-lg text-white flex items-center gap-2">
  1037.                        <span class="icon-[mdi--link-variant] text-green-400"></span>
  1038.                        مفید لنکس اور خدمات
  1039.                    </h4>
  1040.                    <div class="grid grid-cols-1">
  1041.                        <a href="https://www.darulifta.info/zakat-calculator" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1042.                            <span class="icon-[mdi--calculator-variant] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1043.                            <span class="text-sm">زکوۃ کیلکولیٹر</span>
  1044.                        </a>
  1045.                        <a href="https://www.darulifta.info/edda-calculator" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1046.                            <span class="icon-[mdi--calendar-clock] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1047.                            <span class="text-sm">عدت وفات کیلکولیٹر</span>
  1048.                        </a>
  1049.                        <a href="https://www.darulifta.info/fidya-calculator" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1050.                            <span class="icon-[mdi--hand-coin] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1051.                            <span class="text-sm">فدیہ کیلکولیٹر</span>
  1052.                        </a>
  1053.                        <a href="https://www.darulifta.info/awzan-calculator" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1054.                            <span class="icon-[mdi--scale-balance] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1055.                            <span class="text-sm">اوزان شرعیہ کیلکولیٹر</span>
  1056.                        </a>
  1057.                        <a href="https://t.me/FatwaBot" target="_blank" rel="noopener" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1058.                            <span class="icon-[mdi--robot-happy] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1059.                            <span class="text-sm">تلاش فتوی ٹیلی گرام بوٹ</span>
  1060.                        </a>
  1061.                      
  1062.                    </div>
  1063.  
  1064.                  
  1065.                </div>
  1066.                
  1067.                <!-- Contact Form -->
  1068.                <div class="space-y-6">
  1069.                    <h4 class="text-lg text-white flex items-center gap-2">
  1070.                        <span class="icon-[mdi--message-text] text-green-400"></span>
  1071.                       تعارف ورابطہ
  1072.                    </h4>
  1073.                     <div class="grid grid-cols-1">
  1074.                         <a href="https://www.darulifta.info/about" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1075.                            <span class="icon-[mdi--information] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1076.                            <span class="text-sm">تعارف</span>
  1077.                        </a>
  1078.                        
  1079.                        <a href="https://www.darulifta.info/contact-us" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1080.                            <span class="icon-[mdi--email] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1081.                            <span class="text-sm">رابطہ کریں</span>
  1082.                        </a>
  1083.                        
  1084.                        <a href="https://www.darulifta.info/ask" class="flex items-center gap-3 text-gray-300 hover:text-green-400 transition-all group p-2 rounded-lg hover:bg-gray-800/50">
  1085.                            <span class="icon-[mdi--help-circle] text-lg text-green-400 group-hover:scale-110 transition-transform flex-shrink-0"></span>
  1086.                            <span class="text-sm">سوال پوچھیں</span>    
  1087.  
  1088.                        </a>
  1089.                     </div>
  1090.                       <div class="pt-4">
  1091.                        <a href="https://play.google.com/store/apps/details?id=info.darulifta.lite" target="_blank" rel="noopener" class="inline-block">
  1092.                            <img class="h-8 hover:scale-105 transition-transform" src="https://www.darulifta.info/public/images/google_play_icon.png" alt="Darulifta.info Google Play" >
  1093.                        </a>
  1094.                    </div>
  1095.                </div>
  1096.            </div>
  1097.            
  1098.            <!-- Bottom Section -->
  1099.            <div class="mt-8 pt-6 border-t border-gray-800 dark:border-gray-700 space-y-4">
  1100.                <!-- Social Links -->
  1101.                <div class="flex justify-center gap-4">
  1102.                    <a href="https://t.me/darulifta_info" target="_blank" rel="noopener" class="text-gray-400 hover:text-green-400 transition-colors duration-200">
  1103.                        <span class="icon-[mdi--telegram] text-2xl"></span>
  1104.                    </a>
  1105.                    <a href="https://fb.com/darulifta.info" target="_blank" rel="noopener" class="text-gray-400 hover:text-green-400 transition-colors duration-200">
  1106.                        <span class="icon-[mdi--facebook] text-2xl"></span>
  1107.                    </a>
  1108.                    <a href="https://whatsapp.com/channel/0029VaeVp2pEgGfWO6raqX2J" target="_blank" rel="noopener" class="text-gray-400 hover:text-green-400 transition-colors duration-200">
  1109.                        <span class="icon-[mdi--whatsapp] text-2xl"></span>
  1110.                    </a>
  1111.                </div>
  1112.                
  1113.                <!-- Description -->
  1114.                <div class="max-w-4xl mx-auto text-center">
  1115.                    <p class="text-gray-400 text-sm leading-relaxed">
  1116.                        دار الافتاء ڈاٹ انفو کا بنیادی مقصد اسلامی علوم، خاص طور پر فقہی مسائل اور فتاوی کو زیادہ سے زیادہ لوگوں تک پہنچانا ہے۔
  1117.                        ہمارا پلیٹ فارم مکمل طور پر غیر منافع بخش ہے۔ ہم کسی بھی مواد کو مالی فائدے کے لیے استعمال نہیں کرتے۔
  1118.                        تفصیل کے لئے <a href="https://www.darulifta.info/about" class="text-green-400 hover:text-green-300 underline decoration-dotted underline-offset-4">تعارف کا صفحہ</a> دیکھیں۔
  1119.                    </p>
  1120.                </div>
  1121.                
  1122.                <!-- Copyright -->
  1123.                <div class="text-center pt-4">
  1124.                    <p class="text-gray-500 text-xs">
  1125.                        Powered by <a href="https://www.darulifta.info" class="text-green-400 hover:text-green-300">Darulifta.info</a>
  1126.                    </p>
  1127.                </div>
  1128.            </div>
  1129.        </div>
  1130.    </footer>
  1131.  
  1132.    <!-- Modern JavaScript for Enhanced UX -->
  1133.    <script>
  1134.        // Mobile Menu Functions
  1135.        let mobileMenuOpen = false;
  1136.        let showScrollTop = false;
  1137.        let showHeader = true;
  1138.        let lastScroll = 0;
  1139.  
  1140.        function toggleMobileMenu() {
  1141.            mobileMenuOpen = !mobileMenuOpen;
  1142.            const overlay = document.getElementById('mobile-overlay');
  1143.            const menu = document.getElementById('mobile-menu');
  1144.            const menuIcon = document.getElementById('menu-icon');
  1145.            
  1146.            if (mobileMenuOpen) {
  1147.                overlay.classList.remove('opacity-0', 'pointer-events-none');
  1148.                overlay.classList.add('opacity-100');
  1149.                menu.classList.remove('translate-x-full');
  1150.                menu.classList.add('translate-x-0');
  1151.                menuIcon.className = 'icon-[mdi--close] text-2xl sm:text-3xl';
  1152.                document.body.style.overflow = 'hidden';
  1153.            } else {
  1154.                closeMobileMenu();
  1155.            }
  1156.        }
  1157.  
  1158.        function closeMobileMenu() {
  1159.            if (mobileMenuOpen) {
  1160.                mobileMenuOpen = false;
  1161.                const overlay = document.getElementById('mobile-overlay');
  1162.                const menu = document.getElementById('mobile-menu');
  1163.                const menuIcon = document.getElementById('menu-icon');
  1164.                
  1165.                overlay.classList.add('opacity-0', 'pointer-events-none');
  1166.                overlay.classList.remove('opacity-100');
  1167.                menu.classList.add('translate-x-full');
  1168.                menu.classList.remove('translate-x-0');
  1169.                menuIcon.className = 'icon-[mdi--menu] text-2xl sm:text-3xl';
  1170.                document.body.style.overflow = '';
  1171.            }
  1172.        }
  1173.  
  1174.        // Scroll Management
  1175.        function scrollToTop() {
  1176.            window.scrollTo({ top: 0, behavior: 'smooth' });
  1177.        }
  1178.  
  1179.        function handleScroll() {
  1180.            const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
  1181.            const scrollButton = document.getElementById('scroll-top');
  1182.            const header = document.getElementById('main-header');
  1183.            
  1184.            // Show/hide scroll to top button
  1185.            if (scrollTop > 300 && !showScrollTop) {
  1186.                showScrollTop = true;
  1187.                scrollButton.classList.remove('opacity-0', 'pointer-events-none');
  1188.                scrollButton.classList.add('opacity-100');
  1189.            } else if (scrollTop <= 300 && showScrollTop) {
  1190.                showScrollTop = false;
  1191.                scrollButton.classList.add('opacity-0', 'pointer-events-none');
  1192.                scrollButton.classList.remove('opacity-100');
  1193.            }
  1194.            
  1195.            // Auto-hide header on scroll
  1196.            if (scrollTop <= 60) {
  1197.                showHeader = true;
  1198.            } else if (scrollTop < lastScroll) {
  1199.                showHeader = true;
  1200.            } else {
  1201.                showHeader = false;
  1202.            }
  1203.            
  1204.            if (showHeader) {
  1205.                header.classList.remove('-translate-y-full');
  1206.                header.classList.add('translate-y-0');
  1207.            } else {
  1208.                header.classList.add('-translate-y-full');
  1209.                header.classList.remove('translate-y-0');
  1210.            }
  1211.            
  1212.            lastScroll = scrollTop <= 0 ? 0 : scrollTop;
  1213.        }
  1214.  
  1215.        // Event Listeners
  1216.        document.addEventListener('DOMContentLoaded', function() {
  1217.            // Scroll events
  1218.            window.addEventListener('scroll', handleScroll, { passive: true });
  1219.            
  1220.            // Resize handler for mobile menu
  1221.            window.addEventListener('resize', function() {
  1222.                if (window.innerWidth >= 1024 && mobileMenuOpen) {
  1223.                    closeMobileMenu();
  1224.                }
  1225.            });
  1226.            
  1227.            // Click scroll to top
  1228.            document.getElementById('scroll-top').addEventListener('click', scrollToTop);
  1229.            
  1230.            // Click outside mobile menu to close
  1231.            document.getElementById('mobile-overlay').addEventListener('click', closeMobileMenu);
  1232.            
  1233.            // ESC key to close mobile menu
  1234.            document.addEventListener('keydown', function(e) {
  1235.                if (e.key === 'Escape' && mobileMenuOpen) {
  1236.                    closeMobileMenu();
  1237.                }
  1238.            });
  1239.        });
  1240.    </script>
  1241.  
  1242.    <!-- Additional CSS Styles -->
  1243.    <style>
  1244.        /* Navigation Styles */
  1245.        .nav-link {
  1246.            display: flex;
  1247.            align-items: center;
  1248.            gap: 0.5rem;
  1249.            padding: 0.5rem 1rem;
  1250.            border-radius: 0.75rem;
  1251.            font-weight: 500;
  1252.            color: #166534;
  1253.            background: transparent;
  1254.            transition: all 0.2s ease;
  1255.        }
  1256.        .nav-link:hover {
  1257.            background: #dcfce7;
  1258.            color: #15803d;
  1259.            transform: translateY(-1px);
  1260.            box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
  1261.        }
  1262.        
  1263.        .mobile-link {
  1264.            display: flex;
  1265.            align-items: center;
  1266.            gap: 0.75rem;
  1267.            padding: 0.75rem 1rem;
  1268.            border-radius: 0.75rem;
  1269.            font-weight: 500;
  1270.            background: transparent;
  1271.            transition: all 0.2s ease;
  1272.            width: 100%;
  1273.            text-align: right;
  1274.        }
  1275.        .mobile-link:hover {
  1276.            background: #dcfce7;
  1277.            transform: translateX(-4px);
  1278.        }
  1279.        
  1280.        /* Dark mode styles */
  1281.        @media (prefers-color-scheme: dark) {
  1282.            .nav-link {
  1283.                color: #6ee7b7;
  1284.            }
  1285.            .nav-link:hover {
  1286.                background: #1e293b;
  1287.                color: #bbf7d0;
  1288.                box-shadow: 0 4px 8px rgba(20, 83, 74, 0.3);
  1289.            }
  1290.            .mobile-link:hover {
  1291.                background: #1e293b;
  1292.            }
  1293.        }
  1294.        
  1295.        /* Performance optimizations */
  1296.        .backdrop-blur-md {
  1297.            backdrop-filter: blur(12px);
  1298.            -webkit-backdrop-filter: blur(12px);
  1299.        }
  1300.        
  1301.        /* Smooth transitions */
  1302.        header {
  1303.            will-change: transform;
  1304.        }
  1305.        
  1306.        /* Print styles */
  1307.        @media print {
  1308.            header, footer, #mobile-overlay, #mobile-menu, #scroll-top {
  1309.                display: none !important;
  1310.            }
  1311.            main {
  1312.                margin-top: 0 !important;
  1313.                padding-top: 0 !important;
  1314.            }
  1315.        }
  1316.    </style>
  1317.  
  1318.    <!-- Performance CSS -->
  1319.    <link rel="stylesheet" href="https://www.darulifta.info/public/css/performance.css" media="print" onload="this.media='all'">
  1320.  
  1321.    <!-- Service Worker Registration -->
  1322.    <script>
  1323.        // Register service worker for offline support and caching
  1324.        if ('serviceWorker' in navigator) {
  1325.            window.addEventListener('load', function() {
  1326.                navigator.serviceWorker.register('/sw.js')
  1327.                    .then(function(registration) {
  1328.                        console.log('SW registered: ', registration);
  1329.                    })
  1330.                    .catch(function(registrationError) {
  1331.                        console.log('SW registration failed: ', registrationError);
  1332.                    });
  1333.            });
  1334.        }
  1335.  
  1336.        // Add to home screen prompt
  1337.        let deferredPrompt;
  1338.        window.addEventListener('beforeinstallprompt', (e) => {
  1339.            deferredPrompt = e;
  1340.        });
  1341.  
  1342.      
  1343.    </script>
  1344.  
  1345.    <!-- Google Analytics -->
  1346.    <script async src="https://www.googletagmanager.com/gtag/js?id=G-726VLKZHYB"></script>
  1347.    <script>
  1348.        window.dataLayer = window.dataLayer || [];
  1349.        function gtag(){dataLayer.push(arguments);}
  1350.        gtag('js', new Date());
  1351.        gtag('config', 'G-726VLKZHYB');
  1352.    </script>
  1353.    
  1354. </body>
  1355. </html>
  1356.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda