/* blogs-page.css */

.blog-page-section {
    position: relative;
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at 8% 10%, rgba(162, 48, 40, 0.08), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(17, 24, 39, 0.05), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.blog-page-section .container {
    position: relative;
    z-index: 2;
    padding-inline: 24px;
}


/* From resources/views/templates/basic/blogs.blade.php */
.cyb-blog-section {
        position: relative;
        padding: 72px 0 80px;
        background:
            radial-gradient(circle at 8% 10%, rgba(162, 48, 40, 0.08), transparent 28%),
            radial-gradient(circle at 92% 0%, rgba(17, 24, 39, 0.05), transparent 26%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        overflow: hidden;
    }

    .cyb-blog-section::before {
        content: "";
        position: absolute;
        top: -140px;
        right: -120px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(162, 48, 40, 0.08);
        pointer-events: none;
    }

    .cyb-blog-section::after {
        content: "";
        position: absolute;
        bottom: -160px;
        left: -140px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: rgba(17, 24, 39, 0.04);
        pointer-events: none;
    }

    .cyb-blog-section .container {
        position: relative;
        z-index: 2;
    }

    .cyb-blog-header {
        max-width: 760px;
        margin: 0 auto 34px;
        text-align: center;
    }

    .cyb-blog-subtitle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 8px 18px;
        margin-bottom: 16px;
        border-radius: 999px;
        background: #fff5f4;
        color: #A23028;
        border: 1px solid rgba(162, 48, 40, 0.14);
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.35px;
        box-shadow: 0 8px 24px rgba(162, 48, 40, 0.08);
    }

    .cyb-blog-title {
        margin-bottom: 14px;
        color: #111827;
        font-size: clamp(34px, 5vw, 54px);
        font-weight: 900;
        line-height: 1.08;
        letter-spacing: -1.4px;
    }

    .cyb-blog-text {
        max-width: 590px;
        margin: 0 auto;
        color: #6b7280;
        font-size: 16px;
        line-height: 1.75;
    }

    /* Shared intro styling is handled globally by .cyb-section-head in storefront.css. */

    .cyb-blog-card {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
        transition: all 0.28s ease;
    }

    .cyb-blog-card:hover {
        transform: translateY(-7px);
        border-color: rgba(162, 48, 40, 0.22);
        box-shadow: 0 26px 75px rgba(15, 23, 42, 0.13);
    }

    .cyb-blog-thumb {
        position: relative;
        display: block;
        height: 248px;
        background: #f5f6f8;
        overflow: hidden;
        text-decoration: none;
    }

    .cyb-blog-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(17, 24, 39, 0.02) 0%,
            rgba(17, 24, 39, 0.10) 50%,
            rgba(17, 24, 39, 0.58) 100%
        );
        z-index: 1;
        transition: opacity 0.25s ease;
    }

    .cyb-blog-card:hover .cyb-blog-thumb::after {
        opacity: 0.82;
    }

    .cyb-blog-thumb img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transform: scale(1);
        transition: transform 0.45s ease;
    }

    .cyb-blog-card:hover .cyb-blog-thumb img {
        transform: scale(1.075);
    }

    .cyb-blog-no-image {
        height: 248px;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at top left, rgba(162, 48, 40, 0.16), transparent 32%),
            linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-bottom: 1px solid #eef2f7;
    }

    .cyb-blog-no-image span {
        width: 72px;
        height: 72px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background: #111827;
        color: #ffffff;
        font-size: 28px;
        font-weight: 900;
        box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
    }

    .cyb-blog-date {
        position: absolute;
        left: 18px;
        bottom: 18px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #111827;
        border: 1px solid rgba(255, 255, 255, 0.75);
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    }

    .cyb-blog-body {
        flex: 1;
        padding: 24px 24px 18px;
    }

    .cyb-blog-card-title {
        margin-bottom: 12px;
        color: #111827;
        font-size: 21px;
        font-weight: 900;
        line-height: 1.35;
        letter-spacing: -0.35px;
    }

    .cyb-blog-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .cyb-blog-card-title a:hover {
        color: #A23028;
    }

    .cyb-blog-description {
        margin-bottom: 0;
        color: #6b7280;
        font-size: 15px;
        line-height: 1.75;
    }

    .cyb-blog-footer {
        padding: 0 24px 24px;
    }

    .cyb-blog-btn {
        width: 100%;
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 14px;
        background: #111827;
        color: #ffffff;
        border: 1px solid #111827;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        line-height: 1;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
        transition: all 0.25s ease;
    }

    .cyb-blog-btn span {
        font-size: 18px;
        line-height: 1;
        transition: transform 0.25s ease;
    }

    .cyb-blog-btn:hover {
        background: #A23028;
        border-color: #A23028;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 16px 35px rgba(162, 48, 40, 0.28);
    }

    .cyb-blog-btn:hover span {
        transform: translateX(4px);
    }

    .cyb-blog-empty {
        padding: 48px 24px;
        text-align: center;
        background: #ffffff;
        border-radius: 24px;
        border: 1px solid rgba(15, 23, 42, 0.07);
        box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    }

    .cyb-blog-empty h4 {
        margin-bottom: 8px;
        color: #111827;
        font-size: 22px;
        font-weight: 900;
    }

    .cyb-blog-empty p {
        color: #6b7280;
        font-size: 15px;
        line-height: 1.7;
    }

    .cyb-blog-pagination {
        margin-top: 46px;
        display: flex;
        justify-content: center;
    }

    .cyb-blog-pagination .pagination {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 0;
    }

    .cyb-blog-pagination .page-link {
        min-width: 42px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px !important;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #374151;
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        transition: all 0.25s ease;
    }

    .cyb-blog-pagination .page-link:hover {
        background: #111827;
        border-color: #111827;
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
    }

    .cyb-blog-pagination .page-item.active .page-link {
        background: #A23028;
        border-color: #A23028;
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(162, 48, 40, 0.24);
    }

    .cyb-blog-pagination .page-item.disabled .page-link {
        background: #f5f6f8;
        color: #9ca3af;
        box-shadow: none;
    }

    @media (max-width: 991px) {
        .blog-page-section {
            padding: 58px 0 68px;
        }

        .cyb-blog-header {
            margin-bottom: 34px;
        }

        .cyb-blog-thumb,
        .cyb-blog-no-image {
            height: 230px;
        }
    }

    @media (max-width: 575px) {
        .blog-page-section {
            padding: 48px 0 58px;
        }

        .cyb-blog-header {
            margin-bottom: 28px;
        }

        .cyb-blog-subtitle {
            min-height: 34px;
            padding: 8px 15px;
            font-size: 12px;
        }

        .cyb-blog-title {
            font-size: 34px;
            letter-spacing: -0.8px;
        }

        .cyb-blog-text {
            font-size: 15px;
            line-height: 1.65;
        }

        .cyb-blog-card {
            border-radius: 20px;
        }

        .cyb-blog-thumb,
        .cyb-blog-no-image {
            height: 220px;
        }

        .cyb-blog-body {
            padding: 21px 20px 16px;
        }

        .cyb-blog-footer {
            padding: 0 20px 22px;
        }

        .cyb-blog-card-title {
            font-size: 19px;
        }

        .cyb-blog-description {
            font-size: 14px;
        }

        .cyb-blog-btn {
            min-height: 48px;
            border-radius: 13px;
        }

        .cyb-blog-pagination {
            margin-top: 34px;
        }
    }
