/* Blog Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-radius: 0 0 50% 50%;
    z-index: 0;
}

.blog-hero__content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero .section__subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8125rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.blog-hero .section__title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.blog-hero .section__description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Post */
.featured-post {
    padding: 80px 0;
    background: #fafafa;
}

.featured-post__card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-post__card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
}

.featured-post__badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.featured-post__image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post__card:hover .featured-post__image img {
    transform: scale(1.05);
}

.featured-post__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post__category {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.post__date,
.post__reading-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.featured-post__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.featured-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post__title a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.featured-post__excerpt {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0 100px;
    background: #fafafa;
}

.blog-posts .section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-posts .section__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.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.1);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.blog-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.blog-card__title a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.blog-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-card__link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-card__link:hover {
    gap: 0.75rem;
}

.blog-card__link i {
    transition: transform 0.3s ease;
}

.blog-card__link:hover i {
    transform: translateX(4px);
}

/* Blog CTA Section */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-cta__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-cta__title {
    font-size: 2.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.blog-cta__description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.blog-cta__actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-cta .btn--outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 700;
}

.blog-cta .btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .featured-post__card {
        gap: 2rem;
    }

    .featured-post__content {
        padding: 2rem;
    }

    .featured-post__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .blog-hero::before {
        height: 300px;
    }

    .blog-hero .section__title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .blog-hero .section__description {
        font-size: 1.0625rem;
    }
    
    .blog-hero .section__subtitle {
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
    }

    .featured-post {
        padding: 60px 0;
    }

    .featured-post__card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-post__badge {
        top: 1rem;
        left: 1rem;
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }

    .featured-post__image {
        min-height: 300px;
    }

    .featured-post__content {
        padding: 2rem 1.5rem;
    }

    .featured-post__title {
        font-size: 1.75rem;
    }

    .featured-post__excerpt {
        font-size: 1rem;
    }
    
    .featured-post__content {
        padding: 2rem 1.5rem;
    }

    .blog-posts {
        padding: 60px 0;
    }

    .blog-posts__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card__image {
        height: 200px;
    }

    .blog-cta {
        padding: 60px 0;
    }

    .blog-cta__title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .blog-cta__description {
        font-size: 1.0625rem;
    }
    
    .blog-cta {
        padding: 60px 0;
    }

    .blog-cta__actions {
        flex-direction: column;
    }

    .blog-cta__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero .section__title {
        font-size: 1.75rem;
    }

    .featured-post__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .featured-post__title {
        font-size: 1.25rem;
    }

    .blog-card__title {
        font-size: 1.125rem;
    }

    .blog-cta__title {
        font-size: 1.5rem;
    }
}
