/*------------------Blog list page-------------------*/
.blog-category {
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.blog-category .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #00274D;
    border-radius: 9px;
    padding: 8px 14px;
}

.blog-category .nav-link.active {
    background: #D7EAFC;
    color: #00274D;
}

.blog-category .nav-item:not(:last-child) .nav-link {
    margin-right: 12px;
}

.blog-list-tab {
    background: #F6F6F6;
    padding: 25px 0;
    margin-bottom: 50px;
}


.blog-cards-grid {
    /* display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 10px;
}

/* ── Card ── */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e5ea;
    box-shadow: 0 10px 20px transparent;
    display: flex;
    flex-direction: column;
    padding: 10px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    flex: 0 0 calc(25% - 10px);
    max-width: 25%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

/* ── Thumbnail ── */
.blog-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #5b1fc8;
    border-radius: 18px;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

/* purple overlay card (SVG-based placeholder matching the screenshot) */
.blog-card__thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5b1fc8 0%, #7c3aed 60%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Green keyboard bar at bottom */
.thumb-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22%;
    background: repeating-linear-gradient(90deg,
            #4ade80 0px, #4ade80 14px,
            #22c55e 14px, #22c55e 28px);
    opacity: 0.85;
}

/* ── Card body ── */
.blog-card__body {
    padding: 15px 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.blog-card__category {
    font-size: 14px;
    color: #FF6600;
    text-transform: capitalize;
    line-height: 1.3;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 500;
    color: #2E2E2E !important;
    line-height: 1.4;
    flex: 1;
}

.blog-card .sectionHeadingbtn {
    width: 100%;
    font-size: 16px;
    padding: 8px 30px;
    margin: 0 !important;
}

/*-----------------------Blog details page------------------------*/

.blog-hero-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header .project_heading {
    margin-bottom: 25px;
}

.blog-header .heading-sm {
    margin-bottom: 12px;
}

.blog-content {
    margin-bottom: 40px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: #2E2E2E;
    line-height: 1.4;
    margin-bottom: 20px;
}

.blog-content p {
    font-size: 16px;
    font-weight: 400;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-content p strong {
    font-weight: 500;
    color: #2E2E2E;
}

.blog-content ul li {
    font-size: 16px;
    font-weight: 400;
    color: #777777;
    line-height: 1.2;
    margin-bottom: 10px;
}

.blog-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.comparison-table thead th {
    color: #2E2E2E;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.comparison-table tbody tr {
    transition: background 0.18s;
}

.comparison-table tbody tr:hover {
    background: #faf8f5 !important;
}

.comparison-table tbody td {
    border-top: 1.25px solid #B9B9B9;
    vertical-align: middle;
    font-size: 16px;
    color: #777777;
    line-height: 1.6;
}

.comparison-table tbody td:not(:last-child),
.comparison-table thead th:not(:last-child) {
    border-right: 1.25px solid #B9B9B9;
}

.table-wrapper {
    border: 1.25px solid #B9B9B9;
}

.blog-content-table {
    margin: 40px 0;
}

.blog-content-table h3 {
    text-align: center;
}

.latest-blog-slider .slick-slide {
    margin: 0 7px;
}

.latest-blog-slider .slick-list {
    margin: 0 -7px;
    padding: 20px 0 50px;
}

.latest-blog-slider .slick-prev,
.latest-blog-slider .slick-next {
    width: inherit;
    height: inherit;
}

.latest-blog-slider .slick-prev::before,
.latest-blog-slider .slick-next::before {
    height: 48px;
    width: 48px;
    display: block;
    padding: 0;
    background-size: 15px 15px;
}

.latest-blog-slider .slick-next {
    right: -60px;
}



@media (max-width: 1400px) {

    .latest-blog-slider .slick-next {
        right: -45px;
    }

    .latest-blog-slider .slick-prev {
        left: -45px;
    }
}

@media (max-width: 1200px) {

    .latest-blog-slider .slick-prev::before,
    .latest-blog-slider .slick-next::before {
        height: 38px;
        width: 38px;
        background-size: 12px 12px;
    }

    .latest-blog-slider .slick-next {
        right: -30px;
    }

    .latest-blog-slider .slick-prev {
        left: -30px;
    }

    .blog-card__thumb {
        aspect-ratio: 4 / 2.5;
    }

    .blog-card__title {
        font-size: 18px;
    }
    /* .blog-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    } */
    .blog-card{
        flex: 0 0 calc(33.33% - 10px);
        max-width: 33.33%;
    }
}

@media (max-width: 991.98px) {

    .latest-blog-slider .slick-prev::before,
    .latest-blog-slider .slick-next::before {
        background-color: #ffe2cf;
    }

    .latest-blog-slider .slick-prev::before {
        background-image: url(../images/bodyimg/prevarrow.png);
    }

    .latest-blog-slider .slick-next::before {
        background-image: url(../images/bodyimg/nextarrow.png);
    }

    .blog-card__title {
        font-size: 16px;
    }

    .blog-card .sectionHeadingbtn {
        font-size: 14px;
    }
    .blog-list-tab {
        margin-bottom: 40px;
    }
    .blog-category .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
     /* .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
}

@media (max-width: 767.98px) {
    /* .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
    .blog-card{
        flex: 0 0 calc(50% - 10px);
        max-width: 50%;
    }

    .blog-category {
        justify-content: flex-start;
    }
}

/* Stack layout on mobile */
@media (max-width: 575.98px) {
    /* .comparison-table thead {
            display: none;
        }

        .comparison-table tbody tr {
            display: block;
            border: 1.5px solid #e8e3db;
            border-radius: 6px;
            margin-bottom: 1rem;
            overflow: hidden;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
        }

        .comparison-table tbody td {
            display: block;
            width: 100% !important;
            border-right: none !important;
            border-top: 1px solid #e8e3db;
            padding: 0.75rem 1rem;
        }

        .comparison-table tbody td:first-child {
            background: #1a1a1a;
            color: #f5f3ef;
            border-left: 3px solid #c9a96e;
            font-size: 0.95rem;
            border-top: none;
        }

        .comparison-table tbody td:not(:first-child)::before {
            content: attr(data-label);
            display: block;
            font-weight: 600;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #c9a96e;
            margin-bottom: 0.25rem;
        } */
    /* .blog-cards-grid {
        grid-template-columns: 1fr;
    } */
     .blog-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .blog-list-tab {
        margin-bottom: 25px;
    }
    .blog-content h3 {
        font-size: 18px;
    }

    .blog-content p,
    .blog-content ul li,
    .comparison-table thead th,
    .comparison-table tbody td {
        font-size: 14px;
    }

    .blog-card__thumb {
        aspect-ratio: 4 / 1.5;
    }

    .latest-blog-slider .slick-prev::before,
    .latest-blog-slider .slick-next::before {
        height: 30px;
        width: 30px;
        background-size: 10px 10px;
    }

    .latest-blog-slider .slick-prev {
        left: -10px;
    }

    .latest-blog-slider .slick-next {
        right: -10px;
    }
}