/* ===== Blog Section – Refined Academy Style ===== */

body {
    background: #fefcf8;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Section title – consistent with other pages */
h2.text-center.mb-5 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f3b2c;
    position: relative;
    margin-bottom: 2rem !important;
}
h2.text-center.mb-5::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff9a44, #ff7a1a);
    margin: 12px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(255, 122, 26, 0.2);
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #ece6db;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
    border-color: #ffd9b5;
}
/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    color: #ffffff !important;
}

.btn-read-more:active {
    transform: translateY(1px);
}

.btn-read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}
/* Blog Image */
.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-img {
    transform: scale(1.02);
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c4a2c;
    margin-bottom: 0.75rem;
}
.blog-meta {
    font-size: 0.85rem;
    color: #7c6b58;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-meta span:first-child {
    font-weight: 500;
}
.blog-desc {
    font-size: 0.95rem;
    color: #4a5a4a;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Button – orange gradient to match the theme */
.blog-btn {
    background: linear-gradient(135deg, #ff9a44, #ff7a1a);
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    color: #fff;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.blog-btn:hover {
    background: linear-gradient(135deg, #ff882a, #ff6a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.3);
    color: white;
}
.blog-btn:active {
    transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    h2.text-center.mb-5 {
        font-size: 2rem;
    }
    .blog-img {
        height: 180px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .blog-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h2.text-center.mb-5 {
        font-size: 1.6rem;
    }
    .blog-img {
        height: 160px;
    }
    .card-body {
        padding: 1.2rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .blog-desc {
        font-size: 0.85rem;
    }
    .blog-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .blog-img {
        height: 150px;
    }
    .card-body {
        padding: 1rem;
    }
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}