/* =========================================================
   TARTILA — Design tokens
   Palette: deep ink-blue + candle gold on warm parchment,
   evoking icons, candlelight, and aged manuscripts.
   ========================================================= */
:root {
    --color-bg: #f7f1e3;          /* parchment page background */
    --color-surface: #fffcf5;      /* warm white card surface */
    --color-ink: #1e2a38;          /* deep night-blue, like an icon's dark ground */
    --color-ink-light: #33475c;
    --color-gold: #b8862e;         /* candle / icon gold-leaf */
    --color-gold-light: #e8c77e;
    --color-gold-dark: #8f6a20;
    --color-text: #2b2620;
    --color-muted: #7d7263;
    --color-border: #e6dcc3;
    --font-display: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;
    --container-w: 1140px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.3; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* Signature element: thin gold "icon frame" - used on hero, covers, photos */
.icon-frame, .hero-slide::after {
    box-shadow: 0 0 0 1px var(--color-gold), 0 0 0 4px var(--color-surface), 0 0 0 5px var(--color-gold-light);
}

/* ===== Header ===== */
.site-header { background: var(--color-surface); box-shadow: 0 2px 12px rgba(30,42,56,.05); position: relative; z-index: 30; }
.header-top { display: flex; align-items: center; gap: 26px; padding: 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo img {
    height: 58px; width: auto; border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 4px var(--color-gold);
    padding: 4px; background: var(--color-surface);
}
.tagline {
    color: var(--color-muted); font-size: .9rem; margin: 0; flex: 1; min-width: 240px;
    padding-right: 26px; border-right: 2px solid var(--color-gold-light); line-height: 1.7;
}

.main-nav { background: var(--color-ink); border-top: 1px solid rgba(232,199,126,.25); border-bottom: 3px solid var(--color-gold); }
.main-nav .container { display: flex; align-items: center; }
.menu { list-style: none; display: flex; margin: 0; padding: 0; flex-wrap: wrap; }
.menu-item { position: relative; }
.menu-item > a {
    display: block; padding: 16px 19px; color: #ede2c8; font-weight: 600; font-size: .93rem;
    letter-spacing: .2px; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .15s;
}
.menu-item > a:hover, .menu-item.is-active > a { color: var(--color-gold-light); border-bottom-color: var(--color-gold); }
.submenu {
    list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; right: 0; min-width: 220px;
    background: var(--color-ink-light); border: 1px solid rgba(232,199,126,.25); display: none; z-index: 20;
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.menu-item.has-children:hover .submenu { display: block; }
.submenu a { padding: 10px 20px; color: #ede2c8; display: block; font-size: .88rem; }
.submenu a:hover { background: rgba(232,199,126,.1); color: var(--color-gold-light); }
.nav-toggle { display: none; background: none; border: 0; padding: 14px; cursor: pointer; margin-inline-start: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-gold-light); margin: 5px 0; }


/* ===== Hero slider ===== */
.hero-slider { position: relative; height: 580px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center; opacity: 0; transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,28,38,.55), rgba(20,28,38,.08) 55%);
}
.hero-title {
    position: relative; z-index: 1;
    display: block; width: 100%; text-align: right;
    color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-content { width: 100%; padding: 0 6%; }
.hero-title-main {
    display: block;
    font-family: 'Lemonada', var(--font-display);
    font-size: 9rem;
    font-weight: 400;
    line-height: 1;
    color: #fdf6e3;
}
.hero-title-sub {
    display: block;
    font-family: 'Lemonada', var(--font-display);
    font-size: 2.8rem;
    font-weight: 350;
    margin-top: 12px;
    color: #fdf6e3;
}
.hero-dots { position: absolute; bottom: 22px; inset-inline: 0; display: flex; justify-content: center; gap: 9px; z-index: 2; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.hero-dot.is-active { background: #fff; border-color: #fff; }

/* ===== Feature boxes ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 54px 20px 34px; }
.feature-box {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: 4px; padding: 30px 20px; text-align: center;
    box-shadow: 0 8px 22px rgba(30,42,56,.06);
}
.feature-icon {
    width: 58px; height: 58px; margin: 0 auto 16px; object-fit: contain;
    border-radius: 50%; padding: 12px; background: #faf4e4;
    box-shadow: 0 0 0 1px var(--color-gold-light);
}
.feature-box h2 { font-size: 1.2rem; color: var(--color-ink); }
.feature-box p { color: var(--color-muted); font-size: .92rem; min-height: 4.5em; }
.btn-outline, .btn-solid {
    display: inline-block; margin-top: 10px; padding: 10px 24px;
    border-radius: 3px; font-weight: 600; font-size: .9rem; transition: all .15s;
}
.btn-outline { border: 2px solid var(--color-gold); color: var(--color-gold-dark); }
.btn-outline:hover { background: var(--color-gold); color: #fff; }
.btn-solid { background: var(--color-ink); color: #fdf6e3; border: 2px solid var(--color-ink); }
.btn-solid:hover { background: var(--color-ink-light); border-color: var(--color-ink-light); }

/* ===== About ===== */
.section-divider { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.section-divider::before, .section-divider::after {
    content: ""; flex: 1; height: 1px; max-width: 420px;
    background: linear-gradient(to right, transparent, var(--color-gold-light));
}
.section-divider::after { background: linear-gradient(to left, transparent, var(--color-gold-light)); }
.divider-icon {
    width: 26px; height: 26px; margin: 0 16px; flex-shrink: 0; border-radius: 50%;
    background: var(--color-surface); color: var(--color-gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px var(--color-gold), 0 0 0 4px var(--color-bg), 0 0 0 5px var(--color-gold-light);
}
.divider-icon svg { width: 11px; height: 11px; }

.about-section { padding: 30px 0 44px; text-align: center; }
.about-inner { max-width: 760px; }
.about-section h2 { color: var(--color-ink); font-size: 1.9rem; }
.about-body { color: var(--color-muted); margin-bottom: 22px; font-size: 1.02rem; }

/* ===== Team ===== */
.team-section { padding: 20px 0 54px; }
.section-title { text-align: center; color: var(--color-ink); font-size: 1.7rem; margin-bottom: 12px; }
.section-title::after {
    content: ""; display: block; width: 70px; height: 3px; margin: 14px auto 30px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.team-card { text-align: center; width: 160px; }
.team-card img {
    border-radius: 50%; width: 130px; height: 130px; object-fit: cover; margin: 0 auto 14px;
    box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 4px var(--color-gold);
    transition: box-shadow .2s;
}
.team-card a:hover img { box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 4px var(--color-gold), 0 10px 24px rgba(30,42,56,.18); }
.team-card h3 { font-size: 1.08rem; color: var(--color-ink); margin-bottom: 4px; }
.team-card p { color: var(--color-muted); font-size: .88rem; }

/* ===== Verse of the Day: premium featured banner ===== */
.verse-feature { padding: 24px 0 64px; }
.verse-feature-card {
    position: relative; max-width: 820px; margin: 0 auto; text-align: center;
    background: linear-gradient(160deg, var(--color-ink), var(--color-ink-light));
    border-radius: 8px; padding: 56px 60px; overflow: hidden;
    box-shadow: 0 0 0 1px var(--color-gold), 0 20px 50px rgba(30,42,56,.25);
}
.verse-feature-card::before {
    content: ""; position: absolute; inset: 8px; border: 1px solid rgba(232,199,126,.25); border-radius: 5px; pointer-events: none;
}
.verse-quote-mark { position: absolute; font-family: var(--font-display); font-size: 5.5rem; color: var(--color-gold); opacity: .35; line-height: 1; }
.verse-quote-mark-open { top: 10px; right: 26px; }
.verse-quote-mark-close { bottom: -18px; left: 26px; }
.verse-item { display: none; }
.verse-item.is-active { display: block; }
.verse-feature-image { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; box-shadow: 0 0 0 3px var(--color-ink), 0 0 0 4px var(--color-gold); }
.verse-feature-text { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.9; color: #fdf6e3; margin: 0 0 18px; position: relative; z-index: 1; }
.verse-ref { color: var(--color-gold-light); font-weight: 600; font-size: .95rem; }
.verse-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; position: relative; z-index: 1; }
.verse-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--color-gold-light); background: transparent; cursor: pointer; }
.verse-dot.is-active { background: var(--color-gold); border-color: var(--color-gold); }

/* ===== Current events: timeline ===== */
.events-feature { padding: 10px 0 64px; }
.events-timeline { max-width: 720px; margin: 0 auto; position: relative; }
.events-timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 27px; width: 2px; background: var(--color-border); }
.timeline-item { display: flex; gap: 20px; padding-bottom: 14px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface);
    box-shadow: 0 0 0 1px var(--color-gold), 0 4px 12px rgba(30,42,56,.08);
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1;
}
.timeline-icon { font-size: 1.4rem; }
.timeline-content { display: flex; align-items: center; gap: 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 10px 18px; flex: 1; transition: box-shadow .2s; }
.timeline-content:hover { box-shadow: 0 8px 20px rgba(30,42,56,.08); }
.timeline-thumb { width: 64px; height: 64px; border-radius: 5px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--color-gold-light); }
.timeline-text { min-width: 0; }
.timeline-type { display: inline-block; color: var(--color-gold-dark); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.timeline-content p { margin: 0 0 4px; color: var(--color-ink); font-weight: 600; }
.timeline-date { color: var(--color-muted); font-size: .8rem; }
.timeline-link { color: var(--color-gold-dark); font-weight: 600; font-size: .88rem; }
.timeline-link:hover { color: var(--color-ink); }

/* ===== Footer ===== */
.site-footer { background: var(--color-ink); color: #e9e0cb; padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--color-gold-light); }
.social-icons { display: flex; gap: 14px; }
.social-icons a { color: var(--color-gold-light); opacity: .85; transition: opacity .15s, color .15s; }
.social-icons a:hover { opacity: 1; color: var(--color-gold); }
.social-icons svg { width: 22px; height: 22px; display: block; }
.copyright { font-size: .84rem; color: #a89b7c; margin: 0; }

/* =========================================================
   BLOG
   ========================================================= */
.page-header { background: #faf4e4; padding: 44px 0; text-align: center; margin-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.page-header h1 { color: var(--color-ink); font-size: 2.1rem; }
.page-header p { color: var(--color-muted); margin: 0; }

.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; padding-bottom: 64px; align-items: start; }
.blog-main { display: grid; gap: 26px; }

.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(30,42,56,.05); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 20px 20px 0; }
.post-card-category { color: var(--color-gold-dark); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.post-card-body h2 { font-size: 1.25rem; margin: 8px 0 6px; }
.post-card-body p { color: var(--color-muted); font-size: .93rem; }
.read-more { color: var(--color-ink); font-weight: 700; font-size: .88rem; }
.read-more:hover { color: var(--color-gold-dark); }
.empty-state { color: var(--color-muted); text-align: center; padding: 44px 0; }

.blog-sidebar .widget { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; padding: 22px; }
.blog-sidebar h2 { color: var(--color-ink); font-size: 1.1rem; }
.categories-widget ul { list-style: none; margin: 0; padding: 0; }
.categories-widget li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.categories-widget .cat-name { flex: 1; min-width: 0; word-break: break-word; }
.categories-widget .count { flex-shrink: 0; }
.categories-widget li:last-child a { border-bottom: none; }
.categories-widget li.is-active a, .categories-widget li a:hover { color: var(--color-gold-dark); }
.categories-widget .count { color: var(--color-muted); font-size: .85rem; }

.pagination-wrap { display: flex; justify-content: center; margin-top: 10px; }
.pagination-wrap ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-block; padding: 7px 13px; border-radius: 3px; border: 1px solid var(--color-border); color: var(--color-text); }
.pagination-wrap a:hover { border-color: var(--color-gold); color: var(--color-gold-dark); }
.pagination-wrap .active span { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.pagination-wrap .disabled { color: var(--color-muted); opacity: .5; border-color: var(--color-border); }

.single-post { padding: 10px 0 44px; }
.breadcrumb { color: var(--color-muted); font-size: .85rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--color-gold-dark); }
.single-post h1 { color: var(--color-ink); font-size: 2.3rem; }
.post-meta { color: var(--color-muted); font-size: .88rem; margin-bottom: 22px; }
.post-featured-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; margin: 0 auto 30px; border-radius: 6px; box-shadow: 0 0 0 1px var(--color-gold); }
.post-body-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 36px 40px; box-shadow: 0 4px 16px rgba(30,42,56,.05); }
.post-body { max-width: 780px; font-size: 1.06rem; }
.post-body img {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 60% !important;
    height: auto !important;
    margin: 20px auto !important;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--color-gold);
}
.post-body h2, .post-body h3 { color: var(--color-ink); margin-top: 1.5em; }
.post-body a { color: var(--color-gold-dark); text-decoration: underline; }

.post-nav { margin-top: 30px; }
.post-nav-back { display: inline-block; color: var(--color-gold-dark); font-weight: 600; font-size: .92rem; margin-bottom: 20px; }
.post-nav-back:hover { color: var(--color-ink); }
.post-nav-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-prev, .post-nav-next { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 16px 20px; }
.post-nav-prev:hover, .post-nav-next:hover { border-color: var(--color-gold); }
.post-nav-next { text-align: left; }
.post-nav span { display: block; color: var(--color-muted); font-size: .78rem; margin-bottom: 4px; }
.post-nav strong { color: var(--color-ink); font-size: .95rem; font-weight: 600; }
.post-nav-next:only-child { grid-column: 1 / -1; text-align: right; }

.related-posts { padding: 22px 0 64px; }
.related-posts h2 { color: var(--color-ink); font-size: 1.35rem; text-align: center; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; }
.related-card img { width: 100%; height: 130px; object-fit: cover; }
.related-card h3 { font-size: .95rem; padding: 12px; color: var(--color-text); }

/* =========================================================
   HYMNS
   ========================================================= */
body.has-player-bar { padding-bottom: 92px; }

.playlist-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.playlist-meta { color: var(--color-muted); font-size: .9rem; }

.hymn-playlist { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; background: var(--color-surface); }
.playlist-row {
    display: grid; grid-template-columns: 32px 48px 1fr 60px 40px auto;
    align-items: center; gap: 14px; padding: 10px 16px;
    border-bottom: 1px solid var(--color-border); cursor: pointer; transition: background .15s;
}
.playlist-row:last-child { border-bottom: none; }
.playlist-row:hover { background: #faf4e4; }
.playlist-row.is-playing { background: #faf1dc; box-shadow: inset 3px 0 0 var(--color-gold); }
.playlist-row-number { color: var(--color-muted); font-size: .85rem; text-align: center; }
.playlist-row-cover { width: 48px; height: 48px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--color-gold-light); }
.playlist-row-info { min-width: 0; overflow: hidden; }
.playlist-row-info strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-row-info span { color: var(--color-muted); font-size: .82rem; }
.playlist-row-duration { color: var(--color-muted); font-size: .85rem; }
.playlist-row-play { background: none; border: none; font-size: 1.1rem; color: var(--color-gold-dark); cursor: pointer; }
.playlist-row-link { color: var(--color-ink); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.playlist-row-link:hover { color: var(--color-gold-dark); }

.hymn-hero { text-align: center; padding: 20px 0 44px; }
.hymn-hero-cover { width: 220px; height: 220px; object-fit: cover; background: var(--color-bg); border-radius: 6px; margin: 0 auto 22px; box-shadow: 0 0 0 1px var(--color-gold), 0 0 0 5px var(--color-surface), 0 0 0 6px var(--color-gold-light), 0 14px 34px rgba(30,42,56,.15); }
.hymn-hero-play { cursor: pointer; border: none; font-size: 1rem; }

.hymn-player-bar {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 100;
    background: var(--color-ink); border-top: 1px solid var(--color-gold);
    box-shadow: 0 -8px 24px rgba(0,0,0,.15);
    display: grid; grid-template-columns: 220px auto 1fr auto; align-items: center;
    gap: 18px; padding: 10px 20px;
}
.player-track-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.player-track-info img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--color-gold-light); }
.player-track-info div { overflow: hidden; }
.player-track-info strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fdf6e3; }
.player-track-info span { color: #a89b7c; font-size: .8rem; }
.player-controls { display: flex; align-items: center; gap: 10px; direction: ltr; }
.player-controls button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--color-gold-light); opacity: .7; }
.player-controls button:hover { opacity: 1; }
.player-controls button.is-active { opacity: 1; color: var(--color-gold); }
#player-playpause { font-size: 1.5rem; opacity: 1; }
.player-waveform-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; direction: ltr; }
.player-waveform-wrap span { font-size: .78rem; color: #a89b7c; flex-shrink: 0; }
#player-track-count { min-width: 46px; text-align: center; }
#hymn-waveform { flex: 1; min-width: 0; overflow: hidden; }
#hymn-waveform wave { overflow: hidden !important; }
.player-extra { display: flex; align-items: center; gap: 12px; color: var(--color-gold-light); direction: ltr; }
.player-extra select { background: var(--color-ink-light); color: #fdf6e3; border: 1px solid var(--color-gold-light); border-radius: 3px; padding: 4px 6px; font-size: .78rem; }
.player-extra a { color: var(--color-gold-light); font-size: 1.1rem; }
.player-extra a:hover { color: var(--color-gold); }
.player-extra input { width: 80px; }


/* =========================================================
   BOOKS
   ========================================================= */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.book-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(30,42,56,.05); }
.book-card-cover { position: relative; }
.book-card-cover::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--color-gold); z-index: 1; }
.book-card-cover img { width: 100%; height: 220px; object-fit: cover; }
.book-card-body { padding: 16px; }
.book-card-body h3 { font-size: 1rem; margin: 0 0 4px; }
.book-author { color: var(--color-muted); font-size: .85rem; margin: 0 0 6px; }
.book-desc { color: var(--color-muted); font-size: .85rem; margin-bottom: 12px; }
.book-card-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 16px; font-size: .82rem; margin-top: 0; }

.book-detail-layout .blog-main { display: block; }
.book-detail { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-bottom: 44px; }
.book-detail-cover { width: 100%; border-radius: 4px; box-shadow: 0 0 0 1px var(--color-gold), 0 14px 34px rgba(30,42,56,.14); }
.book-detail-info h1 { color: var(--color-ink); font-size: 1.9rem; margin-bottom: 4px; }
.book-meta-list { list-style: none; display: flex; gap: 18px; padding: 0; margin: 16px 0; color: var(--color-muted); font-size: .85rem; }
.book-description { color: var(--color-text); margin-bottom: 22px; line-height: 1.85; }
.book-detail-actions { display: flex; gap: 12px; }

.pdf-reader { display: flex; flex-direction: column; height: calc(100vh - 160px); }
.pdf-reader-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.pdf-back { color: var(--color-gold-dark); font-weight: 600; }
.pdf-reader-frame { flex: 1; width: 100%; border: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto 60px; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 22px; display: flex;
    align-items: center; justify-content: space-between; font-weight: 700; color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle-icon { color: var(--color-gold); font-size: 1.3rem; transition: transform .2s; flex-shrink: 0; margin-inline-start: 12px; }
.faq-item[open] .faq-toggle-icon { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer { padding: 18px 22px; color: var(--color-text); line-height: 1.85; }

/* ===== 404 page ===== */
.error-404 { padding: 100px 0; text-align: center; }
.error-404-icon { display: inline-block; font-size: 3rem; color: var(--color-gold); margin-bottom: 20px; }
.error-404 h1 { color: var(--color-ink); font-size: 2.2rem; margin-bottom: 10px; }
.error-404 p { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 30px; }
.error-404-actions { margin-bottom: 30px; }
.error-404-links { display: flex; justify-content: center; gap: 24px; }
.error-404-links a { color: var(--color-gold-dark); font-weight: 600; }
.error-404-links a:hover { color: var(--color-ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .home-sidebar { grid-template-columns: 1fr; }
    .verse-feature-card { padding: 40px 28px; }
    .verse-feature-text { font-size: 1.2rem; }
    .verse-quote-mark { font-size: 3.5rem; }
    .blog-layout { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .book-detail { grid-template-columns: 1fr; }
    .book-detail-cover { max-width: 220px; }
    .hymn-player-bar { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 8px; padding: 10px; }
    .player-extra select, .player-extra input { display: none; }
    .playlist-row { grid-template-columns: 24px 40px 1fr 40px; }
    .playlist-row-duration, .playlist-row-link { display: none; }
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .menu { display: none; flex-direction: column; width: 100%; }
    .menu.is-open { display: flex; }
    .menu-item > a { padding: 12px 20px; }
    .submenu { position: static; display: none; box-shadow: none; }
    .menu-item.has-children.is-open .submenu { display: block; }

    .features { grid-template-columns: 1fr; padding-top: 24px; }
    .team-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 360px; }
    .hero-title-main { font-size: 3.4rem; }
    .hero-title-sub { font-size: 1.5rem; }

    .post-card { grid-template-columns: 1fr; }
    .post-card-image img { height: 190px; }
    .post-card-body { padding: 16px; }
    .related-grid { grid-template-columns: 1fr; }

    .book-grid { grid-template-columns: 1fr; }
    .book-card-actions { flex-direction: column; }

    .single-post h1 { font-size: 1.7rem; }
    .post-body-card { padding: 24px 20px; }
    .post-body img { max-width: 100% !important; }
    .post-nav-adjacent { grid-template-columns: 1fr; }
    .post-nav-next { text-align: right; }

    .tagline { min-width: 0; border-right: none; padding-right: 0; }
    .header-top { gap: 14px; }
    .book-detail-info h1 { font-size: 1.5rem; }

    .playlist-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .player-controls button { font-size: 1rem; }
}
