/* BLOG HERO SECTION */
.blog-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 2rem auto 0;
    padding: 2rem;
    max-width: 1200px;
}

.hero-left {
    max-width: 520px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.subscribe-box {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.4rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    max-width: 480px;
}

.subscribe-box input {
    padding: 0.9rem 1.2rem;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--text);
}

.subscribe-box input::placeholder {
    color: var(--muted);
}

.subscribe-btn {
    font-size: 16px;
    padding: 0.9rem 1.8rem;
    background: var(--accent);
    border: none;
    border-radius: calc(var(--radius) * 1.5);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subscribe-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-right {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

/* FILTER BAR */
.blog-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    background: var(--card);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group.categories {
    flex: 1;
}

.filter-group.sorting {
    position: relative;
}

.filter-group.sorting > span {
    display: none;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-toggle i {
    font-size: 1.1rem;
}

/* Dropdown Menu */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: calc(var(--radius) * 1.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-dropdown a:hover {
    background: #f3f4f6;
    color: var(--accent);
}

.filter-dropdown a.active {
    background: var(--accent);
    color: #fff;
}

.filter-button {
    padding: 0.65rem 1.25rem;
    border-radius: calc(var(--radius) * 1.25);
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.filter-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* BLOG LIST */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    max-width: 1200px;
}

.blog-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
    transition: transform 0.4s ease;
}

.blog-title {
    padding: 1.5rem 1.5rem 0.75rem;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--accent);
}

.blog-excerpt {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .blog-hero {
        gap: 3rem;
        padding: 3rem 1.5rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .social-links {
        justify-content: center;
    }

    .hero-right img {
        width: 400px;
        height: 320px;
    }

    .blog-filter-bar {
        padding: 1.5rem 1.5rem;
        margin-top: 0;
    }

    .blog-list {
        padding: 0 1.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 3rem 1.5rem 0;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .subscribe-box {
        margin: 0 auto;
        width: 100%;
    }

    p.social {
        text-align: left;
    }

    .social-links {
        display: flex;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-right img {
        display: none;
    }

    .blog-filter-bar {
        flex-direction: row-reverse;
        align-items: start;
        padding: 1.25rem 1.5rem;
        gap: 1.25rem;
        margin: 0 1rem;
    }

    .filter-group.categories {
        order: 2;
    }

    .filter-group.sorting {
        order: 1;
        justify-content: flex-end;
    }

    .blog-list {
        gap: 2rem;
        padding: 0 1rem 3rem;
    }
}
