/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&family=Lora:wght@400;600&display=swap');

/* --- Global Styles --- */
body {
    background-color: #fdfdfd;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* --- Blog Intro --- */
#blog-intro h1 {
    color: #343a40;
    font-weight: 700;
}

/* --- Navigation Pills --- */
.nav-pills .nav-link {
    color: #06725b; /* Your navbar green */
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #06725b;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 114, 91, 0.2);
}

/* --- Blog Card Styling --- */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(30px); /* Start position for animation */
    animation: fadeIn-up 0.5s ease forwards;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-img-container {
    /* height: 220px; <-- REMOVED THIS LINE */
    overflow: hidden;
    background-color: #f8f9fa; /* Added a light background for consistency */
}

.blog-card-img {
    width: 100%;
    height: auto; /* Let the height adjust automatically */
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 700;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.blog-card-link {
    text-decoration: none;
    color: #06725b;
    font-weight: 500;
}

.blog-card-link .fas {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link .fas {
    transform: translateX(5px);
}

/* --- Animation --- */
@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add staggered delay to card animation */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
/* Add more if needed */

/* --- Single Article Page Styles --- */
.article-title {
    font-size: 2.8rem;
    color: #343a40;
}
.article-meta {
    font-size: 0.9rem;
}
.article-body {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}
.article-body h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #06725b;
}
