  :root{
      --primary:#0d6b57;
      --secondary:#0f8c70;
      --light:#f5f7f8;
      --dark:#1e293b;
      --gold:#d4a24c;
    }

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


    body{
      font-family:'Cairo',sans-serif;
      background:#fff;
      color:#333;
    }

    a{
      text-decoration:none;
    }

    @font-face {
      font-family: urdu;
      font-style: normal;
      src:  url('../fonts/MehrNastaliq/Mehr_Nastaliq_Web2.0.woff') format('woff'),
            url('../fonts/MehrNastaliq/Mehr_Nastaliq_Web2.0.ttf') format('truetype');
    }
    .urdu{
        font-family: "urdu";    
        font-weight: 700 !important;  
        line-height: normal;
        font-size: 18px;
        word-spacing: 1px;
        letter-spacing: 0px !important;
    }
    @font-face {
      font-family: amiri;
      font-style: normal;
      font-weight: 400;
      src: url('../fonts/amiri-regular.eot?') format('eot'),
           url('../fonts/amiri-regular.woff2') format('woff2'),
           url('../fonts/amiri-regular.woff') format('woff'),
           url('../fonts/amiri-regular.ttf')  format('truetype');
    }
    .amiri{
        font-family: amiri;
        direction: rtl;
    }

    /* Navbar */
    .navbar{
      background:#fff;
      box-shadow:0 2px 10px rgba(0,0,0,.05);
      padding:15px 0;
    }

    .navbar-brand{
      font-size:28px;
      font-weight:700;
      color:var(--primary);
    }

    .nav-link{
      color:#444;
      font-weight:600;
      margin:0 10px;
      transition:.3s;
    }

    .nav-link:hover{
      color:var(--primary);
    }

    .btn-main{
      background:var(--primary);
      color:#fff;
      padding:10px 22px;
      border-radius:10px;
      font-weight:600;
      transition:.3s;
    }

    .btn-main:hover{
      background:var(--secondary);
      color:#fff;
    }

    /* Hero */

    .hero{
      background:linear-gradient(rgba(13,107,87,.92),rgba(13,107,87,.92)),
      url('https://images.unsplash.com/photo-1519817650390-64a93db511aa?q=80&w=1400&auto=format&fit=crop');
      background-size:cover;
      background-position:center;
      padding:120px 0;
      color:#fff;
      text-align:center;
    }

    .hero h1{
      font-size:58px;
      font-weight:700;
      margin-bottom:20px;
    }

    .hero p{
      max-width:800px;
      margin:auto;
      font-size:20px;
      line-height:2;
      opacity:.95;
    }

    .search-box{
      margin-top:40px;
      background:#fff;
      padding:10px;
      border-radius:15px;
      max-width:750px;
      margin-inline:auto;
      display:flex;
      overflow:hidden;
      box-shadow:0 10px 30px rgba(0,0,0,.1);
    }

    .search-box input{
      border:none;
      flex:1;
      padding:15px;
      outline:none;
      font-size:16px;
    }

    .search-box button{
      border:none;
      background:var(--primary);
      color:#fff;
      padding:0 35px;
      border-radius:10px;
      font-weight:600;
    }

    /* Services */

    .section-title{
      text-align:center;
      margin-bottom:60px;
    }

    .section-title h2{
      font-size:42px;
      font-weight:700;
      color:var(--dark);
    }

    .section-title p{
      color:#666;
      margin-top:15px;
    }

    .services{
      padding:90px 0;
      background:var(--light);
    }

    .service-card{
      background:#fff;
      border-radius:20px;
      padding:40px 30px;
      text-align:center;
      transition:.3s;
      height:100%;
      box-shadow:0 5px 20px rgba(0,0,0,.05);
    }

    .service-card:hover{
      transform:translateY(-10px);
    }

    .service-icon{
      width:85px;
      height:85px;
      background:rgba(13,107,87,.1);
      color:var(--primary);
      border-radius:50%;
      display:flex;
      align-items:center;
      justify-content:center;
      margin:auto;
      font-size:34px;
      margin-bottom:25px;
    }

    .service-card h4{
      font-weight:700;
      margin-bottom:15px;
    }

    .service-card p{
      color:#666;
      line-height:1.9;
    }

    /* Featured */

    .featured{
      padding:90px 0;
    }

    .fatwa-card{
      background:#fff;
      border-radius:20px;
      overflow:hidden;
      box-shadow:0 5px 20px rgba(0,0,0,.06);
      transition:.3s;
      height:100%;
    }

    .fatwa-card:hover{
      transform:translateY(-6px);
    }

    .fatwa-img{
      height:220px;
      background-size:cover;
      background-position:center;
    }

    .fatwa-content{
      padding:25px;
    }

    .badge-custom{
      background:rgba(13,107,87,.1);
      color:var(--primary);
      padding:8px 15px;
      border-radius:30px;
      font-size:13px;
      font-weight:600;
    }

    .fatwa-content h5{
      margin-top:20px;
      line-height:1.8;
      font-weight:700;
    }

    .fatwa-content p{
      color:#666;
      margin-top:15px;
      line-height:1.8;
    }

    /* Stats */

    .stats{
      background:var(--primary);
      color:#fff;
      padding:70px 0;
    }

    .stat-box{
      text-align:center;
    }

    .stat-box h3{
      font-size:50px;
      font-weight:700;
    }

    .stat-box p{
      font-size:18px;
      margin-top:10px;
    }

    /* Footer */

    footer{
      background:#0b1f1a;
      color:#fff;
      padding:70px 0 30px;
    }

    footer h5{
      margin-bottom:25px;
      font-weight:700;
    }

    footer p,
    footer a{
      color:#ccc;
      line-height:2;
    }

    footer a:hover{
      color:#fff;
    }

    .footer-bottom{
      border-top:1px solid rgba(255,255,255,.1);
      margin-top:40px;
      padding-top:25px;
      text-align:center;
      color:#bbb;
    }

    @media(max-width:768px){

      .hero h1{
        font-size:38px;
      }

      .search-box{
        flex-direction:column;
        gap:10px;
      }

      .search-box button{
        padding:14px;
      }

    }




    /*  FATWA LISTING STYLE */
    .page-header{
      background:
      linear-gradient(rgba(13,107,87,.92),rgba(13,107,87,.92)),
      url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=1400&auto=format&fit=crop');

      background-size:cover;
      background-position:center;
      padding:80px 0;
      color:#fff;
      text-align:center;
    }

    .page-header h1{
      font-size:52px;
      font-weight:800;
      margin-bottom:15px;
    }

    .page-header p{
      font-size:20px;
      opacity:.95;
    }

    /* Search Box */

    .search-section{
      margin-top:-40px;
      position:relative;
      z-index:10;
    }

    .search-card{
      background:#fff;
      border-radius:20px;
      padding:30px;
      box-shadow:0 10px 40px rgba(0,0,0,.08);
    }

    .search-input{
      height:58px;
      border-radius:12px;
      border:1px solid var(--border);
    }

    .search-input:focus{
      box-shadow:none;
      border-color:var(--primary);
    }

    .filter-select{
      height:58px;
      border-radius:12px;
    }





    /* LAYOUT STYLE */
    .main-section{
      padding:70px 0;
    }

    .sidebar{
      background:#fff;
      border-radius:20px;
      padding:25px;
      box-shadow:0 4px 20px rgba(0,0,0,.05);
      /*position:sticky;
      top:100px;*/
    }

    .sidebar-title{
      font-size:22px;
      font-weight:700;
      margin-bottom:20px;
      color:var(--dark);
    }

    .category-list{
      list-style:none;
      padding:0;
      margin:0;
    }

    .category-list li{
      margin-bottom:12px;
    }

    .category-list a{
      display:flex;
      justify-content:space-between;
      align-items:center;
      background:#f9fafb;
      padding:12px 16px;
      border-radius:12px;
      color:#444;
      transition:.3s;
      font-weight:600;
    }

    .category-list a:hover{
      background:var(--primary);
      color:#fff;
    }

    /* Fatwa Card */

    .fatwa-card{
      background:#fff;
      border-radius:20px;
      padding:25px;
      margin-bottom:25px;
      box-shadow:0 4px 20px rgba(0,0,0,.05);
      transition:.3s;
    }

    .fatwa-card:hover{
      transform:translateY(-4px);
    }

    .fatwa-meta{
      display:flex;
      gap:15px;
      flex-wrap:wrap;
      margin-bottom:15px;
      color:#777;
      font-size:12px;      
    }

    .badge-category{
      background:rgba(13,107,87,.1);
      color:var(--primary);
        padding: 5px 11px;
        border-radius: 30px;
        font-size: 9px;      
      font-weight:700;
    }

    .fatwa-title{
        font-family: "urdu";
        font-size:17px;
        font-weight:700;
        line-height:1.8;        
        color:var(--dark);
        border-bottom: 1px dashed #ccc;
    }

    .fatwa-desc{
      color:#666;
      line-height:2;
      margin-bottom:20px;
    }

    .fatwa-footer{
      display:flex;
      justify-content:space-between;
      align-items:center;
      flex-wrap:wrap;
    }

    .read-more{
      color:var(--primary);
      font-weight:700;
    }

    .read-more:hover{
      color:var(--secondary);
    }

    /* Pagination */

    .pagination .page-link{
      border:none;
      color:#444;
      margin:0 5px;
      border-radius:10px !important;
      width:45px;
      height:45px;
      display:flex;
      align-items:center;
      justify-content:center;
    }

    .pagination .active .page-link{
      background:var(--primary);
    }









    /* Content */

    .content-section{
      margin-top:-50px;
      position:relative;
      z-index:5;
      padding-bottom:80px;
    }

    .fatwa-wrapper{
      background:#fff;
      border-radius:30px;
      overflow:hidden;
      box-shadow:0 10px 50px rgba(0,0,0,.08);
    }

    /* Top Bar */

    .top-bar{
      background:#fff;
      border-bottom:1px solid #f1f1f1;
      padding:25px 35px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      flex-wrap:wrap;
      gap:20px;
    }

    .scholar{
      display:flex;
      align-items:center;
      gap:18px;
    }

    .scholar img{
      width:70px;
      height:70px;
      border-radius:50%;
      object-fit:cover;
      border:3px solid #fff;
      box-shadow:0 5px 15px rgba(0,0,0,.1);
    }

    .scholar h5{
      margin:0;
      font-weight:700;
    }

    .scholar p{
      margin:4px 0 0;
      color:#777;
    }

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

    .share-icons a{
      width:45px;
      height:45px;
      border-radius:12px;
      background:#f6f8fa;
      color:#444;
      display:flex;
      align-items:center;
      justify-content:center;
      transition:.3s;
    }

    .share-icons a:hover{
      background:var(--primary);
      color:#fff;
    }

    /* Body */

    .fatwa-body{
      padding:50px;
    }

    .question-box{
      background:linear-gradient(135deg,#f8fafc,#eef5f3);
      border-right:5px solid var(--primary);
      border-radius:20px;
      padding:35px;
      margin-bottom:40px;
    }

    .question-box h4{
      color:var(--primary);
      font-weight:800;
      margin-bottom:20px;
    }

    .question-box p{
      line-height:2.3;
      color:#444;
      font-size:18px;
      margin:0;
    }

    .answer-title{
      display:flex;
      align-items:center;
      gap:15px;
      margin-bottom:35px;
    }

    .answer-title .icon{
      width:65px;
      height:65px;
      border-radius:18px;
      background:rgba(13,107,87,.1);
      color:var(--primary);
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:28px;
    }

    .answer-title h3{
      margin:0;
      font-size:34px;
      font-weight:800;
      color:var(--dark);
    }

    .fatwa-answer{
      font-size:19px;
      line-height:2.5;
      color:#444;
    }

    .fatwa-answer p{
      margin-bottom:28px;
    }

    .fatwa-answer blockquote{
      background:#faf7f0;
      border-right:5px solid var(--gold);
      padding:30px;
      border-radius:18px;
      font-size:22px;
      line-height:2.2;
      color:#7a5a1f;
      margin:35px 0;
      font-weight:600;
    }

    .highlight{
      color:var(--primary);
      font-weight:700;
    }

    /* Tags */

    .tags{
      margin-top:50px;
      display:flex;
      gap:15px;
      flex-wrap:wrap;
    }

    .tag{
      background:#f4f7f8;
      color:#555;
      padding:10px 18px;
      border-radius:50px;
      transition:.3s;
      font-weight:600;
    }

    .tag:hover{
      background:var(--primary);
      color:#fff;
    }

    /* Related */

    .related{
      margin-top:70px;
    }

    .section-title{
      font-size:32px;
      font-weight:800;
      margin-bottom:35px;
      color:var(--dark);
    }

    .related-card{
      background:#fff;
      border-radius:22px;
      overflow:hidden;
      box-shadow:0 5px 25px rgba(0,0,0,.05);
      transition:.3s;
      height:100%;
    }

    .related-card:hover{
      transform:translateY(-6px);
    }

    .related-img{
      height:220px;
      background-size:cover;
      background-position:center;
    }

    .related-content{
      padding:25px;
    }

    .related-content span{
      display:inline-block;
      background:rgba(13,107,87,.1);
      color:var(--primary);
      padding:8px 14px;
      border-radius:40px;
      font-size:13px;
      font-weight:700;
      margin-bottom:18px;
    }

    .related-content h5{
      line-height:1.9;
      font-weight:700;
      color:#222;
      margin-bottom:15px;
    }

    .related-content a{
      color:var(--primary);
      font-weight:700;
    }



