/* =========================================
   HOMEPAGE - OUR BLOG
   Separate styles; existing site styles are not overwritten.
========================================= */

.home-blog-section {
    position: relative;
    padding: 88px 5.5%;
    background: #f8fafc;
    overflow: hidden;
}

.home-blog-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-blog-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-blog-eyebrow {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-blog-heading h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
}

.home-blog-heading > p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.home-blog-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-blog-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 2px 22px;
}

.home-blog-viewport::-webkit-scrollbar {
    display: none;
}

.home-blog-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: 100%;
}

.home-blog-track .blog-card {
    display: flex;
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    animation: homeBlogFloat 5.2s ease-in-out infinite;
    will-change: transform;
}

.home-blog-track .blog-card:nth-child(3n + 2) {
    animation-delay: .7s;
}

.home-blog-track .blog-card:nth-child(3n) {
    animation-delay: 1.4s;
}

.home-blog-track .blog-card:hover {
    animation-play-state: paused;
}

@keyframes homeBlogFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.home-blog-arrow {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ee;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .07);
    transition: background .2s ease, color .2s ease, border-color .2s ease,
                transform .2s ease, opacity .2s ease;
}

.home-blog-arrow:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

.home-blog-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
    box-shadow: none;
}

.home-blog-footer {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.home-blog-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 25px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-blog-view-all:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(37, 99, 235, .2);
}

.home-blog-empty {
    margin: 12px 0;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .home-blog-section {
        padding: 72px 4%;
    }

    .home-blog-track .blog-card {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 600px) {
    .home-blog-section {
        padding: 58px 18px;
    }

    .home-blog-heading {
        margin-bottom: 25px;
    }

    .home-blog-carousel {
        gap: 8px;
    }

    .home-blog-arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .home-blog-track {
        gap: 16px;
    }

    .home-blog-track .blog-card {
        flex-basis: 100%;
        animation-duration: 5.8s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-blog-track .blog-card {
        animation: none;
    }

    .home-blog-viewport {
        scroll-behavior: auto;
    }

    .home-blog-arrow,
    .home-blog-view-all {
        transition: none;
    }
}
/* =========================================
   OUR BLOG - SCROLL REVEAL ANIMATION
   Same animation style as other sections
========================================= */

.home-blog-section .home-blog-inner {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.home-blog-section.show-animation .home-blog-inner {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-blog-section .home-blog-inner {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
