@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200;300;400;600;700;800&display=swap');

:root {
    --bg-cream: #FDFBF7;
    --primary-green: #1A3C2A; 
    --gold: #C5A059; 
    --text-main: #545454; 
    --shadow-deep: 0 15px 35px rgba(0, 0, 0, 0.1); 
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.15); 
    --shadow-modal: 0 40px 90px rgba(0, 0, 0, 0.4);
    --transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none !important; }
html { scroll-behavior: smooth; }
html, body, header { margin: 0; padding: 0; border: none; }
body { 
    font-family: 'Assistant', sans-serif; background-color: var(--bg-cream); 
    direction: rtl; line-height: 1.8; color: var(--text-main); overflow-x: hidden; 
    -webkit-user-select: none; -ms-user-select: none; user-select: none; 
}

input, textarea { -webkit-user-select: text; -ms-user-select: text; user-select: text; }
* { -webkit-tap-highlight-color: transparent; }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    animation: scrollBounce 2.2s infinite ease-in-out;
}
.scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 0.1em;
}
.scroll-indicator::after {
    content: '↓';
    font-size: 1.3rem;
    color: var(--primary-green);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(7px); opacity: 0.9; }
}

/* HERO & LOGO */
.hero { position: relative; min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 10%; margin-top: 0; background-color: var(--bg-cream); }

.main-logo {
    width: 1000px;
    max-width: 95%;
    border-radius: 24px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.12);
    user-select: none;
    -webkit-user-drag: none;
}

.hero h1 {
    font-size: 5.8rem;
    margin-bottom: 20px;
    font-weight: 200;
    font-family: 'Rubik', sans-serif;
    letter-spacing: 2px;
    color: var(--primary-green);
    line-height: 1.2;
}
.hero-subtitle { font-size: 1.4rem; font-weight: 400; color: var(--primary-green); margin-bottom: 10px; }
.hero-tagline { font-size: 1rem; font-weight: 400; color: var(--primary-green); opacity: 0.75; }

.section-title { font-size: 3rem; margin-bottom: 80px; text-align: center; position: relative; padding-bottom: 20px; font-weight: 700; color: var(--primary-green); }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background: var(--gold); border-radius: 2px; }

/* --- גריד סרטונים: 2 בכל שורה, צמוד --- */
.video-section { padding: 100px 0 80px; }
.video-section .section-title { padding: 0 5%; margin-bottom: 50px; }

.video-tree-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .video-tree-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* --- עדכון המודאל --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px); 
}

.modal-content { 
    background: var(--bg-cream); 
    margin: 5vh auto; 
    padding: 60px; 
    border-radius: 40px; 
    width: 90%; 
    max-width: 900px; 
    max-height: 85vh; 
    overflow-y: auto; 
    text-align: right; 
    position: relative; 
    box-shadow: var(--shadow-modal);
}

.close-modal { display: block; }
.video-column { display: flex; flex-direction: column; gap: 0; }

/* Level 1: Main Topic — כרטיס תמונה גדול */
.tree-main-btn {
    width: 100%;
    padding: 0;
    background: #e8e8e8;
    border: none;
    cursor: pointer;
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    transition: var(--transition-standard);
    font-family: inherit;
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.12);
}
.tree-main-btn:hover { transform: none; box-shadow: none; }
.tree-main-btn:hover .topic-img { transform: scale(1.06); }
.tree-main-btn.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #7a4b2b;
    z-index: 3;
    pointer-events: none;
}

/* תמונת הנושא — ממלאת את כל הכרטיס */
.topic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    object-fit: cover;
    background-color: #e8e8e8;
    border: none;
    transition: transform 0.5s ease;
}

/* שכבת כהה מתחת לכותרת */
.main-btn-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    z-index: 2;
}

.main-btn-title {
    position: absolute;
    bottom: 16px;
    right: 18px;
    z-index: 3;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green);
    text-align: right;
    text-shadow: none;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.82);
    padding: 6px 14px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.main-btn-series { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.main-btn-subtitle { display: block; font-size: 1rem; font-weight: 600; opacity: 0.75; margin-top: 3px; line-height: 1.3; }

/* אייקון + — מוסתר */
.tree-main-btn .icon { display: none; }


/* Level 2: Sub Topics List */
.tree-sub-list {
    max-height: 0; overflow: hidden; transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; gap: 0; padding: 0;
    background: white;
}
.tree-sub-item { 
    background: white; border-radius: 12px; border: 1px solid rgba(197, 160, 89, 0.15); 
    overflow: hidden; transition: var(--transition-standard);
}

.tree-sub-btn {
    width: 100%; padding: 15px 20px; background: transparent; border: none; 
    cursor: pointer; text-align: right; color: var(--text-main); font-family: inherit; 
    transition: var(--transition-standard); display: flex; align-items: center; gap: 15px;
    min-height: 90px; /* הפיכת המלבן לגדול יותר */
}
.tree-sub-btn:hover { color: var(--primary-green); background: rgba(197, 160, 89, 0.05); }
.tree-sub-btn.active { color: var(--gold); background: var(--primary-green); }

/* עיצוב התוכן הפנימי החדש של כפתור הסרטון */
.video-preview-img {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #e0e0e0;
    flex-shrink: 0;
}
.sub-btn-title {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Level 3: Video Player - FIXED ZOOM FIX */
.tree-video-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.6s ease; background: #000; }
.tree-video-wrapper .video-container { 
    width: 100%; 
    max-width: 100%; 
    height: auto; 
    max-height: 70vh; 
    aspect-ratio: 9/16; 
    margin: 0 auto; 
    border-radius: 0; 
    box-shadow: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.tree-video-wrapper video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

/* VIDEO CARDS GRID */
.video-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}
.video-cards-grid--3col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* entrance animation when accordion opens */
@keyframes cardFadeIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.tree-sub-list.open .video-card {
    animation: cardFadeIn 0.4s ease both;
}
.tree-sub-list.open .video-card:nth-child(1) { animation-delay: 0.05s; }
.tree-sub-list.open .video-card:nth-child(2) { animation-delay: 0.12s; }
.tree-sub-list.open .video-card:nth-child(3) { animation-delay: 0.19s; }
.tree-sub-list.open .video-card:nth-child(4) { animation-delay: 0.26s; }
.tree-sub-list.open .video-card:nth-child(5) { animation-delay: 0.33s; }
.tree-sub-list.open .video-card:nth-child(6) { animation-delay: 0.40s; }
.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: var(--transition-standard);
    background: #e8e8e8;
}
.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.video-card:hover .video-card-img { transform: scale(1.05); }
.video-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
    transition: transform 0.5s ease;
}
.video-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    padding: 14px 12px 12px;
}
.video-card-overlay span {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline-block;
}

/* VIDEO MODAL */
.video-modal-content {
    background: #000;
    margin: 3vh auto;
    padding: 50px 40px 40px;
    border-radius: 24px;
    width: 92%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-modal);
    text-align: right;
}
#video-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.close-video-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.close-video-modal:hover { color: white; }
.video-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 75vh;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
    max-width: 380px;
}
.video-modal-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1080px;
    height: 1920px;
    border: none;
    transform: translate(-50%, -50%) scale(var(--yt-scale, 0.35));
    transform-origin: center center;
}
.fullscreen-btn, .exit-fullscreen-btn {
    position: absolute;
    z-index: 20;
    background: rgba(0,0,0,0.55);
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.fullscreen-btn:hover, .exit-fullscreen-btn:hover { background: rgba(0,0,0,0.85); }
.fullscreen-btn { bottom: 44px; right: 12px; }
.exit-fullscreen-btn { bottom: 44px; right: 12px; display: none; }
.yt-seek-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 20;
    padding: 4px 0;
}
.yt-seek-wrap input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}
.yt-seek-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.yt-seek-wrap input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}
.video-modal-player.is-fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: min(98vh, calc(100vw * 16 / 9));
    width: min(calc(98vh * 9 / 16), 100vw);
    max-width: none;
    max-height: none;
    aspect-ratio: 9/16;
    border-radius: 14px;
    z-index: 9999;
}
.is-fullscreen .fullscreen-btn { display: none; }
.is-fullscreen .exit-fullscreen-btn { display: flex; }


.faq-section { padding: 120px 5%; background: #F5F3EF; }
.faq-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.faq-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-standard);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(135, 65, 78, 0.3);
}
/* Right column (first in RTL) — gold border */
.faq-column:first-child .faq-item { border: 1px solid rgba(135, 65, 78, 0.6); }
.faq-column:first-child .faq-item:hover,
.faq-column:first-child .faq-item.active { border-color: #87414E; }
.faq-column:last-child .faq-item { border: 1px solid rgba(135, 65, 78, 0.6); }
.faq-column:last-child .faq-item:hover,
.faq-column:last-child .faq-item.active { border-color: #87414E; }
.faq-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.faq-question {
    width: 100%; padding: 14px 22px; background: none; border: none;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-size: 1rem; font-weight: 700;
    color: var(--primary-green); text-align: right; font-family: inherit;
    gap: 12px;
    min-height: 52px;
}
.faq-question:hover { background: rgba(197, 160, 89, 0.04); }
.faq-icon {
    transition: transform 0.4s ease;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; background: #fdfbf7; }
.faq-content {
    padding: 18px 30px 28px 30px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

/* PROPHECY CARDS */
.prophecy-section { padding: 80px 3%; background: var(--bg-cream); }
.prophecy-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 1800px; margin: 0 auto; }
.prophecy-card { perspective: 1500px; aspect-ratio: 4/5; cursor: pointer; position: relative; transition: transform 0.4s ease; }
.prophecy-card:hover { transform: translateY(-6px); }
.card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; box-shadow: var(--shadow-deep); border-radius: 0; }
.prophecy-card.flipped .card-inner { transform: rotateY(-180deg); box-shadow: 0 0 40px rgba(197, 160, 89, 0.2); }
.card-front, .card-back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 0; }
.card-front {
    background: radial-gradient(circle, #ffffff 0%, #fdfbf7 100%);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 12px 10px; border: 1px solid rgba(135, 65, 78, 0.25);
}
.card-front::before { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid rgba(135, 65, 78, 0.5); opacity: 0.6; border-radius: 0; pointer-events: none; }
.card-front h3 { font-size: 1.1rem; color: var(--primary-green); font-weight: 800; text-align: center; line-height: 1.5; }
.tap-hint { font-size: 0.85rem; color: #999; margin-top: 6px; }
.card-back { transform: rotateY(180deg); padding: 10px; overflow: hidden; text-align: right; background-color: #fdfbf7; background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); display: flex; flex-direction: column; gap: 6px; }
.scripture-segment { background: rgba(197, 160, 89, 0.05); padding: 8px; border-right: 3px solid var(--gold); border-radius: 6px; font-style: italic; }
.bible-text { font-size: 0.95rem; font-weight: 600; color: var(--primary-green); line-height: 1.4; }
.info-segment { background: #f0f4f2; padding: 7px; border-right: 3px solid var(--primary-green); border-radius: 6px; }
.info-segment p { font-size: 0.93rem; line-height: 1.45; }
.label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--gold); margin-bottom: 2px; letter-spacing: 0.04em; }
.fulfillment-segment { background: #f0f4f2; padding: 8px; border-right: 3px solid var(--gold); border-radius: 6px; }

/* ARTICLES SECTION */
.articles-section { padding: 100px 5%; background: var(--bg-cream); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1320px; margin: 0 auto; }
@media (max-width: 1000px) { .articles-grid { grid-template-columns: 1fr 1fr; } .faq-container { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card { background: rgb(253, 251, 247); padding: 40px; border-radius: 25px; text-align: center; cursor: pointer; box-shadow: var(--shadow-deep); transition: var(--transition-standard); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid transparent; }
.article-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.article-card h3 { font-size: 1.5rem; color: var(--primary-green); font-weight: 700; }

/* CTA SECTION */
.cta-section { padding: 80px 4%; background: #F0EBE0; color: var(--primary-green); display: flex; justify-content: center; }
.cta-inner { display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 60px; width: 100%; max-width: 1400px; }

/* Info panel — right side */
.cta-info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 48px; }
.cta-church-logo { width: 340px; max-width: 100%; border-radius: 0; margin-bottom: 32px; box-shadow: none; -webkit-user-drag: none; user-select: none; border: none; mix-blend-mode: multiply; filter: contrast(1.05); }
.cta-info-credit { font-size: 1.7rem; font-weight: 700; color: var(--primary-green); line-height: 1.6; margin-bottom: 2px; }
.cta-info-divider { width: 70px; height: 3px; background: var(--gold); border-radius: 2px; margin: 22px auto; }
.cta-info-details { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cta-info-line { font-size: 1.3rem; color: var(--primary-green); opacity: 0.75; line-height: 2; letter-spacing: 0.01em; }

/* Form side — left */
.cta-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.cta-main-text { font-size: 1.6rem; font-weight: 800; margin-bottom: 36px; line-height: 1.7; letter-spacing: -0.01em; text-align: center; width: 100%; white-space: nowrap; }
.cta-line1 { display: block; white-space: nowrap; }
.cta-line2 { display: block; }
.cta-options { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.cta-btn { width: 100%; padding: 22px 40px; background: #a0876a; border: 2px solid #a0876a; color: white; border-radius: 15px; cursor: pointer; font-size: 1.25rem; font-weight: 700; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); will-change: transform; }
.cta-btn:hover { background: #8a7055; border-color: #8a7055; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
.cta-btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); transition: transform 0.08s ease, box-shadow 0.08s ease; }
.cta-btn.active { background: #8a7055; border-color: #8a7055; color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }

/* FORM & MODAL */
.contact-form { height: 0; opacity: 0; overflow: hidden; transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin-top 0.4s ease; margin-top: 0; width: 100%; }
.contact-form.visible { opacity: 1; margin-top: 50px; }
.contact-form input { width: 100%; padding: 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid rgba(26, 60, 42, 0.2); background: rgba(255, 255, 255, 0.6); color: var(--primary-green); font-family: inherit; }
.contact-form textarea { display: block; width: 100%; padding: 0 18px; margin-bottom: 0; border-radius: 12px; border: 1px solid rgba(26, 60, 42, 0.2); background: rgba(255, 255, 255, 0.6); color: var(--primary-green); font-family: inherit; resize: none; height: 0; min-height: 0; opacity: 0; overflow: hidden; transition: height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, margin-bottom 0.35s ease; }
.contact-form.show-textarea textarea { height: 100px; padding: 18px; margin-bottom: 20px; opacity: 1; overflow: auto; }
.success-msg { text-align: center; color: var(--primary-green); padding: 20px 0; }
.success-msg p { margin-bottom: 10px; font-size: 1.1rem; }
.success-verse { font-size: 1.5rem !important; font-weight: 700; color: var(--gold) !important; letter-spacing: 1px; }
.success-ref { font-size: 0.85rem; opacity: 0.7; vertical-align: middle; margin-right: 8px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consent-label span { font-size: 0.9rem; color: rgba(26, 60, 42, 0.75); line-height: 1.6; text-align: right; }
.submit-btn { width: 100%; padding: 20px; background: var(--gold); color: var(--primary-green); border: none; border-radius: 12px; font-weight: 800; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { box-shadow: 0 0 25px rgba(197, 160, 89, 0.6); transform: translateY(-5px); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }
.modal-content { background: var(--bg-cream); margin: 2vh auto; padding: 80px 60px; border-radius: 40px; width: 95%; max-width: 1000px; position: relative; box-shadow: var(--shadow-modal); max-height: 95vh; overflow-y: auto; text-align: right; border: 1px solid rgba(197, 160, 89, 0.2); }
.close-modal { position: absolute; top: 20px; left: 30px; font-size: 35px; cursor: pointer; color: #999; }
#modal-title { font-size: 2.5rem; color: var(--primary-green); font-weight: 800; margin-bottom: 30px; border-bottom: 2px solid var(--gold); padding-bottom: 15px; display: inline-block; }
#modal-body { font-size: 1.3rem; line-height: 1.9; color: var(--text-main); }

.modal-back-btn:hover { background: var(--gold); color: white; transform: scale(1.05); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

/* COMING SOON COLUMNS */
.coming-soon-btn { cursor: default !important; opacity: 0.45; filter: grayscale(60%); }
.coming-soon-btn:hover .topic-img { transform: none !important; }
.coming-soon-btn .main-btn-title { background: rgba(200,200,200,0.85); color: #888 !important; }

/* HIDDEN UNTIL READY — remove display:none to restore */
.coming-soon-btn { display: none !important; }
.article-card[data-id="4"],
.article-card[data-id="5"],
.article-card[data-id="6"] { display: none !important; }

/* VSC BUG FIX & MOBILE */
.video-container div[class*="vsc-"], .vsc-controller, [id*="vsc-"] { display: none !important; visibility: hidden !important; opacity: 0 !important; }
@media (max-width: 768px) {
    .modal-content { padding: 50px 25px; margin: 0; height: 100%; border-radius: 0; }
    #modal-title { font-size: 1.8rem; }
    .faq-question { padding: 25px 30px; font-size: 1.1rem; }
}

/* הגבלת גודל הוידאו כדי שלא יהיה ענקי על המסך */
.tree-video-wrapper .video-container {
    max-width: 450px !important; /* רוחב אידיאלי לסרטון אנכי */
    margin: 0 auto; /* מרכז את הוידאו */
    border-radius: 20px; /* מוסיף פינות עגולות למראה נקי */
    overflow: hidden;
}

/* התאמה למובייל - שהוידאו יחזור לתפוס את רוב הרוחב */
@media (max-width: 480px) {
    .tree-video-wrapper .video-container {
        max-width: 90% !important;
    }
}

.video-container {
    width: 250px !important; /* רוחב קטן וקומפקטי */
    margin: 15px auto !important;
    background: transparent !important;
    border-radius: 20px;
    overflow: hidden;
    display: block !important;
}

.video-container video {
    width: 100% !important;
    height: auto !important;
    max-height: 450px !important; /* מגביל את הגובה */
    object-fit: cover; /* חותך את השוליים השחורים אם יש */
    display: block !important;
    border-radius: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.article-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* שומר על תמונה ריבועית */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    background-color: #eee; /* צבע זמני עד שתשים תמונה */
}

.article-card h3 {
    margin: 0;
    order: -1; /* גורם לכותרת להישאר למעלה והתמונה תהיה מתחתיה */
}

/* עיצוב תמונות המאמרים */
.article-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.article-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* יחס גובה-רוחב של סרטון/תמונה סטנדרטית */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    background-color: #f0f0f0; /* צבע רקע למקרה שהתמונה לא נטענת */
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.02);
}

/* ==============================
   VIDEO & ARTICLE PHONE FIXES
   ============================== */
@media (max-width: 768px) {
    /* VIDEO TOPICS: keep 2×2 grid so all 4 fit on screen */
    .video-tree-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0 !important; }
    .tree-main-btn { aspect-ratio: 3/2 !important; height: auto !important; }
    .main-btn-title { padding: 5px 8px !important; bottom: 8px !important; right: 8px !important; }
    .main-btn-series { font-size: 0.95rem !important; }
    .main-btn-subtitle { font-size: 0.75rem !important; }

    /* VIDEO CARDS: 2×2 compact grid inside the half-column */
    .video-cards-grid { grid-template-columns: 1fr 1fr !important; gap: 4px !important; padding: 4px !important; }
    .video-cards-grid--3col { grid-template-columns: 1fr 1fr 1fr !important; }
    .video-card { aspect-ratio: 4/3 !important; }
    .video-card-overlay { padding: 8px 6px 6px !important; }
    .video-card-overlay span { font-size: 0.65rem !important; line-height: 1.2 !important; }
    .video-cards-grid--3col .video-card-overlay span {
        font-size: 0.52rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }

    /* ARTICLES: 2 columns, no image, compact title cards */
    .articles-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .article-card {
        aspect-ratio: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 10px !important;
        min-height: 80px !important;
        gap: 0 !important;
        border-radius: 16px !important;
    }
    .article-img { display: block !important; }
    .article-card h1, .article-card h3 {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: var(--primary-green) !important;
        text-align: center !important;
        line-height: 1.4 !important;
        order: 1 !important;
        margin: 0 !important;
    }
}

/* ==============================
   RESPONSIVE – TABLET (≤ 900px)
   ============================== */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.8rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 50px; }
    .prophecy-grid { grid-template-columns: 1fr; gap: 30px; }
    .prophecy-card { height: 520px; }
    .cta-main-text { font-size: 2.2rem; }
}

/* ==============================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================== */
@media (max-width: 768px) {
    /* Hero */
    .hero { padding: 40px 6%; }
    .main-logo { width: 520px; }
    .scroll-indicator { bottom: 20px; }

    /* Section titles */
    .section-title { font-size: 1.9rem; margin-bottom: 40px; }

    /* Video section */
    .video-section { padding: 60px 0 40px; }
    .video-section .section-title { padding: 0 4%; }
    .main-btn-title { font-size: 1.3rem; }
    .sub-btn-title { font-size: 1.05rem; }

    /* FAQ */
    .faq-section { padding: 70px 4%; }
    .faq-question { padding: 22px 22px; font-size: 1.15rem; min-height: 70px; gap: 14px; }
    .faq-content { padding: 18px 22px 32px; font-size: 1.1rem; line-height: 1.85; }

    /* Prophecy: all 3 cards in one row */
    .prophecy-section { padding: 70px 3%; }
    .prophecy-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; max-width: 100%; }
    .card-front h3 { font-size: 1rem; text-align: center; }
    .card-back { padding: 12px; }
    .scripture-segment, .info-segment, .fulfillment-segment { padding: 8px; margin-bottom: 7px; }
    .bible-text { font-size: 0.78rem; }
    .label { font-size: 0.72rem; }

    /* Articles */
    .articles-section { padding: 70px 4%; }

    /* CTA */
    .cta-section { padding: 70px 5%; }
    .cta-inner { flex-direction: column-reverse; gap: 40px; justify-content: flex-start; }
    .cta-info { flex: none; width: 100%; padding: 56px 40px; }
    .cta-church-logo { width: 280px; margin-bottom: 32px; }
    .cta-info-credit { font-size: 1.8rem; }
    .cta-info-line { font-size: 1.4rem; }
    .cta-main-text { font-size: 1.9rem; margin-bottom: 40px; }
    .cta-content { width: 100%; }
    .cta-btn { padding: 18px 30px; font-size: 1.1rem; }

    /* Article modal */
    .modal-content { padding: 45px 22px; margin: 0; height: 100dvh; border-radius: 0; max-height: 100dvh; }
    #modal-title { font-size: 1.7rem; }
    #modal-body { font-size: 1.1rem; line-height: 1.85; }

    /* Video modal */
    .video-modal-content { padding: 40px 18px 28px; width: 96%; }
    #video-modal-title { font-size: 1.25rem; }
    .video-modal-player { max-height: 82vh; }
    .fullscreen-btn, .exit-fullscreen-btn { display: none !important; }
    .yt-seek-wrap { bottom: 8px; left: 6px; right: 6px; }
    .yt-seek-wrap input[type="range"] { height: 6px; }
    .yt-seek-wrap input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
    .yt-seek-wrap input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
    .fullscreen-btn { bottom: 48px; right: 10px; }
    .exit-fullscreen-btn { bottom: 48px; right: 10px; }
}

/* ==============================
   RESPONSIVE – SMALL PHONE (≤ 480px)
   ============================== */
@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 10vh 5% 40px; }
    .hero h1 { font-size: 2.2rem; letter-spacing: 0.5px; line-height: 1.25; }
    .hero-subtitle { font-size: 1rem; }
    .main-logo { width: 200px; }

    /* Section titles */
    .section-title { font-size: 1.6rem; margin-bottom: 30px; }
    .section-title::after { width: 70px; height: 3px; }

    /* Video section */
    .video-section { padding: 40px 0 30px; }
    .main-btn-title { font-size: 1.1rem; padding: 5px 10px; }
    .video-cards-grid { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
    .video-card-overlay span { font-size: 0.95rem; }
    .tree-sub-btn { min-height: 70px; padding: 12px 14px; gap: 10px; }
    .video-preview-img { width: 80px; height: 48px; }
    .sub-btn-title { font-size: 0.95rem; }

    /* FAQ */
    .faq-section { padding: 55px 3%; }
    .faq-question { padding: 18px 15px; font-size: 1rem; min-height: 60px; gap: 10px; }
    .faq-content { padding: 14px 15px 24px; font-size: 0.95rem; line-height: 1.75; }
    .faq-icon { font-size: 1rem; }

    /* Prophecy */
    .prophecy-section { padding: 55px 2%; }
    .card-front h3 { font-size: 1.35rem; text-align: center; }
    .card-back { padding: 20px; }
    .bible-text { font-size: 1rem; }
    .scripture-segment, .info-segment, .fulfillment-segment { padding: 12px; margin-bottom: 10px; }
    .label { font-size: 0.85rem; }

    /* Articles */
    .articles-section { padding: 55px 3%; }
    .articles-grid { gap: 10px !important; }
    .article-card { padding: 0 !important; border-radius: 14px !important; }
    .article-card h1, .article-card h3 { font-size: 0.75rem !important; padding: 7px 8px !important; }

    /* CTA */
    .cta-section { padding: 60px 5%; }
    .cta-info-line { font-size: 0.85rem; }
    .cta-main-text { font-size: 1.45rem; margin-bottom: 30px; line-height: 1.6; }
    .cta-btn { padding: 16px 20px; font-size: 1rem; border-radius: 12px; }
    .cta-options { max-width: 100%; }
    .contact-form input { padding: 15px; font-size: 1rem; }

    /* Article modal */
    .modal-content { padding: 50px 15px 25px !important; }
    #modal-title { font-size: 1.4rem; }
    #modal-body { font-size: 1rem; line-height: 1.75; }
    #modal-body h3 { font-size: 1.15rem; }
    #modal-body blockquote { padding: 12px 14px; font-size: 0.95rem; }

    /* Video modal */
    .video-modal-content { padding: 35px 8px 16px; width: 100%; border-radius: 0; margin: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
    #video-modal-title { font-size: 1rem; margin-bottom: 10px; padding: 0 6px; }
    .video-modal-player { max-width: 100%; max-height: 84vh; }
    .close-video-modal { font-size: 28px; top: 10px; left: 14px; }
}

/* ==============================
   FINAL MOBILE POLISH
   ============================== */
@media (max-width: 768px) {

    /* === VIDEO TOPIC BUTTONS: image fills card, title strip pinned below === */
    .video-tree-grid { gap: 6px !important; }
    .tree-main-btn {
        padding-bottom: 40px !important;
        overflow: hidden !important;
        border-radius: 14px !important;
        aspect-ratio: 3 / 2 !important;
        height: auto !important;
    }
    /* image + gradient fill the card above the title strip */
    .main-btn-content {
        position: absolute !important;
        inset: 0 0 40px 0 !important;
    }
    /* title strip is a direct child of the button — positioned below the image */
    .main-btn-title {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 8px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: var(--primary-green) !important;
        background: white !important;
        border-radius: 0 !important;
        text-align: center !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    /* === VIDEO SUB-CARDS: text below image, no overlap === */
    .video-card { padding-bottom: 44px !important; }
    .video-card-img { inset: 0 0 44px 0 !important; }
    .video-card-overlay {
        top: auto !important;
        bottom: 0 !important;
        height: 44px !important;
        background: white !important;
        padding: 0 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .video-card-overlay span {
        color: var(--primary-green) !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-shadow: none !important;
        text-align: center !important;
    }

    /* === ARTICLE MODAL: full-width, no gap === */
    .modal-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 55px 20px 30px !important;
        border-radius: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    /* === PROPHECY CARDS: single column, fully readable === */
    .prophecy-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .prophecy-card { height: auto !important; aspect-ratio: 3 / 4 !important; }
    .card-front { justify-content: flex-end !important; padding-bottom: 32px !important; align-items: center !important; }
    .card-front h3 { font-size: 1.6rem !important; margin-bottom: 6px !important; }
    .tap-hint {
        margin-top: 10px !important;
        color: var(--gold) !important;
        font-size: 0.88rem !important;
        background: rgba(197, 160, 89, 0.1) !important;
        border: 1px solid rgba(197, 160, 89, 0.35) !important;
        border-radius: 20px !important;
        padding: 5px 16px !important;
    }
    .card-back { padding: 24px !important; font-size: 0.95rem !important; }
    .bible-text { font-size: 1rem !important; }
    .label { font-size: 0.88rem !important; }
    .scripture-segment, .info-segment, .fulfillment-segment {
        padding: 12px !important;
        margin-bottom: 10px !important;
    }

    /* === ARTICLE CARDS: PC-style – flush image, title below, polished === */
    .articles-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .article-card {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        gap: 0 !important;
        aspect-ratio: auto !important;
        min-height: auto !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
    }
    .article-img {
        display: block !important;
        width: 100% !important;
        min-width: unset !important;
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        border-radius: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        flex-shrink: 0 !important;
    }
    .article-card h1, .article-card h3 {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--primary-green) !important;
        text-align: center !important;
        order: 1 !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        line-height: 1.4 !important;
    }

    /* === ARTICLE ORPHAN FIX: last visible card goes full-width when alone in its row === */
    .article-card[data-id="3"] {
        grid-column: 1 / -1 !important;
    }
    .article-card[data-id="3"] .article-img {
        aspect-ratio: 16 / 7 !important;
    }

    /* === CTA BUTTONS: thumb-friendly on mobile === */
    .cta-btn {
        padding: 20px 30px !important;
        font-size: 1.1rem !important;
        min-height: 64px !important;
        border-radius: 14px !important;
    }
    .cta-options { gap: 14px !important; }
    .cta-content { width: 100%; }

    /* === SECTION BREATHING ROOM === */
    .video-section { padding-top: 70px !important; }
    .prophecy-section { padding-top: 70px !important; }
    .articles-section { padding-top: 70px !important; }
    .faq-section { padding-top: 70px !important; }
}

/* ======================================================
   PHONE COMPATIBILITY – PROPHECY SWIPE CAROUSEL
   Shows 3 cards at once, horizontal scroll with snap
   ====================================================== */
@media (max-width: 768px) {

    /* --- Hero: pull logo into normal flow so it sits ABOVE the text --- */
    .main-logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 220px !important;
        margin: 0 auto 20px !important;
    }
    .hero {
        padding-top: 40px !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* --- Prophecy: horizontal swipe carousel --- */
    .prophecy-section {
        padding: 60px 0 20px !important;
    }
    .prophecy-section .section-title {
        padding: 0 4% !important;
    }
    .prophecy-grid {
        /* override all earlier grid rules */
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: unset !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 6px !important;
        padding: 10px 3% 18px !important;
        max-width: 100% !important;
        scrollbar-width: none !important;
        /* allow cards to sit flush against container edge */
        margin: 0 !important;
    }
    .prophecy-grid::-webkit-scrollbar { display: none !important; }

    /* Each card: exactly 1/3 of the container width (% not vw so desktop preview works) */
    .prophecy-card {
        flex: 0 0 calc(33.33% - 6px) !important;
        min-width: 88px !important;
        max-width: 160px !important;
        scroll-snap-align: start !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        perspective: 600px !important;
        /* disable desktop hover lift inside scroll */
        transform: none !important;
    }
    .prophecy-card:hover { transform: none !important; }

    /* Add a right-margin to the last card so it can fully snap into view */
    .prophecy-card:last-child { margin-inline-start: 0 !important; }

    /* CARD FRONT — small but clean */
    .card-front {
        padding: 6px 5px 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .card-front::before {
        top: 3px !important; left: 3px !important;
        right: 3px !important; bottom: 3px !important;
    }
    .card-front h3 {
        font-size: 0.62rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }
    .tap-hint {
        font-size: 0.5rem !important;
        margin-top: 4px !important;
        padding: 2px 6px !important;
        border-radius: 10px !important;
    }

    /* CARD BACK — allow internal scroll for long content */
    .card-back {
        padding: 5px !important;
        gap: 3px !important;
        overflow: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .scripture-segment,
    .info-segment,
    .fulfillment-segment {
        padding: 4px !important;
        margin-bottom: 0 !important;
        border-right-width: 2px !important;
    }
    .bible-text { font-size: 0.52rem !important; line-height: 1.25 !important; }
    .info-segment p { font-size: 0.5rem !important; line-height: 1.25 !important; }
    .label { font-size: 0.45rem !important; margin-bottom: 1px !important; }

    /* --- Swipe hint --- */
    .prophecy-swipe-hint {
        display: block !important;
        text-align: center !important;
        color: var(--gold) !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        padding: 12px 4% 6px !important;
        letter-spacing: 0.04em !important;
        animation: none !important;
    }

    /* Hide tap hint on mobile */
    .tap-hint { display: none !important; }

    /* --- Articles: tighten up text, no truncation --- */
    .articles-section { padding: 60px 3% 40px !important; }
    .article-card h1 {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        padding: 8px 8px !important;
    }

    /* --- FAQ: 2-column layout like desktop --- */
    .faq-section { padding: 60px 4% 40px !important; }
    .faq-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .faq-question {
        font-size: 0.8rem !important;
        padding: 12px 10px !important;
        min-height: 44px !important;
    }
    .faq-content {
        font-size: 0.78rem !important;
        padding: 10px 10px 16px !important;
        line-height: 1.6 !important;
    }
    .faq-icon { font-size: 0.8rem !important; }

    /* --- Video section: image stops ABOVE the title strip --- */
    .coming-soon-column { display: none !important; }

    /* Main topic buttons — flex column: image on top, title strip below */
    .tree-main-btn {
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 0 !important;
        height: auto !important;
        aspect-ratio: unset !important;
        overflow: visible !important;
    }
    .main-btn-content {
        position: static !important;
        top: auto !important; right: auto !important;
        bottom: auto !important; left: auto !important;
        width: 100% !important;
    }
    .topic-img {
        position: static !important;
        top: auto !important; right: auto !important;
        bottom: auto !important; left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .main-btn-title {
        position: static !important;
        bottom: auto !important; left: auto !important; right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;
        border-radius: 0 !important;
        padding: 8px 6px !important;
        font-weight: 700 !important;
        color: var(--primary-green) !important;
        text-align: center !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }
    .main-btn-series { display: block !important; font-size: 0.8rem !important; }
    .main-btn-subtitle { display: block !important; font-size: 0.6rem !important; opacity: 0.8 !important; }

    /* Video sub-cards — flex column: image on top, white title strip below */
    .video-card {
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 0 !important;
        height: auto !important;
        aspect-ratio: unset !important;
        overflow: visible !important;
    }
    .video-card-img {
        position: static !important;
        top: auto !important; right: auto !important;
        bottom: auto !important; left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .video-card-overlay {
        position: static !important;
        top: auto !important; bottom: auto !important;
        left: auto !important; right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        background: white !important;
        padding: 6px 6px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    .video-card-overlay span {
        color: var(--primary-green) !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-shadow: none !important;
        text-align: center !important;
        background: none !important;
        padding: 0 !important;
    }

    /* --- CTA section: 65% buttons / 35% info --- */
    .cta-section { padding: 36px 4% 32px !important; }
    .cta-main-text {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
    }
    .cta-inner {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    /* info column: logo + all details, compact */
    .cta-info {
        flex: 0 0 34% !important;
        padding: 6px 4px !important;
    }
    .cta-info-details { display: flex !important; }
    .cta-church-logo { width: 90px !important; margin-bottom: 6px !important; }
    .cta-info-credit { font-size: 0.65rem !important; line-height: 1.3 !important; }
    .cta-info-divider { margin: 5px auto !important; width: 36px !important; height: 2px !important; }
    .cta-info-line { font-size: 0.52rem !important; line-height: 1.5 !important; }
    /* content column: 65% — enough room so button text fits one line */
    .cta-content {
        flex: 1 1 0 !important;
        max-width: unset !important;
        width: auto !important;
    }
    .cta-btn {
        padding: 6px 6px !important;
        font-size: 0.6rem !important;
        min-height: 0 !important;
        border-radius: 7px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .cta-options { gap: 5px !important; }
    /* Form: compact, stays within the 65% column */
    .contact-form.visible { margin-top: 12px !important; }
    .contact-form input {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
        border-radius: 7px !important;
    }
    .submit-btn {
        padding: 10px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
}

/* Hide swipe hint on desktop */
@media (min-width: 769px) {
    .prophecy-swipe-hint { display: none; }
}

/* PROPHECY CAROUSEL ANIMATIONS */
@keyframes prophecyCardOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-12px) scale(0.96); }
}
@keyframes prophecyCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.prophecy-card.page-out {
    animation: prophecyCardOut 0.22s ease forwards;
    pointer-events: none;
}
.prophecy-card.page-in {
    animation: prophecyCardIn 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

/* PROPHECY CAROUSEL NAV */
.prophecy-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 32px;
}
.prophecy-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--primary-green);
    font-size: 1.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}
.prophecy-arrow:hover:not(:disabled) {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}
.prophecy-arrow:disabled { opacity: 0.25; cursor: default; }
.prophecy-page-counter {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    min-width: 52px;
    text-align: center;
}
@media (max-width: 768px) { .prophecy-nav { display: none; } }

/* PROPHECY CARD COLOR VARIANTS */
.prophecy-card:nth-child(4n+1) .card-front { border-color: rgba(135, 65, 78, 0.38); }
.prophecy-card:nth-child(4n+2) .card-front { border-color: rgba(135, 65, 78, 0.38); }
.prophecy-card:nth-child(4n+3) .card-front { border-color: rgba(135, 65, 78, 0.38); }
.prophecy-card:nth-child(4n)   .card-front { border-color: rgba(135, 65, 78, 0.38); }
.prophecy-card:nth-child(4n+1) .card-front::before { border-color: rgba(135, 65, 78, 0.55); }
.prophecy-card:nth-child(4n+2) .card-front::before { border-color: rgba(135, 65, 78, 0.55); }
.prophecy-card:nth-child(4n+3) .card-front::before { border-color: rgba(135, 65, 78, 0.55); }
.prophecy-card:nth-child(4n)   .card-front::before { border-color: rgba(135, 65, 78, 0.55); }

/* Extra-small phones (≤ 380px) */
@media (max-width: 380px) {
    .hero { padding-top: 30px !important; }
    .main-logo { width: 180px !important; }
    .prophecy-card {
        flex: 0 0 calc(33.33% - 5px) !important;
        min-width: 80px !important;
    }
    .section-title { font-size: 1.4rem !important; }
}