/* Blog listing page styles extracted from the legacy frontsite.css.
   Load only on the public blog listing. */
/* =========================================================
   BUNDIVO PUBLIC BLOG
========================================================= */

.blog-hero {
    padding: 82px 24px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 34%), linear-gradient(135deg, #0f172a, #173554);
    color: #ffffff;
}

.blog-hero-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 56px;
    align-items: center;
}

.blog-hero-copy .pricing-badge {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.blog-hero-copy h1 {
    max-width: 820px;
    margin: 0 0 22px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    color: #ffffff;
}

.blog-hero-copy > p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.blog-search-form {
    max-width: 720px;
    margin-top: 32px;
    padding: 7px;
    display: flex;
    gap: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

    .blog-search-form input {
        min-width: 0;
        flex: 1;
        border: 0;
        outline: none;
        padding: 13px 18px;
        border-radius: 999px;
        background: transparent;
        color: #0f172a;
        font-size: 15px;
    }

    .blog-search-form button {
        flex: 0 0 auto;
        border: 0;
        border-radius: 999px;
        padding: 13px 24px;
        background: #2563eb;
        color: #ffffff;
        font-weight: 900;
        cursor: pointer;
    }

        .blog-search-form button:hover,
        .blog-search-form button:focus {
            background: #1d4ed8;
        }

.blog-hero-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.blog-hero-panel-label {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-hero-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

    .blog-hero-panel a:last-child {
        border-bottom: 0;
    }

    .blog-hero-panel a:hover {
        color: #93c5fd;
    }

.blog-category-bar {
    position: sticky;
    top: 74px;
    z-index: 30;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.blog-category-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.blog-category-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

    .blog-category-link:hover,
    .blog-category-link.active {
        border-color: #2563eb;
        background: #2563eb;
        color: #ffffff;
    }

.blog-featured-section,
.blog-latest-section {
    padding: 78px 24px;
}

.blog-featured-section {
    background: #f8fafc;
}

.blog-latest-section {
    background: #ffffff;
}

.blog-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.blog-section-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

    .blog-section-heading h2 {
        margin: 0;
        font-family: "Playfair Display", Georgia, serif;
        font-size: clamp(32px, 4vw, 50px);
        line-height: 1.08;
        color: #0f172a;
    }

    .blog-section-heading > a {
        color: #2563eb;
        font-weight: 900;
        white-space: nowrap;
    }

.blog-featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
}

.blog-featured-image,
.blog-card-image {
    display: block;
    overflow: hidden;
    background: #eaf1ff;
}

.blog-featured-image {
    min-height: 430px;
}

    .blog-featured-image img,
    .blog-card-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.blog-featured-card:hover .blog-featured-image img,
.blog-card:hover .blog-card-image img {
    transform: scale(1.035);
}

.blog-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

    .blog-post-meta a {
        color: #2563eb;
        font-weight: 900;
    }

.blog-featured-content h2 {
    margin: 18px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

    .blog-featured-content h2 a,
    .blog-card h3 a {
        color: #0f172a;
        text-decoration: none;
    }

        .blog-featured-content h2 a:hover,
        .blog-card h3 a:hover {
            color: #2563eb;
        }

.blog-featured-content > p {
    margin: 0 0 26px;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.blog-read-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

    .blog-read-button:hover {
        background: #2563eb;
        color: #ffffff;
    }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .blog-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.13);
    }

.blog-card-image {
    height: 220px;
}

.blog-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    margin: 15px 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    line-height: 1.22;
}

.blog-card-content > p {
    margin: 0 0 22px;
    color: #475569;
    line-height: 1.72;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #edf2f7;
    color: #64748b;
    font-size: 13px;
}

    .blog-card-footer a {
        color: #2563eb;
        font-weight: 900;
    }

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.5), transparent 34%), linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
}

    .blog-image-placeholder span {
        margin-bottom: 7px;
        color: #93c5fd;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .blog-image-placeholder strong {
        max-width: 420px;
        font-family: "Playfair Display", Georgia, serif;
        font-size: 34px;
        line-height: 1.1;
    }

    .blog-image-placeholder.compact strong {
        font-size: 27px;
    }

.blog-empty-state {
    padding: 64px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 26px;
    background: #f8fafc;
    text-align: center;
}

.blog-empty-icon {
    font-size: 42px;
    color: #2563eb;
}

.blog-empty-state h3 {
    margin: 12px 0 10px;
    font-size: 25px;
    color: #0f172a;
}

.blog-empty-state p {
    margin: 0 auto 24px;
    color: #64748b;
}

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

.blog-page-button {
    min-width: 120px;
    padding: 12px 18px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    text-align: center;
    font-weight: 900;
    text-decoration: none;
}

    .blog-page-button:hover {
        border-color: #2563eb;
        background: #2563eb;
        color: #ffffff;
    }

    .blog-page-button.disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

.blog-page-status {
    color: #64748b;
    font-weight: 800;
}

.blog-main-cta {
    max-width: 1180px;
    margin: 0 auto 80px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1024px) {
    .blog-hero-inner {
        grid-template-columns: 1fr;
    }

    .blog-hero-panel {
        max-width: 720px;
    }

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

    .blog-featured-image {
        min-height: 350px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .blog-hero {
        padding: 58px 18px;
    }

    .blog-hero-copy h1 {
        font-size: 40px;
        letter-spacing: -1.2px;
    }

    .blog-hero-copy > p {
        font-size: 16px;
    }

    .blog-search-form {
        padding: 6px;
    }

        .blog-search-form input {
            width: 100%;
            padding: 12px 14px;
        }

        .blog-search-form button {
            padding: 12px 17px;
        }

    .blog-category-bar {
        top: 70px;
    }

    .blog-category-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-featured-section,
    .blog-latest-section {
        padding: 56px 16px;
    }

    .blog-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-featured-image {
        min-height: 270px;
    }

    .blog-featured-content {
        padding: 28px 22px;
    }

        .blog-featured-content h2 {
            font-size: 32px;
        }

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

    .blog-card-image {
        height: 230px;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .blog-page-status {
        width: 100%;
        order: -1;
        text-align: center;
    }

    .blog-page-button {
        flex: 1;
        min-width: 0;
    }

    .blog-main-cta {
        margin-left: 14px;
        margin-right: 14px;
        margin-bottom: 90px;
    }
}

@media (max-width: 480px) {
    .blog-hero-copy h1 {
        font-size: 35px;
    }

    .blog-search-form {
        border-radius: 20px;
        flex-direction: column;
    }

        .blog-search-form input,
        .blog-search-form button {
            width: 100%;
            border-radius: 15px;
        }

    .blog-hero-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .blog-card-content {
        padding: 21px;
    }

    .blog-card h3 {
        font-size: 21px;
    }
}
