/* Banner Section */


/* BLOG BANNER */

section.blog-banner {
    background: #f3f3f3;
    background-image: url("https://richteksolutions.com/wp-content/uploads/2026/03/Rectangle-1.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    padding: 120px 0 160px;
}


/* HEADER */

section.blog-banner .blog-heading {
    margin-bottom: 50px;
}

section.blog-banner h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

section.blog-banner .blog-title p {
    max-width: 658px;
    color: #3F4040;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 25px;
    /* 138.889% */
}


/* BLOG CARDS */

section.blog-banner .blog-card {
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: .3s;
}

section.blog-banner .blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

section.blog-banner .blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

section.blog-banner .blog-body {
    padding: 20px;
}

section.blog-banner .blog-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

section.blog-banner .blog-body p {
    font-size: 14px;
    color: #666;
}

section.blog-banner .btn-read {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
}


/* MOBILE */

@media(max-width:991px) {
    section.blog-banner {
        background-size: cover;
        background-position: center;
    }
}


/* OTHER BLOG SECTION */

section.other-blogs {
    background: #f5f5f5;
    padding: 100px 0;
}


/* HEADER */

.blog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.blog-top h2 {
    font-size: 40px;
}


/* SEARCH BOX */

.blog-search form {
    position: relative;
}

.blog-search input {
    padding: 12px 45px 12px 15px;
    border: 1px solid #ccc;
    width: 260px;
}

.blog-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}


/* BLOG CARD */

.other-blogs .blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: .3s;
}

.other-blogs .blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.other-blogs .blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.other-blogs .blog-body {
    padding: 25px;
}

.other-blogs .blog-body h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.other-blogs .blog-body p {
    color: #666;
    margin-bottom: 15px;
}

.other-blogs .btn-read {
    font-weight: 600;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-read span {
    color: #000;
}

.btn-read svg {
    transition: transform .3s ease;
}


/* Hover effect */

.btn-read:hover svg {
    transform: translateX(6px);
}

.btn-read:hover {
    color: #000;
}

.blog-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}


/* DEFAULT (inactive numbers + dots) */

.blog-pagination .page-numbers {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #3F4040;
    text-decoration: none;
}


/* HOVER */

.blog-pagination .page-numbers:hover {
    color: #0484FC;
}


/* ACTIVE PAGE */

.blog-pagination .current {
    color: #0484FC;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}


/* DOTS (...) */

.blog-pagination .dots {
    color: #3F4040;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}


/* ARROWS */

.blog-pagination .page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination .page-arrow svg {
    width: 10px;
    height: 17px;
    fill: #0484FC;
}

.other-blogs .row {
    display: flex;
    flex-wrap: wrap;
}

.other-blogs .col-md-6,
.other-blogs .col-lg-4 {
    display: flex;
}

.other-blogs .blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.other-blogs .blog-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
}

.other-blogs .btn-read {
    margin-top: auto;
}

.other-blogs .blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1920px) {
    section.blog-banner {
        padding: 100px !important;
    }
    section.blogs.other-blogs {
        padding: 100px !important;
    }
}

@media (max-width: 1199px) {
    section.blog-banner {
        background-image: none !important;
        padding: 70px 30px !important;
    }
    section.blog-banner::after {
        content: none !important;
        display: none !important;
    }
    section.blog-banner .container-fluid {
        padding: 0 !important;
    }
    section.blogs.other-blogs .container-fluid {
        padding: 0 !important;
    }
    section.blogs.other-blogs {
        padding: 70px 30px !important;
    }
    .blog-top h2 {
        font-size: 30px;
    }
}


/* MOBILE FIX */

@media (max-width: 767px) {
    section.blog-banner {
        padding: 50px 20px !important;
    }
    section.blogs.other-blogs {
        padding: 50px 20px !important;
    }
    /* Ensure full width column */
    .other-blogs .row {
        display: flex;
        flex-wrap: wrap;
    }
    .other-blogs .blog-item {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }
    /* Show only 6 cards */
    .other-blogs .blog-item:nth-child(n+7) {
        display: none !important;
    }
    .blog-search input {
        width: 0;
        opacity: 0;
        padding: 0;
        border: none;
        transition: all 0.3s ease;
    }
    .blog-search.active input {
        width: 200px;
        opacity: 1;
        padding: 10px 40px 10px 15px;
        border: 1px solid #ccc;
        background: #fff;
    }
    .blog-search button {
        position: static;
    }
    .blog-search form {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    section.blog-banner .row.gy-4 {
        flex-direction: column;
    }
}


/* MOBILE: 1 column, 6 cards */

@media (max-width: 767px) {
    .other-blogs .blog-item:nth-child(n+7) {
        display: none !important;
    }
}


/* TABLET: 2 columns, 6 cards */

@media (min-width: 768px) and (max-width: 1199px) {
    .other-blogs .blog-item:nth-child(n+7) {
        display: none !important;
    }
}