﻿/* TITLE */
.section-title-simple {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

    /* SLIDING GRADIENT UNDERLINE */
    .section-title-simple::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient( 90deg, transparent, var(--primary), transparent );
        background-size: 200% 100%;
        animation: slideLine 3s linear infinite;
    }

/* TABLET */
@media (max-width: 992px) {
    .section-title-simple {
        font-size: 1.9rem;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .section-title-simple {
        font-size: 1.6rem;
        padding-bottom: 8px;
    }

        .section-title-simple::after {
            height: 2px;
            border-radius: 2px;
            background-size: 180% 100%;
        }
}

/* SMALL MOBILE (extra refinement) */
@media (max-width: 400px) {
    .section-title-simple {
        font-size: 1.4rem;
        letter-spacing: -0.2px;
    }

        .section-title-simple::after {
            height: 2px;
            animation-duration: 2.5s; /* slightly faster for small screens */
        }
}

/* Animation */
@keyframes slideLine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* SUBTITLE */
.section-subtitle {
    max-width: 600px;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.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;
}

.blog-details-section {
    padding: 70px 0;
    background: #f5fdf9;
}

/* Main Card */
.blog-details-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Title */
.blog-details-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Meta */
.blog-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Each item becomes a soft badge */
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f5c4a;
    background: rgba(31, 92, 74, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.3s ease;
}

    /* Icon styling */
    .meta-item i {
        font-size: 0.8rem;
    }

    /* Hover effect */
    .meta-item:hover {
        background: #1f5c4a;
        color: #fff;
        transform: translateY(-2px);
    }

/* Image */
.blog-details-img {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Content */
.blog-details-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.blog-details-content h4 {
    margin-top: 20px;
    font-weight: 700;
}

/* Sidebar */
.blog-sidebar {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Title */
.sidebar-title {
    font-weight: 700;
    margin-bottom: 18px;
}

/* Item */
.recent-blog-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s ease;
    margin-bottom: 12px;
}

    .recent-blog-item:hover {
        background: rgba(31,92,74,0.06);
        transform: translateX(5px);
    }

/* Thumb */
.recent-thumb {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f5c4a, #2f8f6f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Content */
.recent-content h6 {
    font-size: 0.85rem;
    margin: 0 0 4px;
    font-weight: 600;
}

.recent-content span {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

/* Read more button style */
.recent-read {
    position: relative;
    z-index: 2; /* 🔥 brings link above any overlay */
    cursor: pointer;
    display: inline-flex; /* makes it clickable properly */
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f5c4a;
    padding: 4px 10px; /* 🔥 increases click area */
    border-radius: 20px;
    background: rgba(31,92,74,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

    /* Hover */
    .recent-read:hover {
        background: linear-gradient(135deg, #1f5c4a, #2f8f6f);
        color: #fff;
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(31,92,74,0.25);
    }
