/* ===== GLOBAL RESET & SCROLL SNAP ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
body {
    width: 100%; min-height: 100%;
    font-family: 'Cormorant Garamond', serif;
    background: #0a0502; color: #f5e6c8;
    overflow-x: hidden;
}
.snap-page {
    position: relative; width: 100vw; height: 100vh;
    scroll-snap-align: start; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

/* ===== PROGRESS BAR & PAGE INDICATOR ===== */
.progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(10, 5, 2, 0.3); z-index: 10000;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff8c00, #d4af37);
    width: 0%; transition: width 0.3s ease;
}
.page-indicator {
    position: fixed; top: 15px; left: 30px;
    font-family: 'Playfair Display', serif; font-size: 0.9rem;
    color: #f5e6c8; z-index: 10000;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.1em;
    background: rgba(10, 5, 2, 0.7);
    padding: 8px 15px; border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0a0502; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 1; transition: opacity 1s ease;
}
.loading-screen.loaded { opacity: 0; pointer-events: none; }
.loading-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 6vw, 5rem); color: #f5e6c8;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.4), 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 40px; opacity: 0;
    animation: loadingFadeIn 1s ease 0.5s forwards;
}
.loading-subtitle {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.1rem; color: #e8d4a8; letter-spacing: 0.15em;
    opacity: 0; animation: loadingFadeIn 1s ease 1s forwards;
}
.loading-divider {
    width: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 140, 0, 0.6), transparent);
    margin: 30px 0; animation: loadingDivider 1.5s ease 1.5s forwards;
}
@keyframes loadingFadeIn { to { opacity: 1; } }
@keyframes loadingDivider { to { width: 200px; } }

/* ===== SHADOW BRIDGES ===== */
.shadow-bridge-top, .shadow-bridge-bottom {
    position: absolute; left: 0; width: 100%; height: 180px;
    z-index: 4; pointer-events: none;
}
.shadow-bridge-top {
    top: 0;
    background: linear-gradient(to bottom, #0a0502 0%, transparent 100%);
}
.shadow-bridge-bottom {
    bottom: 0;
    background: linear-gradient(to top, #0a0502 0%, transparent 100%);
}

/* =========================================
   ARCHIVIST TAB STYLES (With Pulse Animation)
   ========================================= */
@keyframes pulseTab {
    0% { transform: translateY(-50%) scale(1); box-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
    50% { transform: translateY(-50%) scale(1.08); box-shadow: 0 0 15px rgba(139, 0, 0, 0.8); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
}
.archivist-tab-btn {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    background-color: #8b0000; color: #f5e6c8; border: none;
    padding: 16px 10px; border-radius: 0 6px 6px 0;
    cursor: pointer; z-index: 100;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    transition: background-color 0.3s ease;
    animation: pulseTab 3s infinite ease-in-out; 
}
.archivist-tab-btn:hover {
    background-color: #a00000; animation: none;
    transform: translateY(-50%) scale(1.05);
}
.tab-icon { font-size: 1.3rem; display: block; }

.archivist-panel {
    position: absolute; top: 0; left: -400px; width: 320px; height: 100%;
    background-color: #4a0404; color: #f5e6c8; z-index: 101;
    padding: 50px 30px 30px 30px; box-shadow: 5px 0 20px rgba(0,0,0,0.6);
    transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1); overflow-y: auto;
}
.archivist-panel.open { left: 0; }
.close-panel-btn {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: #f5e6c8;
    font-size: 2rem; cursor: pointer; line-height: 1;
    transition: color 0.3s ease;
}
.close-panel-btn:hover { color: #d4af37; }
.panel-content { padding-top: 20px; }
.panel-title {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    color: #f5e6c8; margin-bottom: 8px; line-height: 1.3;
}
.panel-subtitle {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.05rem; color: #d4af37; margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 12px;
}
.panel-details p {
    font-family: 'Cormorant Garamond', serif; font-size: 1rem;
    line-height: 1.5; margin-bottom: 12px; color: #e8d4a8;
}
.panel-details em { color: #d4af37; font-style: italic; }

/* =========================================
   CITATION POP-UPS (CLICKABLE TOOLTIPS)
   ========================================= */
.citation-pop {
    color: #ff8c00; font-style: italic; cursor: pointer;
    border-bottom: 1px dotted rgba(255, 140, 0, 0.5);
    transition: color 0.3s ease, border-color 0.3s ease; position: relative;
}
.citation-pop:hover { color: #ffa500; border-bottom-color: #ffa500; }
.citation-pop.active { color: #ffa500; border-bottom-color: #ffa500; font-weight: 600; }

#citation-tooltip {
    position: fixed; bottom: 40px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 5, 2, 0.95); color: #f5e6c8;
    padding: 15px 25px; border: 1px solid #d4af37; border-radius: 4px;
    font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
    font-style: italic; max-width: 600px; width: 90%; text-align: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10000; box-shadow: 0 5px 20px rgba(0,0,0,0.7);
    pointer-events: none; line-height: 1.5;
}
#citation-tooltip.visible {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0); pointer-events: auto;
}

/* =========================================
   NAVIGATION BUTTONS
   ========================================= */
.navigation-container {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; gap: 20px; opacity: 0;
    transition: opacity 1s ease 2.5s;
}
/* Note: You will change .page-s6-1 to your actual last page class */
.page-s6-11.in-view .navigation-container { opacity: 1; } 

.nav-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 25px; background: rgba(10, 5, 2, 0.8);
    border: 2px solid #d4af37; color: #f5e6c8; text-decoration: none;
    font-family: 'Playfair Display', serif; font-size: 1rem;
    letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-btn:hover { background: rgba(212, 175, 55, 0.9); color: #0a0502; }
.btn-arrow { width: 20px; height: 20px; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    #citation-tooltip { bottom: 20px; font-size: 0.95rem; padding: 12px 20px; }
    .archivist-panel { width: 100%; left: -100%; }
    .navigation-container {
        bottom: 30px; flex-direction: column; width: 80%;
    }
    .nav-btn { justify-content: center; width: 100%; }
}
/* =========================================
   PAGE 1: DANTE IN RAVENNA
   ========================================= */
.page-s6-x {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes content to the right */
    background-color: #1a0f0a;
}
.page-s6-x-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-house.jpg');
    background-size: cover;
    background-position: center left; /* Focuses on the building on the left */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-x.in-view .page-s6-x-bg {
    transform: scale(1);
}

/* Ornate Text Box - Right Side (Parchment Style) */
.ravenna-text-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-right: 5%;
    padding: 50px 60px;
    /* Light parchment background with red/gold borders */
    background-color: #f5e6c8;
    border: 8px solid #8b0000;
    outline: 3px solid #d4af37;
    outline-offset: -12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-x.in-view .ravenna-text-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Text Styling */
.ravenna-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #1a0f0a; /* Dark text for light background */
    text-align: justify;
    font-weight: 600;
    margin-bottom: 20px;
}
.ravenna-text:last-child {
    margin-bottom: 0;
}
.ravenna-text em {
    font-style: italic;
    color: #8b0000; /* Red emphasis for key terms */
}

/* Mobile Responsiveness for Page X */
@media (max-width: 768px) {
    .page-s6-x {
        justify-content: center;
    }
    .ravenna-text-box {
        width: 90%;
        max-width: 90%;
        margin-right: 0;
        padding: 30px 25px;
        border-width: 6px;
        outline-width: 2px;
        outline-offset: -10px;
    }
    .ravenna-text {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .page-s6-x-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 2: DANTE'S DEATH & BURIAL (BASILICA)
   ========================================= */
.page-s6-2 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes content to the left */
    background-color: #1a0f0a;
}
.page-s6-2-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-basilica.jpg');
    background-size: cover;
    background-position: center right; /* Focuses on the basilica on the right */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-2.in-view .page-s6-2-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Left Side */
.basilica-text-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-left: 5%;
    padding: 40px 50px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    /* Constrain height and enable internal scrolling */
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-2.in-view .basilica-text-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.basilica-text-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Text Styling */
.basilica-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ffffff;
    text-align: justify;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.basilica-text:last-child {
    margin-bottom: 0;
}
.basilica-text em {
    font-style: italic;
    color: #f5e6c8; /* Slightly brighter for quotes */
}

/* =========================================
   CUSTOM GOLDEN SCROLLBAR FOR BASILICA BOX
   ========================================= */
/* Webkit browsers (Chrome, Safari, Edge) */
.basilica-text-box::-webkit-scrollbar {
    width: 8px;
}
.basilica-text-box::-webkit-scrollbar-track {
    background: rgba(10, 5, 2, 0.3);
    border-radius: 4px;
}
.basilica-text-box::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #8b0000); /* Gold to deep red */
    border-radius: 4px;
    border: 1px solid rgba(10, 5, 2, 0.5);
}
.basilica-text-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f5e6c8, #d4af37); /* Lighter gold on hover */
}

/* Firefox */
.basilica-text-box {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(10, 5, 2, 0.3);
}

/* Mobile Responsiveness for Page 2 */
@media (max-width: 768px) {
    .page-s6-2 {
        align-items: center;
        justify-content: center;
    }
    .basilica-text-box {
        width: 90%;
        max-width: 90%;
        margin-left: 0;
        padding: 30px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
        max-height: 80vh;
    }
    .basilica-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    .page-s6-2-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 3: DANTE IN THE RIVER EUNOE
   ========================================= */
.page-s6-3 {
    display: flex;
    align-items: flex-end; /* Pushes content to the bottom */
    justify-content: flex-start; /* Pushes content to the left */
    background-color: #1a0f0a;
}
.page-s6-3-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-river.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-3.in-view .page-s6-3-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Lower Left */
.river-desc-box {
    position: relative;
    z-index: 4;
    width: 40%;
    max-width: 400px;
    margin-left: 5%;
    margin-bottom: 5%; /* Distance from the bottom */
    padding: 35px 40px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-3.in-view .river-desc-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.river-desc-box:hover {
    background: rgba(10, 5, 2, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Text Styling */
.river-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-style: italic;
}

/* Mobile Responsiveness for Page 3 */
@media (max-width: 768px) {
    .page-s6-3 {
        align-items: center;
        justify-content: center;
    }
    .river-desc-box {
        width: 90%;
        max-width: 90%;
        margin-left: 0;
        margin-bottom: 110%;
        padding: 30px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.75);
    }
    .river-text {
        font-size: 1.25rem;
        text-align: center;
    }
    .page-s6-3-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 4: RIVER EUNOE LYRICS (PURGATORIO)
   ========================================= */
.page-s6-4 {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the box */
    background-color: #1a0f0a;
}
.page-s6-4-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-river-lyrics.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-4.in-view .page-s6-4-bg {
    transform: scale(1);
}

/* Centered Glassmorphic Text Box */
.river-lyrics-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 470px;
    padding: 45px 50px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-4.in-view .river-lyrics-box {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.river-lyrics-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Poem Text Styling */
.river-lyrics-box .poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
    font-style: italic;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Stanza Spacing */
.river-lyrics-box .poem-stanza {
    margin-bottom: 20px;
}
.river-lyrics-box .poem-stanza:last-child {
    margin-bottom: 30px;
}

/* Decorative Drop Cap */
.river-lyrics-box .drop-cap {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #d4af37;
    float: center;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
}

/* Citation Styling */
.river-lyrics-citation {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #e8d4a8;
    line-height: 1.6;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 20px;
    text-align: center;
}
.river-lyrics-citation .author {
    font-weight: 700;
    color: #d4af37;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.river-lyrics-citation em {
    font-style: italic;
    color: #f5e6c8;
}

/* Mobile Responsiveness for Page 4 */
@media (max-width: 768px) {
    .river-lyrics-box {
        width: 90%;
        max-width: 90%;
        padding: 35px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
    }
    .river-lyrics-box .poem-content {
        font-size: 1.15rem;
    }
    .river-lyrics-box .poem-stanza {
        margin-bottom: 15px;
    }
    .river-lyrics-box .drop-cap {
        font-size: 2.5rem;
    }
    .river-lyrics-citation {
        font-size: 0.9rem;
    }
    .page-s6-4-bg {
        background-position: center center;
    }
}
/* =========================================
   AI DISCLOSURE TEXT BOX (Page 4, Section 6)
   ========================================= */
.ai-disclosure-box-s6-4 {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 5;
    padding: 12px 20px;
    background: rgba(10, 5, 2, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-s6-4.in-view .ai-disclosure-box-s6-4 {
    opacity: 0.7;
    transform: translateY(0);
    transition: opacity 1s ease 2s, transform 1s ease 2s;
}

.ai-disclosure-box-s6-4:hover {
    opacity: 1 !important;
}

.ai-disclosure-text-s6-4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #e8d4a8;
    text-align: right;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ai-disclosure-box-s6-4 {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    .ai-disclosure-text-s6-4 {
        font-size: 0.75rem;
    }
}
/* =========================================
   PAGE 5: SAVED SOULS (ANGELS)
   ========================================= */
.page-s6-5 {
    display: flex;
    align-items: flex-end; /* Pushes content to the bottom */
    justify-content: center; /* Centers horizontally */
    background-color: #1a0f0a;
}
.page-s6-5-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-angels.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-5.in-view .page-s6-5-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Lower Half */
.angels-desc-box {
    position: relative;
    z-index: 4;
    width: 40%;
    max-width: 400px;
    margin-bottom: 5%; /* Distance from the bottom */
    padding: 15px 20px;
    margin-left: -65%;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-5.in-view .angels-desc-box {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.angels-desc-box:hover {
    background: rgba(10, 5, 2, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Text Styling */
.angels-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-style: italic;
}

/* Mobile Responsiveness for Page 5 */
@media (max-width: 768px) {
    .angels-desc-box {
        width: 90%;
        max-width: 90%;
        margin-bottom: 20%;
        margin-left: 0;
        padding: 30px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.75);
    }
    .angels-text {
        font-size: 1.25rem;
    }
    .page-s6-5-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 6: THE FINAL VISION (PARADISO XXXIII)
   ========================================= */
.page-s6-6 {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the box */
    background-color: #1a0f0a;
}
.page-s6-6-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-angel-circle.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-6.in-view .page-s6-6-bg {
    transform: scale(1);
}

/* Centered Glassmorphic Text Box */
.final-vision-box {
    position: relative;
    z-index: 4;
    width: 50%;
    max-width: 490px;
    padding: 50px 60px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-6.in-view .final-vision-box {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.final-vision-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Poem Text Styling */
.final-vision-box .poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #ffffff;
    text-align: center;
    font-style: italic;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

/* Decorative Drop Cap */
.final-vision-box .drop-cap {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #d4af37;
    float: center;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
}

/* Citation Styling */
.final-vision-citation {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #e8d4a8;
    line-height: 1.6;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 20px;
    text-align: center;
}
.final-vision-citation .author {
    font-weight: 700;
    color: #d4af37;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.final-vision-citation em {
    font-style: italic;
    color: #f5e6c8;
}

/* Mobile Responsiveness for Page 6 */
@media (max-width: 768px) {
    .final-vision-box {
        width: 90%;
        max-width: 90%;
        padding: 35px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
    }
    .final-vision-box .poem-content {
        font-size: 1.15rem;
    }
    .final-vision-box .drop-cap {
        font-size: 2.5rem;
    }
    .final-vision-citation {
        font-size: 0.9rem;
    }
    .page-s6-6-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 7: DANTE'S FINAL REST (IRON GATE)
   ========================================= */
.page-s6-7 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes content to the left */
    background-color: #1a0f0a;
}
.page-s6-7-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-iron-gate.jpg');
    background-size: cover;
    background-position: center right; /* Focuses on the gate on the right */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-7.in-view .page-s6-7-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Left Side */
.iron-gate-text-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-left: 5%;
    padding: 40px 50px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    /* Constrain height and enable internal scrolling */
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-7.in-view .iron-gate-text-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.iron-gate-text-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Text Styling */
.iron-gate-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ffffff;
    text-align: justify;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* =========================================
   CUSTOM GOLDEN SCROLLBAR FOR IRON GATE BOX
   ========================================= */
/* Webkit browsers (Chrome, Safari, Edge) */
.iron-gate-text-box::-webkit-scrollbar {
    width: 8px;
}
.iron-gate-text-box::-webkit-scrollbar-track {
    background: rgba(10, 5, 2, 0.3);
    border-radius: 4px;
}
.iron-gate-text-box::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #8b0000); /* Gold to deep red */
    border-radius: 4px;
    border: 1px solid rgba(10, 5, 2, 0.5);
}
.iron-gate-text-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f5e6c8, #d4af37); /* Lighter gold on hover */
}
/* Citation Styling for Iron Gate Page */
.iron-gate-citation {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #e8d4a8;
    line-height: 1.6;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}
.iron-gate-citation .author {
    font-weight: 700;
    color: #d4af37;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.iron-gate-citation em {
    font-style: italic;
    color: #f5e6c8;
}

/* Firefox */
.iron-gate-text-box {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(10, 5, 2, 0.3);
}

/* Mobile Responsiveness for Page 7 */
@media (max-width: 768px) {
    .page-s6-7 {
        align-items: center;
        justify-content: center;
    }
    .iron-gate-text-box {
        width: 90%;
        max-width: 90%;
        margin-left: 0;
        padding: 30px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
        max-height: 75vh;
    }
    .iron-gate-citation {
        font-size: 0.9rem;
        margin-top: 20px;
    }
    .iron-gate-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    .page-s6-7-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 8: DANTE'S SEPULCRUM
   ========================================= */
.page-s6-8 {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes content to the right */
    background-color: #1a0f0a;
}
.page-s6-8-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-sepulcrum.jpg');
    background-size: cover;
    background-position: center left; /* Focuses on the left side */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-8.in-view .page-s6-8-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Right Side */
.sepulcrum-text-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-right: 5%;
    padding: 40px 50px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    /* Constrain height and enable internal scrolling if needed */
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-8.in-view .sepulcrum-text-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.sepulcrum-text-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(-5px);
}

/* Text Styling */
.sepulcrum-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ffffff;
    text-align: justify;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.sepulcrum-text:last-child {
    margin-bottom: 0;
}
.sepulcrum-text em {
    font-style: italic;
    color: #f5e6c8;
}

/* =========================================
   CUSTOM GOLDEN SCROLLBAR FOR SEPULCRUM BOX
   ========================================= */
/* Webkit browsers (Chrome, Safari, Edge) */
.sepulcrum-text-box::-webkit-scrollbar {
    width: 8px;
}
.sepulcrum-text-box::-webkit-scrollbar-track {
    background: rgba(10, 5, 2, 0.3);
    border-radius: 4px;
}
.sepulcrum-text-box::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #8b0000); /* Gold to deep red */
    border-radius: 4px;
    border: 1px solid rgba(10, 5, 2, 0.5);
}
.sepulcrum-text-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f5e6c8, #d4af37); /* Lighter gold on hover */
}

/* Firefox */
.sepulcrum-text-box {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(10, 5, 2, 0.3);
}

/* Mobile Responsiveness for Page 8 */
@media (max-width: 768px) {
    .page-s6-8 {
        align-items: center;
        justify-content: center;
    }
    .sepulcrum-text-box {
        width: 90%;
        max-width: 90%;
        margin-right: 0;
        padding: 30px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
        max-height: 80vh;
    }
    .sepulcrum-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    .page-s6-8-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 9: PURGATORIO POEM (BRICKS & BELL)
   ========================================= */
.page-s6-9 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes content to the left */
    background-color: #1a0f0a;
}
.page-s6-9-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-bricks-bell.jpg');
    background-size: cover;
    background-position: center right;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-9.in-view .page-s6-9-bg {
    transform: scale(1);
}

/* Glassmorphic Text Box - Left Side */
.bricks-bell-poem-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 450px;
    margin-left: 3%;
    padding: 45px 50px;
    
    /* GLASSMORPHISM EFFECT */
    background: rgba(10, 5, 2, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Light-catching glass edges */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Floating shadow + inner depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 0, 0, 0.15);
    
    border-radius: 12px;

    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-9.in-view .bricks-bell-poem-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Hover effect */
.bricks-bell-poem-box:hover {
    background: rgba(10, 5, 2, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Poem Text Styling */
.bricks-bell-poem-box .poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.3;
    color: #ffffff;
    text-align: center;
    font-style: italic;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Stanza Spacing */
.bricks-bell-poem-box .poem-stanza {
    margin-bottom: 20px;
}
.bricks-bell-poem-box .poem-stanza:last-child {
    margin-bottom: 0;
}

/* Decorative Drop Cap */
.bricks-bell-poem-box .drop-cap {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #d4af37;
    float: center;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
}

/* Tiny Book Icon (Citation Trigger) */
.bricks-bell-poem-box .poem-citation-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.bricks-bell-poem-box .poem-citation-icon:hover {
    color: #ffffff;
    transform: scale(1.2);
}

/* Mobile Responsiveness for Page 9 */
@media (max-width: 768px) {
    .page-s6-9 {
        justify-content: center;
    }
    .bricks-bell-poem-box {
        width: 90%;
        max-width: 90%;
        margin-left: 0;
        padding: 35px 25px;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        background: rgba(10, 5, 2, 0.8);
    }
    .bricks-bell-poem-box .poem-content {
        font-size: 1.15rem;
    }
    .bricks-bell-poem-box .poem-stanza {
        margin-bottom: 15px;
    }
    .bricks-bell-poem-box .drop-cap {
        font-size: 2.5rem;
    }
    .page-s6-9-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 10: BRUNI ON DANTE'S DESCENDANTS
   ========================================= */
.page-s6-10 {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes content to the right */
    background-color: #1a0f0a;
}
.page-s6-10-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-alley.jpg');
    background-size: cover;
    background-position: center left; /* Focuses on the alley on the left */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-10.in-view .page-s6-10-bg {
    transform: scale(1);
}

/* Ornate Text Box - Right Side (Parchment Style) */
.bruni-alley-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-right: 5%;
    padding: 50px 60px;
    /* Light parchment background with red/gold borders */
    background-color: #f5e6c8;
    border: 8px solid #8b0000;
    outline: 3px solid #d4af37;
    outline-offset: -12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-10.in-view .bruni-alley-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Quote Text Styling */
.bruni-alley-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #1a0f0a; /* Dark text for light background */
    text-align: justify;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Decorative Drop Cap */
.bruni-alley-box .drop-cap {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #8b0000;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
}

/* Citation Styling */
.bruni-alley-citation {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #8b0000; /* Red citation to match the presentation */
    line-height: 1.6;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    padding-top: 15px;
    text-align: center;
}
.bruni-alley-citation .author {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bruni-alley-citation em {
    font-style: italic;
}

/* Decorative Fleur-de-lis */
.bruni-alley-box .fleur-de-lis {
    text-align: center;
    font-size: 2rem;
    color: #8b0000;
    margin-top: 20px;
    opacity: 0.8;
}

/* Mobile Responsiveness for Page 10 */
@media (max-width: 768px) {
    .page-s6-10 {
        justify-content: center;
    }
    .bruni-alley-box {
        width: 90%;
        max-width: 90%;
        margin-right: 0;
        padding: 30px 25px;
        border-width: 6px;
        outline-width: 2px;
        outline-offset: -10px;
    }
    .bruni-alley-quote {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .bruni-alley-box .drop-cap {
        font-size: 2.5rem;
    }
    .bruni-alley-citation {
        font-size: 0.9rem;
    }
    .bruni-alley-box .fleur-de-lis {
        font-size: 1.2rem;
    }
    .page-s6-10-bg {
        background-position: center center;
    }
}
/* =========================================
   PAGE 11: CARRARA MONUMENT (SANTA CROCE)
   ========================================= */
.page-s6-11 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes content to the left */
    background-color: #1a0f0a;
}
.page-s6-11-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/section-6-carrara.jpg');
    background-size: cover;
    background-position: center right; /* Focuses on the monument on the right */
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-s6-11.in-view .page-s6-11-bg {
    transform: scale(1);
}

/* Ornate Text Box - Left Side (Parchment Style) */
.carrara-monument-box {
    position: relative;
    z-index: 4;
    width: 45%;
    max-width: 700px;
    margin-left: 5%;
    padding: 50px 60px;
    /* Light parchment background with red/gold borders */
    background-color: #f5e6c8;
    border: 8px solid #8b0000;
    outline: 3px solid #d4af37;
    outline-offset: -12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Entrance Animation */
.page-s6-11.in-view .carrara-monument-box {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Quote Text Styling */
.carrara-monument-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #1a0f0a; /* Dark text for light background */
    text-align: justify;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Decorative Drop Cap */
.carrara-monument-box .drop-cap {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #8b0000;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
}

/* Citation Styling */
.carrara-monument-citation {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #8b0000; /* Red citation to match the presentation */
    line-height: 1.6;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    padding-top: 15px;
    text-align: center;
}
.carrara-monument-citation .author {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.carrara-monument-citation em {
    font-style: italic;
}

/* Mobile Responsiveness for Page 11 */
@media (max-width: 768px) {
    .page-s6-11 {
        justify-content: center;
    }
    .carrara-monument-box {
        width: 90%;
        max-width: 90%;
        margin-left: 0;
        padding: 30px 25px;
        border-width: 6px;
        outline-width: 2px;
        outline-offset: -10px;
    }
    .carrara-monument-quote {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    .carrara-monument-box .drop-cap {
        font-size: 2.5rem;
    }
    .carrara-monument-citation {
        font-size: 0.9rem;
    }
    .page-s6-11-bg {
        background-position: center center;
    }
}