/* Blog Post */
.blog-post {
    padding: 30px;
}
/* Blog Styles */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 60px;
}

.blog-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Featured Posts Carousel */
.featured-posts {
    padding: 60px 20px;
    background: #f8f9fa;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.featured-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.featured-post h3 {
    padding: 20px 20px 10px;
    font-size: 1.4em;
}

.featured-post p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.featured-post .btn-primary {
    margin: 0 20px 20px;
    display: inline-block;
}

/* Blog Grid */
.blog-listing {
    padding: 60px 20px;
}

.blog-listing h2 {
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.blog-preview h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.blog-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
    padding: 60px 20px;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1em;
}

.testimonial-author p {
    margin: 5px 0 0;
    color: #666;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/img/newsletter-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

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

.newsletter h2 {
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

.newsletter-form .btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form .btn-primary:hover {
    background: #0056b3;
}

#newsletter-message {
    margin-top: 15px;
}

#newsletter-message .success {
    color: #28a745;
}

#newsletter-message .error {
    color: #dc3545;
}

/* Swiper Customization */
.swiper {
    padding: 20px 0 40px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2em;
    }

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

    .newsletter-form .btn-primary {
        width: 100%;
    }
}

/* Three.js 3D Background */
.blog-hero.has-three-bg,
.post-header.has-three-bg {
    position: relative;
    overflow: hidden;
}

.three-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.three-bg canvas.three-bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-hero.has-three-bg h1,
.blog-hero.has-three-bg p,
.post-header.has-three-bg h1,
.post-header.has-three-bg .post-meta {
    position: relative;
    z-index: 2;
}