
/*=================================================
    BLOG STYLES - COLLAPSIBLE & TIMELINE
=================================================*/

/* General Blog Container */
#blog-posts-section {
    margin-top: 40px;
}

/* Monthly Collapsible Section */
.month-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.month-title-collapsible {
    cursor: pointer;
    padding: 15px 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 0;
    font-size: 1.4em;
    color: #333;
    position: relative;
    transition: background-color 0.3s ease;
}

.month-title-collapsible:hover {
    background-color: #f0f0f0;
}

/* Arrow for collapsible section */
.month-title-collapsible::after {
    content: '\25B6'; /* Right-pointing triangle */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.month-title-collapsible.expanded::after {
    transform: translateY(-50%) rotate(90deg); /* Down-pointing triangle */
}

.posts-container {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

/* Individual Blog Post Styling */
.blog-post {
    padding: 20px 0;
    border-bottom: 1px dashed #ccc;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post img {
    max-width: 250px;
    height: auto;
    object-fit: cover;
    float: left;
    margin: 0 20px 10px 0;
    border-radius: 8px;
}

.blog-post h2, .blog-post h3 {
    font-size: 1.5rem; /* Standardizing heading sizes */
    margin-top: 0;
}

.blog-post p {
    text-align: justify;
    line-height: 1.7;
}

/* Clear float after each post */
.blog-post::after {
    content: "";
    display: table;
    clear: both;
}


/* === FINAL, BUTTON-STYLE DATE STYLING === */

/* The paragraph containing the date. Reset styles. */
.blog-post p:has(.date-highlight) {
    text-align: left;
    margin: 0 0 15px 0;
    font-size: 1em;
    line-height: 1;
}

/* The styled date itself, mimicking the active filter button. */
.date-highlight {
    display: inline-block; /* Essential for padding, border-radius */
    background-color: #333; /* Dark grey from the button */
    color: #FFFFFF;            /* White text */
    padding: 8px 15px;         /* Comfortable padding */
    border-radius: 25px;       /* Pill shape from the button */
    font-size: 0.9em;          /* Slightly smaller font */
    font-style: normal;
    border: none;
    line-height: 1.2;          /* Adjust for vertical text centering */
}



/* Progress Bar still here for initial load */
#blog-content-container .progress-bar-container {
    display: block; /* Initially visible */
}

.filter-buttons-container {
    margin-bottom: 20px;
    padding-bottom: 20px; /* Space between buttons and the line */
    border-bottom: 1px solid #ddd; /* Elegant separator line */
}

#timeline-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px; /* Add space between the buttons */
    margin-bottom: 20px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.filter-buttons-container button,
.button-link {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 25px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none; /* Remove underline from link */
    color: #333; /* Default text color */
    text-align: center;
}

.filter-buttons-container button:hover,
.button-link:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-buttons-container button.active {
    background-color: #333;
    color: white;
    border-color: #333;
    box-shadow: none;
}

.filter-buttons-container button:disabled,
.filter-buttons-container button:disabled:hover {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #ddd;
}
