/* ============================================
   KOLEL PAGE - PREMIUM STYLES
   ============================================ */

/* ── Base Layout ──────────────────────────── */
.kolel-page-body {
    background: var(--blue-deep);
    color: var(--text-light);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ── Sepia / Pergamino (Light Mode) ──────── */
body.light-mode .kolel-page-body {
    background: transparent;
    color: #433422;
}

body.light-mode .kolel-hero {
    background: rgba(253, 248, 230, 0.8);
}

body.light-mode .kolel-hero-overlay {
    background: linear-gradient(to bottom, rgba(253, 248, 230, 0) 0%, rgba(253, 248, 230, 0.8) 100%);
}

body.light-mode .section-kolel-intro .kolel-large-text,
body.light-mode .section-pacto .pacto-text p,
body.light-mode .section-voices .section-subtitle,
body.light-mode .section-explorer .section-subtitle,
body.light-mode .section-kolel-cta p {
    color: #5d4a36;
}

body.light-mode .kolel-explorer-card {
    background: #fff9f0;
    border-color: #dcd0bc;
    box-shadow: 0 10px 25px rgba(67, 52, 34, 0.08);
}

body.light-mode .kolel-explorer-card p {
    color: #5d4a36;
}

body.light-mode .kolel-explorer-card h4 {
    color: #8a6d3b;
}

body.light-mode .voice-card {
    background: #fff9f0;
    border-color: #dcd0bc;
}

body.light-mode .voice-quote {
    color: #433422;
}

body.light-mode .author-role {
    color: #8a7a68;
}

body.light-mode .pacto-text h3 {
    color: #8a6d3b;
}

body.light-mode .pacto-feature-item span {
    color: #433422;
}

body.light-mode .pacto-image-wrapper {
    box-shadow: 0 25px 50px rgba(67, 52, 34, 0.15);
}

body.light-mode .section-explorer {
    background: transparent !important;
}

body.light-mode .section-voices {
    background: transparent !important;
}

body.light-mode .rosh-kolel-page-inner {
    background: #fff9f0;
    border-color: #dcd0bc;
}

body.light-mode .rosh-page-content h2 {
    background: linear-gradient(135deg, #8a6d3b 0%, #b08d48 40%, #7a581a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .rosh-page-content h3 {
    color: #8a7a68;
}

body.light-mode .rosh-page-content p {
    color: #5d4a36;
}

/* ── Hero Section ────────────────────────── */
.kolel-hero {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #050a18;
}

.kolel-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../kolel.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: blur(2px) brightness(0.6);
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.kolel-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(5, 10, 24, 0.3) 0%, 
        rgba(10, 15, 30, 0.6) 50%, 
        var(--blue-deep) 100%);
}

.kolel-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.kolel-hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.5);
    line-height: 1.15;
}

.kolel-hero-content .section-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.light-mode .kolel-hero-content .section-subtitle {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 15px rgba(0,0,0,0.7);
}

/* ── Intro Section ───────────────────────── */
.section-kolel-intro {
    position: relative;
}

.kolel-large-text {
    color: var(--white-muted);
}

.kolel-stats-grid .kolel-feature {
    background: linear-gradient(145deg, rgba(26, 39, 68, 0.5), rgba(10, 15, 30, 0.6));
    border: 1px solid rgba(201, 151, 58, 0.15);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.light-mode .kolel-stats-grid .kolel-feature {
    background: #fff9f0;
    border-color: #dcd0bc;
}

.kolel-stats-grid .kolel-feature:hover {
    transform: translateY(-8px);
    border-color: var(--gold-main);
    box-shadow: 0 15px 40px rgba(201, 151, 58, 0.15);
}

.kolel-stats-grid .kolel-feature h4 {
    font-family: 'Cinzel', serif;
}

/* ── Pacto Isakar-Zevulun ────────────────── */
.section-pacto {
    padding: 100px 0;
    position: relative;
}

.pacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pacto-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 40px rgba(201, 151, 58, 0.1);
    border: 2px solid rgba(201, 151, 58, 0.2);
}

.pacto-img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.pacto-image-wrapper:hover .pacto-img {
    transform: scale(1.05);
}

.pacto-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-gradient);
    color: var(--blue-deep);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

[dir="rtl"] .pacto-badge {
    right: auto;
    left: 20px;
}

.pacto-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pacto-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 35px;
    color: var(--white-muted);
    font-family: 'Lora', serif;
}

.pacto-text strong {
    color: var(--gold-main);
    -webkit-text-fill-color: var(--gold-main);
}

.pacto-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pacto-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(201, 151, 58, 0.06);
    border: 1px solid rgba(201, 151, 58, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.pacto-feature-item:hover {
    background: rgba(201, 151, 58, 0.12);
    border-color: rgba(201, 151, 58, 0.3);
    transform: translateX(5px);
}

[dir="rtl"] .pacto-feature-item:hover {
    transform: translateX(-5px);
}

.pacto-feature-item svg,
.pacto-feature-item i {
    width: 24px;
    height: 24px;
    color: var(--gold-main);
    flex-shrink: 0;
}

.pacto-feature-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Lora', serif;
}

body.light-mode .pacto-feature-item {
    background: rgba(176, 141, 72, 0.08);
    border-color: rgba(176, 141, 72, 0.2);
}

/* ── Explorer Grid ───────────────────────── */
.section-explorer {
    position: relative;
}

/* ── Rosh Kolel Section ──────────────────── */
/* ── Rosh Kolel Premium Card ──────────────────── */
.rosh-premium-card {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 0;
    align-items: center;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 151, 58, 0.25);
    border-radius: 40px;
    overflow: visible; /* Para que la imagen pueda sobresalir si queremos */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(201, 151, 58, 0.05);
    padding: 20px;
    margin: 0 auto 40px auto;
    max-width: 1200px;
    position: relative;
}

.rosh-premium-img-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(201, 151, 58, 0.2);
}

.rosh-premium-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rosh-img-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(10, 15, 30, 0.4) 100%);
    pointer-events: none;
}

.rosh-premium-card:hover .rosh-premium-img-wrap img {
    transform: scale(1.05);
}

.rosh-premium-content {
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rosh-badge-wrap {
    margin-bottom: 25px;
}

.rosh-badge {
    background: transparent;
    border: 1px solid var(--gold-main);
    color: var(--gold-light);
    padding: 6px 24px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(201, 151, 58, 0.1);
}

.rosh-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rosh-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.rosh-ornament-diamond {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 35px;
}

.diamond-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 151, 58, 0.5), transparent);
}

.diamond-icon {
    color: var(--gold-main);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(201, 151, 58, 0.5));
}

.rosh-description {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

body.light-mode .rosh-premium-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #dcd0bc;
}

body.light-mode .rosh-name {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .rosh-subtitle { color: #8a7a68; }
body.light-mode .rosh-description { color: #433422; }

@media (max-width: 1024px) {
    .rosh-premium-card { grid-template-columns: 1fr; padding: 40px; text-align: center; }
    .rosh-premium-img-wrap { height: 400px; width: 100%; max-width: 350px; margin: 0 auto 40px; }
    .rosh-premium-content { padding: 0; }
    .rosh-name { font-size: 2.2rem; }
}

/* ── History Stats Grid ──────────────────── */
.kolel-history-stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 50px;
    max-width: 900px; /* Reduced max-width for 3 items */
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(245, 210, 112, 0.1);
    border-bottom: 1px solid rgba(245, 210, 112, 0.1);
}

.history-stat-card {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px;
    transition: transform 0.4s ease;
}

.history-stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(245, 210, 112, 0.3);
}

.history-stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-card-val {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    color: #c9973a;
    background: linear-gradient(180deg, #f5d270 0%, #c9973a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.stat-card-lbl {
    font-family: 'Assistant', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
}

body.light-mode .stat-card-val {
    background: linear-gradient(180deg, #b08d48 0%, #7a581a 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-mode .stat-card-lbl {
    color: #8a7a68;
}

@media (max-width: 992px) {
    .kolel-history-stats-grid {
        flex-wrap: wrap;
    }
    .history-stat-card {
        flex: 0 0 50%;
    }
    .history-stat-card:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .history-stat-card {
        flex: 0 0 100%;
    }
    .history-stat-card::after {
        display: none !important;
    }
}


/* ── CTA Donate Section ──────────────────── */
.section-kolel-cta {
    background: linear-gradient(135deg, rgba(10, 15, 30, 1) 0%, rgba(26, 39, 68, 0.8) 50%, rgba(10, 15, 30, 1) 100%);
    position: relative;
}

.section-kolel-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 151, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

body.light-mode .section-kolel-cta {
    background: transparent;
}

body.light-mode .section-kolel-cta::before {
    background: transparent;
}

body.light-mode .section-kolel-cta p {
    color: #5d4a36;
}

.section-kolel-cta h2 {
    font-family: 'Cinzel Decorative', serif;
}

.section-kolel-cta p {
    color: var(--white-muted);
}

/* ── Portal Button (Homepage) ────────────── */
.kolel-header-actions {
    margin-top: 10px;
    margin-bottom: 5px;
}

.btn-portal-kolel {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(201, 151, 58, 0.08);
    border: 1px solid rgba(201, 151, 58, 0.3);
    border-radius: 30px;
    color: var(--gold-main);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.03em;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-portal-kolel:hover {
    background: var(--gold-gradient);
    color: var(--blue-deep);
    box-shadow: 0 8px 25px rgba(201, 151, 58, 0.35);
    transform: translateY(-2px);
}

/* ── Footer placeholder fix ──────────────── */
.kolel-page-footer .site-footer {
    position: relative;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 992px) {
    .pacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rosh-kolel-page-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .rosh-page-img-wrap {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .kolel-hero {
        height: 55vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .kolel-hero {
        height: 50vh;
        min-height: 350px;
    }

    .kolel-hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .section-kolel-intro,
    .section-pacto,
    .section-explorer,
    .section-rosh,
    .section-voices {
        padding: 60px 0 !important;
    }

    .section-kolel-cta {
        padding: 80px 0 !important;
    }

    .section-kolel-cta h2 {
        font-size: 2rem !important;
    }
}

/* ── Shabat Support Section ──────────────────── */
.section-shabat-support .pacto-img {
    filter: sepia(0.2) contrast(1.1);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5), 0 0 20px rgba(201, 151, 58, 0.2);
}

.section-shabat-support .pacto-badge {
    box-shadow: 0 0 20px rgba(201, 151, 58, 0.4);
}

/* ── Vibrant Gold Utilities ────────────────── */
/* gold-text-vibrant removed - now using global vibrant_gold.css */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Unification Fixes */
.section-kolel-unified {
    background: linear-gradient(180deg, var(--blue-deep) 0%, #050a18 100%);
    border-bottom: 2px solid rgba(201, 151, 58, 0.05);
}

body.light-mode .section-kolel-unified {
    background: radial-gradient(ellipse at top center, #fdf8e6 0%, #e8d0a0 60%, #c49e5d 100%);
}

body.light-mode .section-kolel-unified .kolel-large-text {
    color: #4a3b2b;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

body.light-mode .section-kolel-unified .section-tag {
    color: #7a581a;
    border-color: rgba(122, 88, 26, 0.4);
}

body.light-mode .section-kolel-unified .section-ornament {
    color: #8a6d3b;
}

body.light-mode .kolel-stats-grid-v2 .kolel-feature-v2 .feature-title-v2,
body.light-mode .kolel-stats-grid-v2 .kolel-feature-v2 .feature-desc-v2 {
    color: #4a3b2b;
}

body.light-mode .kolel-feature-v2 {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(176, 141, 72, 0.2);
}

body.light-mode .kolel-feature-v2:hover {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: rgba(176, 141, 72, 0.5);
    box-shadow: 0 10px 25px rgba(122, 88, 26, 0.15);
}


.section-voices-museum .section-header {
    margin-bottom: 25px !important;
}

.section-voices-museum .section-tag-gold {
    font-family: 'Cinzel', serif;
    color: var(--gold-main);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-voices-museum .gold-text-vibrant {
    font-size: 1.8rem !important;
    letter-spacing: 0.05em;
}

.section-voices-museum .section-subtitle {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.6);
}

.kolel-large-text strong {
    color: var(--gold-main);
    font-weight: 600;
}

/* --- Light Mode Fixes for Museum Sections --- */
body.light-mode .section-voices-museum .section-subtitle {
    color: rgba(67, 52, 34, 0.8) !important;
}

body.light-mode .section-voices-museum .section-tag-gold {
    color: #8a6d3b;
}

body.light-mode .section-kolel-social {
    background: transparent !important;
}

body.light-mode .kolel-history-stats-grid {
    border-color: rgba(176, 141, 72, 0.2);
}

body.light-mode .history-stat-card:not(:last-child)::after {
    background: rgba(176, 141, 72, 0.2);
}

body.light-mode .section-shabat-support p {
    color: #4a3b2b !important;
}

body.light-mode .pacto-feature-item {
    background: rgba(176, 141, 72, 0.05) !important;
}

body.light-mode .pacto-badge {
    box-shadow: 0 5px 15px rgba(122, 88, 26, 0.2);
    color: #4a3b2b !important;
}

body.light-mode .pacto-list li,
body.light-mode .history-stat-label,
body.light-mode .stat-label {
    color: rgba(74, 59, 43, 0.8) !important;
}

body.light-mode .slider-dots .dot { 
    background: rgba(176, 141, 72, 0.4); 
}

body.light-mode .slider-dots .dot.active { 
    background: #8a6d3b; 
}

body.light-mode .slider-btn { 
    background: rgba(255, 255, 255, 0.7); 
    color: #8a6d3b; 
    border-color: rgba(176, 141, 72, 0.3);
}

/* --- Capsule Styles for Unified Social Sections --- */
.kolel-capsule {
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(201, 151, 58, 0.15);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kolel-capsule:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(201, 151, 58, 0.3);
}

body.light-mode .kolel-capsule {
    background: #ffffff;
    border-color: rgba(176, 141, 72, 0.25);
    box-shadow: 0 10px 30px rgba(122, 88, 26, 0.1);
}

body.light-mode .kolel-capsule:hover {
    box-shadow: 0 15px 40px rgba(122, 88, 26, 0.15);
}
