﻿/*=========================================================
                    BLOG PAGE BANNER
=========================================================*/


/*=========================================================
                    BLOG INTRO
=========================================================*/

.blog-intro {
    padding: 90px 0 60px;
    text-align: center;
}

    .blog-intro h2 {
        color: #0d47a1;
        font-size: 46px;
        margin-bottom: 20px;
    }

    .blog-intro p {
        max-width: 850px;
        margin: auto;
        color: #666;
        line-height: 1.9;
        font-size: 18px;
    }

/*=========================================================
                    BLOG GRID
=========================================================*/

.blog-section {
    width: 90%;
    max-width: 1400px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

/*=========================================================
                    BLOG CARD
=========================================================*/

.blog-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .35s;
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,.15);
    }

    .blog-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: .4s;
    }

    .blog-card:hover img {
        transform: scale(1.08);
    }

.blog-content {
    padding: 28px;
}

.blog-tag {
    display: inline-block;
    background: #0d47a1;
    color: #fff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 18px;
}

.blog-content h3 {
    color: #0d47a1;
    font-size: 24px;
    margin-bottom: 15px;
}

.blog-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 22px;
}

.read-btn {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    transition: .35s;
}

    .read-btn:hover {
        background: #ff7a00;
        transform: translateY(-2px);
    }
/*=========================================================
                    FEATURED BLOG
=========================================================*/

.featured-blog {
    background: #f8f9fc;
    padding: 100px 0;
}

.featured-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.featured-content span {
    color: #ff9800;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-content h2 {
    color: #0d47a1;
    font-size: 46px;
    margin: 20px 0;
}

.featured-content p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 20px;
}

/*=========================================================
                    NEWSLETTER
=========================================================*/

.newsletter-section {
    padding: 100px 20px;
    background: #ffffff;
}

.newsletter-box {
    max-width: 1000px;
    margin: auto;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    border-radius: 25px;
    padding: 70px 50px;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.newsletter-icon {
    font-size: 60px;
    color: #ff9800;
    margin-bottom: 25px;
}

.newsletter-box h2 {
    font-size: 46px;
    margin-bottom: 20px;
}

.newsletter-box p {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #dfe8ff;
    line-height: 1.8;
    font-size: 18px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .newsletter-form input {
        width: 500px;
        max-width: 100%;
        padding: 18px 25px;
        border: none;
        border-radius: 50px;
        outline: none;
        font-size: 16px;
    }

    .newsletter-form button {
        border: none;
        background: #ff9800;
        color: #fff;
        padding: 18px 35px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: .35s;
    }

        .newsletter-form button:hover {
            background: #ff7a00;
            transform: translateY(-3px);
        }

/*=========================================================
                    BLOG CATEGORIES
=========================================================*/

.categories {
    padding: 100px 0;
    background: #f8f9fc;
}

.category-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.category-card {
    background: #fff;
    padding: 35px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .35s;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,.15);
    }

    .category-card h3 {
        color: #0d47a1;
        margin-bottom: 12px;
        font-size: 24px;
    }

    .category-card p {
        color: #666;
        line-height: 1.8;
    }

/*=========================================================
                    BLOG STATS
=========================================================*/

.blog-stats {
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
    padding: 90px 0;
}

.blog-stats-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    text-align: center;
}

.blog-stat {
    padding: 20px;
}

    .blog-stat h2 {
        font-size: 58px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .blog-stat p {
        color: #dfe8ff;
        font-size: 18px;
    }
/*=========================================================
                    LATEST ARTICLES
=========================================================*/

.latest-articles {
    background: #ffffff;
    padding: 100px 0;
}

.latest-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.latest-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .35s;
}

    .latest-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,.15);
    }

    .latest-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.latest-content {
    padding: 25px;
}

.latest-date {
    color: #ff9800;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.latest-content h3 {
    color: #0d47a1;
    font-size: 24px;
    margin-bottom: 15px;
}

.latest-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/*=========================================================
                    BLOG CTA
=========================================================*/

.blog-cta {
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

    .blog-cta h2 {
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .blog-cta p {
        max-width: 850px;
        margin: 0 auto 35px;
        color: #dfe8ff;
        font-size: 18px;
        line-height: 1.8;
    }

    .blog-cta .btn {
        margin-top: 10px;
    }

/*=========================================================
                    AUTHOR SECTION
=========================================================*/

.author-box {
    max-width: 1000px;
    margin: 100px auto;
    background: #f8f9fc;
    border-radius: 25px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .author-box img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
    }

.author-info h3 {
    color: #0d47a1;
    margin-bottom: 10px;
    font-size: 28px;
}

.author-info p {
    color: #666;
    line-height: 1.8;
}

/*=========================================================
                    RESPONSIVE
=========================================================*/

@media(max-width:992px) {

    .blog-section {
        grid-template-columns: repeat(2,1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .blog-stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .latest-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width:768px) {

    .page-banner h1 {
        font-size: 40px;
    }

    .page-banner p {
        font-size: 16px;
    }

    .blog-intro h2 {
        font-size: 34px;
    }

    .blog-section,
    .category-grid,
    .blog-stats-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 40px 25px;
    }

        .newsletter-box h2 {
            font-size: 34px;
        }

    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form input,
        .newsletter-form button {
            width: 100%;
        }

    .blog-cta h2 {
        font-size: 34px;
    }

    .author-box {
        padding: 35px 25px;
    }

        .author-box img {
            width: 100px;
            height: 100px;
        }

    .author-info h3 {
        font-size: 24px;
    }
}

@media(max-width:480px) {

    .page-banner {
        padding: 90px 20px;
    }

        .page-banner h1 {
            font-size: 30px;
        }

        .page-banner p {
            font-size: 15px;
        }

    .blog-content {
        padding: 22px;
    }

        .blog-content h3 {
            font-size: 22px;
        }

    .blog-cta {
        padding: 70px 20px;
    }

        .blog-cta h2 {
            font-size: 28px;
        }

        .blog-cta p {
            font-size: 16px;
        }
}
.read-more-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s;
}

    .read-more-btn:hover {
        background: #0d47a1;
        transform: translateY(-3px);
    }