/* Hero Section */
.blog-hero {
    width: 100%;
    height: 380px;
    background: url('../assets/blog-banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgb(0 115 86 / 35%); /* Soft dark overlay to mimic the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Grid Layout container */
.blog-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Design */
.blog-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

/* Content wrapper using flexbox to keep footers perfectly aligned */
.card-content {
    padding: 30px 25px 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    color: #555555;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
}
h2.card-title:hover {
    color: #0cac83;
}

.card-excerpt {
    font-size: 0.92rem;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the read more link down if text varies */
}

.read-more {
    font-size: 0.8rem;
    color: #74cc94; /* Light green tone match */
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    width: max-content;
}

.read-more:hover {
    text-decoration: underline;
    color: #0cac83;
}

/* Card Footer */
.card-footer {
    padding: 15px 25px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    font-size: 0.78rem;
    color: #999999;
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-footer .author {
    color: #999999;
}

#blog-pagination {
    margin-top: 65px !important;
    width: 40% !important;
}

.page-item.active .page-link, .pagination li.active > a:not(.page-link) {
    border-color: #0c3040;
    background-color: #0c3040;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        height: 250px;
    }
    .blog-hero h1 {
        font-size: 2.2rem;
    }
}