


/* ================= blog US BANNER ================= */
.blog-banner {
    width: 100%;
    height: 420px;

    position: relative;
    overflow: hidden;


    /* USE YOUR FULL IMAGE HERE */
    background: url("../images/blog/blogbanner.webp") no-repeat center/cover;
}

/* Dark gradient overlay (LEFT SIDE) */
.blog-banner::before {
    content: "";
    position: absolute;
    inset: 0;

    /* LEFT dark → RIGHT transparent (same as image) */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.763) 0%,
            rgba(0, 0, 0, 0.581) 35%,
            rgba(0, 0, 0, 0.212) 55%,
            rgba(0, 0, 0, 0.014) 75%,
            transparent 100%);

    z-index: 1;
}

/* Content wrapper */
.blog-banner-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.blog-banner-content {
    padding-left: clamp(15px, 5vw, 80px);
    max-width: 600px;

}

/* Title */
.blog-banner-content h1 {
    color: #fff;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 4px;
}

/* Subtitle */
.blog-banner-content p {
    color: #ddd;
    font-size: 16px;
    font-weight: 400;
    font-family: "Catamaran", sans-serif;
}

@media (max-width: 992px) {
    .blog-banner {
        height: 320px;
    }

    .blog-banner-content {
        padding-left: 40px;
    }

    .blog-banner-content h1 {
        font-size: 32px;
    }

    .blog-banner-content {

        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .blog-banner {
        height: 250px;

    }

    .blog-banner-content {
        padding-left: 20px;
    }

    .blog-banner-content h1 {
        font-size: 26px;
    }

    .blog-banner-content p {
        font-size: 14px;


    }


    .blog-banner-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 60px auto 0px auto;
    }
}


/* ================= BLOG MAIN SECTION ================= */
.blog-main {
    padding: 80px 0;
    background: #f8f9fb;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* SECTION TITLE */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: "Montserrat", sans-serif;
}

/* ================= LEFT CARD ================= */
.latest-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.latest-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.latest-content {
    padding: 20px;
}

.latest-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}



.latest-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #00a86b;
    font-weight: 600;
    text-decoration: none;
}

/* ================= RIGHT SIDE ================= */

.new-blog-toggle {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
}

/* TOGGLE WRAPPER */
.blog-toggle {
    display: flex;
    background: #f1f2f6;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.toggle-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, #8ea2ff, #c0c8ff);
    border-radius: 50px;
    transition: 0.4s ease;
    z-index: 0;
}

/* BUTTON */
.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    z-index: 1;
    transition: 0.3s;
}

/* ACTIVE BUTTON */
.toggle-btn.active {
    color: #000;
}

/* BLOG LIST */
.blog-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
    cursor: pointer;
}

.blog-item img {
    width: 80px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.blog-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.blog-item p {
    font-size: 12px;
    color: #777;
}

/* TAB CONTENT */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .top-reads {
        margin-top: 30px;
    }
}

/* ================= CATEGORY SECTION ================= */
.container-blog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-category {
    padding: 80px 0;
    background: #e8f8f0;
    /* display: flex;
    flex-direction: column; */
}

/* TOP */
.category-top {
    display: flex;
    justify-content: space-between;

    align-items: center;
    margin-bottom: 20px;
}

.category-top h2 {
    font-size: 24px;
    font-weight: 700;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 35px 10px 15px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: #fff;
    width: 220px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a86b;
}



/* GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* IMAGE */
.card-img {
    position: relative;
}

.card-img img {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    object-fit: cover;
}

/* PREMIUM BADGE */
.premium-badge {
    position: absolute;
    top: 15px;
    left: -8px;

    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    padding: 8px 20px;

    display: flex;
    align-items: center;
    /* flex-direction: column; */
    /* writing-mode: vertical-rl; */
    transform: rotate(90deg);
    gap: 8px;

    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);

    clip-path: polygon(0 0,
            90% 0,
            100% 50%,
            90% 100%,
            0 100%,
            8px 50%);

    transition: 0.3s ease;
}

.premium-badge p,
.premium-badge i {
    transform: rotate(240deg);

}

.premium-badge i {
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* hover */
/* .blog-card:hover .premium-badge {
    transform: translateX(6px);
} */

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 16px;
    font-weight: 600;

    color: #00a86b;
    text-decoration: none;

    position: relative;
    transition: 0.3s ease;
}

/* underline animation */
.read-more-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;

    width: 0%;
    height: 2px;
    background: #00a86b;

    transition: 0.3s ease;
}

/* hover effect */
.read-more-btn:hover {
    color: #007a4d;
}

.read-more-btn:hover::after {
    width: 100%;
}

/* arrow animation */
.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}


/* CONTENT */
.card-content {
    margin-top: 15px;
}

.card-content .date {
    font-size: 12px;
    color: #888;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
}

.card-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}


/* PAGINATION */
/* PAGINATION WRAPPER */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    background: #f5f6fb;
    padding: 15px 25px;
    border-radius: 16px;

    width: fit-content;
    margin: 50px auto 0;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* PAGE NUMBERS WRAPPER */
.page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* NUMBER BUTTON */
.page {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #e9ebf3;

    font-size: 14px;
    font-weight: 600;
    color: #6b6f80;

    cursor: pointer;
    transition: 0.3s ease;
}

/* ACTIVE PAGE */
.page.active {
    background: linear-gradient(135deg, #5b5ce6, #7a7cff);
    color: #fff;
    box-shadow: 0 6px 15px rgba(91, 92, 230, 0.4);
}

/* HOVER */
.page:hover {
    background: #dfe2ff;
    color: #333;
}

/* DOTS */
.dots {
    padding: 0 5px;
    color: #999;
    font-weight: 600;
}

/* BACK / NEXT BUTTON */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;

    border: none;
    background: transparent;

    font-size: 14px;
    font-weight: 600;
    color: #5b5ce6;

    cursor: pointer;
    transition: 0.3s ease;
}

/* HOVER EFFECT */
.nav-btn:hover {
    color: #3f41c9;
    transform: translateY(-1px);
}

/* ICON ANIMATION */
.nav-btn i {
    transition: 0.3s ease;
}

.nav-btn:hover i {
    transform: translateX(3px);
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .pagination {
        flex-direction: column;
    }
}