body {
    background: #111;
    color: #fff;
}

h2.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.blog-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    min-height: 450px; /* Set a minimum height for consistency */
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
}

.blog-card img {
    width: 100%;
    height: 220px; /* Already set, kept for consistency */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.blog-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    flex-grow: 1; /* Makes content area expand to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes content evenly */
}

.blog-category {
    font-size: 0.9rem;
    color: #D4AF37;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
    margin-bottom: 10px; /* Ensure consistent spacing */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit title to 3 lines */
    -webkit-box-orient: vertical;
}

.blog-card:hover .blog-title {
    color: #D4AF37;
}

.blog-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 10px;
}

.blog-author {
    font-style: italic;
    color: #ccc;
}

/* Unique Hover Overlay Effect */
.blog-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212,175,55,0.1);
    transition: top 0.4s ease;
    z-index: 1;
}

.blog-card:hover::after {
    top: 0;
}

@media (max-width: 768px) {
    .blog-card {
        min-height: 400px; /* Smaller height for mobile */
    }
    .blog-card img {
        height: 180px; /* Smaller image height for mobile */
    }
}