.homepage .hero {
    background: #fff;
}

.hero {
    padding-bottom: 0px !important;
}

.site-header {
    height: 70vh;
    /* padding: 80px 0 40px; */
    /* padding: 40px 0; */
    padding: 10px 0;
    margin-top: var(--header-height);
    position: relative;
    /* background-image: url('https://thanhb18059162022.github.io/odp.cantho.gov.vn/images/bg_ai2.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-layout > .site-header {
    height: auto !important;
}

.custom-layout > .site-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none !important;
    z-index: 0;
}

.custom-layout::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.4);
    z-index: 0;
}


/* .site-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.4);
    z-index: 0;
} */

.site-header .headline {
    /* margin-top: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 48px;
    color: black;
    color: #f7ebeb;
    background-color: rgba(25, 43, 55, 0.66);
    width: auto;
    border-radius: 10px 10px 10px 10px;
    padding: 5px;
    max-width: 70%; */
}

.homepage .banner-search {
    color: #fff;
    border: unset;
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    position: inherit;
    z-index: 10;
}

.homepage .banner-search .search-form {
    border: unset;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.homepage .banner-search .search-form .input-group {
    overflow: hidden;
}

.homepage .banner-search .search-form .input-group i.icon {
    color: #0060af;
    font-size: 20px;
}

.homepage .banner-search .search-form .input-group #field-main-search {
    border: none;
    box-shadow: none;
}

/* tiêu đề ở trang chủ */
.section-title h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    padding-top: 25px;
    color: #00568d;
}

.section-title .bar {
    height: 5px;
    width: 90px;
    background: #cdf1d8;
    margin: 20px auto;
    position: relative;
    border-radius: 30px;
}

.section-title .bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2.7px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #165cf3;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-name: MOVE-BG;
    animation-name: MOVE-BG;
}

@-webkit-keyframes MOVE-BG {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(88px);
        transform: translateX(88px);
    }
}

@keyframes MOVE-BG {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(88px);
        transform: translateX(88px);
    }
}

/*  */
.carousel-inner {
    margin: auto;
}

.carousel-control-next,
.carousel-control-prev {
    width: 4%;
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-group-home {
    /* height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: auto;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.carousel img {
    max-height: 100%;
    max-width: 100%;
    position: inherit;
    margin: auto;
}

.carousel .carousel-item {
    height: auto;
    background-color: rgba(255, 255, 255, 0);
    overflow: hidden;
}

.single-why-choose-us .displayName {
    text-align: -webkit-center;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-height: 60px;
    height: 100%;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;
    text-wrap: wrap;
}

.custom-layout .owl-item .single-why-choose-us.header-webbox .displayName {
    color: #fff;
    text-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* width: 150px; */
    margin-bottom: 0px;
}


@media (max-width: 767px) {
    .carousel-inner .carousel-item-end.active,
    .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }

    .carousel-inner .carousel-item-start.active,
    .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

@media (min-width: 768px) {

    .carousel-inner .carousel-item-end.active,
    .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }

    .carousel-inner .carousel-item-start.active,
    .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }

    /* .homepage > .hero > .container {
        max-width: 768px;
    } */

    .container-md {
        max-width: 768px;
    }
}

.carousel-inner .carousel-item-end,
.carousel-inner .carousel-item-start {
    transform: translateX(0);
}



/* New CSS */

.no-show {
    display: none !important;
}

.single-why-choose-us {
    border: 1px solid #eee;
    /* padding: 15px 15px; */
    /* padding: 25px 20px; */
    border-radius: 16px;
    text-align: center;
    background: #ffffff;
    /* -webkit-box-shadow: 0 0 30px rgba(56, 46, 46, 0.1);
    box-shadow: 0 0 15px rgba(56, 46, 46, 0.1); */
    -webkit-transition: 0.5s;
    transition: 0.5s;
    /* margin-top: 30px; */
    width: 100%;
    cursor: pointer;
}

.nav-link.stat-card .single-why-choose-us {
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.single-why-choose-us .icon {
    color: #44a7ce;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.single-why-choose-us .icon i::before {
    /* font-size: 60px; */
    font-size: 24px;
}

.single-why-choose-us h3 {
    /* font-size: 50px;
    margin-top: 15px;
    margin-bottom: 15px; */
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-size: 28px;
    font-weight: 800;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.single-why-choose-us::before {
    /* content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-radius: 5px;
    height: 100%;
    background: linear-gradient(135deg, #73caec 0%, #378ddd 100%);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.5s;
    transition: 0.5s; */
}

.single-why-choose-us p {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    /* font-size: 17px; */
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.single-why-choose-us:hover {
    /* -webkit-transform: translateY(-9px); */
    /* transform: translateY(-9px); */
    /* border-color: transparent; */
    transform: translateY(-5px);
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
    border-color: #0060af;
    color: #9bd9f0;
    /* text-decoration: underline; */
}

.single-why-choose-us:hover::before {
    /* opacity: 1;
    visibility: visible; */
}

.single-why-choose-us:hover .icon {
    /* color: #ffffff; */
}

.single-why-choose-us:hover h3,
.single-why-choose-us:hover p,
.single-why-choose-us:hover h3 a {
    /* color: #ffffff; */
    /* color: #9bd9f0;
    text-decoration: underline; */
    color: #000;
}



/* Biểu đồ */
.module-graph {
    /* background-color: rgba(255, 255, 255, 0); */
    background: #f4f7f6;
    padding: 50px 0;
}

.module-graph .panel-heading {
    background-color: white;
    color: #00568d;
    border-color: white;
    font-size: 14pt;
    font-weight: bold;
}

.module-graph .panel-body {
    padding: 0px 15px 15px 15px;
}

canvas {
    height: 300px !important;
}

/* Cấu hình Flexbox để ép 2 panel bằng nhau */
  .equal-height-row {
    display: flex;
    flex-wrap: wrap;
  }
  .equal-height-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
  }
  .equal-height-row .panel {
    flex: 1; 
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .equal-height-row .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .equal-height-row .embed-responsive-custom {
    flex: 1;
    position: relative;
  }

.carousel-wrap {

    /* width: 94%; */
    position: relative;
}

/* fix blank or flashing items on carousel */
.owl-carousel .item {
    position: relative;
    z-index: 100;
    -webkit-backface-visibility: hidden;
}

/* end fix */
.owl-nav>button {
    margin-top: -26px;
    position: absolute;
    top: 50%;
    color: #cdcbcd;
}

.owl-nav i {
    font-size: 30px;
    color: #44a7ce;
}

.owl-nav .owl-prev {
    left: 2px;
}

.owl-nav .owl-next {
    right: 2px;
}




/* Code css home mới  */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 15px 0;
    margin-bottom: 22px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 198, 249, 0.6), 0 0 40px rgba(0, 198, 249, 0.3);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.hero-title .highlight {
    color: #f0f0f0;
    /* text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 30px rgba(51, 217, 255, 0.8), 0 0 60px rgba(51, 217, 255, 0.5); */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8), /* Bóng đen sắc nét để tạo khối */ 
    0 0 20px rgba(0, 198, 249, 0.6), /* Lớp phát sáng màu xanh nhẹ */ 
    0 0 40px rgba(0, 198, 249, 0.3);
}

.search-form {
    max-width: 750px;
    margin: 0 auto 60px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.input-group .icon {
    position: absolute;
    left: 25px;
    color: var(--primary-color);
    font-size: 20px;
    z-index: 10;
}

.no-show {
    display: none;
}

/* #site-header.site-header,
.module-groups#groups */
.custom-layout {
    /* background-image: url('https://thanhb18059162022.github.io/odp.cantho.gov.vn/images/bg_ai2.jpg'); */
    position: relative;
    background-size: cover;
    /* background-position: center top; */
    /* background-attachment: fixed; */
    background-position: center;
    background-repeat: no-repeat;
    /* padding: 30px 0px 100px; */
    padding: 0px;
}

.custom-layout > .site-header {
    overflow: visible;
}

.custom-layout > .site-header > .banner-search #search-suggestion-box {
    z-index: 10;
    max-height: 500px;
    overflow-y: scroll;
    /* width: 100%; */
}

.custom-layout > .site-header > .banner-search #search-suggestion-box ul.ul-suggestions.list-unstyled {
    text-align: left;
    padding-left: 15px;
}

/* Tùy chỉnh thanh cuộn (Scrollbar) cho giống thiết kế */
.suggestion-box::-webkit-scrollbar {
  width: 10px;
}
.suggestion-box::-webkit-scrollbar-track {
  background: #f4f7f6; 
  border-radius: 10px;
}
.suggestion-box::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 10px;
}
.suggestion-box::-webkit-scrollbar-thumb:hover {
    background: #0060af;
}


.custom-layout #groups::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 20, 40, 0.4); */
    z-index: 0;
}

.homepage .hero {
    padding-top: 0;
}

.custom-layout #groups > .container.text-center.my-3 {
    margin: 0px auto;
    margin-top: 0px !important;
    /* padding: 0 15px; */
    padding: 0;
    max-width: 1300px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.custom-layout .hero > #groups > .container.text-center.my-3 {
    margin: 0px auto;
    margin-top: 0px !important;
    padding: 0;
    max-width: 1300px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero > #groups > .container.text-center.my-3 {
    margin: 0px auto;
    margin-top: 0px !important;
    padding: 0;
    max-width: 1320px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#groups > .container > .carousel-wrap {
    /* height: 500px; */
    margin: 0px !important;
    width: 100%;
}

.container > .carousel-wrap > .owl-carousel.owl-loaded {
    height: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.owl-carousel.owl-loaded > .owl-nav > button {
    display: none;
}

.owl-stage-outer,
.owl-stage {
    width: 100% !important;
    height: 100%;
}

.custom-layout .owl-stage {
    /* margin-top: 10px; */
    /* padding: 15px 15px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* grid-template-columns: repeat(5, 1fr); */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    z-index: 2;
    /* gap: 30px; */
    justify-items: center;
    align-content: center;
}

.owl-stage {
    padding: 50px 15px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* grid-template-columns: repeat(5, 1fr); */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    z-index: 2;
    /* gap: 30px; */
    justify-items: center;
}

.owl-stage::after {
    width: 100%;
}

.custom-layout .owl-stage .owl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* width: auto !important; */
    /* min-height: 180px; */
    min-width: 115px;
    /* max-width: 230px; */
    /* background: rgba(255, 255, 255, 0.15); */
    background: rgba(231, 233, 139, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-right: 0 !important;
}

.owl-stage .owl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* width: auto !important; */
    /* width: 100% !important; */
    min-height: 180px;
    min-width: 115px;
    /* max-width: 230px; */
    /* background: #003366; */
    background: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #eee;
    border-radius: 20px; 
    color: #003366;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-right: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-layout .owl-stage .owl-item a {
    color: #fff;
}

.owl-stage .owl-item a.nav-link.item {
    color: #003366;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* .owl-stage .owl-item a {
    color: #fff;
} */

.owl-stage .owl-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-10px);
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.3); */
    box-shadow: 0 20px 25px rgba(0,0,0,0.3);
    color: #9bd9f0 !important;
    /* text-decoration: underline; */
}

/* .owl-stage .owl-item:hover a.nav-link.item > .single-why-choose-us {
    color: #9bd9f0;
} */

.owl-stage .owl-item:hover .displayName {
    color: #0060af !important;
}

.owl-stage .owl-item:hover .img-group-home {
    background: #0060af;
    color: #fff;
    transform: scale(1.1);
}

.owl-stage .owl-item .nav-link.item .single-why-choose-us {
    background: none;
    border: none;
    height: auto;
}

.single-why-choose-us .img-group-home img {
    /* padding: 10px; */
    border-radius: 50%;
}

.banner-content > .input-group > input#field-main-search {
    width: 100%;
    height: 44px;
    border: none;
    outline: none;
    background: transparent;
    /* padding-left: 60px;
    padding-right: 140px; */
    padding: 0 120px 0 48px;
    /* font-size: 16px; */
    color: #333;
    border-radius: 50px;
}

.banner-content > .input-group > button.btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #0060af, #0088ff);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 96, 175, 0.3);
    z-index: 9;
}

.banner-content > .input-group > button.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 96, 175, 0.5);
}


.homepage > .hero > .container {
    /* padding: 0; */
    padding: 60px 0;
}

.flex-option {
    display: flex;
    justify-content: space-between;
}

#dataset-summary {
    display: block;
    margin-top: 1rem;
    /* margin-bottom: 1rem; */
    /* padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5); */
}

#dataset-summary > h3 {
    display: block;
}

#stats.module-stats {
    flex: 1 1 100%;
    padding-top: 25px;
    /* margin-bottom: 1rem; */
    /* padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5); */
}

#stats.module-stats > .container {
    padding: 0;
}

#stats.module-stats > .container > .row {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stats-options {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.stats-options-item {
    padding: 0;
}

.stats-options > h4 {
    margin-bottom: 15px;
    color: #0b4a8b;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-options > h4 > i {
    font-size: 17px;
    color: #f97316;
}

.stats-box-left {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.stats-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: #ffffff;
    /* padding: 25px 20px; */
    padding: 0;
    /* border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s;
    /* border: 1px solid #eee; */
    width: 100%;
}

.stat-card > .nav-link {
    padding: 0;
    width: 100%;
}

.stat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.stat-icon-box.blue {
    background: #eef7ff;
    color: #0060af;
}

.stat-icon-box.green {
    background: #e6f9ec;
    color: #28a745;
}


/* COLOR STATS */
.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-icon-box.orange {
    background: #fff4e6;
    color: #fd7e14;
}

.stat-icon-box.purple {
    background: #f3e6ff;
    color: #6f42c1;
}


.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}


/* ======================================================================== */
/* ============================== RESPONSIVE ============================== */
/* ======================================================================== */


@media (min-width: 1300px) {
    /* .homepage > .hero > .container {
        max-width: 1200px;
    }

    #graph.module-graph > .container {
        max-width: 1200px;
    } */
    
    .container-xxl {
        max-width: 1200px;
    }
}


@media (min-width: 1200px) {
    .homepage > .hero > .container {
        /* max-width: 1170px; */
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    #graph.module-graph > .container {
        /* max-width: 1170px; */
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .container-xl {
        max-width: 1170px;
    }

    .owl-stage {
        gap: 30px;
    }

    .custom-layout .owl-stage {
        margin-top: 10px;
        padding: 15px 15px;
    }

    .owl-stage .owl-item {
        flex: 1 0 calc(20% - 30px);
        height: 100%;
        max-height: 206.6px;
        max-width: 230px;
    }

    .owl-stage .owl-item > .nav-link.item {
        padding: 35px 20px;
    }

    .banner-content.search-form > .input-group > input {
        font-size: 16px;
    }

    .banner-content > .input-group > button.btn {
        font-size: 16px;
    }
    
    .custom-layout > .site-header > .banner-search #search-suggestion-box {
        width: 100%;
    }
}



@media (max-width: 1199.98px) {
    .homepage > .hero > .container {
        /* max-width: 992px; */
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .owl-stage {
        gap: 20px;
    }

    .custom-layout .owl-stage {
        padding: 0px 15px;
    }

    .owl-stage .owl-item {
        flex: 1 0 calc(20% - 20px);
        max-width: 230px;
        /* width: 100%; */
        min-height: 180px;
    }

    .owl-stage .owl-item > .nav-link.item {
        padding: 35px 20px;
    }

    .banner-content.search-form > .input-group > input {
        font-size: 16px;
    }

    .banner-content > .input-group > button.btn {
        font-size: 16px;
    }

    #graph.module-graph > .container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .custom-layout > .site-header > .banner-search #search-suggestion-box {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .owl-stage .owl-item {
        /* flex: 1 0 calc(25% - 20px); */
        /* max-width: 252px; */
        /* width: 100%; */
        flex: 1 0 calc(25%);
        max-width: calc((105% / 4.5));
        min-height: 180px;
    }

    .homepage > .hero > .container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    #graph.module-graph > .container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}


@media (min-width: 1024px) {
    .stats-options-item {
        width: 100%;
    }

    #groups > .container.text-center.my-3 {
        max-width: 1300px;
    }
}


@media (max-width: 992px) {
    .owl-stage .owl-item {
        /* flex: 1 0 calc(26% - 20px); */
        /* max-width: 307px; */
        /* width: 100%; */
        flex: 1 0 calc(26%);
        max-width: calc((105% / 3.3));
        min-height: 180px;
    }

    #site-header.site-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* .homepage > .hero > .container {
        max-width: 768px;
    }

    #graph.module-graph > .container {
        max-width: 768px;
    } */
}

@media (max-width: 768px) {
    .owl-stage .owl-item {
        /* flex: 1 0 calc(25% - 20px); */
        /* max-width: 359px; */
        /* width: 100%; */
        flex: 1 0 calc(50% - 20px);
        max-width: calc((100% / 2));
        min-height: 140px;
    }

    .owl-stage .owl-item > .nav-link.item {
        padding: 20px 10px !important;
    }

    .custom-layout > .site-header > .banner-search #search-suggestion-box {
        width: 95% !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    #site-header.site-header {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #site-header.site-header .banner-search {
        max-width: 750px;
        padding: 0 15px;
    }

    .banner-content.search-form > .input-group > input {
        font-size: 14px;
    }

    .banner-content > .input-group > button.btn {
        font-size: 14px;
    }

    .img-group-home {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .banner-content > .input-group > button.btn {
        padding: 0px 14px;
    }

    .widget-content .data-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 10px !important;
    }

    .widget-content .data-item .item-stats {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}



/* Container chính */

/* Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.widget-header .title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}   

.widget-header .title > h3 {
    color: #0b4a8b;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}   

.widget-header .view-all {
  color: #0052a2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.widget-header .view-all:hover {
  /* text-decoration: underline; */
  color: #9bd9f0;
}

/* Khu vực danh sách có thanh cuộn (Scrollbar) */
.widget-content {
    /* max-height: 400px;
    overflow-y: auto;
    padding-right: 12px; */
    height: 315px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-on {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px 16px;
}

/* Tùy chỉnh thanh cuộn (Scrollbar) cho giống thiết kế */
.widget-content::-webkit-scrollbar {
  width: 5px;
}
.widget-content::-webkit-scrollbar-track {
  background: #f4f7f6; 
  border-radius: 10px;
}
.widget-content::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 10px;
}
.widget-content::-webkit-scrollbar-thumb:hover {
    background: #0060af;
}

/* Từng Item dữ liệu */
.data-item {
  background: #f9fbfd; /* Màu nền xám nhạt */
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 12px;
  cursor: pointer;
}

.data-item:hover {
    background: #fff;
    border-color: #0060af;
    box-shadow: 0 5px 15px rgba(0, 96, 175, 0.1);
    transform: translateX(5px);
    text-decoration: none;
}

.data-item:last-child {
  margin-bottom: 0;
}

/* Cột thông tin bên trái */
.item-info {
  flex: 1;
  padding-right: 20px;
}

.item-title {
  margin: 0 0 6px 0;
  color: #2c3e50;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: wrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-org {
  margin: 0;
  color: #888888;
  font-size: 11px !important;
}

/* Cột badges bên phải */
.item-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 80px;
}

/* Các nhãn (Badges) */
.stat-badge {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 15px;
}

/* Màu sắc của từng loại badge */
.stat-badge.rating {
  background-color: #fff4e6; /* Nền cam nhạt */
  color: #d97706;          /* Chữ cam đậm */
}

.stat-badge.views {
  background-color: #eee; /* Nền xám nhạt */
  color: #666;          /* Chữ xám đậm */
}

.stat-badge.downloads {
  background-color: #e6f9ec; /* Nền xanh nhạt */
  color: #28a745;          /* Chữ xanh đậm */
}



/* --- RESPONSIVE CHO TEMPLATE CHA --- */

/* Mặc định cho màn hình lớn (Desktop) */
.flex-option {
    display: flex;
    flex-wrap: wrap; /* Cho phép rớt dòng khi thiếu không gian */
    gap: 24px;       /* Khoảng cách giữa Template A và B */
    align-items: flex-start;
}

/* Điều chỉnh độ rộng cho các khối con trong cha */
#dataset-summary.dataset-summary, 
#stats.module-stats {
    /* flex: 1;  */
    min-width: 0; 
}

/* --- TABLET & MOBILE (Dưới 992px) --- */
@media (max-width: 991px) {
    .flex-option {
        flex-direction: column; /* Chuyển sang hàng dọc */
    }

    #dataset-summary.dataset-summary, 
    #stats.module-stats {
        width: 100% !important; /* Chiếm toàn bộ chiều rộng */
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Khoảng cách giữa 2 module khi xếp chồng */
    #dataset-summary {
        margin-top: 20px;
    }

    .homepage > .hero > .container {
        max-width: 768px;
    }

}


@media (min-width: 992px) {
    /* .homepage > .hero > .container {
        max-width: 992px;
    }

    #graph.module-graph > .container {
        max-width: 992px;
    } */

    .container-lg {
        max-width: 992px;
    }

    #dataset-summary.dataset-summary, #stats.module-stats {
        flex: 1;
    }
}

@media (min-width: 576px) {
    .container-sm {
        max-width: 748px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Căn chỉnh lại tiêu đề trong template cha */
    .stats-options h2, 
    .widget-header h3 {
        font-size: 1.5rem;
        text-align: start;
        width: 100%;
    }

    .view-all {
        text-align: start;
    }

    .widget-header {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
}


/* Sửa lỗi khoảng trống ở giữa của khối Thống kê */
.stats-grid-wrapper.row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Luôn chia 2 cột đều nhau */
    gap: 15px; /* Khoảng cách giữa các card */
    margin-left: 0;
    margin-right: 0;
}

/* Ép các thẻ con chiếm trọn 100% diện tích của ô Grid */
.stats-grid-wrapper .stats-options-item {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

/* Đảm bảo thẻ a và card bên trong full chiều rộng và căn giữa nội dung */
.stats-options-item .stat-card,
.stats-options-item .single-why-choose-us {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Reponsive cho Mobile màn hình nhỏ rớt xuống 1 cột */
@media (max-width: 480px) {
    .stats-grid-wrapper.row {
        /* grid-template-columns: 1fr !important; */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .banner-content > .input-group > button.btn {
        padding: 0px 14px;
    }

    .widget-content .item-stats {
        justify-content: space-between;
        width: 100%;
    }

    .custom-layout > .site-header > .banner-search #search-suggestion-box {
        width: 93% !important;
    }
}

#graph > .container {
    padding: 0px 17px;
}

#graph .panel.panel-default {
    background: #fff;
}

#graph.module-graph .panel.panel-default {
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

#graph.module-graph .panel.panel-default > .panel-heading {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #004a87;
}

#graph.module-graph .panel.panel-default > .panel-heading > i {
    color: #28a745; 
    margin-right: 8px;
}

#graph.module-graph .panel.panel-default > .panel-body {
    padding: 30px 20px;
}

.panel.panel-default > .panel-body .custom-rating-note > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel.panel-default > .panel-body .custom-rating-note > span > span {
    font-size: 19px;
    font-weight: 900;
}
