/* --- 1. Dark Mode Variables --- */
:root {
    --color-background: #1e1e1e;       /* Primary Dark Background */
    --color-text: #e0e0e0;             /* Light Text */
    --color-primary: #a00000;          /* Chili Red (Accent/Heading Color) */
    --color-secondary-bg: #2d2d2d;     /* Slightly Lighter Background for Sections/Cards */
    --color-border: #444;              /* Darker Border Lines */
    --color-accent: #ffcc00;           /* Yellow Accent (for CTAs/Links) */
}

/* --- 2. Base & Layout --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    
    /* Apply Dark Mode Colors */
    background-color: var(--color-background); 
    color: var(--color-text);
}

/* Centering the Main Content Container (Crucial Step) */
main {
    max-width: 1000px;
    margin: 30px auto; /* This centers the block horizontally */
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--color-primary);
}

h2 {
    border-bottom: 2px solid var(--color-border); 
    padding-bottom: 10px;
}

a {
    color: var(--color-accent);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-text);
}

section, .timeline-content {
    background-color: var(--color-secondary-bg);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5); 
}

/* --- 3. Homepage Specific Styles --- */
.main-header {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.main-header h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: white; /* Override primary color for the header text */
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 12px 25px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e6b800;
}

.featured-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-card [role="img"] { 
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    background-color: var(--color-border);
    border-radius: 4px;
    line-height: 150px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

/* --- 4. Horizontal Timeline Styles --- */
.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 80px; 
    
    /* Centering the timeline block */
    max-width: 900px;
    margin: 40px auto; 
}

/* The Horizontal Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 40px; 
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-border);
    z-index: 0;
}

.timeline-step {
    flex-basis: 18%; /* Adjust for 5 steps */
    text-align: center;
    position: relative;
    z-index: 1;
}

/* The Marker (Circle) - Contains both Time and Duration */
.timeline-marker {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    
    width: 70px; 
    height: 70px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    
    margin: 0 auto 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.timeline-marker .duration {
    font-size: 0.9em; 
    font-weight: normal;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    width: 80%;
}

/* Content Box Position */
.timeline-content {
    margin-top: 50px; 
    padding: 10px;
}

/* --- 5. Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0d0d0d;
    color: var(--color-border);
    margin-top: 40px;
}

/* --- 6. Responsiveness (Mobile View) --- */
@media (max-width: 768px) {
    /* Forcing the timeline to scroll horizontally on small devices */
    .timeline-container {
        overflow-x: scroll;
        justify-content: flex-start;
        padding-bottom: 20px;
        width: 100%;
    }
    .timeline-step {
        min-width: 150px;
        margin-right: 20px;
    }
    
    /* Stacking the featured card vertically */
    .featured-card {
        flex-direction: column;
        text-align: center;
    }
}
