/* Latest Posts Block Styles */

.latest-posts-block .latest-posts-description {
    margin-bottom: 40px;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.latest-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.latest-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.latest-post-content {
    padding: 20px;
}

.latest-post-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.latest-post-title a {
    color: inherit;
    text-decoration: none;
}

.latest-post-date {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.latest-post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
}

.latest-posts-button {
    text-align: center;
    margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Convert to slider on mobile */
    .latest-posts-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .latest-post-item {
        flex: 0 0 85%;
        scroll-snap-align: start;
        max-width: none;
    }
} 
/* Style new news block */
#page .latest-posts-block h2 {
    font-family: var(--main-font) !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    line-height: 36px !important;
    letter-spacing: 0px !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    padding: 0 160px;
    color: var(--button-primary-text);
}
#page .latest-posts-block .latest-posts-description p {
    font-family: var(--basic-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
}
#page .latest-posts-block .latest-posts-description {
    margin-bottom: 64px;
    padding: 0 160px;
}
#page .latest-posts-grid {
    margin-bottom: 80px;
    display: flex;
    gap: 16px;
    max-width: 1064px;
    margin: 0 auto 80px;
    align-items: center;
    justify-content: center;
}
#page .latest-posts-grid .latest-post-item {
    max-width: 344px;
    background: var(--beige);
    box-shadow: none;
    border-radius: 16px;
}
#page .latest-posts-button {
    text-align: center; 
}
#page .latest-posts-button a {
    padding: 9px 24px;
    border-radius: 40px;
    font-family: var(--basic-font);
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0px;
    text-align: center;
    background: var(--yellow);
    color: var(--button-primary-text);
}
#page .latest-posts-button a:hover {
    background: var(--orange);
}

#page .latest-posts-grid .latest-post-content {
    padding: 16px;
}

#page .latest-posts-grid .latest-post-image a img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 168px;
}
#page .latest-posts-grid .latest-post-content .latest-post-date {
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 3px;
    vertical-align: middle;
    text-transform: uppercase;

}

#page .latest-posts-grid .latest-post-content .latest-post-title {
    font-family: var(--main-font) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    letter-spacing: 0px !important;
    color: #132A18 !important;
    margin-bottom: 24px;
}

#page .latest-posts-grid .latest-post-content .latest-post-excerpt {
    font-family: var(--basic-sans) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    letter-spacing: 0px !important;
    color: #79756B !important;
    margin-bottom: 48px;
}
#page .latest-posts-grid .latest-post-content .latest-post-button {
    text-align: center;
}

#page .latest-posts-grid .latest-post-content .read-more {
    border: 1px solid var(--orange);
    border-radius: 40px;
    padding: 4px 24px;
    color: var(--orange);
    font-family: var(--basic-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

#page .latest-posts-grid .latest-post-content .read-more:hover {
    background: var(--orange);
    color: var(--white);
}
