/* Main Container */
.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 32px;
    padding: 20px 10px;
}
.category-container .cat-btn {
    text-decoration: none !important;
}

/* Category Buttons */
.cat-btn {
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid #a4e4a4;
    background: #f2fff2;
    font-size: 15px;
    font-weight: 600;
    color: #2b2b2b;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Active / Selected */
.cat-btn.active {
    background: #20c32f;
border: 4px solid #e9ffe2;
    color: #f3f3f3;
}

/* Hover Effect */
.cat-btn:hover {
    background: #20c32f;
border: 4px solid #fff;
    color: #f3f3f3;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .cat-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .category-container {
        gap: 12px;
    }

    .cat-btn {
        width: 100%;
        text-align: center;
    }
}

/* Wrapper */
.blog-wrapper {
    width: 100%;
    padding: 40px 20px;
    background: #f0ffe8;
    border-radius: 40px;
}

/* Title */
.blog-title {
    font-family: 'Afacad', sans-serif;
    font-size: 36px;         /* Figma size */
    font-weight: 700;        /* Bold */
    line-height: 36px;       /* Figma line height */
    letter-spacing: 1px;     /* Figma letter spacing */
    text-align: center;      /* Center */
}

/* Responsive Sizes */
@media (max-width: 992px) {
    .blog-title {
        font-size: 30px;
        line-height: 32px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 26px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 22px;
        line-height: 24px;
    }
}
.underline {
    width: 80px;
    height: 3px;
    background: #37c837;
    margin: 0 auto 30px;
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: auto;

}

/* Card */
.blog-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #a1a1a1;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* Image */
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Heading */
.blog-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
=    min-height: 40px;
}

/* ---------- NEW ADDED CODE (Exact UI) ---------- */

/* Bottom Row Container */
.blog-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Icons Row */
.meta-box {
    display: flex;
    gap: 12px;
}

.meta-item {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #b6efb6;

}

.meta-item.green {
    background: #4db646;
    color: #fff;
}

.meta-item.lightgreen {
    background: #4db646;
    color: #fff;
}
.telegram-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);  /* makes icon white */
}

/* Read More Button */
.read-btn {
    padding: 7px 13px;
    border-radius: 10px;
    background: linear-gradient(90deg, #23b733, #5bf970);
    color: #083608;
    font-weight: 700; /* bold text */
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Arrow styling */
.read-btn .arrow {
    color: #f8faf8; /* change color here */
    font-size: 16px;
    font-weight: 700;
}
.read-btn:hover{
    color: white;
}
.blog-head {
    font-family: 'Afacad', sans-serif;
    font-size: 19.9px;
    height:50px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.03em; /* -3% */
    color: #000;
    margin-bottom: 12px;
}

@media (max-width: 311px){

    .blog-bottom-row {
        gap: 10px;
    }

    .meta-box {
        gap: 10px;
    }

    .read-btn {
        width: 41%;
        text-align: center;
                justify-content: center;  /* CENTER TEXT + ICON */

        padding: 5px 20px;
    }
}








/* Responsive Sizes */
@media (max-width: 992px) {
    .blog-head {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .blog-head {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .blog-head {
        font-size: 16px;
    }
}
.blog-lay {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 443.67px;
    gap: 8.67px;
    height: auto;
}

/* Tablet */
/* FIX bottom row for tablet screens (601px – 768px) */
@media (max-width: 768px) and (min-width: 601px) {

    .blog-bottom-row {
        gap: 10px;
    }

    .meta-box {
        gap: 10px;
    }

    .read-btn {
        width: 41%;
        text-align: center;
                justify-content: center;  /* CENTER TEXT + ICON */

        padding: 5px 20px;
    }
}
/* FIX for large tablets / small laptops (993px – 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;

    }

    .blog-card {
        padding: 16px;
    }

    .blog-img {
        height: 190px;
    }

    .blog-bottom-row {
        justify-content: space-between;
        gap: 10px;
    }

    .read-btn {
        padding: 9px 24px;
    }

    .blog-head {
        font-size: 18.5px;
    }
}

/* --- TAB RESPONSIVE FIX (768px to 992px) --- */
@media (max-width: 992px) and (min-width: 769px) {

    /* Title spacing */
    .blog-wrapper {
        padding: 30px 15px;
    }

    .blog-title {
        font-size: 30px;
        line-height: 32px;
    }

    /* Grid becomes 2 columns properly */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

    }

    /* Card spacing fix */
    .blog-card {
        padding: 16px;
        border-radius: 18px;
    }

    /* Image height adjustment */
    .blog-img {
        height: 180px;
    }

    /* Bottom row fixed alignment (no wrapping) */
    .blog-bottom-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* Read More button fit */
    .read-btn {
        padding: 8px 22px;
        font-size: 14px;
    }

    .blog-head {
        font-size: 18px;
    }
}

/* ---------- END NEW SECTION ---------- */

/* Center lone last card in a 2-column tablet / small-laptop grid
   - only when the last card is an odd-numbered child (i.e. total items is odd)
   - doesn't affect layout when last row already has 2 items
*/
@media (max-width: 1200px) and (min-width: 601px) {

    /* make sure grid is 2 columns in this range */
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* make images and internals scale nicely when spanned */
    .blog-grid > .blog-card:last-child:nth-child(odd) .blog-img {
        height: auto;
        max-height: 260px;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-img {
        height: 180px;
    }

    .blog-bottom-row {
        gap: 10px;

    }

    .read-btn {
        width: 41%;
        text-align: center;
                justify-content: center;  /* CENTER TEXT + ICON */

    }
}
/* Heart animation (Instagram style) */
/* Heart animation + RED color */
.heart-liked {
    filter: hue-rotate(-40deg) saturate(2) brightness(0.9);
    transform: scale(1.2);
    transition: 0.2s ease;
}

.heart-icon {
    transition: 0.2s ease;
}
.heart-icon {
    transition: .2s ease;
    cursor: pointer;
    color: #f7f4f4;
}

.heart-liked {
    color: red !important;
}


