﻿/* =========================================================
   BLOG PAGE VARIABLES
========================================================= */

:root {
    --blog-primary: #0b63ce;
    --blog-primary-dark: #064a9d;
    --blog-primary-light: #eaf4ff;
    --blog-heading: #101827;
    --blog-text: #5f6f85;
    --blog-border: #dfe7f1;
    --blog-white: #ffffff;
    --blog-light-bg: #f7faff;
}


/* =========================================================
   BLOG HERO SECTION
========================================================= */

.blog-detail-hero {
    margin-top: 70px;
    padding: 90px 0;
    background: radial-gradient( circle at 85% 20%, rgba(85, 164, 255, 0.25), transparent 34% ), linear-gradient( 110deg, #03162f 0%, #064b91 55%, #0b63ce 100% );
    overflow: hidden;
}

.blog-detail-hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-detail-category {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.blog-detail-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.8px;
}

.blog-detail-hero-content > p {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 27px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.8;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

    .blog-detail-meta span {
        display: inline-flex;
        align-items: center;
    }

    .blog-detail-meta i {
        margin-right: 7px;
        color: #8ec5ff;
    }


/* =========================================================
   BLOG ARTICLE SECTION
========================================================= */

.blog-article-section {
    padding: 85px 0 95px;
    background: var(--blog-white);
}

.blog-full-article {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   TOP BLOG IMAGE
========================================================= */

.blog-detail-image {
    width: 100%;
    height: 540px;
    margin-bottom: 52px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--blog-light-bg);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.13);
}

    .blog-detail-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.blog-article-content {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

    .blog-article-content p {
        margin: 0 0 21px;
        color: var(--blog-text);
        font-size: 17px;
        font-weight: 400;
        line-height: 1.9;
    }

    .blog-article-content .blog-introduction {
        margin-bottom: 22px;
        color: #26364b;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.85;
    }

    .blog-article-content h2 {
        margin: 45px 0 17px;
        color: var(--blog-heading);
        font-size: 30px;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: -0.3px;
    }

        .blog-article-content h2:first-of-type {
            margin-top: 36px;
        }


/* =========================================================
   HIGHLIGHT BOX
========================================================= */

.blog-highlight-box {
    margin: 35px 0 42px;
    padding: 25px 27px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-left: 4px solid var(--blog-primary);
    border-radius: 14px;
    background: var(--blog-primary-light);
}

    .blog-highlight-box > i {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: var(--blog-primary);
        color: #ffffff;
        font-size: 20px;
    }

    .blog-highlight-box h3 {
        margin: 0 0 7px;
        color: var(--blog-heading);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.4;
    }

    .blog-highlight-box p {
        margin: 0;
        font-size: 17px;
        line-height: 1.75;
    }


/* =========================================================
   AUTOMATION BENEFIT GRID
========================================================= */

.automation-benefits-grid{
    margin: 34px 0 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.automation-benefit-card {
    min-height: 235px;
    padding: 26px 22px;
    border: 1px solid var(--blog-border);
    border-radius: 17px;
    background: var(--blog-white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
 .automation-benefit-card:hover{
        transform: translateY(-7px);
        border-color: rgba(11, 99, 206, 0.25);
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
    }

.automation-benefit-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--blog-primary);
    color: #ffffff;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.automation-benefit-card:hover .automation-benefit-icon {
    transform: scale(1.08);
}

.automation-benefit-card h3 {
    margin: 0 0 12px;
    color: var(--blog-heading);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}
.automation-benefit-card p {
    margin: 0;
    color: var(--blog-text);
    font-size: 17px;
    line-height: 1.72;
}

/* =========================================================
   KEIFAC SOLUTION LIST
========================================================= */

.blog-solution-list {
    margin: 27px 0 33px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}

.blog-solution-item {
    min-height: 60px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    background: var(--blog-light-bg);
    color: var(--blog-heading);
    font-size: 14px;
    font-weight: 750;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

    .blog-solution-item:hover {
        transform: translateX(4px);
        border-color: rgba(11, 99, 206, 0.3);
        background: var(--blog-primary-light);
    }

    .blog-solution-item i {
        flex-shrink: 0;
        color: var(--blog-primary);
        font-size: 17px;
    }


/* =========================================================
   CONCLUSION BOX
========================================================= */

.blog-conclusion {
    margin-top: 48px;
    padding: 30px 31px;
    border: 1px solid #dbe9f8;
    border-radius: 17px;
    background: linear-gradient( 135deg, #f4f9ff 0%, #edf6ff 100% );
}

    .blog-conclusion h2 {
        margin: 0 0 15px;
        color: var(--blog-heading);
        font-size: 28px;
    }

    .blog-conclusion p:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .blog-detail-hero {
        margin-top: 64px;
        padding: 78px 0;
    }

        .blog-detail-hero h1 {
            font-size: 43px;
        }

    .blog-article-section {
        padding: 72px 0 82px;
    }

    .blog-detail-image {
        height: 460px;
        margin-bottom: 44px;
    }

    .blog-article-content {
        max-width: 100%;
    }

    .automation-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {

    .blog-detail-hero {
        padding: 68px 0;
    }

        .blog-detail-hero h1 {
            font-size: 36px;
            line-height: 1.22;
        }

    .blog-detail-hero-content > p {
        font-size: 17px;
    }

    .blog-detail-meta {
        gap: 14px 20px;
    }

    .blog-article-section {
        padding: 60px 0 70px;
    }

    .blog-detail-image {
        height: 370px;
        margin-bottom: 38px;
        border-radius: 17px;
    }

    .blog-article-content h2 {
        margin-top: 38px;
        font-size: 27px;
    }

    .blog-article-content p {
        font-size: 17px;
        line-height: 1.82;
    }

    .blog-article-content .blog-introduction {
        font-size: 17px;
    }

    .blog-solution-list {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SMALL MOBILE RESPONSIVE
========================================================= */

@media (max-width: 575.98px) {

    .blog-detail-hero {
        margin-top: 60px;
        padding: 58px 0;
    }

    .blog-detail-category {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .blog-detail-hero h1 {
        font-size: 31px;
        letter-spacing: -0.4px;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 9px;
    }

    .blog-article-section {
        padding: 48px 0 58px;
    }

    .blog-detail-image {
        height: 270px;
        margin-bottom: 31px;
        border-radius: 14px;
    }

    .blog-article-content h2 {
        margin: 34px 0 14px;
        font-size: 24px;
    }

    .blog-article-content p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.78;
    }

    .blog-article-content .blog-introduction {
        font-size: 16px;
    }

    .blog-highlight-box {
        padding: 21px 19px;
        flex-direction: column;
    }

        .blog-highlight-box > i {
            width: 44px;
            height: 44px;
        }

    .automation-benefits-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .automation-benefit-card {
        min-height: auto;
        padding: 23px 20px;
    }

    .blog-solution-item {
        min-height: 57px;
        padding: 14px 15px;
    }

    .blog-conclusion {
        margin-top: 38px;
        padding: 24px 21px;
    }

        .blog-conclusion h2 {
            font-size: 24px;
        }
}
