/* ==========================================================================
   Timeline Wrapper
   ========================================================================== */

.rp-timeline-wrapper {
    width: 100%;
}

.rp-timeline-list {
    width: 100%;
}


/* ==========================================================================
   Month Header
   ========================================================================== */

.rp-timeline-month {
    margin: 3rem 0 1.5rem;
    border-bottom: 2px solid #3a6d49;
    padding-bottom: 0.5rem;
}

.rp-timeline-month h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #3a6d49;
    
}


/* ==========================================================================
   Timeline Item
   ========================================================================== */

.rp-timeline-item {

    display: grid;

    /*grid-template-columns: 80px 1fr;*/

    /*gap: 24px;*/
    gap: 0;

    margin-bottom: 2rem;

    align-items: start;

}


/* ==========================================================================
   Left Date Block
   ========================================================================== */

/*.rp-date-block {*/

/*    text-align: center;*/

/*    line-height: 1;*/

/*}*/

/* ==========================================================================
   Date block must ALWAYS occupy left column
   ========================================================================== */

.rp-date-block {
    width: 80px;              /* must match grid column */
    text-align: center;
    line-height: 1;
}

/* Hide repeated date but KEEP SPACE */
.rp-date-block.is-hidden {
    visibility: hidden;
}

/* Ensure grid alignment is stable */
.rp-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
}

.rp-month {

    font-size: 16px;

    font-weight: 600;

    color: #3a6d49;

    text-transform: uppercase;

}

.rp-day {

    font-size: 24px;

    font-weight: bold;

    margin-top: 4px;

    color: #3a6d49;

}


/* ==========================================================================
   Content Area
   ========================================================================== */

.rp-content {

    display: grid;

    /*grid-template-columns: 1fr 220px;*/

    /*gap: 20px;*/

    align-items: start;
    
    /*border-bottom: 1px solid #3a6d49;*/
    border-left: 1px solid #3a6d49;
    padding-bottom: 10px;
    padding-left: 24px;

}


/* ==========================================================================
   Left text portion
   ========================================================================== */

.rp-meta,
.rp-title,
.rp-excerpt,
.rp-readmore {

    grid-column: 1;

}


/* ==========================================================================
   Thumbnail
   ========================================================================== */

.rp-thumbnail {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: flex;
    justify-content: end;
}

.rp-thumbnail a {
    height: 300px;
    width: 300px;
    align-content: center;
    overflow: hidden;
    display: block;
}

.rp-thumbnail img {
    object-fit: cover;
    object-position: 50% 50%;
    width: 100%;
    height: 100% !important;
}


/* ==========================================================================
   Meta
   ========================================================================== */

.rp-meta {

    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;

    margin-bottom: 8px;

}

.rp-source-label {

    display: inline-block;

    background: #0055cc;

    color: #fff;

    padding: 3px 8px;

    border-radius: 3px;

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

}

.rp-full-date {

    color: #666;

    font-size: 15px;
    font-weight: 600;

}


/* ==========================================================================
   Title
   ========================================================================== */

.rp-title {

    margin: 0 0 10px;

    font-size: 1.4rem;

    line-height: 1.3;

}

.rp-title a, .rp-title a:hover {
    color: #3a6d49;
    text-decoration: none;
    font-weight: 700;
}



/* ==========================================================================
   Excerpt
   ========================================================================== */

.rp-excerpt {

    color: #555;

    line-height: 1.6;

    margin-bottom: 10px;

}


/* ==========================================================================
   Read More
   ========================================================================== */

.rp-readmore a {
    font-weight: 600;
    text-decoration: none;
    color: #3a6d49;
}



/* ==========================================================================
   Load More
   ========================================================================== */

.rp-load-more-container {

    text-align: center;

    margin-top: 3rem;

}

.rp-load-more {

    display: inline-block;

    padding: 12px 28px;

    border: none;

    background: #0055cc;

    color: #fff;

    cursor: pointer;

    border-radius: 4px;

    font-size: 1rem;

    transition: opacity .2s;

}

.rp-load-more:hover {

    opacity: 0.9;

}

.rp-load-more:disabled {

    opacity: 0.6;

    cursor: wait;

}

.rp-load-status {

    margin-top: 12px;

    color: #666;

    font-size: 0.9rem;

    min-height: 1.2em;

}

.rp-date-block-empty {
    visibility: hidden;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {

    .rp-timeline-item {

        grid-template-columns: 60px 1fr;

    }

    .rp-content {

        grid-template-columns: 1fr;

    }

    .rp-thumbnail {

        grid-column: 1;

        grid-row: auto;

        margin-bottom: 15px;

    }

    .rp-thumbnail img {

        max-width: 100%;

    }
    
    .rp-thumbnail {
        display: block;
    }

}

