/* BLOG LAYOUT */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
}

/* FEATURED ARTICLE */
.featured {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
    min-height: 300px;
}

.featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* RIGHT PANEL */
.right-panel {
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding-right: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.latest-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 10px;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #1a73e8;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* POSTS LIST */
.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.post {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* READ MORE */
a.read-more {
    color: #1a73e8;
    font-weight: bold;
    text-decoration: none;
}

a.read-more:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .right-panel {
        order: 2;
        margin-top: 20px;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
    }

    .posts {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-left: 10px;
    }

    .post {
        min-width: 260px;
        max-width: 260px;
        scroll-snap-align: start;
    }
}
