/* Base & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f9fbf9; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; border-radius: 8px; }

/* Header & Navigation */
header { background: #234d20; color: white; padding: 1rem 5%; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: #8bb174; }
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
nav a { font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #8bb174; }
.shop-btn { background: #8bb174; color: #1a3617; padding: 0.5rem 1rem; border-radius: 4px; font-weight: bold; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; background: none; border: none; color: white; }

/* Homepage Hero & Static Sections */
.hero-section { background: linear-gradient(rgba(17, 36, 15, 0.7), rgba(17, 36, 15, 0.8)), url('https://images.unsplash.com/photo-1520302628117-4ebfa246e7f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; color: white; text-align: center; padding: 100px 20px; border-radius: 10px; margin-bottom: 3rem; margin-top: 2rem; }
.hero-section h1 { font-size: 3rem; margin-bottom: 1rem; color: #fff; }
.hero-section p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; color: #e0e0e0; }
.hero-btn { background: #8bb174; color: #1a3617; padding: 12px 25px; border-radius: 5px; font-weight: bold; text-decoration: none; font-size: 1.1rem; transition: background 0.3s; }
.hero-btn:hover { background: #a2c98a; }
.section-title { text-align: center; color: #234d20; font-size: 2.2rem; margin-bottom: 2rem; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Grids & Cards */
main { max-width: 1200px; margin: 0 auto 2rem; padding: 0 5%; flex: 1; width: 100%; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.care-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s; }
.care-card:hover { transform: translateY(-5px); }
.care-card img { width: 100%; height: 200px; object-fit: cover; }
.care-content { padding: 1.5rem; }
.care-content h3 { color: #234d20; margin-bottom: 0.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.post-card { background: white; border-radius: 10px; padding: 1.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid #8bb174; display: flex; flex-direction: column; }
.post-meta { font-size: 0.85rem; color: #777; margin-bottom: 1rem; }
.post-media { margin: 1rem 0; }
.post-excerpt { flex-grow: 1; margin-bottom: 1.5rem; color: #444; }
.read-more-btn { display: inline-block; text-align: center; background: #234d20; color: white; padding: 10px; border-radius: 5px; font-weight: bold; transition: background 0.3s; margin-top: auto; }
.read-more-btn:hover { background: #1a3617; }

/* Categories, Search & Pagination */
.category-badge { display: inline-block; background: #d4edda; color: #155724; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; border: 1px solid #c3e6cb; }
.filter-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.filter-btn { padding: 8px 16px; background: #fff; border: 2px solid #8bb174; color: #234d20; border-radius: 25px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; }
.filter-btn:hover { background: #eef5eb; }
.filter-btn.active { background: #8bb174; color: #1a3617; border-color: #8bb174; }
.search-container { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.search-input { padding: 12px 20px; width: 100%; max-width: 400px; border: 2px solid #8bb174; border-radius: 25px 0 0 25px; font-size: 1rem; outline: none; transition: box-shadow 0.3s; }
.search-input:focus { box-shadow: 0 0 8px rgba(139, 177, 116, 0.4); }
.search-btn { padding: 12px 25px; background: #8bb174; color: #1a3617; border: 2px solid #8bb174; border-radius: 0 25px 25px 0; font-weight: bold; cursor: pointer; transition: background 0.3s; font-size: 1rem; }
.pagination { display: flex; justify-content: center; gap: 15px; margin-top: 3rem; margin-bottom: 2rem; align-items: center; }
.page-btn { padding: 10px 20px; background: #234d20; color: white; border-radius: 5px; font-weight: bold; transition: background 0.3s; }
.page-btn.disabled { background: #ccc; cursor: not-allowed; color: #666; pointer-events: none; }

/* Single Post View & Comments */
.single-post-container { max-width: 800px; margin: 2rem auto; padding: 0 20px; }
.single-post-header { margin-bottom: 2rem; text-align: center; }
.single-post-title { color: #234d20; font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.single-post-meta { color: #666; font-size: 0.95rem; border-bottom: 1px solid #eee; padding-bottom: 2rem; }
.single-post-media { margin-bottom: 2.5rem; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.single-post-media img, .single-post-media video { width: 100%; display: block; }
.single-post-content { font-size: 1.15rem; line-height: 1.8; color: #444; margin-bottom: 4rem; }
.back-link { display: inline-block; margin-bottom: 2rem; color: #8bb174; font-weight: bold; font-size: 1.1rem; }
.comments-section { border-top: 2px solid #eee; padding-top: 3rem; margin-top: 3rem; }
.comment-box { background: #f9fbf9; border: 1px solid #e2ece0; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.comment-stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.comment-form { background: white; padding: 2rem; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #555; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.btn-submit { background: #234d20; color: white; border: none; padding: 12px 25px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: background 0.3s; }

/* Admin & Shop CTA */
.admin-form { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); max-width: 600px; margin: 0 auto; }
.shop-cta { background: #eef5eb; padding: 3rem 2rem; text-align: center; border-radius: 10px; margin: 4rem 0; border: 1px solid #dce8d6; }
footer { background: #111; color: #ccc; text-align: center; padding: 1.5rem; margin-top: auto; }

/* Mobile Resizing */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #234d20; padding: 1rem 0; }
    nav ul.active { display: flex; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section { padding: 60px 20px; }
    .single-post-title { font-size: 2rem; }
}