/* ==================================== */
/*          BLOG PAGE STYLES            */
/* ==================================== */

/* Page Title Banner
--------------------------------------*/
.page-title-banner {
    padding-top: calc(91px + 4rem);
    padding-bottom: 4rem;
    background-color: var(--secondary-color);
    text-align: center;
}

.page-title-banner h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-title-banner p {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}


/* Main Blog Section
--------------------------------------*/
.blog-section {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.blog-layout {
    /* No grid needed anymore, it's just a single column */
    max-width: 850px; /* Constrain the width for better readability */
    margin: 0 auto;
}


/* Blog Feed & Post Cards
--------------------------------------*/
.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.blog-post-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.post-image-link {
    display: block;
    overflow: hidden;
}

.blog-post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.post-meta span {
    font-weight: 500;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}

.post-title a:hover {
    background-size: 100% 2px;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.read-more-link:hover i {
    transform: translateX(4px);
}


/* All sidebar styles have been removed */


/* Responsive adjustments for blog page */
@media (max-width: 767px) {
    .page-title-banner {
        padding-top: calc(63px + 2rem);
        padding-bottom: 2rem;
    }
    .page-title-banner h1 {
        font-size: 2rem;
    }

    .blog-section {
        padding: 40px 0;
    }
    .post-content {
        padding: 1.5rem;
    }
    .post-title {
        font-size: 1.5rem;
    }
}