@charset "utf-8";
/* CSS Document for The Mother Chronology---*/
:root {
            --primary-rose: #a64d79;
            --gold-accent: #d4af37;
            --bg-color: #fffafb;
            --text-main: #2d3436;
            --line-color: #ebd5d5;
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            margin: 0;
            line-height: 1.6;
        }

        h1, h2, h3, h4 { font-family: 'Lora', serif; }

        /* Header */
        .header {
            text-align: center;
            padding: 100px 20px 60px;
            background: linear-gradient(rgba(166, 77, 121, 0.05), rgba(166, 77, 121, 0));
        }
        .header h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin: 0; color: var(--primary-rose); }
        .header p { font-size: 1.2rem; color: #666; font-style: italic; }

        /* Quote Section */
        .quote-section { padding: 40px 20px; text-align: center; max-width: 800px; margin: 0 auto; }
        #mother-quote { font-family: 'Lora', serif; font-size: 1.6rem; font-style: italic; color: var(--primary-rose); transition: opacity 0.3s ease; min-height: 2.5em; }
        cite { display: block; margin-top: 10px; color: var(--gold-accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
        .refresh-quote { margin-top: 20px; background: none; border: 1px solid var(--gold-accent); color: var(--gold-accent); padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; }
        .refresh-quote:hover { background: var(--gold-accent); color: white; }

        /* Filter Controls */
        .filter-controls { text-align: center; margin: 40px 0; position: sticky; top: 0; background: var(--bg-color); padding: 15px 0; z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05); }
        .filter-btn { background: white; border: 1px solid var(--line-color); padding: 10px 25px; margin: 5px; cursor: pointer; border-radius: 25px; transition: 0.3s; font-weight: 600; }
        .filter-btn.active { background: var(--primary-rose); color: white; border-color: var(--primary-rose); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

        /* Timeline */
        .timeline { position: relative; max-width: 1000px; margin: 40px auto; padding: 20px; }
        .timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--line-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
        .event { padding: 10px 40px; position: relative; width: 50%; opacity: 0; transform: translateY(30px); transition: 0.6s all ease-out; }
        .event.visible { opacity: 1; transform: translateY(0); }
        .event.hidden { display: none; }
        .left { left: 0; text-align: right; }
        .right { left: 50%; }
        .event::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: var(--bg-color); border: 3px solid var(--gold-accent); top: 25px; border-radius: 50%; z-index: 1; }
        .right::after { left: -8px; }
        .content { padding: 25px; background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
        .badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; font-weight: bold; }
        .badge-life { background: #fce4ec; color: #c2185b; }
        .badge-work { background: #fffde7; color: #fbc02d; }

        /* Flowers Section (Special for The Mother) */
        .flower-section { padding: 80px 20px; background: white; text-align: center; }
        .flower-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1000px; margin: 40px auto; }
        .flower-card { padding: 20px; border-radius: 15px; background: #fffafb; border: 1px solid #fce4ec; }
        .flower-card h4 { color: var(--primary-rose); margin-bottom: 5px; }
        .flower-card p { font-size: 0.9rem; font-style: italic; color: #777; }

        /* Agenda Section */
        .agenda-section { padding: 100px 20px; background: linear-gradient(
    to right,
    transparent,
    rgba(200,170,90,0.35),
    transparent
  ); color: #eee; text-align: center; }
        .agenda-container { max-width: 800px; margin: 0 auto; }
        .agenda-container h2 { color: var(--gold-accent); }

        /* Resources Footer */
        .resources { padding: 80px 20px; background: var(--primary-rose); color: white; text-align: center; }
        .res-link { color: var(--gold-accent); text-decoration: none; display: inline-block; margin: 10px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; }

    
/* --- Timeline Events --- */
.event { 
    padding: 10px 40px; 
    position: relative; 
    width: 50%; 
    clear: both; 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.6s ease-out; 
}

/* Animation state: fades in and slides up */
.event.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- Added Utilities for Long Timelines --- */

/* Scroll Progress Bar at the very top of the screen */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

#progress-bar {
    height: 100%;
    background: var(--gold-accent);
    width: 0%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-rose);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--gold-accent);
}
/* --- Mobile section --- */
@media (max-width: 768px) {
    /* 1. Move the vertical line to the far left */
    .timeline::after {
        left: 20px;
    }

    /* 2. Make events take up the full width */
    .event {
        width: 100%;
        padding-left: 50px; /* Space for the line on the left */
        padding-right: 10px;
        text-align: left !important; /* Force text to align left */
        left: 0 !important; /* Move 'right' cards back to the left */
    }

    /* 3. Reposition the gold dots to the new line position */
    .event::after {
        left: 11px !important;
        right: auto !important;
        top: 25px;
    }

    /* 4. Remove the extra side margin from the content cards */
    .content {
        padding: 15px;
        width: 100%;
    }

    /* 5. Adjust header for mobile */
    .header {
        padding: 60px 15px 30px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

.nav-btn {
    border: 1px solid var(--gold-accent) !important;
    color: var(--gold-accent);
    margin-left: 15px; /* Separate it slightly from the filters */
}

.nav-btn:hover {
    background-color: var(--gold-accent);
    color: white;
}

/* On mobile, ensure the buttons don't overlap */
@media (max-width: 768px) {
    .filter-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-btn {
        margin-left: 5px;
        width: 80%; /* Make the navigation button stand out on mobile */
    }
}

/* --- Sri Aurobindo Specific Styling --- */

/* The vertical line for Aurobindo (Silver) */
#auro-timeline::after {
    background-color: #cbd5e0; 
}

/* Aurobindo's Cards */
#auro-timeline .content {
    border-top: 4px solid #4a90e2; /* Spiritual Blue top border */
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

/* Aurobindo's Dots on the timeline (Blue with Silver border) */
#auro-timeline .event::after {
    border: 3px solid #cbd5e0;
    background-color: #4a90e2;
}

/* Aurobindo's Date Heading */
#auro-timeline h3 {
    color: #2c5282 !important; /* Deep Navy Blue */
    font-weight: 700;
}

/* Aurobindo's Filter Buttons (Active State) */
.auro-btn.active {
    background: #4a90e2 !important;
    border-color: #2c5282 !important;
    color: white !important;
}

/* Specific Badges for Aurobindo's Life/Work */
#auro-timeline .badge-life {
    background: #e1effe;
    color: #1e429f;
}

#auro-timeline .badge-work {
    background: #ebf5ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

   /* Sanskrit Section */
        .sanskrit-section { padding: 80px 20px; background: #fffaf0; text-align: center; }
        .shloka-card { max-width: 700px; margin: 30px auto; background: white; padding: 40px; border-radius: 15px; border: 1px solid rgba(180, 151, 90, 0.2); }
        .devanagari { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 15px; font-weight: bold; }
        .translation { font-family: 'Lora', serif; font-size: 1.25rem; font-style: italic; }