/* Nakyl — элементы дизайна в стиле Azan.ru: светлая палитра, время намаза, теги */
:root {
    --forest: #0d6b3e;
    --forest-mid: #0a552f;
    --forest-light: #117a4a;
    --gold: #b8860b;
    --gold-light: #c9a227;
    --gold-soft: #f0ead8;
    --cream: rgba(245, 245, 245, 0.88);
    --paper: rgba(255, 255, 255, 0.88);
    --ink: #222;
    --ink-muted: #555;
    --ink-light: #777;
    --border: #e5e5e5;
    --radius: 8px;
    --radius-lg: 12px;
    --ease: 0.2s ease;
    --header-h: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: #f4edd8;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% 0%,    rgba(13,107,62,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(184,134,11,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 0% 60%,    rgba(13,107,62,0.05) 0%, transparent 55%),
        url('images/bg.svg');
    background-size: auto, auto, auto, 200px 200px;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    overflow-x: hidden;
}

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

/* Azan.ru: светлый фон контента */
.main-content,
.media-section {
    background: transparent;
}

h1, h2, h3, h4, .section-title, .card-title, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ========== Top strip ========== */
.top-strip {
    height: 4px;
    background: var(--forest);
}

/* ========== Header AZAN.RU style: два яруса ========== */
:root {
    --azan-sky: #d4e8f7;
    --azan-sky-deep: #b8d9ed;
    --azan-blue: #2a6fa8;
    --azan-blue-light: #5a9bc9;
}

/* Верхний блок: небо с облаками, лого + время намаза */
.header-azan-top {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    padding: 20px 0 24px;
    overflow: hidden;
}

.header-azan-clouds {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.header-azan-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-logo-img {
    height: 140px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-azan-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--azan-blue);
    transition: opacity var(--ease);
}

.header-azan-brand:hover {
    opacity: 0.9;
}

.header-azan-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    color: var(--azan-blue);
}

.header-azan-logo-icon svg {
    width: 44px;
    height: 44px;
}

.header-azan-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--azan-blue);
    line-height: 1.1;
}

.header-azan-tagline {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    background: var(--azan-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

/* Колонки времени намаза */
.header-azan-prayers {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    align-items: stretch;
}

.header-prayer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(42, 111, 168, 0.15);
}

.header-prayer-col.highlight {
    background: rgba(42, 111, 168, 0.2);
    border-color: var(--azan-blue-light);
    box-shadow: 0 0 0 1px rgba(42, 111, 168, 0.25);
}

.header-prayer-sun {
    font-size: 1rem;
    margin-bottom: 2px;
    line-height: 1;
}

.header-prayer-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--azan-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.header-prayer-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.header-prayer-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--ink-muted);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .header-azan-prayers {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header-azan-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-azan-prayers {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    .header-prayer-col {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .header-azan-prayers {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-azan-title {
        font-size: 1.5rem;
    }
}

/* Нижняя навигация: белый фон, ссылки + блоки с иконками */
.header-azan-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-azan-nav.nav-scrolled {
    background: rgba(248, 246, 240, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.20);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

.header-azan-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 56px;
}

.header-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.header-nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: color var(--ease), background var(--ease);
}

.header-nav-links a:hover,
.header-nav-links a.nav-current {
    color: var(--forest);
    background: var(--gold-soft);
}

.nav-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

.header-nav-blocks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.nav-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: background var(--ease), color var(--ease);
}

.nav-block:hover,
.nav-block.nav-current {
    background: var(--gold-soft);
    color: var(--forest);
}

.nav-block-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-color: var(--azan-sky);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    border-radius: 8px;
    display: block;
}
.nav-block-icon::before {
    content: '';
    display: none;
}

.nav-block-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-block-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.nav-block-sub {
    font-size: 0.7rem;
    color: var(--ink-light);
    display: block;
    margin-top: 2px;
}

/* Иконки нав-блоков (SVG, бардык браузерлерде көрүнөт) */
.nav-icon-quran {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cline x1='8' y1='6' x2='16' y2='6'/%3E%3Cline x1='8' y1='10' x2='16' y2='10'/%3E%3Cline x1='8' y1='14' x2='12' y2='14'/%3E%3C/svg%3E");
}
.nav-icon-dinder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v18'/%3E%3Cpath d='M16 3v18'/%3E%3Cpath d='M4 8h16'/%3E%3Cpath d='M4 16h16'/%3E%3Cpath d='M6 5h2v4H6z'/%3E%3Cpath d='M16 5h2v4h-2z'/%3E%3Cpath d='M6 15h2v4H6z'/%3E%3Cpath d='M16 15h2v4h-2z'/%3E%3C/svg%3E");
}
.nav-icon-islam {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 8.4c-1-4-4.2-6.4-7.6-6.4-4 0-7.6 3.2-7.6 8s3.6 8 7.6 8c3.4 0 6.6-2.4 7.6-6.4'/%3E%3Ccircle cx='16' cy='10' r='2.2' fill='%231e5f74' stroke='none'/%3E%3C/svg%3E");
}
.nav-icon-fiqh {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M8 8l4-4 4 4'/%3E%3Cpath d='M8 16l4 4 4-4'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M6 6l3 3-3 3'/%3E%3Cpath d='M18 6l-3 3 3 3'/%3E%3C/svg%3E");
}
.nav-icon-hadith {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M8 6h8'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h6'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H8'/%3E%3C/svg%3E");
}
.nav-block:hover .nav-block-icon,
.nav-block.nav-current .nav-block-icon {
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .header-azan-nav-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .header-nav-links {
        justify-content: center;
    }
    .header-nav-blocks {
        justify-content: center;
    }
}

/* Кнопка мобильного меню */
.nav-toggle {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--forest);
    border-radius: 1px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    .header-azan-nav {
        padding-top: 50px;
    }
    .header-nav-links,
    .header-nav-blocks {
        display: none;
    }
}

.main-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--paper);
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    z-index: 102;
    padding: 60px 24px 24px;
    flex-direction: column;
    gap: 8px;
}

.main-nav-mobile[aria-hidden="false"] {
    display: flex;
}

.main-nav-mobile a {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--ink);
    border-radius: 8px;
}

.main-nav-mobile a:hover {
    background: var(--gold-soft);
    color: var(--forest);
}

body.nav-mobile-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 101;
}

/* ========== Hero (Islamic banner) ========== */
.hero {
    position: relative;
    padding: 40px 0 48px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .hero {
        padding: 28px 0 36px;
    }
    .hadith-quote {
        font-size: 1rem;
    }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: url('images/hero-banner.svg') center center / cover no-repeat;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(12,60,36,0.18) 0%, transparent 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hadith-hero {
    padding: 0 16px;
}

.hadith-quote {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.93);
    font-style: italic;
    text-shadow: 0 1px 8px rgba(3, 14, 6, 0.6);
}

.hadith-cite {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-style: normal;
    color: #c9a227;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(3, 14, 6, 0.5);
}

/* Hero слайдер: автоматтык өтүү */
.hero-slider {
    position: relative;
    min-height: 120px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 0;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(201,162,39,0.5);
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-dot:hover {
    background: rgba(201,162,39,0.45);
}

.hero-slider-dot.active {
    background: #c9a227;
    border-color: #c9a227;
    transform: scale(1.2);
}

/* ========== Prayer strip ========== */
.prayer-strip {
    background: var(--forest);
    color: #fff;
    padding: 14px 0;
    font-size: 14px;
}

.prayer-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
}

.prayer-strip .prayer-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.prayer-strip .prayer-item b {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.prayer-strip .prayer-item em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    color: var(--gold-light);
    font-weight: 500;
}

.prayer-strip .city-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    min-width: 130px;
}

.prayer-strip .city-select option {
    color: var(--ink);
    background: var(--paper);
}

.prayer-strip .calendar-link {
    color: var(--gold-light);
    font-weight: 500;
}

.prayer-strip .calendar-link:hover {
    text-decoration: underline;
}

/* Prayer strip в стиле Azan.ru: интервалы и «чейин» */
.prayer-strip-azan .prayer-strip-inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr) auto;
    align-items: center;
    gap: 16px 20px;
    padding: 12px 0;
}
@media (max-width: 900px) {
    .prayer-strip-azan .prayer-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .prayer-strip-azan .prayer-strip-inner {
        grid-template-columns: 1fr;
    }
}

.prayer-item-azan {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.prayer-item-azan.highlight {
    background: rgba(201, 162, 39, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.prayer-item-azan .p-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.prayer-item-azan .p-range {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--gold-light);
    font-weight: 600;
}
.prayer-item-azan .p-until {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}
.prayer-item-azan .p-countdown {
    font-size: 11px;
    color: var(--gold-light);
    margin-top: 4px;
}
.prayer-strip-azan .calendar-link {
    color: var(--gold-light);
    font-weight: 500;
    white-space: nowrap;
}
.prayer-strip-azan .calendar-link:hover {
    text-decoration: underline;
}

/* ========== Main content ========== */
.main-content {
    padding: 44px 0 52px;
}

@media (max-width: 600px) {
    .main-content {
        padding: 28px 0 36px;
    }
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 960px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 480px) {
    .section-head {
        margin-bottom: 16px;
    }
    .section-title {
        font-size: 1.2rem;
    }
}

.section-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--forest);
}

.section-link {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
}

.section-link:hover {
    text-decoration: underline;
}

/* News cards */
.news-section {
    min-width: 0;
}

.news-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--ease), border-color var(--ease);
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(12, 53, 34, 0.08);
    border-color: var(--gold-soft);
}

.news-card.featured {
    display: grid;
    grid-template-columns: 360px 1fr;
    margin-bottom: 24px;
}

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

.news-card-image {
    min-height: 240px;
    background: linear-gradient(145deg, #d4e5dc 0%, #b8d4c4 100%);
}

.news-card-body {
    padding: 28px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ink-light);
}

/* Теги категорий в стиле Azan.ru */
.news-tag,
.news-cat {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gold-soft);
    color: var(--forest);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}
.news-cat:hover {
    background: var(--forest);
    color: #fff;
}

.news-card h3 {
    margin: 0 0 14px 0;
    font-size: 1.22rem;
    line-height: 1.35;
}

.news-card h3 a:hover {
    color: var(--forest);
}

.news-card.featured p {
    margin: 0 0 18px 0;
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.news-link {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
}

.news-link:hover {
    text-decoration: underline;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card.small .news-card-body {
    padding: 20px 24px;
}

.news-card.small h3 {
    font-size: 1rem;
    margin: 0;
}

/* Башкы бет (index.php): новость карточкасы — сүрөт сол, текст оң */
.news-section .news-list-index {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-section .news-card-index {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-section .news-card-index:hover {
    box-shadow: 0 8px 24px rgba(12, 53, 34, 0.1);
    border-color: var(--gold-soft);
}

.news-section .news-card-index-link {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 700px) {
    .news-section .news-card-index-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

.news-section .news-card-index-image {
    position: relative;
    min-height: 180px;
    background: #e0f2e0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 700px) {
    .news-section .news-card-index-image {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        min-height: 160px;
    }
}

.news-section .news-card-index-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-section .news-card-index-placeholder {
    background: linear-gradient(180deg, #e8f5ea 0%, #d4e5dc 100%);
}

.news-section .news-card-index-body {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
}

.news-section .news-card-index-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-section .news-card-index-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0e0;
    color: #1a1a1a;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.news-section .news-card-index-meta time {
    font-size: 13px;
    color: #666;
    color: var(--ink-light);
}

.news-section .news-card-index-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    color: var(--ink);
}

.news-section .news-card-index-link:hover .news-card-index-title {
    color: var(--forest);
}

.news-section .news-card-index-excerpt {
    margin: 0 0 14px 0;
    font-size: 0.9rem;
    color: #555;
    color: var(--ink-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section .news-card-index-read {
    font-size: 14px;
    font-weight: 600;
    color: #c17a3a;
    margin-top: auto;
}

.news-section .news-card-index-link:hover .news-card-index-read {
    text-decoration: underline;
}

.news-section .news-empty {
    padding: 24px;
    text-align: center;
    color: #555;
    color: var(--ink-muted);
}

/* Страница news.php: 2 новости в ряд, карточка — картинка слева, текст справа */
.news-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .news-grid-two {
        grid-template-columns: 1fr;
    }
}

.news-card-row {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--ease), border-color var(--ease);
}

.news-card-row:hover {
    box-shadow: 0 8px 24px rgba(12, 53, 34, 0.08);
    border-color: var(--gold-soft);
}

.news-card-row-link {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 200px;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 600px) {
    .news-card-row-link {
        grid-template-columns: 1fr;
    }
}

.news-card-row-image {
    position: relative;
    min-height: 180px;
    background: linear-gradient(145deg, #d4e5dc 0%, #b8d4c4 100%);
    overflow: hidden;
}

.news-card-row-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-row-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #d4e5dc 0%, #b8d4c4 100%);
}

.news-card-row-body {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 18px;
    min-width: 0;
}

.news-card-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.news-card-row-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--azan-blue, #2a6fa8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-card-row-cat-secondary {
    font-size: 0.8rem;
    color: var(--ink-light);
}

.news-card-row-title {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 0 auto;
}

.news-card-row-link:hover .news-card-row-title {
    color: var(--forest);
}

.news-card-row-excerpt {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--ink-light);
}

.news-card-row-icon-q {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.news-card-row-date {
    font-variant-numeric: tabular-nums;
}

/* Sidebar cards */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
}

.card-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: var(--forest);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.mufti-photo-wrap {
    margin-bottom: 16px;
}

.mufti-photo {
    width: 100%;
    max-width: 200px;
    height: 250px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #dce8e0 0%, #b8d0c0 100%);
}

.mufti-name {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: var(--forest);
}

.mufti-post {
    margin: 0 0 16px 0;
    font-size: 11px;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mufti-bio {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
    border: 2px solid transparent;
}

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

.btn-outline:hover {
    background: var(--gold-soft);
    color: var(--forest);
}

.btn-link {
    background: none;
    color: var(--gold);
    padding: 8px 0;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.link-list {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list a {
    font-size: 14px;
    color: var(--ink-muted);
    display: block;
    padding: 6px 0;
    transition: color var(--ease);
}

.link-list a:hover {
    color: var(--forest);
}

.article-list {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
}

.article-list li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.art-meta {
    display: block;
    font-size: 12px;
    color: var(--ink-light);
    margin-bottom: 4px;
}

.article-list a {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}

.article-list a:hover {
    color: var(--forest);
}

/* ========== Contact CTA ========== */
.contact-cta {
    padding: 52px 0;
    background: linear-gradient(135deg, #0d6b3e 0%, #0a4f2e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/bg.svg') repeat;
    background-size: 180px 180px;
    opacity: 0.06;
    pointer-events: none;
}

.contact-cta-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-cta-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact-cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 2px;
    letter-spacing: 0.01em;
}

.contact-cta-sub {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.contact-card {
    display: block;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 4px solid #f0c040;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    text-decoration: none;
    color: #fff;
    transition: background var(--ease), transform var(--ease);
    position: relative;
}

.contact-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-3px);
    color: #fff;
}

.contact-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(240,192,64,0.2);
    color: #f0c040;
    border: 1px solid rgba(240,192,64,0.35);
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.contact-label {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.contact-phone {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0c040;
    letter-spacing: 0.01em;
}

.contact-phone:hover {
    color: #fff;
}

.contact-note {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ========== Media section ========== */
.media-section {
    padding: 48px 0 56px;
    background: transparent;
    border-top: 1px solid rgba(184,134,11,0.25);
}

@media (max-width: 600px) {
    .media-section {
        padding: 32px 0 40px;
    }
}

/* Контейнер страницы медиа */
/* Вкладки: Жаңылар, Популярдуу, Сунушталган, Циклдарда */
.media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.media-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color var(--ease), border-color var(--ease);
}

.media-tab:hover {
    color: var(--forest);
}

.media-tab.active {
    color: var(--azan-blue, #2a6fa8);
    border-bottom-color: var(--azan-blue, #2a6fa8);
}

/* Сетка: 3 карточки в ряд (стиль AZAN.RU) */
.media-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .media-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .media-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Карточка медиа v2: превью, тег, заголовок, источник, просмотры + дата */
.media-card-v2 {
    display: block;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.media-card-v2:hover {
    box-shadow: 0 12px 32px rgba(12, 53, 34, 0.1);
    transform: translateY(-4px);
    border-color: var(--gold-soft);
}

.media-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(145deg, #dce4e0 0%, #c2cec6 100%);
    overflow: hidden;
}

.media-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #d4e8f7 0%, #b8d9ed 100%);
}

.media-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
}

.media-card-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 6px;
}

.media-card-v2:hover .media-card-play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.08);
}

.media-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
}

.media-card-title {
    margin: 12px 14px 6px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-v2:hover .media-card-title {
    color: var(--forest);
}

.media-card-source {
    margin: 0 14px 10px;
    font-size: 0.8rem;
    color: var(--ink-light);
}

.media-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--ink-light);
}

.media-card-icon-views {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.media-card-date {
    font-variant-numeric: tabular-nums;
}

/* Старая сетка и карточки (главная и т.д.) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Страница media.php: ровно 3 видео в ряд */
.media-page .media-grid.media-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .media-page .media-grid.media-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .media-page .media-grid.media-grid-three {
        grid-template-columns: 1fr;
    }
}

.media-card {
    display: block;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.media-card:hover {
    box-shadow: 0 12px 32px rgba(12, 53, 34, 0.1);
    transform: translateY(-4px);
    border-color: var(--gold-soft);
}

.media-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(145deg, #dce4e0 0%, #c2cec6 100%);
    overflow: hidden;
}

.media-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
}

.media-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 6px;
}

.media-card:hover .media-play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.08);
}

.media-card h3 {
    margin: 0;
    padding: 16px;
    font-size: 0.94rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ink);
}

.media-card:hover h3 {
    color: var(--forest);
}

.media-meta {
    display: block;
    padding: 0 16px 16px;
    font-size: 12px;
    color: var(--ink-light);
}

/* ========== Footer ========== */
.footer-phones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-phone-card {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid #f0c040;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    color: #fff;
    transition: background var(--ease), transform var(--ease);
}

.footer-phone-card:hover {
    background: rgba(255,255,255,0.11);
    transform: translateY(-2px);
    color: #fff;
}

.footer-phone-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(240,192,64,0.15);
    color: #f0c040;
    border: 1px solid rgba(240,192,64,0.3);
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 8px;
}

.footer-phone-label {
    display: block;
    font-size: 12px;
    opacity: 0.65;
    margin-bottom: 6px;
}

.footer-phone-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0c040;
    letter-spacing: 0.01em;
}

.main-footer {
    background:
        linear-gradient(135deg, rgba(4,18,8,0.95) 0%, rgba(10,85,47,0.95) 50%, rgba(4,18,8,0.95) 100%),
        url('images/bg.svg');
    background-size: auto, 200px 200px;
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0 28px;
}

@media (max-width: 600px) {
    .main-footer {
        padding: 32px 0 20px;
    }
    .footer-top {
        gap: 28px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    .footer-nav {
        gap: 6px 16px;
        justify-content: center;
    }
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .footer-brand p {
        max-width: none;
    }
}

.footer-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    justify-content: center;
    align-items: start;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    white-space: nowrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--gold-light);
}

.footer-contact {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-contact {
        text-align: center;
    }
}

.footer-contact a,
.footer-contact p {
    display: block;
    margin: 0 0 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-label {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer-social-youtube .footer-social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.footer-social-instagram .footer-social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.footer-social-facebook .footer-social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.footer-social-telegram .footer-social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
}

/* ========== Внутренние страницы ========== */
body.inner-page .hero,
body.inner-page .prayer-strip {
    display: none;
}

.page-banner {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    color: #fff;
    padding: 32px 0 40px;
    margin-bottom: 0;
}

.page-banner .container {
    position: relative;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 768px) {
    .page-banner .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 480px) {
    .page-banner .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.page-banner h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.page-banner .page-desc {
    margin: 10px 0 0 0;
    font-size: 1rem;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .page-banner {
        padding: 24px 0 28px;
    }
    .page-banner h1 {
        font-size: 1.4rem;
    }
    .page-banner .page-desc {
        font-size: 0.9rem;
    }
}

.page-content {
    padding: 40px 0 56px;
}

@media (max-width: 600px) {
    .page-content {
        padding: 24px 0 40px;
    }
}

.page-content .container {
    max-width: 800px;
}

.page-content.news-single-page .container,
.page-content.book-single-page .container,
.page-content.media-single-page .container {
    max-width: 1140px;
}

.news-single-page .content-block {
    background: #fff;
    padding: 32px;
    border-radius: 4px;
}

.page-content .lead {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.page-content .content-block {
    margin-bottom: 32px;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
}

/* Внутри article-body уже есть белый фон — не дублировать */
.article-body .content-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.page-content .content-block h2 {
    font-size: 1.25rem;
    color: var(--forest);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-soft);
}

.page-content .content-block p {
    margin: 0 0 12px 0;
}

/* ========== Макала бети (muftiyat.kg үлгүсүндө) ========== */
.page-banner-article {
    padding: 24px 0 32px;
}

.page-banner-article .container {
    max-width: 1140px;
    padding-left: 40px;
    padding-right: 40px;
}

.breadcrumb {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.article-meta-line {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

.article-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

@media (max-width: 600px) {
    .page-banner-article {
        padding: 20px 0 24px;
    }
    .article-title {
        font-size: 1.4rem;
    }
    .article-lead {
        font-size: 0.95rem;
    }
}

.article-lead {
    margin: 12px 0 0 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 720px;
}

.container-article {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Макала бети: .page-content .container 800px менен тарылатпай, header менен туура турат */
.page-content.article-single-page .container-article {
    max-width: 1140px;
}

@media (max-width: 768px) {
    .container-article {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container-article {
        padding: 0 16px;
    }
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .article-sidebar {
        order: -1;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
    }
}

.article-body {
    min-width: 0;
    background: #fff;
    padding: 24px;
    border-radius: 4px;
}

.article-featured-image {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1rem;
    line-height: 1.75;
}

.article-content > *:first-child {
    margin-top: 0;
}

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

.article-content h2 {
    margin: 28px 0 14px 0;
    font-size: 1.25rem;
    color: var(--forest);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-soft);
}

.article-content h3 {
    margin: 22px 0 10px 0;
    font-size: 1.1rem;
    color: var(--ink);
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 0;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content strong {
    font-weight: 700;
    color: var(--ink);
}

.article-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--gold-soft);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--ink-muted);
}

.article-content [dir="rtl"],
.article-content .arabic {
    direction: rtl;
    text-align: right;
    font-family: 'Traditional Arabic', 'Amiri', serif;
    margin: 12px 0;
    line-height: 1.8;
}

.article-back {
    margin: 32px 0 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 24px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .article-sidebar {
        position: static;
    }
}

.sidebar-title {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.article-sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.article-sidebar-list li:last-child {
    border-bottom: none;
}

.article-sidebar-list a {
    display: block;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
}

.article-sidebar-list a:hover {
    color: var(--forest);
}

.article-sidebar-date {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-light);
    margin-top: 4px;
}

.sidebar-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

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

.page-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.page-list li:last-child {
    border-bottom: none;
}

.page-list a {
    font-weight: 500;
    color: var(--ink);
}

.page-list a:hover {
    color: var(--forest);
}

.page-list .meta {
    font-size: 13px;
    color: var(--ink-light);
    margin-top: 4px;
}

/* Широкая ширина контента (как на articles) */
.articles-page .container,
.media-page .container,
.news-page .container,
.books-page .container {
    max-width: 1140px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--ease), border-color var(--ease);
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(12, 53, 34, 0.1);
    border-color: var(--gold-soft);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.article-card-image {
    position: relative;
    width: 100%;
    padding-top: 52%;
    background: linear-gradient(145deg, #d4e8f7 0%, #b8d9ed 50%, #9ec5e0 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-cat {
    display: inline-block;
    margin: 12px 16px 0;
    padding: 4px 10px;
    background: var(--azan-blue, #2a6fa8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
}

.article-card-title {
    margin: 10px 16px 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link:hover .article-card-title {
    color: var(--forest);
}

.article-card-excerpt {
    margin: 0 16px 14px;
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--ink-light);
}

.article-card-date {
    font-variant-numeric: tabular-nums;
}

.articles-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

/* Макала карточкасы: сүрөт жок болсо плейсхолдер */
.article-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-image-placeholder::after {
    content: '📄';
    font-size: 2.5rem;
    opacity: 0.35;
    position: absolute;
}

/* ========== Китептер бети: сүрөттөгүдөй — табдар + катарда 4 китеп, тик бөлгүч ========== */
/* main элементинин класстары: page-content books-page (бир элемент) */
.page-content.books-page {
}

.books-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.books-tab {
    padding: 8px 16px;
    font-weight: 700;
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    transition: color var(--ease);
}

.books-tab:hover {
    color: #222;
}

.books-tab.is-active {
    color: #222;
}

.books-tab-sep {
    width: 1px;
    height: 16px;
    background: #ccc;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .books-tabs {
        flex-wrap: wrap;
        gap: 4px 0;
        padding-bottom: 8px;
    }
    .books-tab {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Катарда 4 китеп, карточкалардын ортосунда тик бөлгүч */
/* Катарда так 4 китеп, кийинки катарлар да 4төн */
.books-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .books-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .books-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.book-card {
    background: #fff;
    overflow: hidden;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
}

.book-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.book-card-cover {
    position: relative;
    width: 100%;
    padding-top: 105%;
    background: linear-gradient(160deg, #1f1510 0%, #2c1810 50%, #1a0f0a 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.book-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card-cover-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Outfit', sans-serif;
}

.book-card-title {
    margin: 12px 12px 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.book-card-link:hover .book-card-title {
    color: var(--forest);
}

.book-card-author {
    margin: 0 12px 8px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-rating {
    margin: 0 12px 6px;
    font-size: 1rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.book-card-rating .star {
    color: #ddd;
}

.book-card-rating .star.filled {
    color: #d4a806;
}

.book-card-rating .star.half {
    color: #d4a806;
    opacity: 0.85;
}

.book-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: #666;
    padding: 0 12px 14px;
    margin-top: auto;
}

.book-meta-icon {
    display: inline-block;
    margin-right: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
}

.book-meta-views {
    font-family: 'Outfit', sans-serif;
}

.book-card-views,
.book-card-comments {
    font-variant-numeric: tabular-nums;
}

.books-empty {
    padding: 2rem 0;
    color: var(--ink-muted);
    text-align: center;
}

.book-single {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

@media (max-width: 560px) {
    .book-single {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
    }
}

.book-single-cover {
    flex-shrink: 0;
    width: 160px;
}

.book-single-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.book-single-meta p {
    margin: 0 0 8px;
}

.nav-current {
    color: var(--forest) !important;
    font-weight: 600;
}

/* ========== Бөлүм / Тема (билим берүү) ========== */
.section-page .topic-list,
.topic-page .article-list-topic {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topic-item {
    border-bottom: 1px solid var(--border);
}

.topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--ink);
    transition: background var(--ease);
}

.topic-link:hover {
    background: var(--gold-soft);
}

.topic-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}

.topic-arrow {
    color: var(--forest);
    font-size: 1.2rem;
}

.section-empty,
.topic-empty {
    padding: 2rem 0;
    color: var(--ink-muted);
    text-align: center;
}

.topic-back,
.article-back {
    margin-top: 2rem;
}

.article-list-topic {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card-topic {
    list-style: none;
    margin: 0;
}

.article-card-topic-link {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.article-card-topic-link:hover {
    border-color: var(--forest-mid);
    box-shadow: 0 4px 12px rgba(13, 107, 62, 0.08);
}

.article-card-topic-image {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
}

.article-card-topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-topic-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-topic-placeholder::after {
    content: '📄';
    font-size: 2rem;
    opacity: 0.3;
}

.article-card-topic-body {
    flex: 1;
    min-width: 0;
}

.article-card-topic-title {
    margin: 0 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.article-card-topic-link:hover .article-card-topic-title {
    color: var(--forest);
}

.article-card-topic-excerpt {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-topic-date {
    font-size: 0.85rem;
    color: var(--ink-light);
}

@media (max-width: 600px) {
    .article-card-topic-link {
        flex-direction: column;
        gap: 12px;
    }
    .article-card-topic-image {
        width: 100%;
        height: 140px;
    }
}

/* ========== Адаптив: бардык экрандар үчүн ========== */
@media (max-width: 360px) {
    .header-azan-brand {
        width: 100%;
    }
    .books-row .book-card {
        padding: 0 8px;
    }
    .books-row .book-card:not(:nth-child(4n)) {
        border-right-width: 1px;
    }
}

/* ========== Окуу платформасы (образование дизайны) ========== */
.edu-page {
    background: transparent;
    color: var(--ink);
}
.edu-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.edu-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.edu-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}
.edu-logo:hover {
    color: var(--forest);
}
.edu-nav {
    display: flex;
    gap: 20px;
}
.edu-nav a {
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 500;
}
.edu-nav a:hover,
.edu-nav-current {
    color: var(--forest) !important;
}
.edu-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.edu-search-input {
    width: 200px;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    outline: none;
}
.edu-search-btn {
    padding: 8px 12px;
    border: none;
    background: var(--cream);
    cursor: pointer;
    font-size: 1rem;
}
.edu-main-wrap {
    padding: 32px 0 48px;
    background: var(--cream);
}
.inner-page .edu-main-wrap {
    background: rgba(255, 255, 255, 0.88);
}
.edu-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: start;
}
.edu-content {
    min-width: 0;
}
.edu-h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--ink);
}
.edu-h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    margin: 0 0 16px 0;
}
.edu-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-light);
    margin: 0 0 8px 0;
}
.edu-instruction {
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}
.edu-desc {
    color: var(--ink-muted);
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}
.edu-section-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.edu-section-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 20px 28px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.edu-section-card:hover {
    border-color: var(--forest);
    box-shadow: 0 4px 12px rgba(13, 107, 62, 0.1);
    color: var(--forest);
}
.edu-topic-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.edu-topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: border-color var(--ease), background var(--ease);
}
.edu-topic-card:hover {
    border-color: var(--forest);
    background: var(--gold-soft);
}
.edu-topic-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}
.edu-topic-card-arrow {
    color: var(--forest);
    font-size: 1.2rem;
}
.edu-new-articles {
    margin-top: 32px;
}
.edu-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.edu-article-grid-topic {
    margin-bottom: 24px;
}
.edu-article-card {
    display: block;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.edu-article-card:hover {
    border-color: var(--forest-mid);
    box-shadow: 0 4px 12px rgba(13, 107, 62, 0.08);
}
.edu-article-path {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-light);
    margin-bottom: 8px;
    font-family: monospace;
}
.edu-article-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.edu-article-card:hover .edu-article-card-title {
    color: var(--forest);
}
.edu-article-excerpt {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin: 0 0 8px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.edu-article-date {
    font-size: 0.85rem;
    color: var(--ink-light);
    font-variant-numeric: tabular-nums;
}
.edu-sidebar {
    position: sticky;
    top: 24px;
}
.edu-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin: 0 0 12px 0;
}

.edu-sidebar-title-chapters {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.edu-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.edu-sidebar-list li {
    margin: 0 0 10px 0;
}
.edu-sidebar-list a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: color var(--ease);
}
.edu-sidebar-list a:hover {
    color: var(--forest);
}
/* Бетке жараша: учурдагы бөлүм жашыл, калганы күңүрт */
.edu-sidebar-list a.edu-sidebar-current {
    color: var(--forest) !important;
    font-weight: 600;
    font-size: 1rem;
}
.edu-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.edu-sidebar-section {
    margin-bottom: 4px;
}
.edu-sidebar-section > a {
    font-weight: 600;
}
.edu-sidebar-topics {
    margin: 6px 0 0 12px;
    padding-left: 0;
    border-left: 2px solid var(--border);
    padding-left: 10px;
}
.edu-sidebar-topics li {
    margin-bottom: 6px;
}
.edu-sidebar-topics a {
    font-size: 0.9rem;
    color: var(--ink-muted);
}
.edu-sidebar-topics a:hover,
.edu-sidebar-topics a.edu-sidebar-current {
    color: var(--forest);
}
.edu-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--ink-muted);
}
.edu-breadcrumb a {
    color: var(--ink-muted);
    text-decoration: none;
}
.edu-breadcrumb a:hover {
    color: var(--forest);
}
.edu-breadcrumb-sep {
    margin: 0 6px;
}
.edu-empty {
    color: var(--ink-muted);
    padding: 1rem 0;
}
.edu-btn-back,
.edu-back-wrap {
    margin-top: 24px;
}
.edu-btn-back {
    color: var(--forest);
    text-decoration: none;
    font-weight: 500;
}
.edu-btn-back:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .edu-layout {
        grid-template-columns: 1fr;
    }
    .edu-sidebar {
        position: static;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
    }
}
@media (max-width: 600px) {
    .edu-article-grid {
        grid-template-columns: 1fr;
    }
    .edu-header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .edu-search-input {
        width: 100%;
    }
}

/* Узун сөздөрдүн кетишин алдын алуу */
h1, h2, h3, .section-title, .book-card-title, .news-card h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== ЭНЦИКЛОПЕДИЯ СТИЛИ (section.php, topic.php) ===== */

.enc-header {
    background: #1e3d2b;
    color: #fff;
    padding: 2rem 0 1.75rem;
}
.enc-header .container {
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
}
.enc-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.enc-header-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.enc-header-text {
    flex: 1;
}
.enc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.enc-breadcrumb a {
    color: #a8d5b5;
    text-decoration: none;
}
.enc-breadcrumb a:hover { text-decoration: underline; }
.enc-breadcrumb span { color: rgba(255,255,255,0.5); }
.enc-header-title {
    font-family: 'El Messiri', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.enc-header-desc {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
}

.enc-wrap {
    background: #f4f7f3;
    padding: 2rem 0 2.5rem;
    min-height: 60vh;
}
.enc-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Негизги мазмун */
.enc-main {}


.enc-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.enc-topic-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #d0ddd0;
    border-radius: 12px;
    padding: 1rem 1.1rem 1rem 0.9rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.enc-topic-row:hover {
    box-shadow: 0 4px 16px rgba(30,61,43,0.10);
    border-color: #1e3d2b;
    transform: translateY(-1px);
}
.enc-topic-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e3d2b;
    color: #c8a84b;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}
.enc-topic-content {
    flex: 1;
    min-width: 0;
}
.enc-topic-title {
    font-family: 'El Messiri', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3d2b;
    display: block;
}
.enc-topic-excerpt {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.2rem;
}
.enc-topic-arrow {
    color: #1e3d2b;
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
}
.enc-topic-row:hover .enc-topic-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.enc-empty {
    color: #777;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.enc-back-wrap {
    margin-top: 1rem;
}

/* Сайдбар */
.enc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 66px;
}
.enc-sidebar-box {
    background: #fff;
    border: 1px solid #d0ddd0;
    border-radius: 12px;
    overflow: hidden;
}
.enc-sidebar-box-title {
    background: #1e3d2b;
    color: #fff;
    font-family: 'El Messiri', serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
}
.enc-sidebar-box-body {
    display: flex;
    flex-direction: column;
}
.enc-sidebar-link {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #2d4a35;
    text-decoration: none;
    border-bottom: 1px solid #edf2ed;
    transition: background 0.12s, color 0.12s;
}
.enc-sidebar-link:last-child { border-bottom: none; }
.enc-sidebar-link:hover {
    background: #f0f5f0;
    color: #1e3d2b;
}
.enc-sidebar-link.enc-active {
    background: #e8f0e8;
    color: #1e3d2b;
    font-weight: 600;
}

/* Респонсив */
@media (max-width: 900px) {
    .enc-body {
        grid-template-columns: 1fr;
    }
    .enc-sidebar {
        position: static;
    }
}
@media (max-width: 600px) {
    .enc-header-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
    .enc-header-title {
        font-size: 1.5rem;
    }
    .enc-header-icon {
        font-size: 2.2rem;
    }
}


/* ===== ШААР ТАНДАГЫЧ (намаз убактылары) ===== */
.header-city-wrap { display:flex; align-items:center; }
.header-city-select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(4px);
}
.header-city-select option { background: #1e3d2b; color: #fff; }
.header-city-select:hover { background: rgba(255,255,255,0.22); }

/* ===== ИЗДӨӨ БАСКЫЧЫ навигацияда ===== */
.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-muted, #666);
    text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.nav-search-btn:hover { background: #f0f4f0; color: var(--primary, #1e3d2b); }

/* ===== ИЗДӨӨ БАРАКЧАСЫ ===== */
.search-hero {
    max-width: 680px;
    margin: 48px auto 40px;
    text-align: center;
}
.search-hero-title {
    font-family: var(--font-head, 'El Messiri', serif);
    font-size: 2rem;
    color: var(--primary, #1e3d2b);
    margin-bottom: 24px;
}
.search-form { display: flex; flex-direction: column; gap: 14px; }
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-icon {
    position: absolute;
    left: 14px;
    color: #9aada0;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 14px 48px 14px 46px;
    font-size: 16px;
    border: 2px solid #d4dfd8;
    border-radius: 12px;
    outline: none;
    transition: border-color .15s;
    background: #fff;
    color: #1a2e22;
}
.search-input:focus { border-color: var(--primary, #1e3d2b); }
.search-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #9aada0;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.search-clear:hover { color: #c0392b; }
.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.search-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1.5px solid #d4dfd8;
    color: #4a6358;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.search-filter-btn:hover, .search-filter-btn.active {
    background: var(--primary, #1e3d2b);
    border-color: var(--primary, #1e3d2b);
    color: #fff;
}
.search-submit-btn {
    padding: 12px 32px;
    background: var(--primary, #1e3d2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    align-self: center;
}
.search-submit-btn:hover { opacity: .88; }
.search-meta {
    max-width: 680px;
    margin: 0 auto 20px;
    color: #6b7f74;
    font-size: 14px;
}
.search-results {
    max-width: 720px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.search-result-card {
    display: block;
    background: #fff;
    border: 1.5px solid #e5ede8;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.search-result-card:hover {
    border-color: var(--primary, #1e3d2b);
    box-shadow: 0 4px 16px rgba(30,61,43,.08);
}
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #8a9e93;
}
.search-result-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.search-tag-news     { background: #dcfce7; color: #166534; }
.search-tag-articles { background: #dbeafe; color: #1e40af; }
.search-tag-books    { background: #fef3c7; color: #92400e; }
.search-tag-fatwa    { background: #f3e8ff; color: #6b21a8; }
.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2e22;
    margin-bottom: 6px;
    line-height: 1.4;
}
.search-result-excerpt {
    font-size: 13px;
    color: #6b7f74;
    line-height: 1.6;
    margin: 0;
}
.search-hint { text-align:center; color:#9aada0; margin-top:40px; }
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8a9e93;
}
.search-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.search-empty-sub { font-size: 13px; color: #b0c0b8; }
.search-suggestions {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}
.search-sugg-label { color: #8a9e93; font-size: 13px; margin-bottom: 12px; }
.search-sugg-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.search-sugg-tag {
    padding: 8px 16px;
    background: #f0f4f0;
    border-radius: 20px;
    font-size: 14px;
    color: #2d5a3d;
    text-decoration: none;
    transition: background .15s;
}
.search-sugg-tag:hover { background: var(--primary, #1e3d2b); color: #fff; }

/* ===== КИТЕПТЕР — тизме layout ===== */
.books-cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.books-cat-tab {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #d4dfd8;
    background: #fff;
    color: #4a6358;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.books-cat-tab:hover, .books-cat-tab.active {
    background: var(--primary, #1e3d2b);
    border-color: var(--primary, #1e3d2b);
    color: #fff;
}
.books-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1.5px solid #e5ede8;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 48px;
}
.book-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f4f0;
    transition: background .12s;
}
.book-list-item:last-child { border-bottom: none; }
.book-list-item:hover { background: #f8faf8; }
.book-list-cover {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}
.book-list-cover img { width:100%; height:100%; object-fit:cover; }
.book-list-info { flex: 1; min-width: 0; }
.book-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2e22;
    text-decoration: none;
    line-height: 1.35;
    display: block;
    margin-bottom: 4px;
}
.book-list-title:hover { color: var(--primary, #1e3d2b); }
.book-list-sub {
    font-size: 12px;
    color: #8a9e93;
    margin: 0 0 4px;
}
.book-list-cat { color: #059669; }
.book-list-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.book-list-rating .star { color: #e2c96e; font-size: 13px; }
.book-list-rating .star.filled { color: #d4a017; }
.book-list-views { font-size: 12px; color: #b0bec5; }
.book-list-actions { flex-shrink: 0; }
.book-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0faf4;
    border: 1.5px solid #a7d7b8;
    border-radius: 8px;
    color: #1e6b3d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.book-pdf-btn:hover { background: #1e3d2b; border-color: #1e3d2b; color: #fff; }
.book-read-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f4f6f4;
    border: 1.5px solid #dde5e0;
    border-radius: 8px;
    color: #4a6358;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.book-read-btn:hover { background: #1e3d2b; border-color: #1e3d2b; color: #fff; }

/* ===== ВИДЕО ПЛАТФОРМА ===== */
.media-cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.media-cat-tab {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #d4dfd8;
    background: #fff;
    color: #4a6358;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.media-cat-tab:hover, .media-cat-tab.active {
    background: var(--primary, #1e3d2b);
    border-color: var(--primary, #1e3d2b);
    color: #fff;
}
.video-platform {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-bottom: 48px;
    align-items: start;
}
.video-main { display: flex; flex-direction: column; gap: 12px; }
.video-player-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}
.video-player-wrap iframe,
.video-player-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    object-fit: cover;
}
.video-main-info {
    padding: 4px 0;
}
.video-main-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8a9e93;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.video-main-cat {
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.video-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2e22;
    line-height: 1.4;
    margin: 0 0 6px;
}
.video-main-source { font-size: 13px; color: #8a9e93; margin: 0; }

.video-list {
    background: #fff;
    border: 1.5px solid #e5ede8;
    border-radius: 12px;
    overflow: hidden;
    max-height: 540px;
    overflow-y: auto;
}
.video-list::-webkit-scrollbar { width: 4px; }
.video-list::-webkit-scrollbar-track { background: #f0f4f0; }
.video-list::-webkit-scrollbar-thumb { background: #c8d8cc; border-radius: 2px; }

.video-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f4f0;
    cursor: pointer;
    transition: background .12s;
}
.video-list-item:last-child { border-bottom: none; }
.video-list-item:hover { background: #f8faf8; }
.video-list-item.active { background: #f0faf4; border-left: 3px solid var(--primary, #1e3d2b); }
.video-list-thumb {
    flex-shrink: 0;
    position: relative;
    width: 100px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #dde5e0;
}
.video-list-thumb img { width:100%; height:100%; object-fit:cover; }
.video-list-thumb-placeholder {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    background: #2d5a3d;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.video-list-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 28px; height: 28px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    color: #fff;
}
.video-list-info { flex: 1; min-width: 0; }
.video-list-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2e22;
    line-height: 1.4;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-list-meta { font-size: 11px; color: #9aada0; margin: 0; }

@media (max-width: 860px) {
    .video-platform { grid-template-columns: 1fr; }
    .video-list { max-height: 400px; }
    .book-list-item { padding: 12px 14px; gap: 12px; }
    .book-list-cover { width: 44px; height: 44px; }
}

/* ===================================================
   КУРАН ОКУГУЧ
   =================================================== */
.quran-page { min-height: calc(100vh - 180px); padding-bottom: 100px; }
.quran-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 280px);
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Сайдбар ---- */
.quran-sidebar {
    border-right: 1.5px solid #e5ede8;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    position: sticky;
    top: 66px;
    overflow: hidden;
}
.quran-sidebar-head {
    padding: 16px 16px 10px;
    border-bottom: 1px solid #f0f4f0;
    flex-shrink: 0;
}
.quran-sidebar-title { font-size: 15px; font-weight: 700; color: #1a2e22; margin: 0 0 10px; }
.quran-search {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px solid #d4dfd8;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #f8faf8;
    box-sizing: border-box;
}
.quran-search:focus { border-color: var(--primary, #1e3d2b); background: #fff; }
.surah-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 6px 0; }
.surah-list::-webkit-scrollbar { width: 4px; }
.surah-list::-webkit-scrollbar-thumb { background: #c8d8cc; border-radius: 2px; }
.surah-list-loading { padding: 20px; text-align: center; color: #9aada0; font-size: 13px; }
.surah-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .12s;
    border-radius: 0;
}
.surah-item:hover { background: #f4f8f5; }
.surah-item.active { background: #e8f4ec; border-right: 3px solid var(--primary, #1e3d2b); }
.surah-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f0f4f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #4a6358;
}
.surah-item.active .surah-num { background: var(--primary, #1e3d2b); color: #fff; }
.surah-name-wrap { flex: 1; min-width: 0; }
.surah-name-ky { display: block; font-size: 13px; font-weight: 600; color: #1a2e22; line-height: 1.2; }
.surah-name-ar { display: block; font-size: 13px; color: #9aada0; direction: rtl; font-family: 'Amiri', serif; }
.surah-verses { flex-shrink: 0; font-size: 11px; color: #b0bec5; }

/* ---- Окугуч ---- */
.quran-reader { padding: 0; }
.quran-reader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1.5px solid #e5ede8;
    background: #fff;
    position: sticky;
    top: 76px;
    z-index: 10;
}
.quran-surah-name { font-size: 18px; font-weight: 700; color: #1a2e22; font-family: var(--font-head, 'El Messiri', serif); }
.quran-surah-meta { font-size: 12px; color: #8a9e93; display: block; margin-top: 2px; }
.quran-head-controls { display: flex; align-items: center; gap: 8px; }
.quran-ctrl-btn {
    padding: 6px 12px;
    border: 1.5px solid #d4dfd8;
    border-radius: 8px;
    background: #fff;
    color: #4a6358;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .15s;
    white-space: nowrap;
}
.quran-ctrl-btn:hover { background: #f0f4f0; }
.quran-ctrl-btn.active { background: var(--primary, #1e3d2b); border-color: var(--primary, #1e3d2b); color: #fff; }
.quran-font-ctrl { display: flex; gap: 4px; }
.quran-sidebar-toggle { display: none; }

/* ---- Аяттар ---- */
.quran-verses { padding: 16px 28px 32px; background: #fdfcf9; min-height: 400px; }
.quran-bismillah {
    text-align: center;
    font-family: 'Amiri Quran', 'Amiri', serif;
    font-size: 28px;
    color: #1e3d2b;
    padding: 24px 16px 16px;
    direction: rtl;
    margin-bottom: 8px;
}
.verse-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid #eef2ee;
    transition: background .12s;
    border-radius: 8px;
    margin-bottom: 4px;
}
.verse-card:hover { background: #f8faf6; }
.verse-card.playing { background: #f0faf4; border-left: 3px solid var(--primary, #1e3d2b); }
.verse-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #c8d8cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #4a6358;
    margin-top: 6px;
}
.verse-card.playing .verse-num { background: var(--primary, #1e3d2b); border-color: var(--primary, #1e3d2b); color: #fff; }
.verse-content { flex: 1; }
.verse-arabic {
    font-family: 'Amiri Quran', 'Amiri', serif;
    font-size: 32px;
    line-height: 2;
    direction: rtl;
    text-align: right;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.verse-kyrgyz {
    font-size: 14px;
    line-height: 1.7;
    color: #4a6358;
    margin: 0;
    border-top: 1px solid #e8f0ea;
    padding-top: 10px;
}
.verse-kyrgyz.hidden { display: none; }
.verse-play-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d4dfd8;
    background: #fff;
    color: var(--primary, #1e3d2b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    margin-top: 8px;
}
.verse-play-btn:hover { background: var(--primary, #1e3d2b); color: #fff; border-color: var(--primary, #1e3d2b); }
.quran-loading, .quran-error {
    text-align: center;
    padding: 60px 20px;
    color: #8a9e93;
}
.quran-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e5ede8;
    border-top-color: var(--primary, #1e3d2b);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quran-error button {
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--primary, #1e3d2b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ---- Аудио бар ---- */
.quran-audio-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1e3d2b;
    color: #fff;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.quran-audio-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 200px auto 1fr auto;
    align-items: center;
    gap: 16px;
}
.quran-audio-info { min-width: 0; }
.quran-audio-surah { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.quran-audio-verse { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quran-audio-controls { display: flex; align-items: center; gap: 4px; }
.qa-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.qa-btn:hover { background: rgba(255,255,255,.22); }
.qa-play { width: 46px; height: 46px; background: rgba(255,255,255,.2); }
.qa-btn.active { background: rgba(255,255,255,.3); }
.quran-audio-progress-wrap { display: flex; align-items: center; gap: 10px; }
.qa-time { font-size: 11px; color: rgba(255,255,255,.6); flex-shrink: 0; }
.qa-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.qa-progress-fill { height: 100%; background: #d4a017; border-radius: 2px; width: 0; transition: width .3s; }
.quran-audio-extra { display: flex; align-items: center; gap: 10px; }
.qa-volume {
    width: 80px;
    accent-color: #d4a017;
    cursor: pointer;
}

/* ---- Мобил ---- */
@media (max-width: 860px) {
    .quran-layout { grid-template-columns: 1fr; }
    .quran-sidebar {
        position: fixed;
        top: 0; left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 200;
        transition: left .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
    }
    .quran-sidebar.open { left: 0; }
    .quran-sidebar-toggle { display: flex !important; }
    .quran-reader-head { top: 0; padding: 12px 16px; }
    .quran-verses { padding: 12px 14px 80px; }
    .quran-audio-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .quran-audio-info { display: none; }
    .quran-audio-extra { display: none; }
    .verse-arabic { font-size: 26px !important; }
}
