

/* CSS custom_kgg */
.hero {
    padding-bottom: 0px !important;
    max-width: 1200px ;
    margin: 2rem auto;
    padding: 0 2rem;
}
.section-center {
    text-align: center;
}

.section-title {
    /* margin-bottom: 1.5rem; */
    /* color: #333; */
    /* color: rgb(0, 86, 141); */
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
    /* margin-bottom: 2rem; */
}

.section-center .section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-center .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #0066cc;
    background: linear-gradient(to right, rgba(0, 102, 204, 0.6), rgba(0, 102, 204, 0.8));
    border-radius: 3px;
}

.color-title-group-banner {
    color: white;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
    grid-auto-rows: 1fr;
    justify-content: center;
}

.field-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.field-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.field-title {
    font-weight: 550;
    color: #333;
    margin: 0;
    font-size: 1rem;
}
.field-count {
    color: #666;
    font-size: 0.875rem;
}
.view-all-container {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    color: #ffffff;
    border: 2px solid #0066cc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500 ;
    transition: all 0.3s ease;
    color: #f7ebeb;
    background-color: rgba(25, 43, 55, 0.66);
}
.view-title{
    font-weight: 600;
}
.view-all-icon {
    margin-left: 0.5rem;
    /* font-size: 1.25rem; */
    color: #0066cc;
}


.view-all:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    text-decoration: none;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 5rem 0 3rem;
    min-height: 500px;
}
.latest-data {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
	gap: 15px;
}
.section-center .section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .latest-data, .stats-container {
        height: 500px; /* Chiều cao cố định trên mobile */
    }
    .chart-wrapper {
        min-height: 500px !important;
    }

}

.data-list {
    max-height: 400px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px; /* Thêm padding cho scrollbar */
    /* max-width: 536px !important; */
}
.data-list a:hover {
    text-decoration: none;
}
/* Tùy chỉnh scrollbar */
.data-list::-webkit-scrollbar {
    width: 6px;
}

.data-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.data-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.data-item:hover {
    background: #f0f0f0;
}
.data-format {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    /* margin-right: 1rem; */
    color: white;
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.data-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.data-item small {
    color: #666;
    font-size: 0.9em;
}

.stats-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
	gap: 15px;
    /* max-width: 600px !important; */
}

.chart-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	flex: 1;
    position: relative;
    min-height: 0;
    /* max-width: 536px !important; */
     /* margin: 0 auto; */
    /* padding: 20px; */

}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
    .field-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
        grid-template-rows: 210px 210px;
        grid-column-gap: 2rem;
        grid-row-gap: 2rem;
        margin-bottom: 2rem;
        margin-top: 2rem;
        height: 452px;
    }
}

@media screen and (max-width: 768px) {
    /* Grid layout */
    .field-grid {
        grid-template-rows: 210px 210px;
        grid-column-gap: 2rem;
        grid-row-gap: 2rem;
        margin-bottom: 2rem;
        margin-top: 2rem;
        height: 452px;
    }
}
@media screen and (max-width: 480px) {

    
    /* Grid layout */
    .field-grid {
        grid-template-rows: 130px 130px;
        grid-template-columns: repeat(auto-fit, minmax(130px, 130px));
        grid-column-gap: 0.5rem;
        grid-row-gap: 0.5rem;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        height: 268px;
    }
    
    /* Field items */
    .field-item {
        padding: 10px;
    }
    
    /* Latest data */
    .data-item {
        padding: 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }

    .field-title {
        font-size: 0.6rem;
    }

    .field-count {
        font-size: 0.5rem;
    }

    .img-group-home {
        height: 60px;
    }
}

/* Additional Responsive Features */
@media screen and (max-width: 768px) {
    /* Dữ liệu mới nhất responsive */
    .latest-data .data-item {
        display: grid;
        grid-template-columns: 50px 1fr;
        align-items: center;
        gap: 10px;
    }
    
    /* Responsive Typography */
    .field-item h3 {
        font-size: 1rem;
    }
    
    .field-item p {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #fff;
    }
    
    .field-item,
    .data-item {
        background-color: #2d2d2d;
        border-color: #404040;
    }
}

.website-links {
    margin: 3rem 0;
    padding: 2rem 0;
}
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Space for arrows */
}
.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-arrow.prev {
    left: -10px;
}

.slider-arrow.next {
    right: -10px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
    color: #333;
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0 20px;
    }
    
    .slider-item {
        flex: 0 0 240px;
        min-width: 240px;
        background: rgba(255, 255, 255, 0.95);
    }
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    /* padding: 20px; */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 4rem;
    
}

.chart-box {
    position: relative;
    width: 100%;
    height:0;
    /* min-height: 500px; */
    padding-bottom: 75%; /* Tỷ lệ 4:3 */
}
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.section-links {
    padding: 2rem 0;
    /* Thêm gradient và màu nền tinh tế */
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.section-links .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-links .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.slider-item {
    flex: 0 0 400px;
    /* Tăng chiều rộng để chứa cả logo và text */
    min-width: 400px;
    height: 95px;
    background: rgba(255, 255, 255, 0.9); /* Nền trắng trong suốt một chút */
    backdrop-filter: blur(5px); /* Hiệu ứng kính mờ */
    border: 1px solid rgba(0, 102, 204, 0.1); /* Viền xanh nhạt */
    border-radius: 8px;
    overflow: hidden;
    margin: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.slider-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
    transform: translateY(-2px);
}
.website-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.website-link:hover {
    text-decoration: none;
}

.website-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.website-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.website-name {
    color: #2c3e50; /* Màu chữ đậm hơn */
    font-size: 1.1rem;
    /* font-weight: 500; */
    margin: 0;
    line-height: 1.4;
}

.website-description {
    color: #6c757d; /* Màu chữ nhạt hơn cho domain */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: rgba(0, 102, 204, 0.8);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.08);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 102, 204, 0.2);
    color: rgba(0, 102, 204, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 300px;
        min-width: 300px;
    }
}
.website-logo-container {
    flex: 0 0 80px;
    height: 50px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(0, 102, 204, 0.02);
}

.default-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #6c757d;
    /* Default logo với gradient */
    background: linear-gradient(135deg, #f0f4f8, #e9ecef);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.website-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.website-logo.error {
    display: none;
}

/* Thêm style cho text trong default logo */
.logo-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(0, 102, 204, 0.8); /* Màu chữ xanh đậm hơn một chút */
    text-transform: uppercase;
}

/* Hover effect cho links */
.website-link:hover .website-name {
    color: rgba(0, 102, 204, 0.9);
}
.headline-wrapper {
    display: flex;
    justify-content: center;

}
.headline-group {
    margin-top: 2rem;
    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;
    margin-bottom: 1rem;
    line-height: 1rem;
}
