﻿/* =============================
   RESET, KHÔNG SET FONT RIÊNG
============================= */
.xseo-news-section,
.xseo-news-section * {
    box-sizing: border-box;
}

/* =============================
   CONTAINER
============================= */
.xseo-news-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 22px 24px 26px;
    box-shadow: 0 18px 45px rgba(0, 72, 160, 0.10);
}

/* =============================
   HEADER
============================= */
.xseo-news-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.xseo-news-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #07172f;
}

.xseo-news-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xseo-news-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    color: #005bd7;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: 0.25s ease;
}

    .xseo-news-btn:hover {
        background: #005bd7;
        color: #fff;
    }

.xseo-news-view-all {
    margin-left: 8px;
    color: #005bd7;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

    .xseo-news-view-all:hover {
        text-decoration: underline;
    }

/* =============================
   GRID
============================= */
.xseo-news-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 30px;
    transition: 0.45s ease;
}

    .xseo-news-grid.is-changing {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

/* =============================
   MAIN NEWS
============================= */
.xseo-news-main {
    border-right: 1px solid #e5eaf2;
    padding-right: 30px;
}

    .xseo-news-main a,
    .xseo-news-small a {
        text-decoration: none;
    }

.xseo-news-image-link,
.xseo-news-thumb {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.xseo-news-thumb {
    border-radius: 12px;
}

.xseo-news-main img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: 0.35s ease;
}

.xseo-news-main h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #005bd7;
    transition: 0.25s;
}

    .xseo-news-main h2 a {
        color: inherit;
        text-decoration: none;
    }

.xseo-news-main p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    color: #44546a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.8em;
}

/* =============================
   SIDE NEWS
============================= */
.xseo-news-side {
    display: grid;
    grid-template-rows: repeat(4, auto);
}

.xseo-news-small {
    display: grid;
    grid-template-columns: 1fr 145px;
    gap: 16px;
    align-items: start;
    padding-bottom: 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid #e5eaf2;
    transition: 0.25s ease;
}

    .xseo-news-small:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .xseo-news-small img {
        width: 145px;
        height: 82px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        transition: 0.35s ease;
    }

    .xseo-news-small h3 {
        margin: 0 0 7px;
        font-size: 18px;
        line-height: 1.3;
        font-weight: 700;
        color: #050b18;
        transition: 0.25s;
    }

        .xseo-news-small h3 a {
            color: inherit;
            text-decoration: none;
        }

    .xseo-news-small p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
        font-weight: 400;
        color: #44546a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 3em;
    }

/* =============================
   TAG CATEGORY LINK
============================= */
.xseo-news-tag {
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #005bd7;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

    .xseo-news-tag:hover {
        background: #005bd7;
        color: #fff;
    }

/* =============================
   HOVER
============================= */
.xseo-news-main:hover img,
.xseo-news-small:hover img {
    transform: scale(1.03);
}

.xseo-news-main h2 a:hover,
.xseo-news-small h3 a:hover {
    color: #005bd7;
}

.xseo-news-small:hover {
    transform: translateX(5px);
}

/* =============================
   DOTS
============================= */
.xseo-news-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.xseo-news-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c7d7eb;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: 0.25s;
}

    .xseo-news-dot.active {
        width: 24px;
        background: #005bd7;
    }

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 992px) {
    .xseo-news-section {
        margin: 0 14px;
        padding: 18px;
    }

    .xseo-news-grid {
        grid-template-columns: 1fr;
    }

    .xseo-news-main {
        border-right: none;
        border-bottom: 1px solid #e5eaf2;
        padding-right: 0;
        padding-bottom: 22px;
    }

        .xseo-news-main img {
            height: 260px;
        }

        .xseo-news-main h2 {
            font-size: 24px;
        }
}

@media (max-width: 576px) {
    .xseo-news-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .xseo-news-small {
        grid-template-columns: 1fr;
    }

        .xseo-news-small img {
            width: 100%;
            height: 180px;
        }

    .xseo-news-main img {
        height: 220px;
    }

    .xseo-news-main h2 {
        font-size: 22px;
    }

    .xseo-news-small h3 {
        font-size: 17px;
    }
}
