/* Import base styles */
@import url('styles.css');

/* Blog Hero Section */
.blog-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-blog.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-hero .hero-content {
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    max-width: 100%;
}

.blog-hero p {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #333;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* Blog Posts Container */
.blog-posts {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* Individual Blog Post Card */
.blog-post {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.blog-post.reverse {
    flex-direction: row-reverse;
}

.blog-post.reverse .blog-post-text {
    text-align: right;
}

.blog-post-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.blog-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-post-text {
    flex: 1;
    text-align: left;
}

.blog-post-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.blog-post-date {
    color: #ff0000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.blog-post-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    display: inline-block;
}

.blog-post.reverse .blog-post-subtitle {
    display: block;
}

.blog-post-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #c00000;
}

/* Category tags for filtering */
.blog-post[data-category] {
    display: flex;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        height: 40vh;
    }

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

    .category-filters {
        gap: 10px;
        padding: 30px 15px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .blog-posts {
        padding: 20px 15px 60px;
    }

    .blog-post {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .blog-post.reverse {
        flex-direction: column;
    }

    .blog-post-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .blog-post-image img {
        height: 180px;
    }

    .blog-post-text,
    .blog-post.reverse .blog-post-text {
        text-align: center;
    }

    .blog-post-text h2 {
        font-size: 24px;
    }

    .blog-post-subtitle {
        display: block;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero p {
        font-size: 14px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .blog-post-text h2 {
        font-size: 22px;
    }

    .blog-post-image img {
        height: 150px;
    }
}

/* Blog Post Single Page Styles */
.blog-single-hero {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-blog.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-single-hero .hero-content {
    text-align: center;
}

.blog-single-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-single-hero .post-meta {
    font-size: 14px;
    opacity: 0.9;
}

.blog-single-hero .post-meta .category {
    color: #ff6b6b;
    font-weight: 600;
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-single-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 40px 0 20px;
}

.blog-single-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 30px 0 15px;
}

.blog-single-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-single-content ul,
.blog-single-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-single-content li {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 10px;
}

.blog-single-content img {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.blog-single-content blockquote {
    border-left: 4px solid #ff0000;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6b7280;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: #c00000;
}

/* Blog CTA Section */
.blog-cta {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-blog.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.blog-cta-content {
    padding: 0 20px;
}

.blog-cta .blog-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.blog-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
}

.blog-button {
    background: #ff0000;
    color: white;
}

.blog-button:hover {
    background: #c00000;
}