﻿:root {
    --bg-color: #0473d7;
    --color_card: #386ffc;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

/*body {
    margin-bottom: 60px;
}*/

.logoAdmin {
    width: 50px;
    height: auto;
}

.justify_text_align {
    text-align: justify !important;
}

.fs-6-custom {
    font-size: 0.9rem !important;
}

.footer_bg {
    background-color: var(--bg-color);
    color: white;
}

.bar_color {
    background-color: var(--bg-color) !important;
    color: white !important;
}

.header_bg {
    background-color: var(--bg-color);
    color: white;
}

.menu_a {
    color: white !important;
}

    .menu_a:hover {
        color: #ff8a00 !important;
    }

.menu_a1 {
    color: white !important;
    background: #ff8a00 !important;
    border-radius:3px;
}

    .menu_a1:hover {
        color: white !important;
    }

.node_text {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
}

    .node_text:hover {
        color: white !important;
        text-decoration: none;
    }

.title_custom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
    margin-bottom: 20px;
}

    .title_custom img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.header_css {
    background: #2980b9;
}


    @media (max-width: 768px) {
        .carousel-caption {
            font-size: 0.9rem;
            padding: 0.5rem;
        }

        .main-content-container {
            padding-left: 8px;
            padding-right: 8px;
        }

        .chart-container {
            height: 220px;
        }

        .chart-container-bar {
            height: 220px;
        }

        .btn-ffblue {
            /* Reset về mặc định Bootstrap */
            background: none !important;
            color: #ff8a00 !important;
            border: initial !important;
            box-shadow: none !important;
            font-weight: 700 !important;
            width: auto !important;
            height: auto !important;
            display: inline-block !important;
            align-items: unset !important;
            justify-content: unset !important;
            padding: 0.375rem 0 !important;
            margin-left: 8px !important;
            font-size: 1rem !important;
            min-width: initial !important;
            transition: initial !important;
            border-radius: 0.375rem !important;
        }

            .btn-ffblue:hover,
            .btn-ffblue:focus,
            .btn-ffblue:active {
                background: none !important;
                color: initial !important;
                transform: none !important;
                box-shadow: none !important;
            }

        .btn-row {
            display: block !important;
            gap: unset !important;
        }

            .btn-row .btn-ffblue {
                margin-bottom: 0.5rem;
            }

        .head_font_size {
            font-size: 1rem !important;
        }
    }

    @media (max-width: 1200px) {
        .btn-ffblue {
            /* Reset về mặc định Bootstrap */
            background: none !important;
            color: #f58718 !important;
            border: initial !important;
            box-shadow: none !important;
            font-weight: 700 !important;
            width: auto !important;
            height: auto !important;
            display: inline-block !important;
            align-items: unset !important;
            justify-content: unset !important;
            padding: 0.375rem 0 !important;
            margin-left: 8px !important;
            font-size: 1rem !important;
            min-width: initial !important;
            transition: initial !important;
            border-radius: 0.375rem !important;
        }

            .btn-ffblue:hover,
            .btn-ffblue:focus,
            .btn-ffblue:active {
                background: none !important;
                color: #f58718 !important;
                transform: none !important;
                box-shadow: none !important;
            }

        .btn-row {
            display: block !important;
            gap: unset !important;
        }

            .btn-row .btn-ffblue {
                margin-bottom: 0.5rem;
            }
    }

    .logo_footer {
        width: 100px;
        height: auto;
    }


    #bannerCarousel {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        user-select: none;
        pointer-events: none;
    }

    .carousel-caption {
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        border-radius: 5px;
        bottom: 20px;
    }

    .btn-ffblue {
        background: linear-gradient(90deg, #0099ff 0%, #0066cc 100%);
        color: #fff;
        border: none;
        transition: background 0.3s cubic-bezier(0.39, 0.575, 0.565, 1), transform 0.2s cubic-bezier(0.39, 0.575, 0.565, 1), box-shadow 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
        box-shadow: 0 4px 16px 0 rgba(0, 153, 255, 0.15);
        font-weight: bold;
        width: 150px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 22px; /* tăng padding để text không bị sát viền */
        font-size: 1rem;
        /* Xoá min-width mặc định của btn Bootstrap */
        min-width: 0;
    }

        .btn-ffblue:hover,
        .btn-ffblue:focus {
            background: linear-gradient(90deg, #0066cc 0%, #0099ff 100%);
            color: #fff;
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 8px 24px 0 rgba(0, 153, 255, 0.25);
        }

        .btn-ffblue:active {
            background: #0066cc;
            transform: scale(0.98);
            box-shadow: 0 2px 6px 0 rgba(0, 153, 255, 0.2);
            color: #fff;
        }

    .btn-row {
        display: flex;
        gap: 16px; /* khoảng cách giữa các button */
    }

    /*Phần form đăng ký*/
    .registration-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(2, 82, 115, 0.06), 0 6px 12px rgba(2, 82, 115, 0.04);
        /*padding: 28px;*/
    }

    .text-14 {
        font-size: 15.5px;
        line-height: 1.7;
        color: var(--text);
    }

    .text-muted-14 {
        color: var(--muted);
    }

    .bg_form_reg {
        background: #f7f9fc !important;
    }

    .color_text_reg {
        color: #05719F !important;
        font-weight: 600 !important;
        padding: 0 8px !important;
    }

    .page_copyright {
        box-shadow: inset 0px 1px 1px rgb(0 0 0 / 25%);
        border-radius: 2px;
        /*width: max-content;*/
        text-align: center;
        margin: auto;
    }

    .Loi {
        width: 45px;
        height: 45px;
        border-radius: 4px;
        background: #1990b8 url(/img/btn-top.png) 16px 18px no-repeat;
        position: fixed;
        right: 20px;
        bottom: 20px;
        display: none;
        overflow: hidden;
        text-indent: -9999px;
        z-index: 9999999;
        -webkit-transition: all .2s ease-in;
        -moz-transition: all .2s ease-in;
        -o-transition: all .2s ease-in;
        transition: all .2s ease-in;
        cursor: pointer;
    }

        .Loi:hover {
            background: #e32c24 url(/img/btn-top.png) 16px -13px no-repeat;
        }

    .bottom_fix {
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .view-more {
        border-radius: 4px;
        border: 1px solid #719bc6;
        background: #fff;
        padding: 8px 20px;
        gap: 4px;
        display: flex;
        color: #1259a0;
        font-family: Arial;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: 16px;
        margin-top: 10px;
        align-items: center;
        width: max-content;
        white-space: nowrap;
    }

    /*Phần của trang admin*/
    .box_content {
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #e0e0e0;
    }

    .admin-divider {
        height: 2px;
        background: linear-gradient(90deg, #3498db, #2c3e50);
        border-radius: 1px;
    }

.card_custom {
    border-radius: 10px !important;
    background-color: white;
    box-shadow: 1px 1px 4px #506f94!important;
    border-radius: 5px;
}

    .slider_card {
        transition: all 0.3s ease;
        animation: fadeInUp 0.6s ease forwards;
    }

        .slider_card:hover {
            transform: translateY(-10px);
        }

    .link_item {
        position: relative;
        display: block;
        padding-left: 20px;
        color: #6c757d !important;
    }

        .link_item:before {
            position: absolute;
            content: '';
            width: 10px;
            height: 10px;
            background: var(--bg-color);
            left: 0;
            top: 7px;
            /*transform: translateY(-50%);*/
        }

    /*  Phần của Thân*/
    .stats-section {
        position: relative;
        z-index: 3;
    }

    .stat-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        /*    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

        .stat-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 60px rgba(107, 161, 76, 0.39);
        }

    .stat-number {
        font-size: 3rem;
        font-weight: bold;
        color: var(--color_card);
        /* background: linear-gradient(180deg, #B3C28A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
        animation: countUp 2s ease;
    }

    .stat-label {
        color: #666;
        font-size: 1.1rem;
        margin-top: 10px;
    }

    .icon-3d {
        width: 60px;
        height: 60px;
        /*background: linear-gradient(180deg, #B3C28A 100%);*/
        background: var(--color_card);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /*    Phần custom table*/
    .border_td {
        border: 1px solid rgba(0,0,0,.125) !important;
    }

    .f_table {
        border: 1px solid #aaa;
        border-radius: 7px !important;
        padding: 3px 5px !important;
        background-color: transparent;
        color: inherit;
        margin-left: 3px;
        width: 320px !important;
    }

        .f_table:focus {
            border: 1px solid #aaa !important;
            outline: none !important;
        }

    .color_a {
        color: #333 !important;
    }

    .title_link {
        color: #1259a0;
        font-family: Merriweather;
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 36px;
        border-bottom: 1px solid #f3f6fb;
        padding-bottom: 10px;
        display: block;
    }