/* ================================================
   فتاوى - بإشراف الشيخ الدكتور حسان سليم بليدي
   style.css — Main Stylesheet
   ================================================ */

/* === CSS VARIABLES === */
:root {
    --gold:        #B89B5E;
    --gold-light:  #E5D3A3;
    --gold-dark:   #9A7D3E;
    --green:       #4A6B3C;
    --green-light: #7FA36B;
    --green-dark:  #354E2B;
    --bg:          #F7F5F0;
    --bg-alt:      #EFECE5;
    --white:       #FFFFFF;
    --text-dark:   #2B2B2B;
    --text-mid:    #555555;
    --text-light:  #888888;
    --border:      #E0D8C8;
    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md:   0 6px 24px rgba(0, 0, 0, 0.11);
    --shadow-lg:   0 12px 48px rgba(0, 0, 0, 0.16);
    --radius:      14px;
    --radius-sm:   8px;
    --radius-xs:   6px;
    --transition:  0.3s ease;
    --font:        'Cairo', sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
select,
textarea {
    font-family: var(--font);
    direction: rtl;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 155, 94, 0.4);
}

.btn--green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn--green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 107, 60, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}

.btn--outline-green {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
    border: 2px solid var(--green);
}

.btn--outline-green:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.84rem;
}

.btn--full {
    width: 100%;
}

.btn--ask {
    background: var(--green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn--ask:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 60, 0.35);
}

/* ================================================
   SECTION COMMON STYLES
   ================================================ */
.section {
    padding: 90px 0;
}

.section--alt {
    background-color: var(--bg-alt);
}

.section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 52px;
    gap: 20px;
}

.section__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section__badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.3px;
}

.section__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
}

.section__subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 2px;
}

.link-more {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.92rem;
    transition: color var(--transition);
    white-space: nowrap;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-more:hover {
    color: var(--gold-dark);
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(88px, 10vw, 110px);
    gap: clamp(12px, 2vw, 24px);
    padding: 8px 0;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(72px, 9vw, 108px);
    width: auto;
    object-fit: contain;
    max-width: 320px;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-mid);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: var(--green);
    background: rgba(74, 107, 60, 0.08);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Hamburger --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--green);
    transition: background var(--transition), transform var(--transition);
    padding: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 107, 60, 0.35);
}

.menu-toggle:hover {
    background: var(--green-dark);
}

.menu-toggle:active {
    transform: scale(0.94);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: all var(--transition);
    transform-origin: center;
}

.menu-toggle.active {
    background: var(--green-dark);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?w=1920&q=80&fit=crop');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        140deg,
        rgba(20, 36, 14, 0.92) 0%,
        rgba(43, 43, 43, 0.78) 55%,
        rgba(184, 155, 94, 0.22) 100%
    );
}

/* Decorative bottom fade */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 820px;
}

.hero__badge {
    display: inline-block;
    background: rgba(184, 155, 94, 0.2);
    border: 1px solid rgba(184, 155, 94, 0.6);
    color: var(--gold-light);
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 22px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__desc {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.84);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.85;
}

.hero__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero__stats {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__num {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.stat__label {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* ================================================
   SEARCH SECTION
   ================================================ */
.search-section {
    padding: 44px 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.search-box__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
}

.search-box__form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 107, 60, 0.1);
}

.search-select {
    padding: 14px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--bg);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    min-width: 170px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.search-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 107, 60, 0.1);
}

.search-btn {
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
}

/* ================================================
   FATWA GRID
   ================================================ */
.fatwa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fatwa-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/* Decorative top accent */
.fatwa-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.fatwa-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.fatwa-card:hover::before {
    opacity: 1;
}

/* Category badge colors */
.fatwa-card__cat {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.79rem;
    font-weight: 700;
    width: fit-content;
}

.fatwa-card__cat--ibadat    { background: #EBF5E0; color: #3A5A2C; }
.fatwa-card__cat--muamalat  { background: #FFF4E0; color: #A06A10; }
.fatwa-card__cat--usra      { background: #FDE8E8; color: #B02A2A; }
.fatwa-card__cat--manhaj    { background: #E6EEFF; color: #1A46C0; }
.fatwa-card__cat--europe    { background: #F0E6FA; color: #6B22B0; }
.fatwa-card__cat--mutanawia { background: #E6F7F8; color: #0B7280; }

.fatwa-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.55;
}

.fatwa-card__desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    flex: 1;
}

.fatwa-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.fatwa-card__date {
    font-size: 0.79rem;
    color: var(--text-light);
}

/* ================================================
   CATEGORIES
   ================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: all var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.cat-card--featured {
    border-color: var(--gold);
    background: linear-gradient(145deg, #FFFCF3, #FFF8E7);
    position: relative;
}

.cat-card--featured::after {
    content: 'الأكثر طلباً';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 0 0 8px 8px;
}

.cat-card--featured:hover {
    box-shadow: 0 10px 36px rgba(184, 155, 94, 0.28);
}

/* Category icon boxes */
.cat-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.cat-card__icon svg {
    width: 32px;
    height: 32px;
}

.cat-icon--ibadat    { background: #EBF5E0; color: #4A6B3C; }
.cat-icon--muamalat  { background: #FFF4E0; color: #C47D15; }
.cat-icon--usra      { background: #FDE8E8; color: #C0392B; }
.cat-icon--manhaj    { background: #E6EEFF; color: #1A56DB; }
.cat-icon--europe    { background: linear-gradient(135deg, #EBF5E0, #E5D3A3); color: #4A6B3C; }
.cat-icon--mutanawia { background: #E6F7F8; color: #0B7280; }

.cat-card__title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-dark);
}

.cat-card__desc {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.6;
}

.cat-card__count {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.79rem;
    font-weight: 700;
    margin-top: auto;
}

/* ================================================
   VIDEO SLIDER
   ================================================ */
.video-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-light) transparent;
    cursor: grab;
}

.video-slider:active {
    cursor: grabbing;
}

.video-slider::-webkit-scrollbar {
    height: 4px;
}

.video-slider::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.video-slider::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.video-card {
    flex: 0 0 310px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-card__thumb {
    position: relative;
    height: 185px;
    overflow: hidden;
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.video-card:hover .video-card__thumb img {
    transform: scale(1.07);
}

/* Dark overlay on thumb */
.video-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background var(--transition);
    z-index: 1;
}

.video-card:hover .video-card__thumb::before {
    background: rgba(0, 0, 0, 0.4);
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(184, 155, 94, 0.88);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    padding-left: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-card:hover .video-card__play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 8px rgba(184, 155, 94, 0.2);
}

.video-card__duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.77rem;
    font-weight: 600;
    z-index: 2;
}

.video-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-card__cat {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.video-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Slider navigation buttons */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.08);
}

/* ================================================
   AUDIO SECTION
   ================================================ */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.audio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all var(--transition);
}

.audio-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
    transform: translateY(-3px);
}

.audio-card__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-card__icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
}

.audio-card__icon svg {
    width: 100%;
    height: 100%;
}

.audio-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 5px;
}

.audio-card__cat {
    font-size: 0.79rem;
    color: var(--green);
    font-weight: 700;
}

.audio-player {
    width: 100%;
    height: 42px;
    border-radius: 50px;
    accent-color: var(--green);
    outline: none;
}

/* ================================================
   FAQ ACCORDION
   ================================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition);
    gap: 16px;
    background: none;
}

.faq-item__q:hover {
    color: var(--green);
}

.faq-item.active .faq-item__q {
    color: var(--green);
    background: rgba(74, 107, 60, 0.04);
    border-bottom: 1px solid var(--border);
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.35s ease, color var(--transition);
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
    color: var(--green);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-item__a {
    max-height: 400px;
}

.faq-item__a p {
    padding: 20px 26px 24px;
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.85;
}

/* ================================================
   ASK SHEIKH FORM
   ================================================ */
.ask-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.ask-info .section__title {
    margin: 12px 0 16px;
    font-size: 2rem;
}

.ask-info > p {
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 28px;
    font-size: 0.97rem;
}

.ask-info__list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 32px;
}

.ask-info__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 500;
}

.list-check {
    width: 24px;
    height: 24px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ask-info__image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
}

.ask-info__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ask-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.required {
    color: #C0392B;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 107, 60, 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-color: var(--bg);
    padding-left: 40px;
}

.form-group select:focus {
    background-color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
}

/* ================================================
   ABOUT SHEIKH
   ================================================ */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 68px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Decorative frame effect */
.about-img__decoration {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--gold-light);
    border-radius: var(--radius);
    z-index: -1;
}

.about-img__badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: var(--green);
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 120px;
}

.about-img__badge span:first-child {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.about-img__badge span:last-child {
    font-size: 0.8rem;
    opacity: 0.88;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-content .section__title {
    font-size: 2.2rem;
    margin: 8px 0 4px;
}

.about-content__text {
    color: var(--text-mid);
    line-height: 1.9;
    font-size: 0.97rem;
}

.about-content__achievements {
    display: flex;
    gap: 36px;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.achievement {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.achievement__num {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.achievement__label {
    font-size: 0.84rem;
    color: var(--text-light);
}

.about-content__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #182611;
    color: rgba(255, 255, 255, 0.82);
}

.footer__top {
    padding: 76px 0 56px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
    gap: 52px;
}

.footer__logo {
    height: 62px;
    width: auto;
    margin-bottom: 22px;
    filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer__brand p {
    font-size: 0.89rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 26px;
    max-width: 320px;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__links ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__links ul li a::before {
    content: '‹';
    opacity: 0;
    transform: translateX(4px);
    transition: all var(--transition);
    color: var(--gold);
}

.footer__links ul li a:hover {
    color: var(--gold-light);
}

.footer__links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.footer__contact-list li {
    font-size: 0.89rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer__newsletter h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.footer__newsletter p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn--gold {
    padding: 12px 20px;
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* Footer bottom bar */
.footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__bottom p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer__bottom-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}

.footer__bottom-links a:hover {
    color: var(--gold-light);
}

/* ================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ================================================ */
@media (max-width: 1024px) {
    .fatwa-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-img img {
        height: 340px;
    }

    .about-img__decoration {
        display: none;
    }

    .ask-wrap {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .ask-info__image {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .section__header {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 36px;
    }

    /* Mobile header layout */
    .header__inner {
        height: auto;
        min-height: 80px;
        padding: 10px 0;
        gap: 10px;
    }

    .header__logo {
        flex: 1;
        min-width: 0;
    }

    .header__actions {
        gap: 10px;
        flex-shrink: 0;
        align-items: center;
    }

    /* إخفاء زر "اسأل الشيخ" على الشاشات الصغيرة جداً لتوفير مساحة للوغو */
    @media (max-width: 420px) {
        .btn--ask {
            display: none;
        }
    }

    .btn--ask {
        padding: 9px 16px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    /* Mobile nav — slide down panel */
    .header__nav {
        display: none;
        position: fixed;
        top: 80px;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 12px 16px 24px;
        box-shadow: var(--shadow-md);
        z-index: 998;
        border-top: 3px solid var(--green);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .header__nav.open {
        display: block;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav__link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid var(--border);
        color: var(--text-dark);
    }

    .nav__link:last-child {
        border-bottom: none;
    }

    .nav__link::before {
        content: '‹';
        margin-left: 10px;
        color: var(--gold);
        font-size: 1.2rem;
        font-weight: 700;
    }

    .nav__link:hover,
    .nav__link.active {
        background: rgba(74, 107, 60, 0.07);
        color: var(--green);
        padding-right: 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
        background-attachment: scroll;
    }

    .hero__content {
        padding: 110px 20px 60px;
    }

    .hero__stats {
        gap: 24px;
    }

    .stat__num {
        font-size: 1.5rem;
    }

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

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

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

    .search-box__form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-wrap,
    .search-select,
    .search-btn {
        width: 100%;
        min-width: unset;
    }

    .video-card {
        flex: 0 0 270px;
    }

    .ask-form {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__brand p {
        max-width: 100%;
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .about-content__achievements {
        gap: 22px;
    }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }

    .hero__btns {
        flex-direction: column;
    }

    .hero__btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        gap: 16px;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .video-card {
        flex: 0 0 250px;
    }

    .achievement__num {
        font-size: 1.7rem;
    }

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

    .newsletter-form .btn--gold {
        width: 100%;
    }

    .about-content__actions {
        flex-direction: column;
    }

    .about-content__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .logo-img {
        height: auto;
        width: min(72vw, 280px);
        max-width: 100%;
        object-fit: contain;
    }
}

/* ================================================
   FATWAS PAGE — PAGE HERO / TITLE SECTION
   ================================================ */
.page-hero {
    background: var(--bg-alt);
    padding: 72px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(184, 155, 94, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 107, 60, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
}

.page-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-hero__line {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

/* ================================================
   FATWAS FILTER BAR
   ================================================ */
.fatwas-filter-section {
    padding: 36px 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.fatwas-filter-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fatwas-filter__row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fatwas-filter__search-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.fatwas-filter__search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
}

.fatwas-filter__input {
    width: 100%;
    padding: 14px 50px 14px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
    font-family: var(--font);
    direction: rtl;
}

.fatwas-filter__input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 107, 60, 0.1);
}

.fatwas-filter__select {
    padding: 14px 22px 14px 42px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    min-width: 190px;
    appearance: none;
    font-family: var(--font);
    direction: rtl;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-color: var(--white);
}

.fatwas-filter__select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 107, 60, 0.1);
}

.fatwas-filter__btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.92rem;
    white-space: nowrap;
}

.fatwas-filter__reset {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.fatwas-filter__reset:hover {
    border-color: #C0392B;
    color: #C0392B;
    background: #FDE8E8;
}

/* ================================================
   CATEGORY CHIPS ROW
   ================================================ */
.chips-section {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
}

.chips-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid var(--gold-light);
    background: rgba(229, 211, 163, 0.15);
    color: var(--gold-dark);
    font-family: var(--font);
}

.chip:hover {
    background: rgba(229, 211, 163, 0.32);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.chip.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(74, 107, 60, 0.28);
}

.chip.active:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
}

/* ================================================
   FEATURED FATWA
   ================================================ */
.featured-fatwa-section {
    padding: 52px 0 0;
    background: var(--bg);
}

.featured-fatwa {
    background: linear-gradient(135deg, #2E4A20 0%, #4A6B3C 45%, #7A5E2A 100%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    min-height: 260px;
    box-shadow: var(--shadow-lg);
}

.featured-fatwa::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 155, 94, 0.22) 0%, transparent 68%);
    pointer-events: none;
}

.featured-fatwa::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 30%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.featured-fatwa__label {
    position: absolute;
    top: 24px;
    right: 28px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
}

.featured-fatwa__content {
    padding: 56px 44px 44px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.featured-fatwa__cat {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(229, 211, 163, 0.85);
    letter-spacing: 0.4px;
}

.featured-fatwa__title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.45;
    max-width: 680px;
}

.featured-fatwa__desc {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.85;
    max-width: 580px;
}

.featured-fatwa__footer {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.featured-fatwa__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(229, 211, 163, 0.28);
}

.featured-fatwa__type svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.featured-fatwa__date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.52);
}

.featured-fatwa__img {
    flex: 0 0 380px;
    position: relative;
    overflow: hidden;
}

.featured-fatwa__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transition: opacity var(--transition);
}

.featured-fatwa:hover .featured-fatwa__img img {
    opacity: 0.48;
}

/* ================================================
   FATWAS MAIN SECTION — GRID
   ================================================ */
.fatwas-main-section {
    padding: 52px 0 88px;
    background: var(--bg);
}

/* Type badge on cards */
.fatwa-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.fatwa-type-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.fatwa-type-badge--text {
    background: rgba(229, 211, 163, 0.28);
    color: var(--gold-dark);
    border: 1px solid rgba(184, 155, 94, 0.35);
}

.fatwa-type-badge--audio {
    background: rgba(74, 107, 60, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 107, 60, 0.22);
}

.fatwa-type-badge--video {
    background: rgba(43, 43, 43, 0.07);
    color: var(--text-mid);
    border: 1px solid var(--border);
}

/* Card meta row — cat label + type badge */
.fatwa-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

/* Video thumbnail at top of card */
.fatwa-card--has-thumb {
    padding-top: 0;
}

.fatwa-card__thumb {
    margin: 0 0 18px;
    height: 178px;
    overflow: hidden;
    position: relative;
    border-radius: 13px 13px 0 0;
}

.fatwa-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.fatwa-card:hover .fatwa-card__thumb img {
    transform: scale(1.06);
}

.fatwa-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
    transition: background var(--transition);
}

.fatwa-card:hover .fatwa-card__thumb::before {
    background: rgba(0, 0, 0, 0.4);
}

.fatwa-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(184, 155, 94, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    z-index: 2;
    padding-left: 4px;
    transition: all var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    line-height: 1;
}

.fatwa-card:hover .fatwa-card__play-icon {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 9px rgba(184, 155, 94, 0.18);
}

/* Video card: thumb sits flush at top, content padded below */
.fatwa-card--has-thumb {
    padding: 0 0 28px;
}

.fatwa-card--has-thumb .fatwa-card__meta,
.fatwa-card--has-thumb .fatwa-card__title,
.fatwa-card--has-thumb .fatwa-card__desc,
.fatwa-card--has-thumb .fatwa-card__footer {
    padding-right: 0;
    padding-left: 0;
    padding-right: 28px;
    padding-left: 28px;
}

/* Audio indicator bar */
.fatwa-card__audio-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(74, 107, 60, 0.07), rgba(74, 107, 60, 0.02));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(74, 107, 60, 0.13);
    margin-bottom: 4px;
}

.fatwa-card__mic-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fatwa-card__mic-icon svg {
    width: 18px;
    height: 18px;
}

.fatwa-card__waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.fatwa-card__waveform span {
    display: block;
    width: 3px;
    background: var(--green-light);
    border-radius: 3px;
    opacity: 0.65;
    transition: opacity var(--transition);
}

.fatwa-card:hover .fatwa-card__waveform span {
    opacity: 0.9;
}

.fatwa-card__duration-sm {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
    background: rgba(74, 107, 60, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 0 0;
    flex-wrap: wrap;
}

.page-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    line-height: 1;
}

.page-btn:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 60, 0.15);
}

.page-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(74, 107, 60, 0.32);
}

.page-btn.active:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.page-btn--next {
    width: auto;
    padding: 0 22px;
    border-radius: 50px;
    gap: 6px;
    display: inline-flex;
}

.page-btn--dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    color: var(--text-light);
    pointer-events: none;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
    text-align: center;
    gap: 18px;
}

.empty-state.visible {
    display: flex;
}

.empty-state__icon {
    width: 84px;
    height: 84px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 2px solid var(--border);
}

.empty-state__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.empty-state__desc {
    font-size: 0.93rem;
    color: var(--text-light);
    max-width: 380px;
    line-height: 1.75;
}

/* ================================================
   FATWAS PAGE — RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .featured-fatwa__img {
        flex: 0 0 280px;
    }
}

@media (max-width: 900px) {
    .featured-fatwa__img {
        display: none;
    }

    .featured-fatwa__content {
        padding: 44px 36px 40px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 52px 0 44px;
    }

    .page-hero__title {
        font-size: 1.85rem;
    }

    .fatwas-filter-card {
        padding: 20px;
    }

    .fatwas-filter__row {
        flex-direction: column;
        align-items: stretch;
    }

    .fatwas-filter__search-wrap {
        min-width: unset;
    }

    .fatwas-filter__select {
        min-width: unset;
        width: 100%;
    }

    .fatwas-filter__btn {
        width: 100%;
    }

    .fatwas-filter__reset {
        align-self: flex-end;
    }

    .featured-fatwa__content {
        padding: 44px 24px 36px;
    }

    .featured-fatwa__title {
        font-size: 1.3rem;
    }

    .fatwa-card--has-thumb .fatwa-card__meta,
    .fatwa-card--has-thumb .fatwa-card__title,
    .fatwa-card--has-thumb .fatwa-card__desc,
    .fatwa-card--has-thumb .fatwa-card__footer {
        margin-right: 22px;
        margin-left: 22px;
    }
}

@media (max-width: 480px) {
    .page-hero__title {
        font-size: 1.6rem;
    }

    .featured-fatwa__content {
        padding: 36px 20px 30px;
    }

    .chips-section {
        padding: 16px 0;
    }

    .chip {
        padding: 8px 16px;
        font-size: 0.84rem;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }
}

/* ================================================
   ASK PAGE — HEADER ACTIVE STATE
   ================================================ */
.btn--ask-current {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 4px 16px rgba(184, 155, 94, 0.35);
}

.btn--ask-current:hover {
    background: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
}

/* ================================================
   ASK PAGE — PAGE HERO VARIANT
   ================================================ */
.page-hero--ask {
    background: linear-gradient(160deg, var(--bg-alt) 0%, #EDE9DF 100%);
    padding-bottom: 52px;
}

.page-hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.page-hero__stat-num {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}

.page-hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.page-hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ================================================
   ASK PAGE — MAIN SECTION LAYOUT
   ================================================ */
.ask-page-section {
    padding: 72px 0 88px;
    background: var(--bg);
}

.ask-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 60px;
    align-items: start;
}

/* ================================================
   ASK PAGE — INFO SIDEBAR
   ================================================ */
.ask-page-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 120px;
}

.ask-page-info__img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.ask-page-info__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ask-page-info__img-wrap:hover .ask-page-info__img {
    transform: scale(1.04);
}

/* Dark overlay on image */
.ask-page-info__img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(20, 36, 14, 0.6) 100%);
    z-index: 1;
}

.ask-page-info__img-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ask-page-info__img-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ask-page-info__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ask-page-info__title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 6px 0 2px;
}

.ask-page-info__desc {
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.85;
}

/* Telegram callout box */
.ask-page-info__telegram {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(74, 107, 60, 0.06);
    border: 1px solid rgba(74, 107, 60, 0.16);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.ask-page-info__telegram:hover {
    background: rgba(74, 107, 60, 0.1);
    border-color: var(--green);
}

.ask-page-info__telegram-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ask-page-info__telegram-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.ask-page-info__telegram-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ask-page-info__telegram-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ================================================
   ASK PAGE — FORM CARD ENHANCEMENTS
   ================================================ */
.ask-form--page {
    gap: 24px;
    padding: 44px 48px;
}

.ask-form__header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 4px;
}

.ask-form__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ask-form__subtitle {
    font-size: 0.87rem;
    color: var(--text-light);
}

/* Icon inside country input */
.form-input-icon-wrap {
    position: relative;
}

.form-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
    line-height: 1;
}

.form-input-icon-wrap input {
    padding-right: 46px;
}

/* Character counter */
.form-group__counter {
    font-size: 0.76rem;
    color: var(--text-light);
    text-align: left;
    display: block;
    margin-top: 5px;
    transition: color var(--transition);
}

.form-group__counter.warn {
    color: #C47D15;
    font-weight: 600;
}

.form-group__counter.limit {
    color: #C0392B;
    font-weight: 700;
}

/* Custom checkbox row */
.ask-form__check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.ask-form__check-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ask-form__check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 2px;
    background: var(--bg);
}

.ask-form__check-row input:checked + .ask-form__check-box {
    background: var(--green);
    border-color: var(--green);
}

.ask-form__check-row input:checked + .ask-form__check-box::after {
    content: '✓';
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.ask-form__check-label {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Submit button with icon */
.ask-form__submit {
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.ask-form__submit svg {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.ask-form__submit:hover svg {
    transform: translateX(-3px);
}

/* ================================================
   FORM NOTICE BOX
   ================================================ */
.form-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(229, 211, 163, 0.18);
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: -4px;
}

.form-notice-box__icon {
    font-size: 1.1rem;
    color: var(--gold-dark);
    flex-shrink: 0;
    line-height: 1.6;
}

.form-notice-box p {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ================================================
   ASK PAGE — SUCCESS STATE
   ================================================ */
.ask-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 44px 48px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    gap: 20px;
    animation: successFadeIn 0.45s ease forwards;
}

.ask-success.visible {
    display: flex;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ask-success__circle {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(74, 107, 60, 0.35);
    flex-shrink: 0;
}

.ask-success__circle svg {
    width: 48px;
    height: 48px;
}

.ask-success__title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.25;
}

.ask-success__desc {
    font-size: 0.97rem;
    color: var(--text-mid);
    max-width: 420px;
    line-height: 1.8;
}

.ask-success__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.ask-success__ref {
    font-size: 0.82rem;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ask-success__ref strong {
    color: var(--green);
    font-weight: 700;
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */
.how-section {
    padding-bottom: 80px;
}

.how-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}

.how-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}

.how-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.how-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.how-card:hover::after {
    opacity: 1;
}

.how-card__step {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.how-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.how-card__icon svg {
    width: 30px;
    height: 30px;
}

.how-card__icon--gold {
    background: linear-gradient(135deg, rgba(229, 211, 163, 0.45), rgba(184, 155, 94, 0.2));
    color: var(--gold-dark);
    border: 1px solid rgba(184, 155, 94, 0.25);
}

.how-card__icon--green {
    background: linear-gradient(135deg, rgba(74, 107, 60, 0.12), rgba(127, 163, 107, 0.08));
    color: var(--green);
    border: 1px solid rgba(74, 107, 60, 0.15);
}

.how-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.how-card__desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* Time notice bar */
.how-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-right: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.how-notice__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.how-notice p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.how-notice strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ================================================
   FORM INLINE VALIDATION STATES
   ================================================ */
.form-group--error label {
    color: #C0392B;
}

.input--error,
.form-group--error input,
.form-group--error textarea {
    border-color: #C0392B !important;
    background: #FFF5F5 !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.form-group__error-msg {
    display: block;
    font-size: 0.8rem;
    color: #C0392B;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group__error-msg::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* ================================================
   ASK PAGE — RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
    .ask-page-wrap {
        grid-template-columns: 1fr 1.7fr;
        gap: 44px;
    }

    .ask-form--page {
        padding: 36px 36px;
    }
}

@media (max-width: 900px) {
    .ask-page-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ask-page-info {
        position: static;
    }

    .ask-page-info__img-wrap {
        height: 200px;
    }

    .how-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ask-page-section {
        padding: 52px 0 64px;
    }

    .ask-form--page {
        padding: 28px 22px;
    }

    .ask-form__title {
        font-size: 1.25rem;
    }

    .how-section {
        padding-bottom: 60px;
    }

    .page-hero__stats {
        gap: 20px;
    }

    .page-hero__stat-divider {
        display: none;
    }

    .ask-success {
        padding: 40px 24px 36px;
    }

    .ask-success__title {
        font-size: 1.35rem;
    }
}

@media (max-width: 600px) {
    .how-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ask-success__actions {
        flex-direction: column;
        width: 100%;
    }

    .ask-success__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   FATWA DETAIL PAGE
   ================================================ */

/* --- Reading progress bar --- */
.fd-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 2000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* --- Breadcrumb --- */
.fd-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.fd-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fd-breadcrumb__item {
    font-size: 0.84rem;
    color: var(--text-light);
}

.fd-breadcrumb__item a {
    color: var(--text-light);
    transition: color var(--transition);
}

.fd-breadcrumb__item a:hover {
    color: var(--green);
}

.fd-breadcrumb__item--current {
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.fd-breadcrumb__sep {
    color: var(--border);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

/* --- Title section --- */
.fd-title-section {
    background: var(--bg-alt);
    padding: 52px 0 48px;
    border-bottom: 1px solid var(--border);
}

.fd-title-section__inner {
    max-width: 860px;
}

.fd-title-section__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.fd-title-section__cat {
    font-size: 0.82rem;
}

.fd-title-section__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(74, 107, 60, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 107, 60, 0.2);
}

.fd-title-section__type-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.fd-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 18px;
}

.fd-title__line {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    margin-bottom: 22px;
}

.fd-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fd-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.fd-meta__item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.fd-meta__sep {
    color: var(--border);
    font-size: 1rem;
    line-height: 1;
}

/* --- Body layout: main + sidebar --- */
.fd-body-section {
    padding: 60px 0 80px;
    background: var(--bg);
}

.fd-content-layout {
    display: grid;
    grid-template-columns: 1fr 308px;
    gap: 52px;
    align-items: start;
}

/* --- Main article column --- */
.fd-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

/* --- Block label (السؤال / الجواب) --- */
.fd-block-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.fd-block-label svg {
    flex-shrink: 0;
}

.fd-block-label--question {
    background: rgba(229, 211, 163, 0.25);
    color: var(--gold-dark);
    border: 1px solid rgba(184, 155, 94, 0.3);
}

.fd-block-label--answer {
    background: rgba(74, 107, 60, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 107, 60, 0.2);
}

/* --- Question box --- */
.fd-question-box {
    background: rgba(229, 211, 163, 0.1);
    border: 1px solid rgba(184, 155, 94, 0.22);
    border-right: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 28px 32px;
}

.fd-question-box__text {
    font-size: 1.02rem;
    color: var(--text-dark);
    line-height: 1.95;
    font-weight: 500;
}

/* --- Answer section --- */
.fd-answer {
    /* no extra wrapper styles needed */
}

/* --- Prose content --- */
.fd-prose {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fd-prose p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 2.05;
    margin-bottom: 20px;
}

.fd-prose p:last-child {
    margin-bottom: 0;
}

.fd-prose h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 28px 0 14px;
    padding-right: 14px;
    border-right: 3px solid var(--gold);
    line-height: 1.45;
}

.fd-prose ul,
.fd-prose ol {
    padding-right: 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fd-prose ul li,
.fd-prose ol li {
    font-size: 1.01rem;
    color: var(--text-mid);
    line-height: 1.85;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 4px;
}

.fd-prose ul li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 9px;
}

.fd-prose ol {
    counter-reset: list-counter;
}

.fd-prose ol li {
    counter-increment: list-counter;
}

.fd-prose ol li::before {
    content: counter(list-counter);
    width: 22px;
    height: 22px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.fd-prose strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Quranic verse block */
.fd-quran {
    background: linear-gradient(135deg, rgba(229, 211, 163, 0.18), rgba(184, 155, 94, 0.08));
    border: 1px solid rgba(184, 155, 94, 0.25);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    text-align: center;
    margin: 8px 0 20px;
}

.fd-quran p,
.fd-quran {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 8px;
}

.fd-quran cite {
    display: block;
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-style: normal;
    font-weight: 700;
    margin-top: 6px;
}

/* Note box inside prose */
.fd-note-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(74, 107, 60, 0.06);
    border: 1px solid rgba(74, 107, 60, 0.15);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 8px 0 20px;
}

.fd-note-box__icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    line-height: 1.6;
}

.fd-note-box p {
    font-size: 0.92rem !important;
    color: var(--text-mid) !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}

.fd-prose__closing {
    font-size: 0.96rem !important;
    color: var(--text-light) !important;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 8px !important;
}

/* --- Media section --- */
.fd-media-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.fd-media-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.fd-media-section__title svg {
    color: var(--green);
    flex-shrink: 0;
}

.fd-audio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fd-audio-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fd-audio-card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
}

.fd-audio-card__icon svg {
    width: 100%;
    height: 100%;
}

.fd-audio-card__name {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.fd-audio-card__meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.fd-audio-player {
    width: 100%;
    accent-color: var(--green);
    outline: none;
    height: 40px;
    border-radius: 50px;
}

/* Video embed wrapper */
.fd-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.fd-video-wrap iframe,
.fd-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Source + share footer row --- */
.fd-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.fd-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
}

.fd-source__label {
    font-weight: 700;
    color: var(--text-dark);
}

.fd-source__value {
    color: var(--text-light);
}

.fd-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fd-share-row__label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark);
}

.fd-share-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.fd-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fd-share-btn--copy:hover  { border-color: var(--green); color: var(--green); }
.fd-share-btn--copy.copied { background: var(--green); color: white; border-color: var(--green); }

.fd-share-btn--telegram { color: #0088cc; border-color: rgba(0,136,204,0.3); }
.fd-share-btn--telegram:hover { background: #0088cc; color: white; border-color: #0088cc; }

.fd-share-btn--whatsapp { color: #25D366; border-color: rgba(37,211,102,0.3); }
.fd-share-btn--whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }

.fd-share-btn--twitter { color: var(--text-dark); border-color: var(--border); }
.fd-share-btn--twitter:hover { background: var(--text-dark); color: white; border-color: var(--text-dark); }

/* ================================================
   FATWA DETAIL — SIDEBAR
   ================================================ */
.fd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

/* Info card */
.fd-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.fd-info-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.fd-info-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.fd-info-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fd-info-list__label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
    flex-shrink: 0;
}

.fd-info-list__value {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: left;
}

.fd-info-list__val-badge {
    font-size: 0.75rem;
}

/* Sheikh card */
.fd-sheikh-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fd-sheikh-card__img-wrap {
    flex-shrink: 0;
}

.fd-sheikh-card__img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-light);
    box-shadow: 0 2px 10px rgba(184, 155, 94, 0.25);
}

.fd-sheikh-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fd-sheikh-card__name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
}

.fd-sheikh-card__bio {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.65;
}

.fd-sheikh-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    transition: color var(--transition);
    margin-top: 2px;
}

.fd-sheikh-card__link:hover {
    color: var(--gold-dark);
}

/* CTA sidebar card */
.fd-cta-sidebar {
    background: linear-gradient(145deg, #EBF5E0, #F0F7E8);
    border: 1px solid rgba(74, 107, 60, 0.18);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.fd-cta-sidebar__icon {
    font-size: 2rem;
    line-height: 1;
}

.fd-cta-sidebar__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.fd-cta-sidebar__desc {
    font-size: 0.84rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.fd-cta-sidebar .btn--green {
    margin-top: 4px;
}

.fd-cta-sidebar__note {
    font-size: 0.77rem;
    color: var(--green);
    font-weight: 700;
}

/* ================================================
   FATWA DETAIL — RELATED & CTA SECTIONS
   ================================================ */
.fd-related-section {
    /* uses .section and .section--alt */
}

/* CTA banner */
.fd-cta-banner {
    padding: 72px 0;
    background: linear-gradient(135deg, #2E4A20 0%, #4A6B3C 55%, #7A5E2A 100%);
    position: relative;
    overflow: hidden;
}

.fd-cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fd-cta-banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 620px;
}

.fd-cta-banner__badge {
    background: rgba(229, 211, 163, 0.2);
    color: var(--gold-light);
    border: 1px solid rgba(229, 211, 163, 0.3);
}

.fd-cta-banner__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
}

.fd-cta-banner__desc {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.85;
}

.fd-cta-banner__btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

.fd-cta-banner__btns .btn--green {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
    gap: 8px;
}

.fd-cta-banner__btns .btn--green:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--green-dark);
}

.fd-cta-banner__btns .btn--outline-green {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.45);
}

.fd-cta-banner__btns .btn--outline-green:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* Decorative circles */
.fd-cta-banner__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fd-cta-banner__deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.fd-cta-banner__deco-circle--1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
}

.fd-cta-banner__deco-circle--2 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: 10%;
    background: rgba(184, 155, 94, 0.08);
}

/* ================================================
   FATWA DETAIL — RESPONSIVE
   ================================================ */
@media (max-width: 1060px) {
    .fd-content-layout {
        grid-template-columns: 1fr 280px;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .fd-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .fd-cta-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .fd-title-section {
        padding: 40px 0 36px;
    }

    .fd-title {
        font-size: 1.45rem;
    }

    .fd-body-section {
        padding: 44px 0 60px;
    }

    .fd-question-box {
        padding: 22px 22px;
    }

    .fd-media-section {
        padding: 22px 22px;
    }

    .fd-prose p {
        font-size: 0.98rem;
    }

    .fd-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .fd-cta-banner {
        padding: 52px 0;
    }

    .fd-cta-banner__btns {
        flex-direction: column;
        width: 100%;
    }

    .fd-cta-banner__btns .btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .fd-breadcrumb__item--current {
        max-width: 180px;
    }

    .fd-share-btns {
        gap: 6px;
    }

    .fd-share-btn {
        padding: 6px 10px;
        font-size: 0.76rem;
    }
}

/* ================================================
   ABOUT PAGE — page-hero
   ================================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #5a7d4c 100%);
    padding: 100px 0 70px;
    overflow: hidden;
    margin-top: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184,155,94,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin: 16px 0 14px;
    line-height: 1.2;
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.page-hero__accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.breadcrumb__link {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.breadcrumb__link:hover {
    color: var(--gold-light);
}

.breadcrumb__sep {
    color: rgba(255,255,255,0.4);
}

.breadcrumb__current {
    color: var(--gold-light);
    font-weight: 600;
}

/* ================================================
   ABOUT PAGE — profile section
   ================================================ */
.about-full-wrap {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 72px;
    align-items: center;
}

.about-full-img {
    position: relative;
}

.about-full-img__frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-full-img__photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-full-img__deco {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--gold);
    border-radius: 16px;
    z-index: -1;
}

.about-full-img__badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: var(--gold);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-badge-num {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.about-badge-label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-full-name {
    margin: 12px 0 20px;
}

.about-full-intro p {
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.about-full-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat__num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.about-stat__label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ================================================
   ABOUT PAGE — biography cards
   ================================================ */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.bio-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.bio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.bio-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bio-card__icon svg {
    width: 32px;
    height: 32px;
}

.bio-icon--1 { background: rgba(74,107,60,0.1); color: var(--green); }
.bio-icon--2 { background: rgba(184,155,94,0.12); color: var(--gold-dark); }
.bio-icon--3 { background: rgba(74,107,60,0.1); color: var(--green); }

.bio-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.bio-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bio-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.bio-card__list li::before {
    content: '›';
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
    flex-shrink: 0;
}

/* ================================================
   ABOUT PAGE — work cards
   ================================================ */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.work-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 36px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    align-items: flex-start;
    transition: all var(--transition);
}

.work-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
    transform: translateX(-4px);
}

.work-card__num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    font-family: var(--font);
    padding-top: 4px;
}

.work-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.work-card__desc {
    color: var(--text-mid);
    line-height: 1.85;
    font-size: 0.98rem;
    margin-bottom: 16px;
}

.work-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tag {
    background: rgba(74,107,60,0.09);
    color: var(--green);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(74,107,60,0.2);
}

/* ================================================
   ABOUT PAGE — methodology
   ================================================ */
.methodology-section {
    background: var(--white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.method-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    border-radius: var(--radius) var(--radius) 0 0;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.method-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(184,155,94,0.12), rgba(74,107,60,0.12));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-dark);
}

.method-card__icon svg {
    width: 36px;
    height: 36px;
}

.method-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.method-card__desc {
    color: var(--text-mid);
    line-height: 1.85;
    font-size: 0.95rem;
}

/* ================================================
   ABOUT PAGE — official statement
   ================================================ */
.official-statement {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
    border: 2px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 44px 48px;
    box-shadow: 0 4px 24px rgba(184,155,94,0.15);
    position: relative;
    overflow: hidden;
}

.official-statement::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.official-statement__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.official-statement__icon svg {
    width: 40px;
    height: 40px;
}

.official-statement__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.official-statement__text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 14px;
}

.official-statement__note {
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ================================================
   ABOUT PAGE — CTA section
   ================================================ */
.about-cta-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(184,155,94,0.2) 0%, transparent 60%);
}

.about-cta {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.about-cta__icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--gold-light);
}

.about-cta__icon svg {
    width: 44px;
    height: 44px;
}

.about-cta__title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.about-cta__desc {
    color: rgba(255,255,255,0.82);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.about-cta__btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    font-size: 1.05rem;
    padding: 16px 48px;
}

.about-cta__btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(184,155,94,0.4);
}

/* ================================================
   ABOUT PAGE — fade-in animations
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ================================================
   ABOUT PAGE — responsive
   ================================================ */
@media (max-width: 1024px) {
    .about-full-wrap {
        grid-template-columns: 340px 1fr;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .about-full-wrap {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .about-full-img__badge {
        right: 20px;
        bottom: 20px;
    }

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

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

    .page-hero__title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .work-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .work-card__num {
        font-size: 1.8rem;
    }

    .official-statement {
        flex-direction: column;
        gap: 20px;
        padding: 32px 24px;
    }

    .official-statement__text {
        font-size: 1.1rem;
    }

    .about-full-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .page-hero {
        padding: 80px 0 52px;
    }

    .page-hero__title {
        font-size: 1.8rem;
    }

    .about-full-img__photo {
        height: 380px;
    }

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

/* ================================================
   AUDIO PAGE — page-hero variant
   ================================================ */
.page-hero--audio {
    padding: 90px 0 60px;
}

.page-hero__icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.page-hero__mic {
    width: 56px;
    height: 56px;
    color: var(--gold-light);
    opacity: 0.9;
}

.page-hero__counts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 60px;
    padding: 14px 32px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ph-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 28px;
}

.ph-count__num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.ph-count__label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
}

.ph-count__divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ================================================
   AUDIO PAGE — search & filter bar
   ================================================ */
.ap-filter-section {
    background: var(--white);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: clamp(88px, 10vw, 110px);
    z-index: 100;
}

.ap-filter-card {
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ap-filter-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.ap-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.ap-search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.ap-search-icon svg {
    width: 18px;
    height: 18px;
}

.ap-search-input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 48px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
}

.ap-search-input:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74,107,60,0.1);
}

.ap-search-input::placeholder {
    color: var(--text-light);
}

.ap-search-clear {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-light);
    color: var(--white);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
    line-height: 1;
}

.ap-search-clear:hover {
    background: var(--text-dark);
}

.ap-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ap-select {
    height: 50px;
    padding: 0 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text-mid);
    background: var(--bg);
    cursor: pointer;
    direction: rtl;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

.ap-select:focus {
    outline: none;
    border-color: var(--green);
}

.ap-select--sm {
    height: 42px;
    font-size: 0.86rem;
}

.ap-filter-btn {
    height: 50px;
    padding: 0 24px;
    white-space: nowrap;
    gap: 8px;
    border-radius: 50px;
}

.ap-reset-btn {
    height: 50px;
    padding: 0 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.ap-reset-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* Active filters chips */
.ap-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.ap-active-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.ap-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,107,60,0.1);
    color: var(--green-dark);
    border: 1px solid rgba(74,107,60,0.25);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ap-chip__remove {
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

/* ================================================
   AUDIO PAGE — featured card
   ================================================ */
.ap-featured-section {
    background: var(--white);
    padding-bottom: 0;
}

.ap-featured-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    background: linear-gradient(135deg, #fffbf0 0%, #fdf6e3 60%, rgba(74,107,60,0.04) 100%);
    border: 1.5px solid var(--gold-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(184,155,94,0.12);
}

.ap-featured-left {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ap-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

.ap-featured-cat {
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
}

.ap-featured-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.4;
}

.ap-featured-desc {
    color: var(--text-mid);
    line-height: 1.85;
    font-size: 0.96rem;
}

.ap-featured-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ap-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--text-light);
    font-weight: 600;
}

.ap-meta-lang {
    background: rgba(74,107,60,0.1);
    color: var(--green-dark);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ap-featured-player-wrap {
    margin-top: 4px;
}

.ap-featured-audio {
    width: 100%;
    height: 46px;
    accent-color: var(--green);
    border-radius: 50px;
}

.ap-featured-right {
    background: linear-gradient(160deg, rgba(74,107,60,0.07) 0%, rgba(184,155,94,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.ap-featured-waveform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Animated waveform bars */
.ap-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.ap-wave span {
    display: block;
    width: 5px;
    border-radius: 3px;
    background: var(--green);
    opacity: 0.4;
    animation: apWave 1.4s ease-in-out infinite;
}

.ap-wave span:nth-child(1)  { height: 20px; animation-delay: 0s; }
.ap-wave span:nth-child(2)  { height: 35px; animation-delay: 0.1s; }
.ap-wave span:nth-child(3)  { height: 50px; animation-delay: 0.2s; }
.ap-wave span:nth-child(4)  { height: 40px; animation-delay: 0.3s; }
.ap-wave span:nth-child(5)  { height: 55px; animation-delay: 0.4s; }
.ap-wave span:nth-child(6)  { height: 30px; animation-delay: 0.5s; }
.ap-wave span:nth-child(7)  { height: 48px; animation-delay: 0.15s; }
.ap-wave span:nth-child(8)  { height: 38px; animation-delay: 0.25s; }
.ap-wave span:nth-child(9)  { height: 58px; animation-delay: 0.35s; }
.ap-wave span:nth-child(10) { height: 44px; animation-delay: 0.45s; }
.ap-wave span:nth-child(11) { height: 32px; animation-delay: 0.05s; }
.ap-wave span:nth-child(12) { height: 52px; animation-delay: 0.55s; }
.ap-wave span:nth-child(13) { height: 42px; animation-delay: 0.2s; }
.ap-wave span:nth-child(14) { height: 28px; animation-delay: 0.3s; }
.ap-wave span:nth-child(15) { height: 46px; animation-delay: 0.4s; }
.ap-wave span:nth-child(16) { height: 36px; animation-delay: 0.1s; }
.ap-wave span:nth-child(17) { height: 54px; animation-delay: 0.5s; }
.ap-wave span:nth-child(18) { height: 26px; animation-delay: 0.0s; }
.ap-wave span:nth-child(19) { height: 44px; animation-delay: 0.35s; }
.ap-wave span:nth-child(20) { height: 18px; animation-delay: 0.45s; }

@keyframes apWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
    50%       { transform: scaleY(1.1); opacity: 0.8; }
}

.ap-featured-mic-icon {
    opacity: 0.75;
}

/* ================================================
   AUDIO PAGE — list header
   ================================================ */
.ap-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.ap-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

.ap-sort-label {
    font-size: 0.86rem;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

/* ================================================
   AUDIO PAGE — audio cards
   ================================================ */
.ap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ap-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.ap-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--gold), var(--green));
    transition: height 0.35s ease;
    border-radius: 0 var(--radius) 0 0;
}

.ap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.ap-card:hover::before {
    height: 100%;
}

.ap-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ap-card__icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 11px;
}

.ap-card__icon-wrap svg {
    width: 100%;
    height: 100%;
}

.ap-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ap-card__cat {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.ap-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.ap-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.ap-card__desc {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

.ap-card__player {
    margin-top: 4px;
}

.ap-audio-player {
    width: 100%;
    height: 42px;
    accent-color: var(--green);
    border-radius: 50px;
    outline: none;
}

.ap-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.ap-card__date {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

.ap-card__lang {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

/* Category color badges */
.ap-cat--ibadat   { background: rgba(74,107,60,0.1);   color: var(--green-dark); }
.ap-cat--muamalat { background: rgba(184,155,94,0.15);  color: var(--gold-dark); }
.ap-cat--usra     { background: rgba(130,80,60,0.1);    color: #7a4030; }
.ap-cat--aqida    { background: rgba(60,80,130,0.1);    color: #3c4a7a; }
.ap-cat--europe   { background: rgba(40,100,160,0.1);   color: #1a5fa0; }
.ap-cat--mutanawia{ background: rgba(100,60,130,0.1);   color: #5a2a7a; }

.ap-lang--ar { background: rgba(74,107,60,0.1);  color: var(--green-dark); }
.ap-lang--fr { background: rgba(0,70,160,0.1);   color: #004080; }

/* ================================================
   AUDIO PAGE — empty state
   ================================================ */
.ap-empty {
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ap-empty__icon {
    margin-bottom: 8px;
}

.ap-empty__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.ap-empty__desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 420px;
    line-height: 1.75;
}

/* ================================================
   AUDIO PAGE — pagination
   ================================================ */
.ap-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.ap-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-mid);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.ap-page-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74,107,60,0.06);
}

.ap-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ap-page-nums {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-page-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-page-num:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74,107,60,0.06);
}

.ap-page-num.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(74,107,60,0.35);
}

.ap-page-dots {
    color: var(--text-light);
    font-size: 1rem;
    padding: 0 4px;
    line-height: 42px;
}

/* ================================================
   AUDIO PAGE — card hidden state (filter)
   ================================================ */
.ap-card.hidden {
    display: none;
}

/* ================================================
   AUDIO PAGE — responsive
   ================================================ */
@media (max-width: 1024px) {
    .ap-featured-card {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 860px) {
    .ap-featured-card {
        grid-template-columns: 1fr;
    }

    .ap-featured-right {
        padding: 32px;
        min-height: 140px;
    }

    .ap-featured-left {
        padding: 32px 28px;
    }

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

    .ap-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ap-search-wrap {
        width: 100%;
    }

    .ap-filters {
        width: 100%;
    }

    .ap-select {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .ap-filter-section {
        position: static;
    }

    .page-hero__counts {
        padding: 12px 16px;
    }

    .ph-count {
        padding: 0 14px;
    }

    .ap-featured-title {
        font-size: 1.2rem;
    }

    .ap-pagination {
        gap: 6px;
    }

    .ap-page-num {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .ap-page-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .ap-list-header {
        flex-direction: column;
        gap: 12px;
    }
}


/* ================================================
   VIDEOS PAGE — videos.html
   ================================================ */

/* --- Page Hero --- */
.page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?w=1920&q=80&fit=crop');
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53,78,43,0.88) 0%, rgba(27,40,20,0.92) 60%, rgba(154,125,62,0.55) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 22px;
}

.breadcrumb a { color: var(--gold-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { font-size: 1rem; opacity: 0.5; }

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
}

.page-hero__underline {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    margin: 0 auto;
}

/* --- Filter Section --- */
.filter-section {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: clamp(88px, 10vw, 110px);
    z-index: 90;
    border-bottom: 1px solid var(--border);
}

.filter-card {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-card__row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.filter-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.filter-search-icon svg { width: 18px; height: 18px; }

.filter-input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.filter-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74,107,60,0.1);
}

.filter-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-mid);
    white-space: nowrap;
}

.filter-select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
    min-width: 160px;
}

.filter-select:focus { border-color: var(--green); }

.filter-btn {
    flex-shrink: 0;
    gap: 7px;
    padding: 11px 26px;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.filter-pill {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.filter-pill:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74,107,60,0.06);
}

.filter-pill.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* --- Featured Video Card --- */
.featured-video-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}

.featured-video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-video-card__thumb {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.featured-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.featured-video-card:hover .featured-video-card__thumb img { transform: scale(1.06); }

.featured-video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
    transition: background var(--transition);
}

.featured-video-card:hover .featured-video-card__overlay {
    background: linear-gradient(to left, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.55) 100%);
}

.featured-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(184,155,94,0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 3px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    padding-left: 4px;
}

.featured-video-card:hover .featured-video-card__play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 12px rgba(184,155,94,0.22);
}

.featured-video-card__duration {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
}

.featured-video-card__cat-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 2;
}

.featured-video-card__body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    background: linear-gradient(150deg, var(--white) 60%, #FFFDF5 100%);
    border-right: 4px solid var(--gold);
}

.featured-video-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
}

.featured-video-card__desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.featured-video-card__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-video-card__date,
.featured-video-card__views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.83rem;
    color: var(--text-light);
}

.featured-video-card__btn {
    align-self: flex-start;
    gap: 8px;
}

/* --- Video Count --- */
.vg-count {
    font-size: 0.88rem;
    color: var(--text-light);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 50px;
    align-self: flex-end;
    white-space: nowrap;
}

.vg-count span { font-weight: 700; color: var(--green); }

/* --- Video Grid --- */
.vgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* --- Video Card (vcard) --- */
.vcard {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    cursor: pointer;
}

.vcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.vcard__thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.vcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.vcard:hover .vcard__thumb img { transform: scale(1.07); }

.vcard__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background var(--transition);
}

.vcard:hover .vcard__overlay { background: rgba(0,0,0,0.45); }

.vcard__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(184,155,94,0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    padding-left: 3px;
}

.vcard:hover .vcard__play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 8px rgba(184,155,94,0.22);
}

.vcard__duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.72);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    z-index: 2;
}

.vcard__cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    z-index: 2;
}

.cat-badge--ibadat    { background: rgba(74,107,60,0.88);  color: #fff; }
.cat-badge--muamalat  { background: rgba(196,125,21,0.88); color: #fff; }
.cat-badge--usra      { background: rgba(192,57,43,0.88);  color: #fff; }
.cat-badge--aqida     { background: rgba(26,86,219,0.88);  color: #fff; }
.cat-badge--europe    { background: rgba(184,155,94,0.92); color: #fff; }
.cat-badge--mutanawia { background: rgba(11,114,128,0.88); color: #fff; }

.vcard__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.vcard__title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.55;
    flex: 1;
}

.vcard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.vcard__date { font-size: 0.78rem; color: var(--text-light); }
.vcard__btn  { flex-shrink: 0; }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.empty-state__icon { opacity: 0.55; }

.empty-state__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.empty-state__desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 380px;
    line-height: 1.7;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination__num {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__num:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74,107,60,0.06);
}

.pagination__num.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.pagination__dots {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0 4px;
    user-select: none;
}

.pagination__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.pagination__btn:hover:not(:disabled) {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74,107,60,0.06);
}

.pagination__btn:disabled { opacity: 0.38; cursor: not-allowed; }

.pagination__btn--next {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.pagination__btn--next:hover:not(:disabled) {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

/* --- Video Modal --- */
.vmodal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vmodal[hidden] { display: none; }

.vmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.vmodal__box {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 780px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    animation: modalIn 0.32s cubic-bezier(0.34,1.38,0.64,1) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.88) translateY(24px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.vmodal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 3;
    border: none;
}

.vmodal__close:hover { background: rgba(0,0,0,0.8); }

.vmodal__video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0D1117;
    position: relative;
}

.vmodal__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,0.55);
}

.vmodal__play-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(184,155,94,0.2);
    border: 2px solid rgba(184,155,94,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.vmodal__placeholder-text { font-size: 0.9rem; }

.vmodal__info {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vmodal__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
}

.vmodal__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.83rem;
    color: var(--text-light);
}

.vmodal__cat {
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 700;
}

/* ================================================
   VIDEOS PAGE — RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .featured-video-card { grid-template-columns: 1fr; }
    .featured-video-card__thumb { min-height: 280px; }
    .featured-video-card__body {
        padding: 30px 28px;
        border-right: none;
        border-top: 4px solid var(--gold);
    }
    .featured-video-card__title { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .page-hero { min-height: 260px; }
    .filter-card__row { flex-direction: column; align-items: stretch; }
    .filter-search-wrap { min-width: auto; }
    .filter-select-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
    .filter-select { min-width: auto; width: 100%; }
    .filter-btn { width: 100%; justify-content: center; }
    .vgrid { grid-template-columns: 1fr; gap: 20px; }
    .vcard__thumb { height: 220px; }
    .vg-count { align-self: flex-start; }
    .filter-section { position: relative; top: 0; }
    .pagination { gap: 6px; }
    .pagination__num { width: 36px; height: 36px; font-size: 0.82rem; }
    .pagination__btn { padding: 8px 12px; }
}

@media (max-width: 480px) {
    .page-hero__title { font-size: 1.6rem; }
    .filter-pills { gap: 6px; }
    .filter-pill { padding: 5px 14px; font-size: 0.78rem; }
    .vmodal__box { border-radius: var(--radius-sm); }
    .vmodal__info { padding: 16px 18px; }
    .vmodal__title { font-size: 1rem; }
}

/* ================================================
   CONTACT FORM 7 COMPATIBILITY
   ================================================ */
.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
    width: 100% !important;
}
.wpcf7-checkbox .wpcf7-list-item {
    margin: 0 !important;
    display: inline-block !important;
}
.wpcf7-checkbox .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}
