:root {
    --blog-ink: #1f2937;
    --blog-mist: #f9fafb;
    --blog-sand: #fef3c7;
    --blog-green: rgb(34, 197, 94);
    --blog-green-dark: rgb(22, 163, 74);
    --blog-rose: #fecdd3;
    --blog-indigo: #e0e7ff;
}

body {
    background-color: var(--blog-mist);
    color: var(--blog-ink);
}

.blog-hero {
    padding: 70px 0 50px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 50%);
}

.blog-hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blog-indigo);
    color: #3730a3;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    position: relative;
}

.hero-card-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blog-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.hero-card p {
    color: #6b7280;
    margin-bottom: 16px;
}

.hero-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.blog-toolbar {
    padding: 10px 0 20px;
}

.toolbar-grid {
    display: grid;
    gap: 16px;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 1rem;
}

.search-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease;
}

.chip.active,
.chip:hover {
    background: var(--blog-green);
    color: #ffffff;
    border-color: var(--blog-green);
}

.blog-grid-section {
    padding: 20px 0 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.blog-card-image {
    height: 180px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 18px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.meta-tag {
    background: var(--blog-sand);
    color: #92400e;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.blog-card-body p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9ca3af;
}

.newsletter {
    padding: 40px 0 70px;
}

.newsletter-card {
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.14), rgba(254, 205, 211, 0.4));
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: center;
}

.newsletter-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.newsletter-card p {
    color: #4b5563;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-card-footer {
        flex-direction: column;
        gap: 6px;
    }
}
