﻿/* ==============================
   BLOG LISTING (scoped)
   ============================== */
.blog {
    padding: 80px 0;
}

    .blog .blog-item-wrapper {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    /* Card */
    .blog .blog-item {
        background: #fff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
        transition: transform .18s ease, box-shadow .18s ease;
    }

        .blog .blog-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
        }

        /* Image */
        .blog .blog-item > a {
            display: block;
        }

        .blog .blog-item img.cover-img {
            width: 100%;
            height: 280px; /* consistent listing layout */
            object-fit: cover;
            display: block;
        }

    /* Content */
    .blog .blog-item__content {
        padding: 18px 20px 18px;
    }

        .blog .blog-item__content > span.bg-main-50 {
            display: inline-flex;
            align-items: center;
            font-size: 12px;
            font-weight: 800;
            padding: 6px 12px;
            border-radius: 10px;
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
            margin-bottom: 10px;
        }

        /* Title */
        .blog .blog-item__content h6 {
            margin: 0 0 8px;
            line-height: 1.25;
            font-weight: 900;
        }

            .blog .blog-item__content h6 a {
                color: #111827;
                text-decoration: none;
            }

                .blog .blog-item__content h6 a:hover {
                    text-decoration: underline;
                }

        /* Excerpt */
        .blog .blog-item__content p {
            margin: 0 0 14px;
            color: #4b5563;
            font-size: 14px;
            line-height: 1.7;
        }

            /* clamp excerpt nicely even if text-line-2 isn’t working */
            .blog .blog-item__content p.text-line-2 {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

        /* Meta row */
        .blog .blog-item__content .border-top {
            border-top: 1px solid rgba(17, 24, 39, 0.08) !important;
        }

        .blog .blog-item__content .pt-24 {
            padding-top: 14px !important;
        }

        .blog .blog-item__content .mt-24 {
            margin-top: 14px !important;
        }

        .blog .blog-item__content .text-gray-500 {
            color: #6b7280 !important;
        }

    /* Sidebar spacing (optional) */
    .blog .blog-sidebar {
        background: #fff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 16px;
        padding: 22px;
        box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
    }

/* Responsive */
@media (max-width: 575px) {
    .blog .blog-item img.cover-img {
        height: 220px;
    }

    .blog .blog-item__content {
        padding: 16px;
    }
}

/* ==============================
   BLOG DETAILS (scoped)
   ============================== */
.blog-details {
    padding: 80px 0;
}

    .blog-details .blog-item {
        background: #fff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
    }

    /* Featured image */
    .blog-details .cover-img {
        width: 100%;
        height: 420px; /* more “hero” style like your screenshot */
        object-fit: cover;
        display: block;
    }

    /* Header content */
    .blog-details .blog-item__content {
        padding: 26px 28px 20px;
    }

        .blog-details .blog-item__content > span.bg-main-50 {
            display: inline-flex;
            align-items: center;
            font-size: 12px;
            font-weight: 800;
            padding: 6px 12px;
            border-radius: 10px;
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
            margin-bottom: 10px;
        }

        /* Title - match screenshot */
        .blog-details .blog-item__content h4 {
            font-size: clamp(26px, 2.6vw, 40px);
            font-weight: 950;
            letter-spacing: -0.02em;
            line-height: 1.12;
            margin: 0 0 10px;
            color: #111827;
        }

    /* Meta row */
    .blog-details .flex-align {
        display: flex;
        align-items: center;
    }

    .blog-details .gap-24 {
        gap: 18px !important;
    }

    .blog-details .gap-8 {
        gap: 8px;
    }

    .blog-details .text-gray-500 {
        color: #6b7280 !important;
    }

    .blog-details .text-main-600 {
        color: #16a34a !important;
    }

    /* ==============================
   CONTENT (ContentHtml)
   ============================== */
    .blog-details .blog-content {
        max-width: 760px; /* makes it read like an article */
        color: #374151;
        font-size: 15px;
        line-height: 1.85;
    }

        /* IMPORTANT: hide duplicate title in ContentHtml */
        .blog-details .blog-content > h1:first-child {
            display: none !important;
        }

        /* paragraphs */
        .blog-details .blog-content p {
            margin: 0 0 14px;
            color: #4b5563;
        }

        /* headings */
        .blog-details .blog-content h2 {
            margin: 26px 0 10px;
            font-size: 22px;
            font-weight: 900;
            color: #111827;
            letter-spacing: -0.01em;
        }

        .blog-details .blog-content h3 {
            margin: 18px 0 8px;
            font-size: 17px;
            font-weight: 900;
            color: #111827;
        }

        /* Lists -> “clean blocks” like screenshot */
        .blog-details .blog-content ul {
            list-style: none;
            padding: 0;
            margin: 12px 0 18px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

@media (min-width: 768px) {
    /* when you have two columns in HTML (col-sm-6), keep them,
     but inside each column use nice spacing */
    .blog-details .blog-content .col-sm-6 ul {
        margin-top: 0;
    }
}

.blog-details .blog-content li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

    .blog-details .blog-content li i.ph-check {
        color: #16a34a;
        font-size: 18px;
        margin-top: 2px;
    }

    /* If list item has no icon, add one */
    .blog-details .blog-content li:not(:has(i))::before {
        content: "✓";
        font-weight: 900;
        color: #16a34a;
        margin-top: 1px;
    }

/* FAQ section look */
.blog-details .blog-content h2:has(+ h3) {
    margin-top: 32px;
}

/* Highlight box */
.blog-details .rounded-16.bg-main-50.p-24 {
    background: rgba(22, 163, 74, 0.10) !important;
    border: 1px solid rgba(22, 163, 74, 0.18) !important;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

/* Sidebar */
.blog-details .blog-sidebar {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

    .blog-details .blog-sidebar h6 {
        font-weight: 900;
        color: #111827;
    }

    /* Recent posts thumbnails */
    .blog-details .blog-sidebar img.cover-img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
    }

/* Mobile */
@media (max-width: 575px) {
    .blog-details .cover-img {
        height: 260px;
    }

    .blog-details .blog-item__content {
        padding: 18px;
    }

    .blog-details .blog-content {
        font-size: 14px;
    }
}
