:root {
    --tk-blue: #0b5ed7;
    --tk-blue-dark: #073b8e;
    --tk-blue-soft: #eef6ff;
    --tk-dark: #102033;
    --tk-text: #667085;
    --tk-border: #e5edf6;
}

body {
    overflow-x: hidden;
}

.header-page {
    margin-bottom: 0 !important;
}

.header-page.blog-header-soft {
    position: relative;
    min-height: 235px;
    margin-bottom: 0 !important;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 32, 58, .96), rgba(11, 94, 215, .78)),
        url(../images/bg-pattern-header-page.jpg),
        linear-gradient(120deg, #061b33, #0b5ed7) !important;
    background-repeat: no-repeat, repeat, no-repeat !important;
    background-position: center center, center center, center center !important;
    background-size: cover, auto, cover !important;
}

.header-page.blog-header-soft:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .35;
    z-index: 1;
}

.header-page.blog-header-soft:after {
    content: "";
    position: absolute;
    right: -100px;
    top: -120px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 70px solid rgba(255,255,255,.08);
    box-shadow: -180px 145px 0 rgba(255,255,255,.045);
    z-index: 1;
}

.header-page.blog-header-soft .container {
    position: relative;
    z-index: 2;
    padding-top: 135px;
}

.header-page.blog-header-soft h1 {
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.header-page.blog-header-soft h1:after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 16px;
    border-radius: 99px;
    background: #9ed0ff;
}

.header-page.blog-header-soft .wrap-breadcrumb,
.header-page.blog-header-soft .breadcrumb {
    display: none !important;
}

#mainContent .sec-content.no-pad-top,
#about_brand {
    padding-top: 0 !important;
}

.blog-detail-bg {
    background-color: #f4f4f4 !important;
    background-image: radial-gradient(rgba(170, 170, 170, 0.14) 0.7px, transparent 0.7px) !important;
    background-size: 18px 18px !important;
}

.blog-section {
    position: relative;
    padding: 40px 0 90px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.blog-section .container {
    width: 84%;
    max-width: 1180px;
}

.blog-card-row {
    margin-left: -12px;
    margin-right: -12px;
}

.blog-card-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.blog-col {
    margin-bottom: 28px;
}

.blog-card {
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid var(--tk-border);
    box-shadow: 0 16px 36px rgba(12, 72, 150, 0.08);
    transition: all .35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 94, 215, .28);
    box-shadow: 0 26px 60px rgba(12, 72, 150, 0.16);
}

.blog-thumb {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #e9eef5;
    text-decoration: none !important;
    border-radius: 0;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .65s ease;
}

/* รูป Cover เฉพาะหน้าการ์ด: เติมเต็มกรอบขอบชนขอบ */
.blog-thumb img.is-cover {
    object-fit: cover;
    object-position: center;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-thumb:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(7, 59, 142, .65), rgba(7, 59, 142, .05));
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: var(--tk-blue);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.blog-body {
    padding: 12px 26px 28px;
}

.blog-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tk-blue-soft);
    border: 1px solid #d6e8ff;
    color: var(--tk-blue);
    font-size: 13px;
    font-weight: 700;
}

.blog-title {
    margin: -6px 0 8px;
    min-height: auto;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--tk-dark);
}

.blog-title a {
    color: var(--tk-dark);
    text-decoration: none !important;
}

.blog-title a:hover {
    color: var(--tk-blue);
}

.blog-desc {
    margin: 0 0 16px;
    min-height: auto;
    color: var(--tk-text);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;

    /* แสดงแค่ 2 บรรทัด ที่เหลือตัด (...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-footer {
    padding-top: 18px;
    border-top: 1px solid var(--tk-border);
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 15px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--tk-blue), #2f80ed);
    box-shadow: 0 14px 28px rgba(11, 94, 215, .25);
    transition: all .25s ease;
}

.blog-readmore:hover {
    transform: translateY(-2px);
}

.blog-readmore span {
    font-size: 16px;
}

.blog-empty-box {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--tk-border);
    border-radius: 0;
    color: var(--tk-text);
    font-size: 14px;
    font-weight: 700;
}

.wrap-pagination {
    margin-top: 12px;
    text-align: center;
}

.wrap-pagination p {
    color: var(--tk-text);
    font-size: 14px;
    font-weight: 700;
}

.wrap-pagination .pagination > li > a,
.wrap-pagination .pagination > li > span {
    min-width: 38px;
    margin: 0 4px;
    border-radius: 12px;
    border-color: #dde5ec;
    color: var(--tk-blue);
    font-size: 14px;
    font-weight: 700;
}

.wrap-pagination .pagination > .active > a,
.wrap-pagination .pagination > .active > span {
    background: var(--tk-blue);
    border-color: var(--tk-blue);
    color: #ffffff;
}

@media (max-width: 991px) {
    .blog-section .container {
        width: 90%;
    }

    .blog-thumb {
        height: 235px;
    }

    .blog-title,
    .blog-desc {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .header-page.blog-header-soft {
        min-height: 200px;
    }

    .header-page.blog-header-soft .container {
        padding-top: 105px;
    }

    .header-page.blog-header-soft h1 {
        font-size: 34px;
    }

    .blog-section {
        padding: 25px 0 75px;
    }

    .blog-section .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .blog-thumb {
        height: 220px;
    }

    .blog-body {
        padding: 18px;
    }

    
}
.header-page.blog-header-blue {
    position: relative;
    overflow: hidden;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.header-page.blog-header-blue:before {
    background:
        linear-gradient(90deg, rgba(5, 45, 95, .72) 0%, rgba(13, 104, 210, .48) 45%, rgba(143, 214, 255, .38) 100%),
        rgba(11, 94, 215, .22) !important;
}

.header-page.blog-header-blue:after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 28%, rgba(145, 213, 255, .30), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(10, 78, 160, .14));
    pointer-events: none;
    z-index: 1;
}

.header-page.blog-header-blue .container {
    position: relative;
    z-index: 2;
}

/* Blog list header: overlay ดำทึบเหมือนโปรเจ็ค thaikoongroup (rgba(0,0,0,.55)) */
.header-page.blog-header-blue.noPrint:before {
    display: block !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

.header-page.blog-header-blue.noPrint:after {
    display: none !important;
}

/* ตัวอักษรบน overlay ดำ ให้เป็นสีขาวอ่านง่าย */
.header-page.blog-header-blue.noPrint h1,
.header-page.blog-header-blue.noPrint .breadcrumb,
.header-page.blog-header-blue.noPrint .breadcrumb li,
.header-page.blog-header-blue.noPrint .breadcrumb li a,
.header-page.blog-header-blue.noPrint .breadcrumb li.active,
.header-page.blog-header-blue.noPrint .breadcrumb > li + li:before {
    color: #ffffff !important;
}
