/* ── Scroll Progress Bar ─────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #d4b86a);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Header scroll effect ────────────────────────────────────────────────── */
.header-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#mainHeader {
    background: rgba(253, 248, 240, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
}

.nav-link {
    color: rgba(15, 31, 61, 0.88);
}

.nav-link:hover {
    color: #9e7d22;
    background: rgba(201, 168, 76, 0.12);
}

.header-search-input {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(158, 125, 34, 0.28);
    color: #0f1f3d;
}

.header-search-input::placeholder {
    color: rgba(15, 31, 61, 0.48);
}

.header-portal-button {
    border: 1px solid rgba(158, 125, 34, 0.45);
    color: #9e7d22;
    background: rgba(255, 255, 255, 0.72);
}

.header-portal-button:hover {
    background: rgba(201, 168, 76, 0.12);
}

.header-mobile-toggle {
    color: #0f1f3d;
}

.header-mobile-toggle:hover {
    background: rgba(201, 168, 76, 0.12);
}

.header-scrolled .nav-link {
    color: rgba(253, 248, 240, 0.8);
}

.header-scrolled .nav-link:hover {
    color: #d4b86a;
    background: rgba(255, 255, 255, 0.05);
}

.header-scrolled .header-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    color: #fdf8f0;
}

.header-scrolled .header-search-input::placeholder {
    color: rgba(253, 248, 240, 0.4);
}

.header-scrolled .header-portal-button {
    border-color: rgba(201, 168, 76, 0.5);
    color: #d4b86a;
    background: transparent;
}

.header-scrolled .header-portal-button:hover {
    background: rgba(201, 168, 76, 0.1);
}

.header-scrolled .header-mobile-toggle {
    color: #fdf8f0;
}

.header-scrolled .header-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.modal-overlay {
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
.modal-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}
.modal-overlay.is-open .modal-content {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hebrew / accent text ────────────────────────────────────────────────── */
.hebrew-accent {
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

/* ── Gold gradient text ──────────────────────────────────────────────────── */
.gold-gradient-text {
    background: linear-gradient(135deg, #c9a84c 0%, #f0e0b0 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Shimmer text ────────────────────────────────────────────────────────── */
.shimmer-text {
    background: linear-gradient(90deg, #c9a84c 0%, #f0e0b0 40%, #c9a84c 60%, #f0e0b0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ── Filter button active state ──────────────────────────────────────────── */
.podcast-filter-btn.active {
    background-color: #c9a84c;
    color: #0a1628;
    border-color: #c9a84c;
}

/* ── Donation tier hover ─────────────────────────────────────────────────── */
.donation-tier {
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.donation-tier:hover {
    transform: translateY(-4px);
}

/* ── Hero background gradient ────────────────────────────────────────────── */
.hero-bg {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

/* ── TinyMCE rendered content ────────────────────────────────────────────── */
.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #0f1f3d;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.tinymce-content p {
    margin-bottom: 1em;
    line-height: 1.75;
    color: #374151;
}
.tinymce-content blockquote {
    border-left: 3px solid #c9a84c;
    padding-left: 1.25rem;
    color: #6b7280;
    font-style: italic;
    margin: 1.5em 0;
}
.tinymce-content a {
    color: #b8942e;
    text-decoration: underline;
}
.tinymce-content ul,
.tinymce-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1em;
}
.tinymce-content li {
    margin-bottom: 0.3em;
    color: #374151;
}

/* ── Admin sidebar (extra overrides) ────────────────────────────────────── */
@media (max-width: 1024px) {
    aside {
        display: none;
    }
}

/* ── Carousel ────────────────────────────────────────────────────────────── */
#testimonialCarousel {
    cursor: grab;
}
#testimonialCarousel:active {
    cursor: grabbing;
}

/* ── Line-clamp polyfill (for older browsers) ────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Focus visible ring ──────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}
