/* ============================================
   KOLLEL OHR HATORAH — Premium Stylesheet
   ============================================ */

:root {
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --gold-dark: #9A7A2E;
    --navy: #0D1B2A;
    --navy-mid: #1a2d42;
    --navy-light: #243b55;
    --blue-bg: #0e2240;
    --blue-mid: #112a50;
    --cream: #F8F3E8;
    --cream-dark: #EDE4D0;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.3);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(201, 168, 76, 0.2);
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title em {
    font-style: italic;
    color: var(--gold-dark);
}

.section-title.light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.75);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* ============================================
   NAVBAR
   ============================================ */
/* BS"D Header - Essential */
.bsd {
    position: absolute !important;
    top: 8px !important;
    right: 20px !important;
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    z-index: 2000 !important;
    pointer-events: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

@media (max-width: 768px) {
    .bsd {
        top: 4px !important;
        right: 15px !important;
        font-size: 0.8rem !important;
    }
}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.6));
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 168, 76, 0.3);
}

.logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-motto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(201, 168, 76, 0.35);
    padding-left: 12px;
    margin-left: 2px;
}

.motto-hebrew {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    direction: rtl;
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
    white-space: nowrap;
}

.motto-source {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 0.72rem;
    color: rgba(201, 168, 76, 0.6);
    direction: rtl;
    margin-top: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-hebrew {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1;
    direction: rtl;
}

.logo-english {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.nav-donate-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 100px !important;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.5) 50%, rgba(13, 27, 42, 0.9) 100%);
    z-index: 1;
}

.hero-books {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 40px;
    opacity: 0.25;
}

.book {
    border-radius: 3px 3px 0 0;
    flex-shrink: 0;
}

.b1 {
    width: 28px;
    height: 140px;
    background: linear-gradient(180deg, #8B4513, #5C2D0A);
}

.b2 {
    width: 22px;
    height: 160px;
    background: linear-gradient(180deg, #1a3a5c, #0d1f33);
}

.b3 {
    width: 35px;
    height: 120px;
    background: linear-gradient(180deg, #4a2060, #2a1040);
}

.b4 {
    width: 18px;
    height: 175px;
    background: linear-gradient(180deg, #8B6914, #5C4510);
}

.b5 {
    width: 30px;
    height: 145px;
    background: linear-gradient(180deg, #1a5c3a, #0d3320);
}

.b6 {
    width: 25px;
    height: 130px;
    background: linear-gradient(180deg, #5c1a1a, #331010);
}

.b7 {
    width: 40px;
    height: 165px;
    background: linear-gradient(180deg, #2a1a5c, #150d33);
}

.hero-candles {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    align-items: flex-end;
}

.candle {
    position: relative;
    width: 12px;
    border-radius: 3px;
    background: linear-gradient(180deg, #f5e6c8, #d4b896);
}

.c1 {
    height: 80px;
}

.c2 {
    height: 100px;
}

.c3 {
    height: 120px;
}

.c4 {
    height: 95px;
}

.c5 {
    height: 75px;
}

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 20px;
    background: radial-gradient(ellipse at bottom, #FDD835, #F4A623, #FF6B00);
    border-radius: 50% 50% 30% 30%;
    animation: flicker 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 15px rgba(244, 166, 35, 0.8), 0 0 30px rgba(244, 166, 35, 0.4);
}

.c1 .flame {
    animation-delay: 0.1s;
}

.c2 .flame {
    animation-delay: 0.4s;
}

.c3 .flame {
    animation-delay: 0s;
}

.c4 .flame {
    animation-delay: 0.7s;
}

.c5 .flame {
    animation-delay: 0.3s;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scaleX(1) scaleY(1);
        opacity: 0.9;
    }

    25% {
        transform: translateX(-52%) scaleX(0.9) scaleY(1.05);
    }

    50% {
        transform: translateX(-48%) scaleX(1.1) scaleY(0.95);
        opacity: 1;
    }

    75% {
        transform: translateX(-51%) scaleX(0.95) scaleY(1.08);
    }

    100% {
        transform: translateX(-50%) scaleX(1.05) scaleY(0.98);
        opacity: 0.85;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.3) 0%, rgba(13, 27, 42, 0.1) 50%, rgba(13, 27, 42, 0.7) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.hero-hebrew-title {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.4);
    direction: rtl;
    margin-bottom: 8px;
}

.hero-subtitle-line {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.hero-subtitle-line.accent {
    font-style: italic;
    color: var(--gold-light);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(201, 168, 76, 0.5);
}

.btn-icon {
    font-size: 0.9rem;
    animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.btn-arrow {
    animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    padding: 24px 48px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(201, 168, 76, 0.3);
    margin: 0 24px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ============================================
   MARQUEE BANNER
   ============================================ */

.marquee-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.about-art {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-menorah {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.art-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.about-quote-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    max-width: 340px;
}

.quote-text {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.3rem;
    color: var(--gold);
    direction: rtl;
    margin-bottom: 8px;
}

.quote-translation {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-bottom: 8px;
}

.quote-source {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pillar h4 {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   LEARNING SHOWCASE SECTION
   ============================================ */

.learning-showcase {
    padding: 100px 0;
    background: var(--white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-card {
    position: relative;
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    overflow: hidden;
    cursor: default;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.showcase-card:hover::before {
    transform: scaleX(1);
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    border-color: rgba(201, 168, 76, 0.4);
}

.showcase-card.featured-showcase {
    background: linear-gradient(145deg, var(--navy), var(--navy-mid));
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.showcase-card.featured-showcase h3 {
    color: var(--gold-light);
}

.showcase-card.featured-showcase p {
    color: rgba(255, 255, 255, 0.75);
}

.showcase-card.featured-showcase .showcase-tag {
    color: rgba(255, 255, 255, 0.5);
}

.showcase-card.featured-showcase .showcase-label {
    color: var(--gold);
}

.showcase-card-inner {
    position: relative;
    z-index: 1;
}

.showcase-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
    pointer-events: none;
}

.showcase-card:hover .showcase-glow {
    transform: scale(1.5);
    opacity: 1.5;
}

.showcase-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
}

.showcase-label {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.1rem;
    color: var(--gold-dark);
    direction: rtl;
    margin-bottom: 6px;
    font-weight: 700;
}

.showcase-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.showcase-card p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

.showcase-tag {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 600;
}

/* ============================================
   TALMIDIM GALLERY SECTION
   ============================================ */

.talmidim {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--blue-bg);
}

/* Faded building background */
/* Faded building background */
.talmidim-building-bg {
    position: absolute;
    inset: 0;
    background-image: url('buidling.png');
    background-size: cover;
    background-position: -400px 200px;
    opacity: 0.8;
    mix-blend-mode: lighten;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
}

.talmidim-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(14, 34, 64, 0.5) 0%, transparent 70%),
        linear-gradient(180deg,
            rgba(14, 34, 64, 0.85) 0%,
            rgba(14, 34, 64, 0.6) 30%,
            rgba(14, 34, 64, 0.6) 70%,
            rgba(14, 34, 64, 0.9) 100%);
}

.talmidim-inner {
    position: relative;
    z-index: 2;
}

/* Talmidim grid */
.talmidim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.talmid-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.talmid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.talmid-card.talmid-featured {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15);
}

.talmid-photo {
    height: 300px;
    overflow: hidden;
    position: relative;
}

/* Removed text gradient overlay */
.talmid-photo::after {
    display: none;
}

.talmid-photo-inner {
    width: 100%;
    height: 100%;
}

.talmid-photo-inner svg {
    display: none;
}

.talmid-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.talmid-info {
    padding: 20px;
}

.talmid-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.talmid-info p {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.talmid-quote {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.5;
    border-left: 2px solid rgba(201, 168, 76, 0.4);
    padding-left: 10px;
}

/* Kollel stats bar */
.kollel-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 20px;
    padding: 28px 48px;
    backdrop-filter: blur(12px);
    gap: 0;
}

.ks-item {
    text-align: center;
    flex: 1;
}

.ks-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.ks-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.ks-divider {
    width: 1px;
    height: 50px;
    background: rgba(201, 168, 76, 0.25);
    margin: 0 24px;
}

/* ============================================
   DONATION SECTION — Zchus Style
   ============================================ */

.donate {
    padding: 100px 0;
    background: var(--white);
}

.zchus-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    /* Narrower form column (right side) */
    gap: 60px;
    align-items: start;
}

/* Zchus Cards */
.zchus-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.zchus-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.zchus-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.zchus-card {
    flex: 0 0 55%;
    background: linear-gradient(145deg, #0e1e35, #162a45);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.zchus-card:hover {
    background: linear-gradient(145deg, #122540, #1a3255);
    border-color: var(--gold);
}

.zchus-ornament {
    width: 100%;
    display: flex;
    justify-content: center;
}

.zchus-ornament svg {
    width: 100px;
}

.zchus-content {
    text-align: center;
    padding: 4px 0;
}

.zchus-hebrew {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    direction: rtl;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.zchus-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.zchus-english {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.zchus-photo {
    flex: 1;
    overflow: hidden;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.zchus-photo-scene {
    width: 100%;
    height: 100%;
}

.zchus-photo-scene svg {
    display: none;
}

.zchus-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zchus-photo-scene svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Donation Form */
.donate-form-card {
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 24px;
    padding: 32px 24px;
    /* Tighter padding */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.form-header p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.amount-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 12px 8px;
    border: 2px solid rgba(201, 168, 76, 0.3);
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.custom-amount {
    margin-bottom: 16px;
}

.custom-amount label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.currency-symbol {
    padding: 0 12px;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 12px 12px 0;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--navy);
    background: transparent;
}

.frequency-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.freq-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-mid);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.freq-btn.active {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--gold);
}

.donor-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.donor-fields input {
    padding: 14px 16px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.donor-fields input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.donate-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

.donate-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(201, 168, 76, 0.5);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.tax-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--navy);
}

.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-hebrew {
    display: block;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.1rem;
    color: var(--gold);
    direction: rtl;
}

.footer-logo-english {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-newsletter p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.newsletter-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.footer-tax {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
}

.footer-bottom a {
    color: rgba(201, 168, 76, 0.6);
    text-decoration: none;
}

.footer-verse {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 0.9rem !important;
    color: rgba(201, 168, 76, 0.5) !important;
    font-style: italic;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--cream);
    color: var(--navy);
}

.modal-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 16px;
    animation: spin-slow 4s linear infinite;
}

.modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 8px;
}

.modal-sub {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .talmidim-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .zchus-section {
        grid-template-columns: 1fr;
    }

    .donate-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.open a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
    }

    .logo-motto {
        display: none;
    }

    .logo-emblem {
        width: 52px;
        height: 52px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .talmidim-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .hero-stat-divider {
        width: 60px;
        height: 1px;
        margin: 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .kollel-stats-bar {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .ks-divider {
        width: 60px;
        height: 1px;
        margin: 0;
    }

    .zchus-row {
        flex-direction: column;
    }

    .zchus-card {
        border-radius: var(--radius) var(--radius) 0 0;
        border-right: 1px solid rgba(201, 168, 76, 0.35);
        border-bottom: none;
        flex: none;
    }

    .zchus-photo {
        border-radius: 0 0 var(--radius) var(--radius);
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .amount-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .talmidim-building-bg {
        background-position: center bottom;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Make photos interactive */
.talmid-photo {
    cursor: pointer;
}

.talmid-photo::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    background: rgba(13, 27, 42, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--gold);
    transition: transform 0.3s ease;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.talmid-photo:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Hide original donate button in favor of PayPal */
#donateSubmit {
    display: none !important;
}

#paypal-container-Q2D7S6SXMYVLY {
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Hide manual inputs that are not needed (Donor info handled by PayPal) */
.frequency-selector,
.donor-fields,
.custom-amount {
    display: none !important;
}

/* Ensure amount selector is visible and clean */
.amount-selector {
    display: grid !important;
}

#checkout-button {
    display: none;
}

#checkout-button {
    display: none;
}

#zoid-paypal-buttons-uid_61d1811fb5_mdq6mdu6mdi {
    display: none;
}