/* ==========================================================================
   1. CORE VARIABLES, RESETS & TYPOGRAPHY
   ========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main, form legend { display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
button, input, textarea, select { margin: 0; }
.btn, .form-control, .link, .reset { background-color: transparent; padding: 0; border: 0; border-radius: 0; color: inherit; line-height: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
select.form-control::-ms-expand { display: none; }
textarea { resize: vertical; overflow: auto; vertical-align: top; }
input::-ms-clear { display: none; }
table { border-collapse: collapse; border-spacing: 0; }
img, video, svg { max-width: 100%; }

:root {
  --space-unit: 1em;
  --component-padding: 1.25em;
  --font-primary: sans-serif;
}

body {
    background-color: #030005 !important;
    color: #EAEAEA;
}

/* ==========================================================================
   2. MASTER ACRYLIC PAD (Wraps the entire timeline)
   ========================================================================== */
.js .cd-h-timeline {
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
    z-index: 10;
    
    /* INCREASED from 60px to 120px to clear the 80px menu bar + add breathing room */
    margin-top: 160px !important; 
    margin-bottom: 80px !important;
    
    padding: 60px 20px 80px 20px;
    border-radius: 30px;
    
    /* Pure, highly transparent acrylic body */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(40px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(130%) !important;
    
    /* The sharp, polished acrylic bevel edges */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.6) !important; 
    border-left: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    
    /* Deep soft shadow to float it off the page */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.15) !important;
}

.js .cd-h-timeline--loaded { opacity: 1; }
.js .cd-h-timeline__container { position: relative; height: 100px; max-width: 800px; margin: 0 auto; }

/* Ensure mobile layout also clears the mobile menu */
@media(max-width:767px){
    .cd-h-timeline { 
        margin-top: 100px !important; /* Clears the 80px mobile menu with a 20px gap */
        padding: 40px 10px 50px 10px; 
        border-radius: 20px; 
    }
}


/* ==========================================================================
   3. THE ACRYLIC TIMELINE TRACK & NODES
   ========================================================================== */
.js .cd-h-timeline__dates {
    position: relative; height: 100%; margin: 0 70px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

@media(max-width:767px) {
    .js .cd-h-timeline__dates {
        margin: 0 60px; 
    }
}

.js .cd-h-timeline__dates::after, .js .cd-h-timeline__dates::before { display: none !important; }

.js .cd-h-timeline__line {
    position: absolute; z-index: 1; left: 0; top: 46px; height: 8px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05) !important; backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1.5px solid rgba(0, 0, 0, 0.5) !important; 
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.4) !important; 
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.4s;
}

.js .cd-h-timeline__filling-line {
    position: absolute; z-index: 1; left: 0; top: 0; height: 100%; width: 100%; border-radius: 10px;
    background: linear-gradient(90deg, rgba(201, 184, 139, 0.5), #E8CE81);
    box-shadow: 0 0 12px rgba(232, 206, 129, 0.8);
    transform: scaleX(0); transform-origin: left center; transition: transform 0.3s;
}

.js .cd-h-timeline__date {
    position: absolute; bottom: 0; z-index: 2; text-align: center;
    font-size: 1em; padding-bottom: 12px; color: rgba(255,255,255,0.6);
    user-select: none; text-decoration: none;
}

.js .cd-h-timeline__date::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; 
    width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(15px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 2.5px solid rgba(255, 255, 255, 0.9) !important; 
    border-left: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.3) !important; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.js .cd-h-timeline__date:hover::after, 
.js .cd-h-timeline__date--selected::after, 
.js .cd-h-timeline__date--older-event::after {
    background: #FFF !important; border-color: #FFF !important;
    box-shadow: 0 0 20px #E8CE81, 0 0 10px #FFF, inset 0 0 5px #A39570 !important;
    transform: translateX(-50%) scale(1.3) !important;
}
.js .cd-h-timeline__date--selected { pointer-events: none; }

/* ==========================================================================
   4. NAVIGATION ARROWS (Thick Acrylic Pucks with Custom SVGs)
   ========================================================================== */
.js .cd-h-timeline__navigation {
    position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
    width: 66px; height: 66px; border-radius: 50%;
    
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.02)) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid rgba(255, 255, 255, 0.95) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 5px 15px rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Position Left and Right buttons (removed the old 180-degree rotation!) */
.js .cd-h-timeline__navigation--prev { left: 0; }
.js .cd-h-timeline__navigation--next { right: 0; }

/* Target your new inline SVG images to center them perfectly */
.js .cd-h-timeline__navigation img {
    position: absolute; height: 30px; width: 30px;
    top: 50%; left: 50%; 
    
    /* Base positioning (JS will inject the rotation here) */
    transform: translate(-50%, -50%) rotate(0deg);
    
    filter: brightness(0) invert(1) opacity(0.9) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
    
    /* NEW: Adds a physical 'spring' bounce to the rotation */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease !important;
}

/* Dims the SVG icon when the button is inactive */
.js .cd-h-timeline__navigation--inactive img { 
    filter: brightness(0) invert(1) opacity(0.3) !important; 
}

/* Hover state for buttons */
.js .cd-h-timeline__navigation:hover {
    background: linear-gradient(135deg, rgba(201, 184, 139, 0.3), rgba(201, 184, 139, 0.1)) !important;
    border-top: 3px solid #FFF !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 184, 139, 0.4), inset 0 5px 15px rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-50%) scale(1.1);
}

/* Inactive state (Keeps the 3D glass but dims it so it looks unclickable) */
.js .cd-h-timeline__navigation--inactive, 
.js .cd-h-timeline__navigation--inactive:hover {
    opacity: 0.5; cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dims the SVG icon when the button is inactive */
.js .cd-h-timeline__navigation--inactive img { 
    filter: brightness(0) invert(1) opacity(0.3); 
}

@media(max-width:767px) {
    .js .cd-h-timeline__navigation {
        /* Scaled down to 48px so they don't break phone screens */
        width: 48px; height: 48px; 
    }
    .js .cd-h-timeline__navigation img {
        height: 24px; width: 24px;
    }
    .cd-h-timeline { 
        margin-top: 100px !important; 
        
        /* Increased left/right padding from 10px to 15px */
        padding: 40px 15px 50px 15px !important; 
        
        border-radius: 20px; 
    }
    
}

/* ==========================================================================
   5. CONTENT PAGE (Unified Heights & Fixed Shadow Clipping)
   ========================================================================== */
.js .cd-h-timeline__events { 
    position: relative; width: 100%; overflow: hidden; transition: height .4s; 
}

.js .cd-h-timeline__event {
    position: absolute; z-index: 1; width: 100%; left: 0; top: 0;
    transform: translateX(-100%); 
    padding: 10px 5% 80px 5%; /* Safe-zone for drop shadows */
    opacity: 0;
    animation-duration: 0.4s; animation-timing-function: ease-in-out;
}
.js .cd-h-timeline__event--selected { position: relative; z-index: 2; opacity: 1; transform: translateX(0); }

@keyframes cd-enter-right { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0%); } }
@keyframes cd-enter-left { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0%); } }
.js .cd-h-timeline__event--enter-right, .js .cd-h-timeline__event--leave-right { animation-name: cd-enter-right; }
.js .cd-h-timeline__event--enter-left, .js .cd-h-timeline__event--leave-left { animation-name: cd-enter-left; }
.js .cd-h-timeline__event--leave-right, .js .cd-h-timeline__event--leave-left { animation-direction: reverse; }

/* The Acrylic Glass Card Body */
.js .cd-h-timeline__event-content {
    max-width: 900px !important; margin: 0 auto !important; padding: 40px 50px !important; border-radius: 18px !important; 
    /* change rounded for content pad*/
    
    /* Strict Unified Height */
    height: 850px !important;
    display: flex !important; flex-direction: column !important;
   
    background-color: transparent !important; 
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15)) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.95) !important; 
    border-left: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 4px 15px rgba(255, 255, 255, 0.6) !important;
}

@media(max-width:767px){
    .js .cd-h-timeline__event-content { padding: 30px !important; margin: 0 15px; height: 650px !important; }
    
}

/* ---------------------------------------------------
   Polished Typography (+30% Larger Text)
   --------------------------------------------------- */
.js .cd-h-timeline__event-title {
    color: rgba(150,126,1,1.00) !important; font-family: var(--font-primary); font-weight: 500; font-size: 2.4em;
    letter-spacing: 1.25px; text-align: center; margin-bottom: 5px;
    text-shadow: -1px -1px 2px rgba(0, 0, 0, 0.3), 0.85px 0.85px 1.75px rgba(255, 255, 255, 0.6) !important;
}

.js .cd-h-timeline__event-date {
    display: block; font-style: italic; margin: 5px auto 5px auto !important; text-align: center;
    color: rgba(60, 60, 60, 0.8) !important; font-weight: 400; letter-spacing: 1px; font-size: 1.0rem !important; 
}

.js .cd-h-timeline__event-1984 { 
    line-height: 1.5 !important; color: #000000 !important; font-weight: 400; letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    font-size: 1.33rem !important;
    /* Enlarge content text by ~30% */
    text-align: center;
}

.js .cd-h-timeline__event-description { 
    line-height: 1.5 !important; color: #000000 !important; font-weight: 400; letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    font-size: 1.33rem !important;
    /* Enlarge content text by ~30% */
    text-align: justify !important;
}

/*NEW MAGAZINE IMAGE CLASSES */
.magazine-img-left {
    float: left !important;
    width: 45% !important; /* Keeps it strictly inside the column */
    margin: 8px 25px 15px 0 !important; /* Pushes text away from the right side */
}

.magazine-img-right {
    float: right !important;
    width: 45% !important;
    margin: 8px 0 15px 25px !important; /* Pushes text away from the left side */
}

.js .cd-h-timeline__event-content img.img-fluid {
    max-width: 48% !important; max-height: 220px !important; object-fit: cover;
    border-radius: 8px; margin: 1%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media(max-width:767px){
    
    .js .cd-h-timeline__event-title {
    color: rgba(150,126,1,1.00) !important; font-family: var(--font-primary); font-weight: 500; font-size: 2.0em;
    letter-spacing: 1.25px; text-align: center; margin-bottom: 5px;
}
    
.js .cd-h-timeline__event-1984 { 
    line-height: 1.5 !important; color: #000000 !important; font-weight: 400; letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    font-size: 1.33rem !important;
    /* Enlarge content text by ~30% */
    text-align: center;
}
    

.js .cd-h-timeline__event-description { 
    line-height: 1.5 !important; color: #000000 !important; font-weight: 400; letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    font-size: 1.33rem !important;
    /* Enlarge content text by ~30% */
    text-align: justify;!important;
}

.js .cd-h-timeline__event-content img.img-fluid {
    max-width: 48% !important; max-height: 220px !important; object-fit: cover;
    border-radius: 8px; margin: 1%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
   
}


/* ==========================================================================
   6. TIMELINE BOOK PAGINATION (Scrollable Content Zone with Extended Fade)
   ========================================================================== */
.timeline-book-container { 
    position: relative; 
    flex-grow: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    
    /* PULLED UP: Reduced from 40px to 10px to start text much higher */
    padding-top: 10px; 
    padding-bottom: 40px;
    padding-right: 15px; 
    
    margin-top: -15px;
    margin-bottom: -5px; 
    
    /* ADJUSTED FADE: Top fade zone shrank from 15% to 5% so resting text stays sharp */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 85%, transparent 100%);
}

/* NEW: Strips the invisible default spacing above the very first paragraph of text */
.timeline-page p:first-child {
    margin-top: 30px !important;
}

/* Elegant Custom Scrollbar inside the Glass Card */
.timeline-book-container::-webkit-scrollbar { width: 5px; }
/* ... (keep the rest of your scrollbar and pagination button CSS exactly the same) ... */

/* Elegant Custom Scrollbar inside the Glass Card */
.timeline-book-container::-webkit-scrollbar { width: 5px; }
.timeline-book-container::-webkit-scrollbar-track { background: transparent; }
.timeline-book-container::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.timeline-book-container::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.4); }

.timeline-page { display: none; animation: fadePageIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.timeline-page.active { display: block; }
@keyframes fadePageIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Controls Footer */
.timeline-page-controls {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 5px; padding-top: 20px; flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Circular Icon Pagination Buttons */
.page-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.05) !important; border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #4A4A4A !important; border-radius: 50%; cursor: pointer;
    font-size: 16px; transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.page-btn:hover:not(:disabled) {
    background: rgba(201, 184, 139, 0.3) !important; border-color: #C9B88B !important; color: #111 !important;
    box-shadow: 0 4px 12px rgba(201, 184, 139, 0.4) !important; transform: scale(1.05);
}
.page-btn:disabled { opacity: 0.3 !important; cursor: not-allowed; }

.page-indicator { 
    color: rgba(60, 60, 60, 0.7) !important; font-size: 0.9em; font-family: var(--font-primary); 
    letter-spacing: 2px; font-weight: 500;
}


/* ==========================================================================
   7. DYNAMIC INTERACTIVE BACKGROUND LAYERS
   ========================================================================== */
.lu-dynamic-bg, .lu-dynamic-bg-next { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; }
.lu-dynamic-bg-next { z-index: -2; background: #06000A; } 
.lu-dynamic-bg { z-index: -1; background: linear-gradient(135deg, #971818 0%, #2D0000 100%); transition: opacity 1.5s ease-in-out; }
html:not(.js) .cd-h-timeline__dates, html:not(.js) .cd-h-timeline__navigation { display: none; }


/* ==========================================================================
   8. NATIVE DIALOG POPUP STYLING (Replaces Magnific)
   ========================================================================== */
/* The core dialog container */
#lu-image-dialog {
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible; /* Allows the close button to pop outside the bounds */
    outline: none;
    position: relative;
}

/* The dark cinematic background blur */
#lu-image-dialog::backdrop {
    background: rgba(11, 11, 11, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* The Image + Zoom Animation */
#lu-dialog-img {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    cursor: zoom-out; /* Lets users know they can click to close */
    
    /* Native Zoom-In Animation */
    animation: dialogZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dialogZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Desktop Only Size Constraints (Ported from Section 8) */
@media (min-width: 992px) {
    #lu-dialog-img {
        max-width: 900px;
        max-height: 75vh;
    }
}

/* ==========================================================================
   9. PREMIUM 3D GLASS CLOSE BUTTON (Mapped to Native Dialog)
   ========================================================================== */
#lu-dialog-close {
    color: transparent !important; 
    opacity: 1 !important; 
    width: 60px !important;
    height: 60px !important;
    position: absolute !important;
    right: -15px !important; 
    top: -25px !important; 
    cursor: pointer !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: transparent !important;
    border: none;
    z-index: 10;
}

/* Spin and scale on hover */
#lu-dialog-close:hover {
    transform: scale(1.15) rotate(90deg) !important;
}

/* Base structure for the two intersecting pills */
#lu-dialog-close::before, 
#lu-dialog-close::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 36px !important;
    height: 12px !important; 
    border-radius: 10px !important; 
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Bar 1: The '\' Angle (Mint to Soft Blue) */
#lu-dialog-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
    background: linear-gradient(135deg, rgba(162, 235, 213, 0.9), rgba(154, 201, 240, 0.9)) !important;
}

/* Bar 2: The '/' Angle (Pink to Lavender) */
#lu-dialog-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
    background: linear-gradient(135deg, rgba(245, 171, 213, 0.9), rgba(216, 179, 245, 0.9)) !important;
}

/* The Image + Zoom Animation */
#lu-dialog-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw; /* Leaves breathing room on the sides */
    max-height: 85vh; /* CHANGED: Gives the browser room to vertically center it */
    object-fit: contain; /* Prevents the image from stretching */
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    cursor: zoom-out; 
    animation: dialogZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}



@media (max-width: 767px) {
    #lu-dialog-close {
        transform: scale(0.7) !important;
        right: 0px !important;
        top: 0px !important;
    }
}



