/* Blog Page Specific Styles */

/* Blog Hero */
.blog-hero {
    padding: 10rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/blog-bg.jpg') center/cover;
    color: white;
    background-attachment: fixed;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    padding: 1rem 0;
    background-color: var(--light-background);
}

.categories-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.categories-nav ul li {
    position: relative;
}

.categories-nav ul li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.categories-nav ul li.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.categories-nav ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.categories-nav ul li a:hover {
    color: var(--primary-color);
}

/* Featured Post */
.featured-post {
    padding: 4rem 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-image {
    overflow: hidden;
}

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

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

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta .category {
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.post-meta .date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.featured-content p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    margin-bottom: 2rem;
}

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

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Coming Soon Blog */
.coming-soon-blog {
    padding: 5rem 0;
    background-color: var(--light-background);
}

.coming-soon-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.icon-container {
    width: 120px;
    height: 120px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.icon-container i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.coming-soon-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.future-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.category-item {
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.category-item p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

.development-info {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.development-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.development-info p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-follow {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-follow .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Blog Posts */
.blog-posts {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-image {
    height: 220px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination a.active, .pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2.5rem;
    color: var(--light-text);
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Media Queries */
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 400px;
    }

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

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .categories-nav ul {
        gap: 1rem;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

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

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

    .coming-soon-content h2 {
        font-size: 2rem;
    }

    .future-categories {
        grid-template-columns: 1fr;
    }

    .development-info {
        text-align: center;
    }

    .social-follow {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .featured-image {
        height: 250px;
    }
}
