/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Category Filters */
.blog-filters {
    padding: 0 0 48px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.filter-tab.active {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: white;
}

/* Featured Post */
.blog-featured {
    padding: 0 0 64px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.12);
}

.featured-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.featured-content {
    padding: 40px 48px 40px 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-category {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(46, 213, 115, 0.1);
    border-radius: 100px;
}

.post-date {
    font-size: 13px;
    color: #999;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Blog Grid */
.blog-grid-section {
    padding: 0 0 64px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-top: auto;
}

/* Load More */
.blog-load-more {
    text-align: center;
    margin-top: 48px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

/* Newsletter */
.blog-newsletter {
    padding: 64px 0 100px;
}

.newsletter-card {
    background: linear-gradient(135deg, #1a4a4a 0%, #2a7d6a 50%, #4a9d7d 100%);
    border-radius: 24px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../assets/noise.svg");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    padding: 16px 24px;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    width: 280px;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.3);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Active nav link */
.nav-link.active {
    background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 32px;
    }

    .featured-title {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 120px 0 40px;
    }

    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        flex-shrink: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 24px;
    }

    .featured-title {
        font-size: 20px;
    }

    .newsletter-card {
        padding: 32px 24px;
    }

    .newsletter-content h2 {
        font-size: 22px;
    }
}
