/* Blogs Page Styles */

body {
    background-color: #ffffff;
    color: #101828;
}

/* Wrapper with 6% horizontal padding so first section aligns with blog-cards on wide screens */
.blog-hero-wrapper {
    padding: 60px 6% 100px;
    box-sizing: border-box;
}

.blog-hero-wrapper .blog-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.blog-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Top Section: Hero + Featured List --- */
.blog-top-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left: Hero Post */
.hero-post {
    flex: 1.5; /* Takes up more space */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-post-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.hero-post-link:hover {
    opacity: 0.92;
}

.hero-post-link .hero-title:hover {
    color: #e85c29;
}

.hero-category {
    font-weight: 600;
    color: #e85c29;
}

.hero-reading-time {
    color: #667085;
}

.list-item-link {
    text-decoration: none;
    color: inherit;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-link:hover .card-title {
    color: #e85c29;
}

.hero-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #101828;
    line-height: 1.2;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-excerpt {
    font-size: 18px;
    color: #475467;
    line-height: 1.5;
}

.hero-meta, .list-meta, .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #667085;
}

.author {
    font-weight: 600;
    color: #101828;
}

/* Right: Featured Posts List */
.featured-list-section {
    flex: 1; /* Takes up less space */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-heading-wrap {
    margin-bottom: 20px;
    align-self: flex-start;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 8px;
}

.section-heading-accent {
    display: block;
    width: 48px;
    height: 3px;
    background-color: #e85c29;
    border-radius: 0;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-list-hr {
    margin: 2px 0;
    border: none;
    border-top: 1px solid #e4e7ec;
}

.list-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

.list-item:last-child {
    padding-bottom: 0;
}

.list-title {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.list-title:hover {
    color: #e85c29;
    cursor: pointer;
}

/* --- Blog Cards Section (grey bg, same as index sections) --- */
.blog-cards-section {
    background-color: #f3f4f6;
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.blog-cards-section .blog-cards-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- Bottom Section: Grid of Posts --- */
.blog-grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 14px;
    color: #475467;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-top-section {
        flex-direction: column;
    }

    .hero-post, .featured-list-section {
        flex: auto;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .blog-grid-section {
        grid-template-columns: 1fr;
    }
}