/* CSS cho dots của slider nằm dọc bên phải màn hình */
.slider .flickity-page-dots {
    bottom: auto !important;
    top: 80%;
    right: 80px !important;
    left: auto !important;
    width: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 12px;
    z-index: 99;
}

/* Xoá margin ngang mặc định của các dot */
.slider .flickity-page-dots .dot {
    margin: 0 !important;
    display: block !important;
}

/* ==================================================
   STYLING CHO SECTION FULL MÀN HÌNH (SPLIT BACKGROUND)
   Gắn class: custom-fullscreen-section vào Section
   ================================================== */
.custom-fullscreen-section {
    position: relative;
    padding: 0 !important;
    background: linear-gradient(to right, transparent 50%, #f4f5f7 50%) !important;
    z-index: 1;
    /* Để tạo box bao bọc */
}


/* ==================================================
   STYLING CHO CỘT TRÁI (LOGO MỜ)
   Gắn class: custom-info-column vào Column bên trái
   ================================================== */
@media (min-width: 768px) {

    /* Lớp chứa nội dung ROW, COL... của Section */
    .custom-fullscreen-section>.section-content {
        padding: 0 !important;
        height: 100vh;
        display: flex;
        align-items: stretch;
        position: relative;
        z-index: 2;
    }

    .custom-info-column {
        position: relative;
        z-index: 10;
        height: 100vh;
        align-content: center;
        padding-left: 90px !important;
    }

    .custom-scroll-column .col.post-item {
        padding-right: 90px;
    }
}

/* Vách ngăn cắt dọc (cái hình cong bạc) lấp ló mặt dưới ngay lằn cắt 50% */
.custom-info-column::after {
    content: "";
    position: absolute;
    top: 0;
    /* Nép cứng sát mép phải của cột (đúng ngay làn ranh chia 2 màu) */
    right: 0;
    /* Thu hẹp bề rộng lại cực nhỏ cho cong nhẹ nhô ra ngoài thôi, không để đâm thọt vào trong chữ */
    width: 45px;
    height: 100vh;
    background-image: url('http://localhost:8888/3311_cloudfly/wp-content/uploads/2026/03/round-silver.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: -1;
}

/* Logo chìm đằng sau chữ */
.custom-info-column::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-image: url('http://localhost:8888/3311_cloudfly/wp-content/uploads/2025/12/Logo-trang-nen-xanh-kem-chu-1024x1024.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

/* ==================================================
   STYLING CHO CỘT PHẢI (CUỘN BÊN MẶT)
   Gắn class: custom-scroll-column vào Column bên phải
   ================================================== */
.custom-scroll-column {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 10;
    background: #ebeded;
}

/* Ẩn thanh cuộn cho cột bên phải */
.custom-scroll-column {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-scroll-column::-webkit-scrollbar {
    display: none;
}

/* ==================================================
   STYLING CHO NEWS TICKER (THANH TIN TỨC CHẠY NGANG)
   ================================================== */
.custom-news-ticker {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    height: 46px;
    overflow: hidden;
    margin-bottom: 0px;
    width: 100%;
}

.custom-news-ticker .ticker-label {
    background: #2096d3;
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.custom-news-ticker .ticker-nav {
    display: flex;
    height: 100%;
}

.custom-news-ticker .ticker-nav button {
    background: #f4f4f4;
    border: none;
    border-right: 1px solid #e5e5e5;
    width: 44px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.custom-news-ticker .ticker-nav button:hover {
    background: #e9e9e9;
    color: #2096d3;
}

.custom-news-ticker .ticker-nav button svg path {
    transition: stroke 0.3s;
}

.custom-news-ticker .ticker-nav button:hover svg path {
    stroke: #2096d3;
}

.custom-news-ticker .ticker-slider-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    padding-left: 10px;
}

.custom-news-ticker .ticker-slider {
    height: 100%;
}

.custom-news-ticker .ticker-item {
    width: 100%;
    height: 46px;
    display: flex !important;
    align-items: center;
    padding: 0 15px;
}

.custom-news-ticker .ticker-item a {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s;
}

.custom-news-ticker .ticker-item a span.arr {
    color: #2096d3;
    margin-left: 8px;
    display: inline-block;
    font-weight: normal;
}

.custom-news-ticker .ticker-item a:hover {
    color: #2096d3;
}

.bg-custom-section-2::before {
    display: none;
}

.bg-custom-section-2 {
    background-image: url(https://cmcts.com.vn/s/0403221/banner/bg__partner.jpg);
}

/* ==================================================
   STYLING CHO CATEGORY BANNER VÀ FILTER
   ================================================== */

.custom-category-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* Chiều cao tương đối giống mẫu */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* margin-bottom được bỏ đi vì thanh filter dính sát dưới */
}

.custom-category-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    /* Lớp phủ đen làm mờ ảnh nền thêm chút để nổi chữ trắng */
    z-index: 1;
}

.custom-category-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.custom-category-banner .banner-breadcrumbs {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}

.custom-category-banner .banner-breadcrumbs a {
    color: #fff;
    opacity: 0.9;
    text-decoration: none;
}

.custom-category-banner .banner-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.custom-category-banner .banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 5px;
}

.custom-category-banner .banner-desc {
    font-size: 18px;
    opacity: 0.9;
}

/* --- Filter Container --- */
.custom-category-filter-wrap {
    background-color: #f2f2f2;
    /* Nền xám nhạt toàn thanh rộng ngang */
    padding: 25px 0;
    margin-bottom: 50px;
    width: 100%;
}

ul.custom-category-filter {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

ul.custom-category-filter li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.custom-category-filter li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #222222;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    /* Bo góc như mẫu */
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Bóng nhẹ */
}

ul.custom-category-filter li a:hover,
ul.custom-category-filter li a.active {
    background-color: #c9ccd1 !important;
    /* Xám đậm khi hover/active (giống ảnh mẫu 2) */
    color: #222222 !important;
}

/* ==================================================
   STYLING CHO DANH SÁCH BÀI VIẾT (CARD BLOG)
   ================================================== */

/* 1. Mở rộng khung chứa bài viết ra 100% (Ẩn sidebar) */
.blog-archive #content>.row>.large-3,
.blog-archive #content>.row>.post-sidebar {
    display: none !important;
}

.blog-archive #content>.row>.large-9 {
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 2. Đổ khối hộp (Card) bằng nhau trên 1 hàng */
.blog-archive .post-item {
    display: flex;
    /* Cho các lấp trải đều chiều cao */
}

.blog-archive .post-item .col-inner,
.blog-archive .post-item .box {
    width: 100%;
    height: 100%;
    /* Kéo dài box cho kín không gian của col */
}

/* 3. Đổ bóng (Shadow) và bo góc (Radius) y chang mẫu DevTools */
.blog-archive .post-item .box {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Box shadow nhạt và mượt */
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden !important;
    /* Ép ảnh bên trong phải bị cắt bo góc theo thẻ ngoài */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #f2f2f2;
    /* Viền mờ cho khối sắc nét */
}

/* Hiệu ứng hover cho card thêm sinh động */
.blog-archive .post-item .box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* 4. Thêm không gian (padding) cho phần nội dung chữ bên trong Card */
.blog-archive .post-item .box-text {
    padding: 24px 20px !important;
}

/* Ép khoảng cách giữa tiêu đề và đoạn văn bên trong cho thoáng hơn */
.blog-archive .post-item .box-text .post-title {
    margin-bottom: 12px;
}