/*
Theme Name: GeneratePress Child
Theme URI: https://example.com
Description: Child theme for GeneratePress
Author: SmartDataSoft
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/
.jm-mb-25 {
    margin-bottom: 25px;
}

.wp-block-button.uagb-post__text.uagb-post__cta .uagb-text-link.wp-block-button__link {
    border-style: none;
    background-color: white;
    color: black;
    padding: 0;
    text-decoration: underline;
}
.uagb-block-ddd4c558 .uagb-post-grid-byline {
	display: none;
}


.jm-header {
  background: #fff;
  position: sticky;
  padding: 0 15px;
  top: 0;
  z-index: 9999;
  box-shadow: 0px 2px 2px 0px #0000000d;
}

.jm-container {
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jm-logo img {
  width: 300px;
  max-width: 100%;
  display: block;
}

.jm-nav {
  flex: 1;
}

.jm-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jm-menu li {
  position: relative;
}

.jm-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  color: #132337;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.jm-menu > li > a:hover {
  color: #d79a32;
}

/* Dropdown */
.jm-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  padding: 5px;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
  z-index: 99999;
}

.jm-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jm-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  color: #132337;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}

.jm-menu .sub-menu li a:hover {
  background: #f7f1e7;
}

.jm-menu .sub-menu .sub-menu {
  top: 0;
  right: 100%;
}

/* Dropdown arrow icon */
.jm-menu .menu-item-has-children > a {
  gap: 6px;
}

.jm-dropdown-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform .25s ease;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.jm-menu .menu-item-has-children:hover > a .jm-dropdown-arrow {
  transform: rotate(180deg);
}

/* Actions */
.jm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
}

.search-btn svg {
  width: 22px;
  height: 22px;
}

.contact-btn {
  background: #122337;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 26px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.jm-menu-toggle {
  display: none;
  background: #122337;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 24px;
  padding: 7px 12px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
  .jm-logo img {
    width: 220px;
  }

  .jm-menu {
    gap: 14px;
  }

  .jm-menu > li > a {
    font-size: 14px;
  }
	.jm-menu .sub-menu li a {
    font-size: 14px;
}
}

@media (max-width: 900px) {
  .jm-container {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .jm-logo img {
    width: 210px;
  }

  .jm-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .jm-actions {
    display: none;
  }

  .jm-nav {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    order: 5;
  }

  .jm-nav.active {
    display: block;
  }

  .jm-menu {
    display: block;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
  }


  .jm-menu .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f7f7f7;
    margin: 4px 0 8px;
    min-width: 100%;
  }

  .jm-menu li.open > .sub-menu {
    display: block;
  }
    .jm-menu > li > a {
                padding: 10px 0;
        }
	.fatwa-container {
    padding: 0 1px;
}
}

@media (max-width: 560px) {
  .jm-logo img {
    width: 200px;
  }
}

/* ===== Search Modal ===== */
.jm-search-modal[hidden] {
  display: none;
}

.jm-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: block;
}

.jm-search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 55, 0);
  transition: background .25s ease;
}

.jm-search-modal.is-open .jm-search-overlay {
  background: rgba(18, 35, 55, .78);
}

.jm-search-box {
  position: relative;
  z-index: 1;
  width: 640px;
  max-width: calc(100% - 32px);
  margin: 18vh auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .25s ease, transform .25s ease;
}

.jm-search-modal.is-open .jm-search-box {
  opacity: 1;
  transform: translateY(0);
}

.jm-search-form {
  flex: 1;
  display: flex;
  align-items: center;
}

.jm-search-field {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 17px;
  padding: 12px 4px;
  background: transparent;
  color: #132337;
}

.jm-search-submit {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: #d79a32;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
    padding: 0px;
    margin-left: 10px;
}

.jm-search-submit:hover {
  background: #c4892a;
}

.jm-search-submit svg {
  width:30px;
  height: 30px;
}

.jm-search-close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #132337;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  padding: 0px;
}

.jm-search-close:hover {
  background: #e6e6e6;
}

@media (max-width: 560px) {
  .jm-search-box {
    margin-top: 14vh;
    padding: 8px 8px 8px 14px;
  }

  .jm-search-field {
    font-size: 15px;
  }
}


/* Top-Bar */
.jm-topbar {
  background: #122232;
  color: #fff;
  padding: 0px 15px;
}

.jm-topbar-inner {
  min-height: 55px;
  padding: 10px 0px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.jm-topbar-date {
  font-size: 16px;
  line-height: 1.6;
  color: #d9e1e8;
}

.jm-topbar-date strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.jm-topbar-arabic {
  font-family: serif;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  white-space: nowrap;
}

.jm-topbar-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  text-align: right;
}

.jm-topbar-time span {
  display: block;
  font-size: 16px;
  color: #d9e1e8;
}

.jm-topbar-time strong {
  display: block;
  font-size: 22px;
  color: #fff;
  direction: ltr;
}

.jm-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.35);
}

/* Mobile */
@media (max-width: 768px) {
  .jm-topbar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
    padding: 10px 14px;
  }

  .jm-topbar-arabic {
    order: 1;
    font-size: 22px;
  }

  .jm-topbar-date {
    order: 2;
  }

  .jm-topbar-time {
    display: none;
  }
}


/* ===== Footer Section ===== */
.jm-footer{
    background:#122232;
    color:#d7dde5;
}

.jm-footer-top{
    display:grid;
    grid-template-columns:1.6fr .9fr .9fr 1.4fr;
    gap:40px;
    padding:70px 15px;
}

.jm-footer h3{
    color:#fff;
    font-size:20px;
    font-weight:700;
    position:relative;
    padding-bottom:10px;
    margin-bottom: 0;
}

.jm-footer h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.jm-footer h3::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:1px;
}
.jm-footer p{
    line-height:1.4;
    margin:0 0 0px;
}

.jm-footer-text{
    color:#b6c0cc;
    font-size:18px;
}

/* Footer menus */
.jm-footer-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.jm-footer-menu li{
    margin-bottom:12px;
}

.jm-footer-menu a{
    color:#d7dde5;
    text-decoration:none;
    font-size:18px;
    transition:color .2s ease, padding .2s ease;
}

.jm-footer-menu a:hover{
    color:#f4b74d;
    padding-right:6px;
}

/* Widget title */
.jm-widget-title{
    color:#fff;
    font-size:16px;
    margin:0 0 12px;
}

.footer-apps-option {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    justify-content: center;
}


/* ===== Donation column ===== */
.jm-col-donation .jm-donation-default p{
    font-size:18px;
    line-height: 1.4;
}

.jm-bank-info{
    margin-top:35px;
}

.jm-bank-name{
    color:#fff !important;
    font-weight:700;
}

.jm-bank-label{
    color:#9fb0c2 !important;
}

.jm-account p{
    margin:2px 0;
    font-size:13px;
}

.jm-account strong{
    color:#e7eef5;
}

.jm-acct-no{
    color:#f4b74d;
    font-weight:700;
    letter-spacing:.5px;
}

.jm-branch{
    color:#9fb0c2 !important;
    font-size:16px ;
}

/* ===== Info column (logo + newsletter + contact) ===== */
.jm-col-info .custom-logo-link{
    display:inline-block;
    margin-bottom:18px;
}

.jm-col-info img{
    max-width:220px;
    height:auto;
}

/* Newsletter */
.jm-newsletter{
    margin-bottom:24px;
}

.jm-newsletter-form{
    display:flex;
    gap:8px;
    margin-top:10px;
}

.jm-newsletter-form input[type="email"]{
    flex:1;
    min-width:0;
    padding:11px 14px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:8px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:14px;
    outline:none;
}

.jm-newsletter-form input[type="email"]::placeholder{
    color:#9fb0c2;
}

.jm-newsletter-form input[type="email"]:focus{
    border-color:#f4b74d;
}

.jm-newsletter-form button{
    border:0;
    background:#f4b74d;
    color:#132437;
    font-weight:700;
    padding:11px 18px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:background .2s ease;
    white-space:nowrap;
}

.jm-newsletter-form button:hover{
    background:#e7a93e;
}

/* Newsletter feedback messages */
.jm-newsletter-msg{
    margin:10px 0 0;
    padding:10px 14px;
    border-radius:8px;
    font-size:14px;
    line-height:1.5;
}

.jm-newsletter-msg.is-success{
    background:rgba(34,197,94,.15);
    border:1px solid rgba(34,197,94,.4);
    color:#86efac;
}

.jm-newsletter-msg.is-info{
    background:rgba(59,130,246,.15);
    border:1px solid rgba(59,130,246,.4);
    color:#93c5fd;
}

.jm-newsletter-msg.is-error{
    background:rgba(239,68,68,.15);
    border:1px solid rgba(239,68,68,.4);
    color:#fca5a5;
}

/* Contact list */
.jm-contact-list{
    list-style:none;
    padding:0;
    margin:0 0 18px;
}

.jm-contact-list li{
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-size:18px;
}

.jm-contact-label{
    color:#9fb0c2;
    flex-shrink:0;
}

.jm-contact-val{
    color:#fff;
    text-align:left;
    direction:ltr;
    unicode-bidi:embed;
}

.jm-pay-tag{
    font-size:10px;
    font-style:normal;
    background:#f4b74d;
    color:#132437;
    padding:2px 6px;
    border-radius:4px;
    margin-left:4px;
    font-weight:700;
    text-transform:uppercase;
}

/* bKash & Nagad mini logos (brand-colored badges) */
.jm-pay-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:9px;
    font-weight:800;
    line-height:1;
    padding:3px 6px;
    border-radius:4px;
    margin-left:5px;
    letter-spacing:.2px;
    text-transform:uppercase;
    vertical-align:middle;
    white-space:nowrap;
}

.jm-bkash{
    background:#E2136E;
    color:#fff;
}

.jm-nagad{
    background:#EE1C25;
    color:#fff;
    margin-left:3px;
}

/* Address */
.jm-address h4{
    color:#fff;
    font-size:16px;
    margin:0 0 6px;
}

.jm-address p{
    font-size:16px;
}

/* ===== Footer bottom ===== */
.jm-footer-bottom{
    background:#E7E9EA;
    color:#0e1c2b;
    border-top:1px solid rgba(255,255,255,.06);
}

.jm-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:60px;
    padding:14px 20px;
}
.jm-bottom li {
    list-style:none;
}

.jm-bottom p{
    margin:0;
    font-size:16px;
}

.jm-bottom a{
    color:#f4b74d;
    text-decoration:none;
}

/* ===== Responsive ===== */
@media(max-width:991px){
    .jm-footer-top{
        grid-template-columns:1fr 1fr;
        gap:30px;
        padding:50px 20px;
    }
}

@media(max-width:767px){
    .jm-footer-top{
        grid-template-columns:1fr;
        gap:30px;
        padding:40px 16px;
    }

    .jm-col-info{
        order:-1;
    }

    .jm-newsletter-form{
        flex-direction:column;
    }

    .jm-newsletter-form button{
        width:100%;
    }

    .jm-bottom{
        flex-direction:column;
        text-align:center;
        gap:12px;
    }
}

/* Fatwa Card */
:root{
    --fatwa-bg:#0f2032;
    --fatwa-card:#eef0f2;
    --fatwa-text:#ffffff;
    --fatwa-muted:#cbd5e1;
    --fatwa-primary:#f7c55a;
    --fatwa-dark:#111827;
    --radius:12px;
    --transition:.3s ease;
}

.fatwa-section{
    background:var(--fatwa-bg);
    padding:80px 0;
}

.fatwa-container {
    max-width: 1396px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
}

.fatwa-header{
    display:flex;
    justify-content:space-between;
    gap:40px;
    align-items: end;
    margin-bottom:25px;
}

.fatwa-title{
    max-width:600px;
}

.fatwa-title h2{
    color:#fff;
    font-size:52px;
    margin-bottom:18px;
    font-weight:700;
}

.fatwa-title p{
    color:var(--fatwa-muted);
    line-height:1.5;
    font-size:17px;
    margin-bottom: 0px;
}

.fatwa-tabs{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
}

.fatwa-tab{
    color:#fff;
    cursor:pointer;
    transition:var(--transition);
    padding:6px 20px;
    border-radius:100px;
    font-size:18px;
}

.fatwa-tab.active{
    background:var(--fatwa-primary);
    color:#111;
}

.fatwa-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.fatwa-card{
    background:var(--fatwa-card);
    padding:28px;
    transition:.35s;
    display:flex;
    flex-direction:column;
    min-height:310px;
}

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

.fatwa-number{
    display:inline-block;
    background:#ddd;
    max-width: 145px;
    width: 100%;
    font-weight: 700;
    text-align: center;
    border-radius:40px;
    padding:8px 18px;
    font-size:16px;
    margin-bottom:28px;
}

.fatwa-card h3{
    font-size:20px;
    margin-bottom:18px;
}

.fatwa-card p{
    color:#555;
    line-height:1.8;
    margin-bottom:auto;
}

.fatwa-card a{
    margin-top:30px;
    display:inline-flex;
    gap:10px;
    text-decoration:none;
    color:#111;
    font-weight:600;
}

.fatwa-card a:hover{
    color:#c78a08;
}

.fatwa-more{
    text-align:center;
    margin-top:55px;
}

.fatwa-btn{
    background:var(--fatwa-primary);
    color:#111;
    padding:15px 36px;
    border-radius:100px;
    text-decoration:none;
    display:inline-block;
    transition:.3s;
}

.fatwa-btn:hover{
    transform:translateY(-3px);
}

@media(max-width:1100px){

.fatwa-grid{
grid-template-columns:repeat(2,1fr);
}

.fatwa-header{
flex-direction:column;
}

}

@media (max-width: 991px) {
        .fatwa-header {
                gap: 20px;
        }

        .fatwa-title h2 {
                margin-bottom: 0;
        }
}

@media (max-width: 1199px) {
    .fatwa-header {
    align-items: start;
    }
}

@media(max-width:768px){

.fatwa-title h2{
font-size:36px;
}

.fatwa-grid{
grid-template-columns:1fr;
}

.fatwa-tabs{
overflow-x:auto;
flex-wrap:nowrap;
padding-bottom:10px;
}

 .fatwa-section {
                padding: 30px 0;
        }

.fatwa-tab{
white-space:nowrap;
}

}

/* Fatwa Section — states (loading / empty / editor preview) */
.fatwa-grid.is-loading {
    position: relative;
    min-height: 200px;
    opacity: 0.55;
    pointer-events: none;
}

.fatwa-grid.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--fatwa-primary, #f7c55a);
    border-radius: 50%;
    animation: jmFatwaSpin 0.7s linear infinite;
}

@keyframes jmFatwaSpin {
    to { transform: rotate(360deg); }
}

.fatwa-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--fatwa-muted, #cbd5e1);
    font-size: 16px;
    padding: 40px 0;
}

.fatwa-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: inherit;
}

/* "More" category tab — links to archive */
.fatwa-tab-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--fatwa-muted, #cbd5e1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.fatwa-tab-more:hover {
    color: var(--fatwa-primary, #f7c55a);
    border-color: var(--fatwa-primary, #f7c55a);
}

.fatwa-tab-more svg {
    transition: transform .2s ease;
}

.fatwa-tab-more:hover svg {
    transform: rotate(180deg);
}

/* Editor preview spacing */
.wp-block-generatepress-child-fatwa-section {
    margin: 0;
}

/* ============================================================
   Fatwa Archive Page
   ============================================================ */
.fatwa-archive {
    padding: 40px 0;
    margin: 0 auto;
}

.fatwa-archive-header {
    margin-bottom: 40px;
}

/* Row: title (left) + live search & smart filter (right) */
.fatwa-archive-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.fatwa-archive-title {
    font-size: 38px;
    font-weight: 700;
    color: #132337;
    margin: 0;
}

.fatwa-archive-description {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 12px;
}

/* Controls: search box + category dropdown */
.fatwa-archive-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Search box */
.fatwa-archive-search {
    position: relative;
    display: flex;
    align-items: center;
}

.fatwa-archive-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.fatwa-archive-search-input {
    width: 240px;
    max-width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #122232;
    border-radius: 65px !important;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: transparent;
    color: #132337;
}

.fatwa-archive-search-input:focus {
    border-color: #f7c55a;
    box-shadow: 0 0 0 3px rgba(247, 197, 90, 0.15);
}

/* Smart filter dropdown */
.fatwa-archive-filter {
    position: relative;
    display: flex;
    align-items: center;
}

.fatwa-archive-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 11px 38px 11px 14px;
    border: none;
    border-radius: 65px;
    padding: 12px 25px 10px 14px;
    font-size: 14px;
    font-family: inherit;
    background: #FFC461;
    color: #132337;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    max-width: 220px;
}

.fatwa-archive-filter-select:focus {
    border-color: #f7c55a;
    box-shadow: 0 0 0 3px rgba(247, 197, 90, 0.15);
}

.fatwa-archive-filter-arrow {
    position: absolute;
    right: 12px;
    color: #000000;
    pointer-events: none;
}

/* Status line (shown while filtering/searching) */
.fatwa-archive-status {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
}

.fatwa-archive-status.is-visible {
    display: flex;
}

.fatwa-archive-status-reset {
    flex-shrink: 0;
    border: 0;
    background: #132337;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease;
    font-family: inherit;
}

.fatwa-archive-status-reset:hover {
    background: #f7c55a;
    color: #111;
}

/* Per-page dropdown (mirrors the category filter styling) */
.fatwa-archive-perpage {
    position: relative;
    display: flex;
    align-items: center;
}

.fatwa-archive-perpage-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 11px 38px 11px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #132337;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    max-width: 120px;
}

.fatwa-archive-perpage-select:focus {
    border-color: #f7c55a;
    box-shadow: 0 0 0 3px rgba(247, 197, 90, 0.15);
}

/* Filter / submit button */
.fatwa-archive-filter-btn {
    border: 0;
    background: #132337;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease;
    white-space: nowrap;
}

.fatwa-archive-filter-btn:hover {
    background: #f7c55a;
    color: #111;
}

/* ============================================================
   Override: prevent the global 2-col archive grid
   (assets/css/blog-archive.css → ".archive .site-main") from
   breaking this page. We keep the "site-main" class on the element
   but use higher specificity (3 classes > 2 classes) so it wins
   regardless of stylesheet load order. Only affects this page.
   ============================================================ */
.fatwa-archive .site-main.fatwa-archive-main {
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin: 0;
    padding: 0 15px;
}

/* Layout: sidebar + content */
.fatwa-archive-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Archive grid (lighter cards than the dark section) */
.fatwa-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.fatwa-archive-grid .fatwa-card {
    background: #E7E9EA;
    box-shadow: none;
    border: none;
}

.fatwa-archive-grid .fatwa-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.fatwa-archive-grid .fatwa-number {
    background: #D6DBDE;
    font-weight: 700;
    max-width: 145px;
    width: 100%;
    text-align: center;
}

/* ============================================================
   Fatwa Sidebar
   ============================================================ */
.fatwa-sidebar {
    position: sticky;
    top: 100px;
}

.fatwa-sidebar-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.fatwa-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #132337;
    margin: 0 0 16px;
}

/* Search widget */
.fatwa-search-form {
    display: flex;
    gap: 8px;
}

.fatwa-search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.fatwa-search-field:focus {
    border-color: #f7c55a;
}

.fatwa-search-submit {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: #132337;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.fatwa-search-submit:hover {
    background: #f7c55a;
    color: #111;
}

/* Filter list */
.fatwa-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fatwa-filter-list li {
    margin-bottom: 4px;
}

.fatwa-filter-list a,
.fatwa-sidebar a {
    text-decoration: none !important;
}

.fatwa-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

.fatwa-filter-list a:hover {
    background: #eef0f2;
    color: #132337;
}

.fatwa-filter-list a.active {
    background: #132337;
    color: #fff;
}

.fatwa-filter-count {
    font-size: 13px;
    opacity: .7;
}

/* ============================================================
   Pagination
   ============================================================ */
.fatwa-pagination {
    margin-top: 45px;
    display: flex;
    justify-content: center;
}

.fatwa-pagination .page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fatwa-pagination .page-numbers li {
    display: inline-block;
}

.fatwa-pagination a,
.fatwa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    background: #f4f5f7;
    transition: all .2s ease;
}

.fatwa-pagination a:hover {
    background: #132337;
    color: #fff;
}

.fatwa-pagination .current {
    background: #f7c55a;
    color: #111;
}

.fatwa-pagination .dots {
    background: transparent;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .fatwa-archive-layout {
        grid-template-columns: 1fr;
    }

    .fatwa-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Stack the header: title on top, controls below */
    .fatwa-archive-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fatwa-archive-controls {
        width: 100%;
    }

    .fatwa-archive-search {
        flex: 1;
    }

    .fatwa-archive-search-input {
        width: 100%;
    }

    .fatwa-archive-filter-select {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .fatwa-archive-grid {
        grid-template-columns: 1fr;
    }

    .fatwa-archive-title {
        font-size: 28px;
    }

    /* Stack search + filter vertically on small screens */
    .fatwa-archive-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Fatwa Single Post Page
   ============================================================ */
.fatwa-single {
    padding: 0px 0 60px;
    margin: 0 auto;
}

.fatwa-single-main {
    padding: 35px;
}

/* Breadcrumb */
.fatwa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 16px;
    flex-wrap: wrap;
}

.fatwa-breadcrumb a {
    color: #64748b;
    text-decoration: none !important;
    transition: color .2s ease;
}

.fatwa-breadcrumb a:hover {
    color: #132337;
}

.fatwa-breadcrumb-sep {
    color: #cbd5e1;
}

/* Layout */
.fatwa-single-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: flex-start;
}

.fatwa-single-content {
    min-width: 0;
    background-color: white;
    padding: 0px;
}

/* Article card */
.fatwa-single-article {
    overflow: hidden;
}

/* Header */
.fatwa-single-header {
    border-bottom: 1px solid #f1f3f5;
}

.fatwa-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fatwa-single-cat-badge {
    display: inline-block;
    background: #eef6ff;
    color: #1a6dd6 !important;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease;
}

.fatwa-single-cat-badge:hover {
    background: #d8eeff;
}

.fatwa-single-number {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
}

.fatwa-single-title {
    font-size: 40px;
    font-weight: 700;
    color: #132337;
    line-height: 1.5;
    margin: 0 0 14px;
}

.fatwa-single-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #64748b;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.fatwa-single-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fatwa-single-divider {
    color: #cbd5e1;
}

/* Question Box */
.fatwa-question-box {
    display: flex;
    gap: 18px;
    padding: 28px 36px;
    background: #f0f7ff;
    border-bottom: 1px solid #e3effd;
}

.fatwa-q-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.fatwa-q-text {
    flex: 1;
}

.fatwa-q-label {
    display: block;
    color: #1a6dd6;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fatwa-q-text p {
    font-size: 17px;
    color: #1e3a5f;
    line-height: 1.7;
    margin: 0;
    font-weight: 600;
}

/* Answer Box */
.fatwa-answer-box {
    padding: 28px 36px 36px;
}

.fatwa-a-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d7a4d;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fatwa-answer-content {
    font-size: 18px;
    line-height: 1.9;
    color: #334155;
}

.fatwa-answer-content p {
    margin: 0 0 16px;
}

.fatwa-answer-content h2,
.fatwa-answer-content h3,
.fatwa-answer-content h4 {
    color: #132337;
    margin: 24px 0 12px;
}

.fatwa-answer-content ul,
.fatwa-answer-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.fatwa-answer-content blockquote {
    border-left: 4px solid #0d7a4d;
    padding: 12px 20px;
    background: #f0fdf4;
    margin: 16px 0;
    color: #166534;
    border-radius: 0 8px 8px 0;
}

/* Footer: Share + Back */
.fatwa-single-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 36px;
    background: #f8fafc;
    border-top: 1px solid #eef0f3;
    flex-wrap: wrap;
    gap: 16px;
}

.fatwa-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fatwa-share-label {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}

.fatwa-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform .2s ease, opacity .2s ease;
    text-decoration: none !important;
}

.fatwa-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.fatwa-share-facebook {
    background: #1877f2;
}

.fatwa-share-whatsapp {
    background: #25d366;
}

.fatwa-share-twitter {
    background: #000;
}

.fatwa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #132337 !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
}

.fatwa-back-link:hover {
    background: #132337;
    color: #fff !important;
    border-color: #132337;
}

/* Related Fatwas */
.fatwa-related {
    margin-top: 40px;
}

.fatwa-related-title {
    font-size: 22px;
    font-weight: 700;
    color: #132337;
    margin: 0 0 20px;
    position: relative;
    padding-left: 16px;
}

.fatwa-related-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #f7c55a;
    border-radius: 2px;
}

.fatwa-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fatwa-related-grid .fatwa-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f3;
    min-height: auto;
    padding: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .fatwa-single-layout {
        grid-template-columns: 1fr;
    }

    .fatwa-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Full-width archive grid (no sidebar) */
.fatwa-archive-grid-full {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1100px) {
    .fatwa-archive-grid-full {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .fatwa-archive-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .fatwa-archive-grid-full {
        grid-template-columns: 1fr !important;
    }

    .fatwa-single-header,
    .fatwa-question-box,
    .fatwa-answer-box,
    .fatwa-single-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fatwa-single-title {
        font-size: 20px;
    }

    .fatwa-question-box {
        gap: 12px;
    }

    .fatwa-q-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .fatwa-related-grid {
        grid-template-columns: 1fr;
    }

    .fatwa-single-footer {
        flex-direction: column;
        text-align: center;
    }
}


/* GutenBerg Block Css */
.uagb-post-grid .uagb-post__title {
    font-size: 18px;
    font-weight: 700;
}
.uagb-post-grid .uagb-post-grid-byline {
    display: none;
}

.uagb-post-grid .uagb-post__inner-wrap p:last-of-type {
    font-size: 16px;
}
.wp-block-button .wp-block-button__link {
    font-size: 16px;
}
.uagb-block-49ebed8f .spectra-image-gallery__control-arrows--carousel.slick-next,
.uagb-block-49ebed8f .spectra-image-gallery__control-arrows--carousel.slick-prev {
    left: auto;
    right: 60px;
    top: -65px;
    width: 46px;
    height: 46px;
    background-color: #ffc461 !important;
}

.uagb-block-49ebed8f .spectra-image-gallery__control-arrows--carousel.slick-next {
    right: 0px;
}

.uagb-block-49ebed8f .spectra-image-gallery__control-arrows--carousel.slick-next svg path,
.uagb-block-49ebed8f .spectra-image-gallery__control-arrows--carousel.slick-prev svg path {
	fill: #000000;
}

 .wp-block-uagb-post-grid .uagb-post__inner-wrap {

    padding-left: 0px;
    padding-right: 0px; 
}

@media (max-width: 767px) {
    .uagb-slider-container .swiper-button-prev,
    .uagb-slider-container .swiper-button-next {
        display: none;
    }
}
@media (max-width: 991px) {
        .spectra-image-gallery__media-wrapper {
                position: relative;
                padding: 0px 10px !important;
        }
}
.sidebar .widget_search .wp-block-search__inside-wrapper {
    width: 100%;
}
