* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #90a57a;
    color: #789f76;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #667e59;
    color: white;
}

.logo {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
}

.nav-links li:hover {
    text-decoration: underline;
}

/* ---------- MAIN LAYOUT ---------- */
.container {
    display: flex;
    gap: 25px;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* ---------- BLOG POSTS ---------- */
.posts {
    flex: 3;
}

.post {
    background: rgb(255, 255, 255);
    padding: 1.5rem;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.post:hover {
    transform: translateY(-5px);
}

.post h2 {
    margin-bottom: 10px;
}

.post p {
    line-height: 1.6;
}

.post button {
    margin-top: 15px;
    padding: 10px 18px;
    border: none;
    background: #2a4b2a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.post button:hover {
    background: #65854f;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    height: fit-content;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.sidebar h3 {
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
    cursor: pointer;
}

.sidebar li:hover {
    color: #3b5f3a;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 1rem;
    background: #5f7151;
    margin-top: 30px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}
/* -------- Horizontal Blog Card -------- */
.horizontal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.post-content {
    flex: 2;
}

.post-image {
    flex: 1;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.horizontal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.post-content {
    flex: 2;
}

.post-image {
    flex: 1;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.read-more {
    display: inline-block;
    padding: 6px 14px; 
    font-size: 0.85rem; 
    background-color: #1f3d1f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.read-more {
    padding: 5px 12px;
    font-size: 0.8rem;
}
.read-more:hover {
    background-color: #163016;
}
