
/* ========== BLOG (home.php) — estilo Blog2.html ========== */

.hero-main {
    position: relative;
    height: 60vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video-wrapper { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; }
.hero-content h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5); margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; color: var(--accent-light); font-weight: 600; margin-bottom: 0.5rem; }
.hero-description { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }

.blog-section { padding: 3rem 0 4rem; }

.search-wrapper { display: flex; justify-content: center; margin-bottom: 2rem; }
.search-container { display: flex; gap: 0; width: 100%; max-width: 520px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 40px; overflow: hidden; }
.search-container input { flex: 1; background: transparent; border: none; outline: none; padding: 0.75rem 1.2rem; color: var(--text-primary); font-family: inherit; font-size: 0.95rem; }
.search-container input::placeholder { color: var(--text-muted); }
.search-button { background: var(--accent); border: none; color: #0a1f0a; padding: 0.75rem 1.2rem; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.search-button:hover { background: var(--accent-light); }

.blog-layout { display: flex; gap: 2rem; align-items: flex-start; }
.blog-posts-container { flex: 1; min-width: 0; }
.blog-posts { display: flex; flex-direction: column; gap: 1.5rem; }

.seed-bag-card { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.seed-bag-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(0,0,0,0.3); }
.seed-bag-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.seed-bag-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); padding: 0.75rem 1.2rem 0.25rem; margin: 0; }
.seed-bag-card p { color: var(--text-muted); font-size: 0.9rem; padding: 0 1.2rem 0.75rem; line-height: 1.6; }

.post-meta { display: flex; gap: 1rem; align-items: center; padding: 0.75rem 1.2rem 0; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.category-badge { background: rgba(124,179,66,0.15); border: 1px solid var(--border-color); color: var(--accent-light); padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }

.read-more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.5rem 1.2rem 1rem; transition: color 0.2s, gap 0.2s; }
.read-more:hover { color: var(--accent-light); gap: 0.7rem; }

.no-results { color: var(--text-muted); flex-direction: column; align-items: center; gap: 0.5rem; font-size: 1rem; padding: 3rem 0; }

.blog-sidebar { width: 220px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.2rem; position: sticky; top: 5rem; }
.sidebar-title { font-weight: 700; color: var(--accent-light); font-size: 0.9rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.category-filters { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.category-btn { width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); font-family: inherit; font-size: 0.875rem; font-weight: 500; padding: 0.55rem 0.85rem; cursor: pointer; text-align: left; transition: all 0.2s; }
.category-btn:hover { background: var(--dropdown-hover); color: var(--accent-light); border-color: var(--border-color); }
.category-btn.active { background: rgba(124,179,66,0.2); border-color: var(--accent); color: var(--accent-light); font-weight: 600; }

@media (max-width: 860px) {
    .blog-layout { flex-direction: column; }
    .blog-sidebar { width: 100%; position: static; }
    .category-filters { flex-direction: row; flex-wrap: wrap; }
    .category-btn { width: auto; }
}
@media (max-width: 600px) {
    .hero-main { height: 45vh; }
}
