﻿/* Animation */
@keyframes slideLine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.blog-section {
    padding: 70px 0;
    background: #f5fdf9;
}

/* Card */
.blog-card.advanced {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

    .blog-card.advanced:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

/* Image Box */
.blog-img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
}

/* 🔥 Better Placeholder */
.blog-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1f5c4a, #2f8f6f);
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

    /* subtle overlay for depth */
    .blog-placeholder::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent);
    }

/* Hover zoom */
.blog-card:hover .blog-placeholder {
    transform: scale(1.05);
}

/* Badge */
.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: #1f5c4a;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Content */
.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Fix uneven text */
.blog-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-desc {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content .cta-btn {
    margin-top: auto; /* pushes button to bottom */
    align-self: flex-start; /* prevents full width stretch */
}

/* BUTTON */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 0 0 rgba(20,185,140,0);
    position: relative;
    overflow: hidden;
}

    /* BUTTON HOVER - GLOW PULSE */
    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 25px rgba(20,185,140,0.45);
        background: var(--primary-dark);
    }

    /* animated shine effect */
    .cta-btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.25), transparent );
        transform: skewX(-20deg);
    }

    .cta-btn:hover::after {
        animation: shine 0.9s ease;
    }

@keyframes shine {
    0% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}

/* ICON */
.cta-btn i {
    transition: transform var(--transition);
}

.cta-btn:hover i {
    transform: translateX(6px);
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
}
