:root {
    --green: #4CAF50;
    --dark: #1b331d;
    --light: #f4fcf4;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background: var(--light); color: var(--dark); overflow-x: hidden; }

/* --- Responsive Navigation --- */
.navbar {
    height: 80px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0; z-index: 1000;
}

/*.logo { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.logo span { color: var(--dark); }*/

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--green); }

.nav-btn { background: var(--green); color: white !important; padding: 8px 20px; border-radius: 5px; }

/* Mobile Menu Button */
#click { display: none; }
.menu-btn { display: none; cursor: pointer; }

/* --- Main Layout --- */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.main-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }

/* Responsive Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.blog-card:hover { transform: translateY(-10px); }

img.card-img { width: 100%; height: 200px; object-fit: contain; object-position: center; background-color: #f4fcf4; }

.card-body { padding: 25px; }
.tag { font-size: 0.7rem; background: #e8f5e9; color: var(--green); padding: 4px 12px; border-radius: 50px; font-weight: 700; }
.card-body h2 { margin: 15px 0; font-size: 1.3rem; }
.card-body p { color: #666; font-size: 0.9rem; margin-bottom: 20px; }

.read-btn {
    width: 100%; padding: 12px; border: none; background: var(--dark);
    color: white; border-radius: 8px; cursor: pointer; font-weight: 600;
    text-decoration: none; display: inline-block; text-align: center;
}

.detail-content { max-width: 800px; margin: 0 auto; }
.detail-img { width: 100%; max-height: 400px; object-fit: contain; margin-bottom: 20px; }
.detail-content p { margin-bottom: 15px; line-height: 1.6; }
.detail-content ul { margin-left: 20px; margin-bottom: 15px; }
.detail-content li { margin-bottom: 10px; }

/* --- Modal --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000; backdrop-filter: blur(5px);
}

.modal-box {
    background: white; width: 90%; max-width: 500px; margin: 100px auto;
    padding: 30px; border-radius: 15px; position: relative;
    animation: pop 0.3s ease; max-height: 80vh; overflow-y: auto;
}

.close-modal { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; }

@keyframes pop { from { transform: scale(0.8); } to { transform: scale(1); } }

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 80px; left: -100%; background: var(--white);
        width: 100%; height: calc(100vh - 80px); flex-direction: column;
        justify-content: center; transition: 0.4s; z-index: 999;
    }
    #click:checked ~ .nav-links { left: 0; }
    .nav-links li { margin: 20px 0; }
}

@media (max-width: 480px) {
    .main-title { font-size: 1.6rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .modal-box { width: 95%; padding: 20px; margin: 50px auto; max-height: 90vh; }
}