/* CSS here */
/* public/assets/css/style.css */
:root {}

* {
    border-radius: 0 !important;
    --color-error-text: #e53935;
    --color-main-background: #0072bc;
    --color-second-background: #ec1c24;
    --color-content-background: #ffffff
        /*#f9f9f9*/
    ;
    --color-whitegray-background: #f4f4f4;
    --color-nav-background: #f9f9f9;
    --color-main-linear-gradient-background: linear-gradient(140deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 43%, transparent 44%, transparent 100%), linear-gradient(105deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.06) 41%, rgba(0, 0, 0, 0.07) 76%, transparent 77%, transparent 100%), linear-gradient(to right, #d3eeff, #0072bc);

    --width-content: 80vw;
    /*là 80% của chiều rộng cửa sổ trình duyệt*/
    /* Converted to CSS variable */

    -ms-high-contrast: none !important;
}

a {
    text-decoration: none !important;
    color: #333 !important;
}

article div {
    max-width: 100% !important;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--color-content-background);
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-size: 13px;
    color: #151a1d;
}

/**  STYLE 3 */
body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5 !important;
}

body::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5 !important;
}

body::-webkit-scrollbar-thumb {
    background: #ff6907 !important;
}

body::-webkit-scrollbar-thumb:window-inactive {
    background: #ff6907 !important;
}

header {
    /*background-color: var(--color-main-background);*/
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 43%, transparent 44%, transparent 100%), linear-gradient(105deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.06) 41%, rgba(0, 0, 0, 0.07) 76%, transparent 77%, transparent 100%), linear-gradient(to right, #d3eeff, #0072bc);
    color: white;
    padding: 5px 0;
    text-align: center;
}

header .logo {
    max-width: 100px;
    max-height: 100px;
    overflow: hidden;
    z-index: 999999;
    padding: 5px;
    left: 0;
    top: 0;
}

.dropdown-menu {
    font-size: small;
}

.cursor-pointer {
    cursor: pointer;
}

/* Logo bên trái */
.logo img {
    max-height: 70px;
    /* width: auto; */
    width: 70px;
    float: left;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    background-color: var(--color-nav-background);
    text-align: left;
    color: #ffffff;
}

nav .iconhome {
    font-size: 20px;
    color: #0072bc !important;
    display: inline-block;
    vertical-align: middle;
}

#main-content nav {
    background-color: var(--color-content-background);
}

.fables-breadcrumb {
    padding: 0;
    margin-bottom: 0;
    background-color: var(--color-nav-background);
}

@media (max-width: 1040px) {
    nav .iconhome {
        margin-left: 10px;
    }
}


nav .content {
    display: flex;
    align-items: center;
    /*gap: 15px;*/
    width: var(--width-content);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 15px;
}

/* Xóa margin phải của phần tử cuối cùng để không bị thừa khoảng trắng */
nav ul li:last-child {
    margin-right: 0;
}


nav.nav-main ul {
    overflow: auto;
    -ms-overflow-style: none;
    /* IE và Edge */
    scrollbar-width: none;
    /* Firefox */
    /* margin-right: 5px;*/
}

nav.nav-main ul li {
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
}


nav ul li a {
    text-decoration: none;
    color: #333;
}


nav ul li a:hover {
    color: var(--color-main-background) !important;
}

nav ul li a:active {
    color: var(--color-main-background);
}


.scrolled {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

footer {
    /*background-color: #181717;*/
    color: white;
    padding: 10px 0;
    text-align: center;
    min-height: 100px;
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 43%, transparent 44%, transparent 100%), linear-gradient(105deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.06) 41%, rgba(0, 0, 0, 0.07) 76%, transparent 77%, transparent 100%), linear-gradient(to left, #d3eeff, #0072bc);
}

.background-gradient-cus {
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 43%, transparent 44%, transparent 100%), linear-gradient(105deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.06) 41%, rgba(0, 0, 0, 0.07) 76%, transparent 77%, transparent 100%), linear-gradient(to left, #d3eeff, #0072bc);
}


.main-content {
    margin: auto;
    max-width: var(--width-content);
    border-radius: 0px;
    background-color: var(--color-content-background);
    padding: 10px;
    min-height: 500px;
}

.container,
.content {
    margin: auto;
    max-width: var(--width-content) !important;
    border-radius: 0px;
}

.search-bar {
    --bs-gutter-x: 0 !important;
}



h2 {
    color: #0c4da2;
}

p {
    color: #333;
}

article.article-content {
    overflow: hidden;
    text-align: justify;
}

article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

article h1 {
    font-size: 1.5em;
    font-weight: bold;
}

ul.list-most-viewed,
ul.list-samecat {
    display: block;
    text-transform: lowercase;
    font-size: small;
}

ul.list-most-viewed li::first-letter,
ul.list-samecat li::first-letter {
    text-transform: uppercase;
}

ul.list-most-viewed li:hover,
ul.list-samecat li:hover {
    background: #0072bc2e;
}

ul.list-most-viewed,
ul.list-samecat {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.list-most-viewed li,
ul.list-samecat li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.list-most-viewed li::before {
    border-left: 10px solid #afafaf !important;
}

ul.list-most-viewed li::before,
ul.list-samecat li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.5em;
    /* giúp canh giữa với dòng chữ */
    width: 0;
    height: 0;
    border-left: 10px solid var(--color-main-background);
    ;
    /* màu tam giác */
    border-bottom: 15px solid transparent;
}

/* Khung login */
.login-container {
    width: 360px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Input */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #eaf1ff;
    border: none;
    font-size: 14px;
    border-radius: 0px;
}

/* Nút LOGIN */
.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #1976d2;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 0px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Google One Tap container */
.google-login {
    width: 100%;
    margin-bottom: 10px;
}

/* Lỗi */
.error_messager {
    color: var(--color-error-text);
    font-size: 13px;
    /* nhỏ hơn bình thường */
    margin-top: 5px;
}

/*css page lesion*/
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 5px;
    max-width: 100%;
}

.lesson-box {

    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    align-items: normal;
    gap: 10px;
    box-sizing: border-box;
    max-height: 820px;
    /* Giới hạn chiều cao tối đa */
    overflow: hidden;
    /* Ẩn phần vượt ra ngoài */
}



.lesson-box .thumb {
    background: #ccc;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* hoặc contain */
}


.lesson-box .title {
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-box .desc {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-box .text,
.item-sidebar {
    text-transform: lowercase;
}

.item-sidebar::first-letter {
    text-transform: uppercase;
}

.item-sidebar a {
    color: #151a1d;
}

.item-sidebar a:hover {
    color: #0072bc;
}


.lesson-box .text::first-letter {
    text-transform: uppercase;
}

.lesson-box .text .desc::first-letter {
    text-transform: uppercase;
}

/* Bài nổi bật: height = gấp đôi + bố cục dọc */
.lesson-box.featured {
    grid-row: span 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: normal;
}

.lesson-box.featured .thumb {
    width: 100%;
    height: 120px;
}

.lesson-box:hover {
    background-color: #f0f8ff;
}

.sort-btn i {
    transition: transform 0.2s;
}

.sort-asc i::before {
    content: "\f15d";
    /* Font Awesome icon: sort-alpha-down */
}

.sort-desc i::before {
    content: "\f15e";
    /* Font Awesome icon: sort-alpha-up */
}

.video-watermark {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 14px;
    color: #888f8f;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1000;
    animation: moveWatermark 30s infinite;
}

@keyframes moveWatermark {
    0% {
        top: 10%;
        left: 10%;
        opacity: 0.3;
    }

    25% {
        top: 20%;
        left: 70%;
        opacity: 0.4;
    }

    50% {
        top: 80%;
        left: 60%;
        opacity: 0.3;
    }

    75% {
        top: 50%;
        left: 20%;
        opacity: 0.4;
    }

    100% {
        top: 10%;
        left: 10%;
        opacity: 0.3;
    }
}

/* Ẩn mặc định */
.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 4px;
    display: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Hiện nút khi di chuột vào wrapper */
#inlineVideoWrapper:hover .fullscreen-btn,
#videoWrapper:hover .fullscreen-btn {
    display: block;
}

/* Optional: hiệu ứng hover cho nút */
.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

video::-webkit-media-controls-fullscreen-button {
    display: none;
}



.nav-h-head {
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-main-background);
}

.nav-h-head::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #E54D42 !important;
    transition: all ease-in-out .3s;
}

.date-box {
    border: 1px solid var(--color-main-background);
    display: inline-block;
    width: 50px;
    text-align: center;
    margin-right: 10px;
    /* cách tiêu đề */
}

.date-top {
    font-size: 9px;
    padding: 2px 0;
    border-bottom: 1px solid #ed1c24;
}

.date-bottom {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-main-background);
}

.language-select {
    position: absolute;
    right: 0;
    top: 20px;
    text-transform: uppercase;
    z-index: 99999;
    font-size: smaller;
}

.language-select a {
    color: #ffffff !important;
    display: block;
    padding: 3px 10px;
    background-color: #b3b3b3;
    text-transform: uppercase;
    float: left;

}

.language-select a.active {
    background-color: #055ea8;
}

#toTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    border: none;
    outline: none;
    background-color: #90bfdd;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.5;
}

#lableItemselected {
    color: var(--color-main-background);
}

/* Khi màn hình nhỏ hơn hoặc bằng 576px (di động) */
@media (max-width: 576px) {
    .main-content {
        max-width: 100% !important;
        padding: 10px;
    }

    .container,
    .content,
    nav .content {
        max-width: 100% !important;
    }

    .language-select {
        right: 0;
        top: 5px;
    }

    nav .content {
        width: 100% !important;
    }

    .dropdown-menu {
        width: 100vw !important;
        flex-wrap: inline !important;
        /* không cho wrap khi quá nhỏ (nếu muốn) */
    }

    .dropdown-menu li {
        width: 100vw !important;
        /* 100% viewport width (độ rộng màn hình) */
        box-sizing: border-box;
        /* tránh padding làm rộng quá */
        /* mỗi li 1 hàng */
    }

    #selectCatDOC .dropdown-menu {
        max-width: 100vw;
        /* hoặc giá trị phù hợp với giao diện bạn */
        overflow-x: auto;
        white-space: normal;
        box-sizing: border-box;
        /* tránh padding làm rộng quá */
    }

    #lableItemselected {

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

    }





}


nav>ul>li {
    display: inline-block;
    position: relative;
}

nav>ul>li>a {
    color: #fff;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all .3s ease;
}

nav>ul>li:hover>a {
    color: #444;
    border-bottom: 3px solid #444;
}

.mega-menu {
    background: #eee;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 999999;
}



.mega-menu .container {
    display: flex;
    flex-wrap: wrap;
    max-width: var(--width-content) !important;
    margin: 0 auto;
}

.mega-menu .container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* tạo khoảng cách đều */
}

.mega-menu .item {
    width: calc((100% - 3 * 5px) / 4);
    /* 4 cột, 3 khoảng 5px */
    box-sizing: border-box;
}

/* Container for all cards */
.projects-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* ✅ sửa chính tả */
    gap: 1rem;
    padding: 1rem;
}

.projects-list .card {
    flex: 0 0 calc(25% - 1rem);
    box-sizing: border-box;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.projects-list .card:hover,
.projects-list .card.hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.3), 0 0 1px 0 rgba(0, 0, 0, 0.25);
}

.projects-list .card:hover .card-content,
.projects-list .card.hover .card-content {
    box-shadow: inset 0 3px 0 0 #ccb65e;
    border-color: #ccb65e;
}

.projects-list .card:hover .card-img .overlay,
.projects-list .card.hover .card-img .overlay {
    background-color: rgba(25, 29, 38, 0.85);
    transition: opacity 0.2s ease;
    opacity: 1;
}

/* Image block */
.projects-list .card-img {
    position: relative;
    height: 224px;
    width: 100%;
    background-color: #fff;
    transition: opacity 0.2s ease;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.projects-list .card-img .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.projects-list .card-img .overlay .overlay-content {
    line-height: 224px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.projects-list .card-img .overlay .overlay-content a {
    color: #fff !important;
    padding: 0 2rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-list .card-img .overlay .overlay-content a:hover,
.projects-list .card-img .overlay .overlay-content a.hover {
    background: #ccb65e;
    border-color: #ccb65e;
}

/* Card content (text area) */
.projects-list .card-content {
    width: 100%;
    min-height: 80px;
    background-color: #fff;
    border-top: 1px solid #E9E9EB;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 1rem 0.5rem;
    transition: all 0.2s ease;
}

.projects-list .card-content a {
    text-decoration: none;
    color: #202927;
}

.projects-list .card-content h2,
.projects-list .card-content a h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.projects-list .card-content p,
.projects-list .card-content a p {
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(32, 41, 28, 0.8);
    margin: 0;
}

.projects-list .featured-badge {
    position: absolute;
    top: 0px;
    right: 8px;
    background-color: gold;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.projects-list .featured-card {
    border: 1px solid #e3c80b !important;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cột */
    grid-auto-rows: 180px;
    /* Chiều cao mặc định */
    grid-auto-flow: dense;
    gap: 0.5rem;
    padding: 1rem;
}

/* Featured card lớn */
.news-list .card-featured {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 360px;
}

/* Overlay gradient */
.news-list .card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    border-radius: 8px;
    z-index: 1;
}

.news-list .card-featured .card-content {
    position: relative;
    z-index: 2;
}

.news-list .card-featured h1 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px;
}

.news-list .card-featured p {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

.news-list .card-featured .icons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #fff;
}

/* Normal cards */
.news-list .normal-card {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-direction: column;
}

.news-list .normal-card .card-img {
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-list .normal-card .card-content {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*height: 30%;*/
    font-size: 14px;
}

.news-list .normal-card .author {
    font-size: 12px;
    color: #044fa2;
}

.news-list .normal-card .more-options {
    font-size: 18px;
    cursor: pointer;
}

.news-list .card-date-box {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #d34b50;
    color: white;
    text-align: center;
    padding: 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.news-list .card-date-box .day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.news-list .card-date-box .month-year {
    font-size: 10px;
    line-height: 1.2;
}

table#table-jobs-list thead {
    background: var(--color-main-linear-gradient-background);
    color: #fff;
}

table#table-jobs-list tr {
    border-bottom: 1px solid var(--color-main-background);
}

/* Căn giữa nội dung trong cột hành động */
#table-jobs-list td.jobs-act {
    text-align: center;
}

/* Style cho các icon trong cột hành động */
#table-jobs-list td.jobs-act a {
    background: #f9b7ba7d;
    color: #fff;
    padding: 6px 8px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

/* Hover hiệu ứng */
#table-jobs-list td.jobs-act a:hover {
    background: #0072bc;
    color: #fff !important;
}

.tabs-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tabs-wrapper html,
.tabs-wrapper body {
    position: relative;
    height: 100%;
}

.tabs-wrapper body {
    color: #1d1c1a;
    background-color: #e4e4e4;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

.tabs-wrapper .swiper {
    width: 100%;
    height: 100%;
}

.tabs-wrapper .swiper-slide {
    text-align: center;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs-wrapper .autoplay-progress {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-8px, -8px);
    z-index: 10;
    width: 100%;
    height: 100%;
}

.tabs-wrapper .autoplay-progress svg {
    --progress: 0;
    opacity: 0;
    height: 120%;
    width: 120%;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    stroke-width: 2px;
    stroke: #666666;
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.tabs-wrapper .swiper-pagination {
    font-size: 1.5rem;
}

.tabs-wrapper .tabs-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.tabs-wrapper .tabs-content {
    height: 100%;
    flex: 1 0 0%;
}

.tabs-wrapper .tabs-thumb {
    height: 100%;
    flex: 0 0 auto;
    width: 450px;
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tabs-wrapper .tabs-thumb .swiper-slide {
    width: 20rem;
    height: auto;
    border: 0;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    text-align: left;
    border-radius: 1rem;
}

.tabs-wrapper .tabs-thumb-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tabs-wrapper .tabs-thumb-avatar {
    height: 5rem;
    width: 5rem;
    position: relative;
}

.tabs-wrapper .tabs-thumb-avatar img {
    height: 100%;
    width: 100%;
}

.tabs-wrapper .tabs-thumb h3 {
    margin: 0 0 0.5rem;
}

.tabs-wrapper .tabs-thumb .tabs-thumb-details p {
    margin: 0 0 0.5rem;
}

.tabs-wrapper .tabs-thumb .swiper-slide-thumb-active,
.tabs-wrapper .tabs-thumb .swiper-slide:hover,
.tabs-wrapper .tabs-content {
    color: #1d1c1a;
    background-color: #ffffff;
}

.tabs-wrapper .tabs-thumb .swiper-slide-thumb-active {
    opacity: 1;
}

.tabs-wrapper .tabs-thumb .swiper-slide-thumb-active .autoplay-progress svg {
    opacity: 1;
}

.tabs-wrapper .tabs-thumb-wrapper,
.tabs-wrapper .tabs-thumb-wrapper .swiper-slide {
    width: 100%;
}

.tabs-wrapper .tabs-content .swiper-wrapper {
    position: relative;
    z-index: 2;
}

.tabs-wrapper .tabs-content .tabs-slide-content {
    position: relative;
    padding: 2rem;
    width: 100%;
    font-size: 1rem;
    line-height: 2rem;
}

.tabs-wrapper .tabs-content-circle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 50%;
    z-index: 1;
    opacity: 0.3;
}

.tabs-wrapper .tabs-content-quote {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    height: 15rem;
    width: 15rem;
    z-index: 1;
    opacity: 0.5;
}

.tabs-wrapper .tabs-content-circle svg,
.tabs-wrapper .tabs-content-quote svg {
    height: 100%;
    width: 100%;
}

@media (max-width: 992px) {

    .tabs-wrapper .tabs-thumb,
    .tabs-wrapper .tabs-content {
        width: 100%;
        height: auto;
    }

    .tabs-wrapper .tabs-content .tabs-slide-content {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .tabs-wrapper .tabs-thumb .swiper-slide {
        width: auto;
    }

    .tabs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/*/////*/

.default-list {
    font-family: "Poppins", sans-serif;
    /* nền tím */
}

.default-list .news-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cột */
    gap: 30px;
}

.default-list .news-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.default-list .news-thumb {
    width: 40%;
    min-width: 140px;
    max-width: 200px;
}

.default-list .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 5px;
}

.default-list .news-info {
    padding: 20px;
    flex: 1;
    background-color: #fff;
    position: relative;
}

.default-list .news-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.default-list .news-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.default-list .view-more {
    display: inline-block;
    background: var(--color-main-linear-gradient-background);
    color: #fff !important;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 5px;
    transition: 0.3s;
    text-decoration: none;
    position: absolute;
    bottom: 10px;
    right: 0;
}

.default-list .view-more:hover {
    background: var(--bs-red);
    color: #343434;
    border: 1px solid #343434;
}

.services-list {
    margin: 20px;
}

.services-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.services-list__tag {
    padding: 8px 16px;
    background-color: #eee;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.services-list__tag:hover,
.services-list__tag.active {
    background-color: #0072bc;
    color: #fff;
}

.services-list__contents {
    margin-top: 20px;
}

.services-list__group {
    display: none;
}

.services-list__group.active {
    display: block;
}

.services-list__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    /* mặc định: 2 item */
}


.services-list__card {
    width: calc(33.333% - 14px);
    height: 350px;
    position: relative;
    background-image: linear-gradient(0deg, var(--color-main-background, #ffffff) 0%, #0072bc3b 100%);
    overflow: hidden;
}

.services-list__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-list__card-text {
    color: #fff;
    background-color: rgba(17, 17, 17, 0.65);
    position: absolute;
    padding: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.services-list__card-meta {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-list__card-title {
    font-size: 1.5em;
    font-weight: 300;
    margin: 8px 0 0;
}

/* Responsive: 1 item trên mobile */
@media screen and (max-width: 768px) {
    .default-list .news-inner {
        grid-template-columns: 1fr;
        /* 1 cột trên mobile */
    }

    .default-list .news-item {
        flex-direction: column;
    }

    .default-list .news-thumb {
        width: 100%;
        height: 200px;
    }

    .default-list .news-info {
        padding: 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .news-list .card-featured {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 250px;
    }
}


@media (max-width: 900px) {
    .projects-list .card {
        flex: 0 0 calc(50% - 1rem);
        /* 2 cột */
    }
}

@media (max-width: 600px) {
    .projects-list .card {
        flex: 0 0 100%;
        /* 1 cột */
    }
}

/* Mobile: 1 cột */
@media (max-width: 480px) {
    .news-list {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    /* Featured cũng chỉ 1 cột và chiều cao vừa */
    .news-list .card-featured {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 220px;
    }

    .news-list .normal-card {
        flex-direction: column;
    }

    .news-list .normal-card .card-img {
        height: 150px;
    }

    .news-list .normal-card .card-content {
        height: auto;
        font-size: 13px;
        padding: 8px;
    }
}

/* ✅ Responsive cho mobile: 2 item / hàng */
@media (max-width: 767.98px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    /* Featured full width nhưng thấp hơn */
    .news-list .card-featured {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 250px;
    }

    .projects-list .card {
        width: 100%;
    }

    .projects-list {
        justify-content: center;
    }

    .mega-menu .item {
        width: calc((100% - 5px) / 2);
        /* 2 cột, 1 khoảng 5px */
    }

    .mega-menu .container {
        max-width: 100% !important;
        /* hoặc unset nếu bạn dùng width khác */
        padding: 0 15px;
        /* (tuỳ chọn) bo lề để nhìn gọn trên mobile */
    }

    .mega-menu .item.full-width {
        width: 100% !important;
    }
}

.mega-menu .item>ul {
    background-image: linear-gradient(to right, red, var(--color-main-background));
    /* Gradient ngang */
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    /* Độ dày giống border-bottom */
    padding-bottom: 5px;
    /* Tạo không gian cho "border" */
}



.mega-menu .item img {
    width: 100%;
}

.mega-menu a {
    display: block;
    padding: 10px 0px 2px 0px;
    color: #4ea3d8;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


}

.mega-menu a:hover {
    color: #2d6a91;
}


.dropdown {
    position: static;
}

.dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
}

.menu-desc {
    font-size: 8px;
    color: #e7a4a4;
    line-height: 1.4;
    margin-top: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}