.posts-timeline-container {
    max-width: 1000px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    font-family: "Georgia", "Times New Roman", serif;
}

.timeline-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #8faa96;
    padding: 10px 20px;
    margin: 0 8px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #4a6741;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(143, 170, 150, 0.2);
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(143, 170, 150, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 170, 150, 0.3);
}

.filter-btn.active {
    background: #8faa96;
    color: white;
    box-shadow: 0 4px 12px rgba(143, 170, 150, 0.4);
}

.timeline-wrapper {
    position: relative;
    margin-bottom: 230px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(to right, 
        #8b6f47 0%, 
        #a0845a 15%, 
        #b8956b 30%, 
        #a0845a 50%, 
        #8b6f47 70%, 
        #6d5530 85%, 
        #5a4625 100%);
    border-radius: 6px;
    box-shadow: 
        inset 2px 0 4px rgba(0,0,0,0.3),
        inset -2px 0 4px rgba(0,0,0,0.2),
        2px 0 8px rgba(0,0,0,0.1);
}

.timeline-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2px;
    right: 2px;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(139, 111, 71, 0.8) 1px,
        rgba(139, 111, 71, 0.8) 2px,
        transparent 3px,
        transparent 8px
    );
    border-radius: 4px;
    opacity: 0.6;
}

.timeline-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(90, 70, 37, 0.4) 0px,
        rgba(90, 70, 37, 0.4) 2px,
        transparent 2px,
        transparent 15px,
        rgba(109, 85, 48, 0.3) 15px,
        rgba(109, 85, 48, 0.3) 17px,
        transparent 17px,
        transparent 30px
    );
    border-radius: 6px;
}

.timeline-date-section {
    position: relative;
    width: 100%;
    margin: 40px 0 40px 0;
    text-align: center;
    clear: both;
}

.timeline-date-header {
    font-weight: 600;
    color: #3d2f1f;
    padding: 25px 50px;
    background-image: url('book.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
    font-family: "Georgia", serif;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    min-width: 320px;
    min-height: 90px;
    display: flex;
    align-items: start;
    justify-content: center;
    text-transform: capitalize;
}


.timeline-item {
    position: relative;
    margin-bottom: -170px;
    width: 48%;
    clear: both;
}

.timeline-item.before-date-section {
    margin-bottom: 70px;
}

/* Left side posts */
.timeline-left {
    float: left;
    padding-right: 40px;
}

.timeline-left .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(143, 170, 150, 0.2);
    border-right: 5px solid #8faa96;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-left .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(143, 170, 150, 0.3);
}

/* Right side posts */
.timeline-right {
    float: right;
    padding-left: 40px;
}


.timeline-right .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(143, 170, 150, 0.2);
    border-left: 5px solid #758e7c;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-right .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(143, 170, 150, 0.3);
}

.timeline-image-wrapper {
    margin-bottom: 18px;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
}

.timeline-featured-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.4s ease;
    filter: sepia(10%) saturate(1.1);
}

.timeline-featured-image:hover {
    transform: scale(1.05);
}

.timeline-placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(217, 224, 210, 0.8) 0%, 
        rgba(190, 207, 197, 0.9) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(143, 170, 150, 0.6);
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
    color: #8faa96;
}

.timeline-time {
    color: #4a6741;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    background: rgba(217, 224, 210, 0.7);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    font-family: "Georgia", serif;
    letter-spacing: 0.3px;
}

.timeline-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-family: "Georgia", serif;
    line-height: 1.3;
}

.timeline-title a {
    color: #2d3e2a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-title a:hover {
    color: #4a6741;
}

.timeline-categories {
    margin: 15px 0;
}

.category-tag {
    background: rgba(143, 170, 150, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(143, 170, 150, 0.3);
}

.timeline-excerpt {
    color: #5a6b57;
    line-height: 1.7;
    margin: 18px 0;
    font-size: 15px;
}

.read-more {
    color: #4a6741;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid rgba(143, 170, 150, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(217, 224, 210, 0.3);
}

.read-more:hover {
    background: rgba(143, 170, 150, 0.2);
    border-color: #8faa96;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(143, 170, 150, 0.2);
}

/* Clear floats after timeline items */
.timeline-posts::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 25px;
        transform: none;
        width: 8px;
        display: none;
    }
    
    .timeline-item {
        width: 100% !important;
        float: none !important;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        border-left: 4px solid #8faa96;
        border-right: none;
    }
    
    .timeline-date-section {
        margin: 0px 0 30px 0;
    }
    
    .timeline-date-header {
        margin-left: 0;
        font-size: 16px;
        min-width: 0;
        min-height: 70px;
    }

    .timeline-placeholder-image {
        height: 150px;
    }

    .placeholder-icon {
        font-size: 36px;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 8px 16px;
        font-size: 13px;
    }
}
