/* OCB Blog Posts Styles */

.ocb-blog-page {
    font-family: 'Inter', sans-serif;
    color: #0b1f3c;
    background: #ffffff;
    line-height: 1.6;
    margin-top: 90px;
}

.blog-banner-section {
    padding: 0;
    /* background-image: url(https://oneclickblocks.pro/wp-content/uploads/2026/04/hero-bg.webp);
    background-repeat: no-repeat;
    background-size: cover; */
}

.ocb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.ocb-blog-hero {
    position: relative;
    padding: 50px 0;
    background-color: #fff;
    /* Default light bg */
    text-align: center;
    overflow: hidden;
}

.ocb-hero-decorations .decor-1,
.ocb-hero-decorations .decor-2 {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Mocking decorative background patterns from screenshot */
.ocb-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#dbeafe 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
    display: none;
}

.ocb-blog-hero-header {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto 50px;
}

.ocb-blog-hero-title {
    font-size: 60px;
    font-family: 'Work Sans';
    font-weight: 600;
    line-height: 1.36;
    color: #04255C;
    margin: 0;
}

.ocb-blog-hero-subtitle {
    font-size: 36px;
    font-family: 'Taviraj';
    line-height: 1.25;
    font-style: italic;
    font-weight: 500;
    color: #3B82F6;
    margin-top: 0;
    margin-bottom: 15px;
}

.ocb-blog-hero-desc {
    color: rgba(4, 37, 92, 0.7);
    font-size: 18px;
    margin: 0 auto;
}

/* Category Tabs */
.ocb-blog-filters {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a7dff #f0f4f8;
}

.ocb-cat-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: max-content;
    border-radius: 5px;
    background: rgba(157, 193, 251, 0.10);
    margin: 0 auto;
    padding: 5px;
}

.ocb-cat-tab-sep {
    width: 1px;
    height: 21px;
    background-color: #50678D;
    margin: 0 10px;
}

.ocb-cat-tabs li a {
    display: block;
    font-size: 18px;
    line-height: 1.55;
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(4, 37, 92, 0.7);
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.ocb-cat-tabs li.active a,
.ocb-cat-tabs li a:hover {
    background-color: #3B82F6;
    color: #ffffff;
    font-weight: 700;
}

/* Featured Card */
.ocb-featured-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: left;
}

.ocb-featured-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.ocb-featured-image {
    flex: 1 1 600px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
}

.ocb-featured-image img,
.ocb-placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocb-placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocb-featured-content {
    flex: 1 1 690px;
}

.ocb-featured-title {
    font-size: 36px;
    font-family: "Work Sans";
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 0;
    max-width: 85%;
    color: #04255C;
}

.ocb-featured-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.ocb-featured-title a:hover {
    color: #4a7dff;
}

.ocb-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.ocb-post-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0b1f3c;
    font-weight: 600;
}

.ocb-post-meta .meta-author .author-name {
    font-size: 16px;
    font-weight: 500;
    color: rgba(4, 37, 92, 0.7);
}

.ocb-post-meta .meta-author .meta-avtar {
    width: 30px;
    line-height: 1;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.ocb-post-meta .meta-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ocb-post-excerpt {
    color: rgba(4, 37, 92, 0.7);
    font-size: 16px;
    line-height: 1.5;
}

.ocb-post-meta .meta-sep,
.ocb-post-meta .meta-date,
.ocb-post-meta .meta-cat a {
    color: rgba(4, 37, 92, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.ocb-post-meta .meta-cat a:hover {
    color: #3B82F6;
}

/* Blog Grid */
.ocb-blog-grid-section {
    /*padding: 40px 0 100px;*/
    padding: 50px 0;
}

.ocb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.ocb-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .ocb-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
} */

.ocb-post-card-thumb {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ocb-post-card-thumb>a {
    height: 100%;
    display: block;
}

.ocb-post-card-thumb>a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}


.ocb-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ocb-post-card:hover .ocb-post-card-thumb>a>img {
    transform: scale(1.05);
}

.ocb-post-cat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.ocb-post-cat-badge a {
    background: #3B82F6;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* .ocb-post-card-content {
    padding: 25px;
} */

.ocb-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
    padding: 0 20px 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.ocb-post-card-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 500;
}

.ocb-post-card-meta .meta-author .author-name,
.ocb-post-card-meta .meta-date {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}


.ocb-post-card-meta .meta-author .meta-avtar {
    width: 30px;
    line-height: 1;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.ocb-post-card-meta .meta-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ocb-post-card-title {
    font-size: 24px;
    font-weight: 500;
    font-family: "Work Sans";
    line-height: normal;
    margin-top: 0;
    margin-bottom: 20px;
}

.ocb-post-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.ocb-post-card-title a:hover {
    color: #4a7dff;
}

.ocb-post-card-excerpt {
    color: rgba(4, 37, 92, 0.7);
    font-size: 18px;
    font-weight: 400;
}

/* Pagination */
.ocb-blog-pagination {
    display: flex;
    justify-content: center;
}

.ocb-blog-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2px;
}

.ocb-blog-pagination .page-numbers li span.current,
.ocb-blog-pagination .page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ocb-blog-pagination .page-numbers li a {
    background: transparent;
    color: #04255C;
}

.ocb-blog-pagination .page-numbers li span.current,
.ocb-blog-pagination .page-numbers li a:hover {
    background: #6CA4FF;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1366px) {
    .ocb-featured-image {
        flex: 0 0 600px;
    }

    .ocb-featured-content {
        flex: 0 0 675px;
    }

    .ocb-featured-title {
        max-width: 100%;
    }
}

@media (max-width: 1280px) {
    .ocb-featured-image {
        flex: 0 0 550px;
    }

    .ocb-featured-content {
        flex: 0 0 640px;
    }
}

@media (max-width: 1199px) {
    .ocb-blog-page {
        margin-top: 68px;
    }

    .ocb-blog-hero-title {
        font-size: 42px;
    }

    .ocb-blog-hero-header,
    .ocb-blog-filters {
        margin-bottom: 30px;
    }

    .ocb-cat-tabs li a {
        font-size: 16px;
    }

    .ocb-featured-card-inner {
        gap: 30px;
    }

    .ocb-featured-image {
        flex: 0 0 450px;
    }

    .ocb-featured-content {
        flex: 0 0 500px;
    }

    .ocb-featured-title,
    .ocb-blog-hero-subtitle {
        font-size: 32px;
    }

    .ocb-post-card-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .ocb-post-card-excerpt {
        font-size: 16px;
    }

    .ocb-post-card-thumb {
        margin-bottom: 20px;
    }

    .ocb-blog-grid-section {
        padding: 40px 0;
    }
}

@media (max-width: 991px) {
    .ocb-featured-card-inner {
        flex-direction: column;
    }

    .ocb-featured-image {
        flex: 1 1 100%;
        width: 100%;
        height: 300px;
    }

    .ocb-blog-hero {
        padding: 40px 0;
    }

    .ocb-featured-card-inner {
        gap: 20px;
    }

    .ocb-blog-hero-title {
        font-size: 36px;
    }

    .ocb-featured-title,
    .ocb-blog-hero-subtitle {
        font-size: 30px;
    }

    .ocb-blog-hero-desc {
        font-size: 16px;
    }

    .ocb-featured-content,
    .ocb-featured-image {
        flex: auto;
    }

    .ocb-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }

    .ocb-post-card-thumb {
        height: 250px;
    }

    .ocb-post-card-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .ocb-blog-hero-title {
        font-size: 30px;
    }

    .ocb-featured-title,
    .ocb-blog-hero-subtitle {
        font-size: 24px;
    }

    .ocb-blog-grid {
        grid-template-columns: 1fr;
    }

    .ocb-blog-hero {
        padding: 30px 0;
    }

    .ocb-featured-image {
        height: 250px;
    }

    .ocb-post-meta {
        flex-wrap: wrap;
    }

    .ocb-post-meta {
        gap: 5px;
    }

    .ocb-post-meta .meta-author .author-name,
    .ocb-post-meta .meta-sep,
    .ocb-post-meta .meta-cat a {
        font-size: 14px;
    }

    .ocb-featured-title,
    .ocb-post-meta {
        margin-bottom: 10px;
    }

    .ocb-post-card-meta {
        padding: 0 10px 10px;
    }

    .ocb-post-card-meta .meta-author .author-name,
    .ocb-post-card-meta .meta-date {
        font-size: 14px;
    }

    .ocb-post-cat-badge {
        top: 15px;
        right: 15px;
    }

    .ocb-blog-grid-section {
        padding: 30px 0;
    }
}