/* =========================================
   STORY PAGE: "SYSTEM STANDARD" THEME
   ========================================= */

/* 1. GLOBAL OVERRIDES */
body.story-page {
    background-color: var(--white);
    color: var(--black);
}

/* 2. NAVIGATION (Matches Homepage "Menu" Button) */
.back-home-btn {
    position: fixed; top: 2rem; left: 2rem; z-index: 500;
    background-color: var(--white); color: var(--black);
    padding: 0.8rem 1.5rem; border-radius: 50px; /* Pill Shape */
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-family: 'Antonio', sans-serif; font-weight: 700; font-size: 1rem; 
    letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.back-home-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #748C56; /* Earthy Green Hover */
}

/* 3. HERO SECTION (Framed like Homepage) */
.story-hero-section {
    position: relative;
    width: 100%; height: 70vh; 
    display: flex; align-items: flex-end; justify-content: center;
    padding: 2rem;
    margin-bottom: 4rem;
}

.story-hero-frame {
    width: 100%; height: 100%; max-width: 1400px;
    position: relative; 
    border-radius: 24px; overflow: hidden;
    background-color: #000;
}

.story-hero-bg {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8;
}

.story-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 4rem;
}

/* BIG TITLE */
.story-title {
    font-family: 'Antonio', sans-serif; 
    font-size: 8rem; line-height: 0.85;
    color: #fff; text-transform: uppercase;
    margin-bottom: 1rem;
}

/* METADATA BAR */
.story-meta-row {
    display: flex; gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1.5rem;
    font-family: 'Manrope', sans-serif; font-size: 0.85rem; 
    color: #ccc; letter-spacing: 1px; text-transform: uppercase;
}

.meta-item {
    display: flex; align-items: center; gap: 8px;
}
.meta-dot {
    width: 6px; height: 6px; background: #748C56; border-radius: 50%;
}


/* 4. CONTENT LAYOUT (Clean & Grid Aligned) */
.story-body {
    position: relative;
    max-width: 1000px; margin: 0 auto;
    padding: 0 2rem 8rem;
    display: flex; gap: 4rem;
}

/* Left Sidebar (Sticky) */
.story-sidebar {
    flex: 0 0 200px;
    position: sticky; top: 8rem; height: fit-content;
    border-top: 2px solid #000; padding-top: 1rem;
}

.sidebar-label {
    font-family: 'Antonio', sans-serif; font-size: 1.2rem; margin-bottom: 0.5rem;
}
.sidebar-sub {
    font-family: 'Manrope', sans-serif; font-size: 0.8rem; color: #666;
}

/* Right Content */
.story-content {
    flex: 1;
}

.lead-text {
    font-family: 'Manrope', sans-serif; font-size: 1.8rem; line-height: 1.4;
    color: var(--black); font-weight: 400;
    margin-bottom: 3rem;
    border-left: 4px solid #748C56; padding-left: 2rem;
}

.story-text-block p {
    font-family: 'Manrope', sans-serif; font-size: 1.1rem; line-height: 1.7; color: #333;
    margin-bottom: 2rem;
}

/* 5. IMAGE INSERTS (Card Style) */
.story-figure {
    width: 100%; margin: 3rem 0;
    background: #f0f0f0; padding: 1rem; border-radius: 12px;
    border: 1px solid #ddd;
}

.story-figure img {
    width: 100%; border-radius: 8px; display: block;
}

.story-figure figcaption {
    margin-top: 10px; font-family: 'Manrope', sans-serif; font-size: 0.75rem; 
    color: #666; text-transform: uppercase; letter-spacing: 1px;
    display: flex; justify-content: space-between;
}


/* 6. FOOTER */
.story-footer {
    border-top: 1px solid #ddd;
    padding: 4rem 0; margin-top: 4rem;
    text-align: center;
}

.next-story-btn {
    display: inline-block;
    font-family: 'Antonio', sans-serif; font-size: 3rem; color: var(--black);
    text-decoration: none; text-transform: uppercase;
    transition: color 0.3s;
}
.next-story-btn:hover { color: #748C56; }


/* 7. RESPONSIVE */
@media (max-width: 900px) {
    .story-hero-section { height: 50vh; padding: 1rem; }
    .story-hero-overlay { padding: 1.5rem; }
    .story-title { font-size: 12vw; }
    .story-meta-row { display: none; }
    
    .story-body { flex-direction: column; }
    .story-sidebar { display: none; } /* Hide sidebar on mobile */
    .lead-text { font-size: 1.4rem; padding-left: 1rem; }
}

/* 8. NATIVE SCROLL OVERRIDE */
body.story-page { height: auto !important; overflow-y: auto !important; }
body.story-page .smooth-content { position: relative !important; transform: none !important; }