/* ============================================================
   fatwa — পেজ-নির্দিষ্ট স্টাইল
   মূল ফাইল: pages\fatwa.html
   ============================================================ */

        :root {
            --primary: #0b5335;
            --primary-dark: #073823;
            --accent-gold: #c9933b;
            --bg-light: #f8fafc;
        }
        body { font-family: 'SolaimanLipi', sans-serif; background: var(--bg-light); margin:0; }
        
        .page-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff; padding: 40px 20px; text-align: center;
        }

        /* মূল লেআউট: বামে সাইডবার, ডানে ফতোয়া লিস্ট */
        .portal-layout {
            max-width: 1200px;
            margin: 30px auto;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 25px;
            padding: 0 15px;
        }

        /* ── বামপাশের সাইডবার (ক্যাটাগরি ও সাব-ক্যাটাগরি) ── */
        .sidebar {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            align-self: flex-start;
            position: sticky;
            top: 20px;
        }
        .sidebar h4 {
            margin: 0 0 15px;
            color: var(--primary-dark);
            border-bottom: 2px solid var(--accent-gold);
            padding-bottom: 8px;
            font-size: 18px;
        }
        .cat-group { margin-bottom: 8px; }
        .cat-btn {
            width: 100%;
            text-align: left;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 10px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 15px;
            font-family: inherit;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
            color: #334155;
            transition: 0.2s;
        }
        .cat-btn:hover, .cat-btn.active { background: var(--primary); color: #fff; }
        .sub-cat-list {
            padding-left: 15px;
            display: none;
            margin-top: 5px;
        }
        .sub-cat-list.open { display: block; }
        .sub-cat-item {
            display: block;
            padding: 6px 10px;
            color: #64748b;
            text-decoration: none;
            font-size: 14px;
            border-radius: 4px;
            cursor: pointer;
        }
        .sub-cat-item:hover, .sub-cat-item.active {
            background: #ecfdf5;
            color: var(--primary);
            font-weight: bold;
        }

        /* ── ডানপাশের কন্টেন্ট ── */
        .search-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .search-bar input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 15px;
            font-family: inherit;
        }
        .btn-ask-top {
            background: var(--accent-gold);
            color: #000;
            font-weight: bold;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        /* ফতোয়া কার্ড */
        .fatwa-card {
            background: #fff;
            border-radius: 10px;
            padding: 22px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
            border-left: 5px solid var(--primary);
        }
        .fatwa-meta {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 8px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .fatwa-q {
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-dark);
            margin: 0 0 10px;
            line-height: 1.5;
        }
        .fatwa-snippet {
            color: #475569;
            line-height: 1.7;
            font-size: 15px;
            position: relative;
        }
        .btn-read-more {
            color: var(--primary);
            font-weight: bold;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
            font-size: 15px;
            margin-top: 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .btn-read-more:hover { text-decoration: underline; color: var(--accent-gold); }

        /* ── পেজিনেশন ── */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 30px 0;
        }
        .page-btn {
            background: #fff;
            border: 1px solid #cbd5e1;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
        }
        .page-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

        /* ── পপ-আপ মডাল (Full Answer Modal) ── */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 15px;
            box-sizing: border-box;
        }
        .modal-content {
            background: #fff;
            max-width: 750px;
            width: 100%;
            max-height: 85vh;
            border-radius: 12px;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 26px;
            cursor: pointer;
            color: #64748b;
        }
        .modal-ans {
            background: #f0fdf4;
            padding: 20px;
            border-radius: 8px;
            margin-top: 15px;
            line-height: 1.9;
            font-size: 16px;
            border-left: 4px solid var(--primary);
            white-space: pre-line;
        }

        @media(max-width: 850px) {
            .portal-layout { grid-template-columns: 1fr; }
            .sidebar { position: static; }
        }
    
