/* Blog Page Styles - Redesigned */

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #ccc;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Page Banner */
.page-banner {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Blog Section */
.blog-section {
    padding: 40px 0 80px;
    background-color: var(--secondary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-post .post-image {
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

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

.featured-post:hover .post-image img {
    transform: scale(1.03);
}

.featured-post .post-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-post p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Post Cards */
.post-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    position: relative;
    height: 240px;
    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-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.post-meta i {
    color: var(--primary-color);
}

.post-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.post-card p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    flex-grow: 1;
}

.read-more-btn {
    align-self: flex-start;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.pagination .current-page {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(230, 107, 50, 0.3);
}

.pagination .page-number {
    background-color: var(--white-color);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination .page-number:hover {
    background-color: #f0f0f0;
}

/* Newsletter Section (Overrides for Blog) */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    margin-top: 60px;
    border-radius: 0;
    /* Full width */
}

.newsletter-content h2 {
    color: var(--white-color);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form input {
    border: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding: 15px 25px;
}

.newsletter-form button {
    background-color: var(--text-dark);
    color: var(--white-color);
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    padding: 0 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post .post-image {
        min-height: 300px;
        order: -1;
    }

    .featured-post .post-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile readability */
        gap: 30px;
    }

    .featured-post h2 {
        font-size: 1.8rem;
    }

    .post-card h3 {
        font-size: 1.3rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: var(--radius-pill);
    }
}