/* --- (Keep the existing Global Reset & Base Styles from the previous response) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
    text-decoration: underline; /* Add underline on hover for clarity */
}

ul {
    list-style: none;
}

/* Header Styling */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

/* Timeline Container (Vertical Line) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #035a00;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #fff;
    border: 4px solid #035a00;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left/right */
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -16px; }

/* Content Box Styling (Including new details/summary styling) */
.content {
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0; /* Remove default padding here, use details/summary padding */
}

/* Style the summary (the visible title/year) */
summary {
    font-weight: bold;
    cursor: pointer;
    padding: 20px 30px;
    background-color: #e9ecef; /* Light background for the title area */
    border-radius: 6px;
    user-select: none;
    outline: none;
    color: #1a1a1a;
    transition: background-color 0.3s ease;
}

summary:hover {
    background-color: #dee2e6;
}

/* Style for the expandable content */
details p {
    padding: 10px 30px 0px;
    margin: 0;
}

details a {
    display: inline-block;
    padding: 0 30px 20px;
    font-weight: bold;
}

/* Change appearance of the default triangle/arrow */
summary::-webkit-details-marker {
    display: none; /* Hide default marker */
}

summary::before {
    content: '+'; /* Use a plus sign for collapsed state */
    font-size: 1.5rem;
    color: #870000;
    margin-right: 10px;
    float: right;
    transition: transform 0.2s;
}

details[open] summary::before {
    content: '-'; /* Use a minus sign for expanded state */
    transform: rotate(0deg);
}


/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #035a00;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #035a00;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #035a00;
    border-width: 10px 10px 10px 0;
    border-color: transparent #035a00 transparent transparent;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #1a1a1a;
    color: #fff;
    margin-top: 40px;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
}
