/* Blog Page Styles */

/* Hero */
.blog-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.75)),
                url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding-top: 100px;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.blog-hero-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: var(--blue-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.blog-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Featured Post */
.featured-post-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9)),
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 380px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--blue-bright);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.featured-post-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
}

.post-category {
    display: inline-block;
    color: var(--blue-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.featured-post-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-post-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.post-meta i {
    color: var(--blue-light);
}

/* Categories */
.blog-categories-section {
    background: rgba(15, 23, 42, 0.95);
    padding: 1.5rem 0;
    position: sticky;
    top: 85px;
    z-index: 100;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.blog-categories {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    color: white;
}

/* Blog Posts Grid */
.blog-posts-section {
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.88)),
                url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

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

.blog-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
}

.blog-card.hidden {
    display: none;
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--blue-bright);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-card-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.blog-card-meta i {
    color: var(--blue-light);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--blue-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--white);
    gap: 0.7rem;
}

/* Newsletter */
.blog-newsletter {
    background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.92)),
                url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=1920&h=600&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    text-align: center;
}

.newsletter-cta {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta > i {
    font-size: 3rem;
    color: var(--blue-light);
    margin-bottom: 1.5rem;
    display: block;
}

.newsletter-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.blog-newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 500px;
    margin: 0 auto;
}

.blog-newsletter-form input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
}

.blog-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.blog-newsletter-form input:focus {
    border-color: var(--blue-bright);
}

.blog-newsletter-form .btn {
    white-space: nowrap;
    border-radius: 50px;
    padding: 1rem 1.8rem;
}

/* Responsive */
@media (max-width: 968px) {
    .blog-hero { background-attachment: scroll; }
    .featured-post-section { background-attachment: scroll; }
    .blog-posts-section { background-attachment: scroll; }
    .blog-newsletter { background-attachment: scroll; }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        min-height: 260px;
    }

    .featured-post-content {
        padding: 2rem;
    }

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

    .blog-categories-section {
        top: 70px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        min-height: 55vh;
        padding-top: 85px;
        background-attachment: scroll;
    }

    .blog-hero-content h1 {
        font-size: 1.8rem;
    }

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

    .blog-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .blog-newsletter-form {
        flex-direction: column;
    }

    .blog-newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }

    .post-meta {
        gap: 0.8rem;
    }
}
