﻿*, ::after, ::before {
    box-sizing: unset
}

body {
    margin: 0;
    font-family: Arial;
}

a {
    text-decoration: none
}

    a:hover {
        text-decoration: none
    }

p, b, strong, em, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0
}

.mg-r15 {
    margin-right: 15px
}

.flex {
    display: flex
}

.flex-1 {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: block
}

.flex-wrp {
    display: flex;
    flex-wrap: wrap;
}

.cb {
    clear: both;
}

.wImage {
    position: relative;
    overflow: hidden
}

    .wImage:before {
        content: "";
        display: block;
        padding-bottom: 66.66%
    }

    .wImage .image {
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%
    }

        .wImage .image.cover img {
            height: 100%;
            object-fit: cover;
            width: 100%;
        }

        .wImage .image img {
            display: block;
            margin: auto;
            max-height: 100%;
            max-width: 100%;
            vertical-align: middle;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            transition: 0.5s all ease-in-out;
            -moz-transition: 0.5s all ease-in-out
        }

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgba(42, 49, 90, 0.719);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgb(42, 49, 90);
    }

.wrp {
    margin: auto !important;
    width: 1170px;
    max-width: 100%;
}

.colleft {
    width: 260px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 189px);
    position: sticky;
    top: 0;
}

.colright {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1
}


#login {
    position: fixed;
    width: 100%;
    min-height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #login .background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    #login .wrp {
        position: relative;
    }

    #login .title {
        width: 100%;
        user-select: none;
    }

        #login .title h1 {
            color: white;
            line-height: 60px
        }

            #login .title h1 span {
                display: block;
                text-transform: uppercase;
                text-align: center
            }

                #login .title h1 span:first-child {
                    font-weight: 400;
                    font-family: 'UTM Avo';
                    font-size: 30px
                }

                #login .title h1 span:last-child {
                    font-family: 'UTMHelvetIns';
                    font-size: 40px;
                    text-shadow: 0px 2px 1px rgb(0 0 0);
                }

#login-form, .foot {
    position: relative;
    max-width: 418px;
    margin: 0 auto;
    text-align: center;
}
    .foot{max-width: 550px}
    #login-form {
        background: #f7e3ce;
        border-radius: 5px;
        border: 1px dashed white;
        margin: 5.2vh auto;
        padding: 65px 75px
    }

    /*    #login-form::before {
        content: "";
        position: absolute;
        pointer-events: none;
        border: 1px dashed white;
        border-radius: 7px;
        width: calc(100% + 26px);
        height: calc(100% + 26px);
        top: -13px;
        left: -13px;
    }*/

    #login-form .title {
        padding-top: 0;
        margin-bottom: 53px;
        user-select: none;
    }

        #login-form .title h2 {
            position: relative;
            color: #a8390b;
            display: inline-block;
            font-family: 'UTM HelvetIns';
            font-size: 25px;
            font-weight: 400;
            line-height: 36px;
            text-transform: uppercase;
        }

    /*            #login-form .title h2::after {
                content: " ";
                position: absolute;
                width: 75.3%;
                height: 2px;
                background: #a8390b;
                bottom: 0;
                left: 12%
            }*/

    #login-form .valid-field {
        display: none
    }

        #login-form .valid-field p {
            font-family: 'UTM Avo';
            color: red;
            font-size: 16px
        }

    #login-form form > div {
        margin-bottom: 20px;
    }

        #login-form form div:first-of-type {
            margin-top: 0
        }

        #login-form form div label {
            display: block;
            width: 100%;
            text-align: left;
            font-size: 13px;
            font-weight: bold;
            line-height: 18px;
            padding-bottom: 2px;
            margin: 0
        }

        #login-form form div input {
            font-family: 'UTM Caviar';
            display: block;
            width: calc(100% - 85px );
            border: 1px solid #cccccc;
            border-radius: 45px;
            padding: 5px 40px;
            font-size: 14px;
        }

        #login-form form div button {
            border: none;
            display: inline-block;
            font-family: 'UTM Caviar';
            width: 47%;
            font-size: 16px;
            line-height: 46px;
            border-radius: 3px;
            background: #17c4bb;
            color: white
        }

            #login-form form div button:hover {
                background: #029e96
            }

            #login-form form div button:first-of-type {
                margin-right: 6%;
                background: #a8390b;
                border-radius: 50px;
            }

                #login-form form div button:first-of-type:hover {
                    background: #cd3c00
                }

    #login-form form a {
        display: inline-block;
        width: 100%;
        text-align: right;
        font-size: 13px;
        line-height: 18px;
        color: #333333
    }

        #login-form form a:hover {
            color: #1c7aa4
        }

#login .foot p {
    text-align: center;
    color: white;
    font-family: 'UTM Caviar', Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    user-select: none;
}

body {
    background: #f6f6f6;
}

header {
    background: #eceff5;
    padding-top: 20px
}

.wraper {
    width: 1293px;
    margin-left: 13.6%;
    max-width: 100%;
    position: relative
}

header .wImage {
    width: 100%;
    max-width: 485px;
    margin: 0 auto;
    margin-bottom: 15px;
}

    header .wImage::before {
        padding-bottom: 12.79%
    }

#user-info {
    display: flex;
    position: absolute;
    right: 0;
    top: 10px;
}

    #user-info a {
        display: inline-block;
        font-size: 12px;
        font-weight: bold;
    }

        #user-info a.user-logout-link {
            border-radius: 30px;
            background-color: #e02222;
            padding: 8px 17px !important;
            color: #fff;
            transition: background 0.2s;
        }

            #user-info a.user-logout-link:hover {
                background-color: #b71c1c;
            }

.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-action-profile-link, .user-action-password-link {
    display: flex;
    gap: 6px;
    align-items: center;
    transition: background 0.2s;
}

.user-action-profile-link {
    border-bottom: 1px solid #ccc;
}

    .user-action-profile-link:hover,
    .user-action-password-link:hover {
        background: #f5f7fa;
    }

.user-info-header {
    position: relative;
}

.user-info-link {
    display: flex !important;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .user-info-link img {
        padding: 5px 7px;
        border-radius: 50%;
        border: 2px solid #a63b00;
        background: #fff;
        transition: box-shadow 0.2s;
    }

    .user-info-link:hover img {
        box-shadow: 0 0 8px #009cff55;
    }

    .user-info-link span {
        color: #fff;
    }

.user-info-header .user-action-list {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 10;
    pointer-events: none;
}

.user-info-header:hover .user-action-list {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 3px rgba(0,0,0,0.08);
    pointer-events: auto;
}

#user-info .user-info-wrapper .user-info-header .user-action-list {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    position: absolute;
    width: 100%;
    top: 100%;
    display: none;
    overflow: hidden;
    min-width: 180px;
    padding: 0;
}

    #user-info .user-info-wrapper .user-info-header .user-action-list a {
        padding: 15px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        color: #333;
        background: none;
        border: none;
        transition: background 0.2s, color 0.2s;
    }

        #user-info .user-info-wrapper .user-info-header .user-action-list a:hover {
            /*            background: #c96414;*/
            color: #c96414;
        }

#user-info .user-info-wrapper .user-info-logout a {
    gap: 6px;
    display: flex;
    align-items: flex-end;
}

#user-info span {
    display: inline-block;
    vertical-align: middle;
}


#user-info .func-list {
    display: none;
    top: 100%;
    background: #5f81c7;
    border: 1px solid white;
    border-bottom-width: 0;
    margin-left: 5px
}

    #user-info .func-list li {
        border-bottom: 1px solid white
    }

        #user-info .func-list li:hover {
            background: #023cb1;
        }

.user {
    background: #fa5838;
    box-shadow: 0px 0px 2px 0px #5a5a5a
}

    .user:hover {
        background: #ee2901;
    }

#user-info > ul > li:hover .func-list {
    display: block
}

header#home {
    background: #0287d2;
    padding: 0;
    position: relative
}

    header#home #user-info {
        top: 27%;
        right: 14%
    }

    header#home .title {
        width: 27%;
        max-width: 520px;
        margin: 20px auto 0 55px;
    }

    header#home .wImage {
        margin: 0;
        max-width: unset
    }

header .title .wImage::before {
    padding-bottom: 16.79%;
}

header#home .floatImg {
    max-width: 725px;
    width: 37.7%;
    position: relative;
}

    header#home .floatImg .wImage::before {
        padding-bottom: 18.75%;
    }

.nav-bar {
    background: #02a9f7;
}

.menu-bar {
    width: calc(100% - 4px);
    padding: 15px 1px;
}

    .menu-bar ul {
        display: flex;
        justify-content: center;
    }

    .menu-bar > ul > li:first-child {
        margin-left: 0
    }

    .menu-bar li {
        position: relative;
        width: auto;
        margin-left: 17px
    }

    .menu-bar > ul > li > a {
        padding: 10px 25px;
        background: #0287d2;
        border-radius: 3px;
        position: relative;
        font-weight: bold;
        height: calc(100% - 20px)
    }

        .menu-bar > ul > li > a::before {
            content: '';
            position: absolute;
            width: calc(100% + 2px);
            height: calc(100% + 2px);
            border: 1px solid #0874b1;
            border-radius: 5px;
            top: -2px;
            left: -2px
        }

    .menu-bar li a {
        display: block;
        color: #fff;
        font-size: 12px;
        text-align: center;
        text-transform: uppercase
    }

        .menu-bar li a span .fa {
            font-size: 30px
        }

        .menu-bar li a span {
            display: block;
            transition: all 0s
        }

            .menu-bar li a span:first-child {
                margin-bottom: 5px;
            }

            .menu-bar li a span img {
                max-height: 23px
            }

    .menu-bar li:hover > a {
        color: #cd3300;
        background: #ffc000
    }

        .menu-bar li:hover > a img {
            filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg);
        }

        .menu-bar li:hover > a::before {
            content: unset;
        }

    .menu-bar li a.active {
        color: #cd3300;
        background: #ffc000
    }

        .menu-bar li a.active img {
            filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg);
        }

        .menu-bar li a.active::before {
            content: unset;
        }

    .menu-bar li:hover .submenu {
        display: block
    }

    .menu-bar li .submenu {
        position: absolute;
        background: #02a9f7;
        display: none;
        max-width: 200px;
        width: 190px;
        left: 0;
        z-index: 100;
        box-shadow: -3px 3px 5px rgba(0,0,0,0.1);
        border-radius: 3px;
        border: 1px solid #cdd1d4;
    }

        .menu-bar li .submenu li {
            margin-left: 0
        }

            .menu-bar li .submenu li a {
                color: white;
                padding: 10px 25px;
                border-radius: 0;
                text-align: unset;
                border-bottom: 1px solid #cdd1d4;
            }

            .menu-bar li .submenu li:last-child a {
                border-bottom: 0
            }

            .menu-bar li .submenu li:hover a {
                background: #015c86
            }

    .menu-bar.menuRoot > ul > li > a {
        padding: 10px 20px;
    }

#container {
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.panigation {
    background: white;
    display: flex;
    border-bottom: 1px solid #eaeaec
}

    .panigation ul {
        display: flex;
        justify-content: flex-end;
    }

        .panigation ul li {
            margin-right: 8px;
        }

            .panigation ul li:last-child {
                margin-right: 10px;
            }

            .panigation ul li a {
                display: inline-block;
                font-weight: bold;
                text-align: center;
                border-radius: 3px;
                color: white;
                font-size: 12px;
                padding: 8px 10px;
                margin: 7px 0;
            }

                .panigation ul li a span {
                    vertical-align: middle;
                }

                .panigation ul li a img {
                    vertical-align: middle;
                    margin-left: 5px
                }

            .panigation ul li a {
                background: #17c4bb
            }

            .panigation ul li:first-child a:hover {
                background: #018103
            }

            .panigation ul li:nth-child(2) a:hover {
                background: #015c86
            }

            .panigation ul li:last-child a:hover {
                background: #c21e01
            }

.listTitle .title a {
    background: #1c78a4;
    color: white;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    padding: 15px 20px;
    padding-right: 0;
}

    .listTitle .title a img {
        margin-right: 10px
    }

    .listTitle .title a span {
        display: inline-block;
        vertical-align: bottom;
    }
/* .colleft{ box-shadow:.listTitle ul li a 0 0 10px rgba(0, 0, 0, 0.3); } */
.search {
    display: none
}

/*.menu {
    display: none;
    width: 35px;
    padding: 5px 10px
}

    .menu hr {
        height: 3px;
        border: none;
        outline: none;
        background: white;
        border-radius: 2px;
        margin: 0.5em 0;
    }

header .menu.active hr:first-child {
    transform: rotate(135deg) translateX(10px) translateY(-8px);
}

header .menu.active hr:nth-child(2) {
    opacity: 0;
}

header .menu.active hr:last-child {
    transform: rotate(-135deg) translateX(7px) translateY(6px);
}

.dropList {
    display: none;
}*/
.nav-bar {
    background-color: #a8390b;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-evenly;
    border-top: 1px solid #ffa052;
}

    .nav-bar .menu ul {
        display: flex;
        gap: 16px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .nav-bar .menu ul li a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            color: #fff;
            background-color: transparent;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            border-radius: 6px;
            transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
            position: relative;
        }

            .nav-bar .menu ul li a img {
                width: 20px;
                height: 20px;
            }

        /* Hiệu ứng hover */
        .nav-bar .menu ul li a {
            position: relative;
            color: #fff;
            background-color: transparent;
            transition: all 0.3s ease;
        }

        /*.nav-bar .menu ul li a:hover {*/
        /*                background-color: rgba(255, 193, 7, 0.15);*/
        /*color: #ffc107;
            }*/


        .nav-bar .menu ul li {
            position: relative;
        }

            .nav-bar .menu ul li:hover {
                background: #c96414;
            }

        .nav-bar .menu ul ul {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 255px;
            z-index: 1000;
        }

            .nav-bar .menu ul ul li {
                background: #a8390b;
            }

                .nav-bar .menu ul ul li:hover {
                    background: #c96414;
                }

        .nav-bar .menu ul li:hover ul {
            display: block;
        }

.listTitle {
    background: #02a9f7;
}

    .listTitle ul li a {
        font-size: 12px;
        text-transform: uppercase;
        font-weight: bold;
        border-bottom: 1px solid #57bbea;
        display: inline-block;
        color: #fff;
        width: 100%;
        padding: 12px 15px;
        line-height: 22px;
    }

        .listTitle ul li a:hover {
            background: #0e98d8;
            color: white
        }

        .listTitle ul li a.active {
            background: #0e98d8;
            border-color: white;
            color: white
        }

/* ==================== RESPONSIVE HEADER ==================== */

/* Desktop - Default */
header#home {
    position: relative;
}

    header#home .header-wrapper {
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        position: relative;
        min-height: 80px;
    }

    /* Center section - Absolute positioning for perfect centering */
    header#home .header-logo-section {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        max-width: calc(100% - 300px); /* Leave space for user info */
    }

    header#home .coat-of-arms {
        margin-right: 20px;
        flex-shrink: 0;
    }

        header#home .coat-of-arms img {
            height: 60px;
            width: auto;
            display: block;
        }

    header#home .header-title h1 {
        font-size: 20px;
        font-weight: bold;
        text-transform: uppercase;
        margin: 0;
        line-height: 1.4;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        color: #fff;
        text-align: center;
    }

    /* User info - Absolute right with negative value for edge alignment */
    header#home .header-user-info {
        position: absolute;
        right: -88px;
        display: flex;
        align-items: center;
        z-index: 2;
    }

/* Desktop Medium (≤1400px) */
@media (max-width: 1600px) {
    header#home .header-title h1 {
        font-size: 18px;
    }

    header#home .coat-of-arms img {
        height: 55px;
    }

    header#home .header-logo-section {
        max-width: calc(100% - 280px);
    }

    header#home .header-user-info {
        right: -0px; /* Lùi vào một chút */
    }
}

/* Desktop Small / Laptop (≤1200px) */
@media (max-width: 1200px) {
    header#home .header-wrapper {
        padding: 0 15px;
    }

    header#home .header-title h1 {
        font-size: 16px;
        line-height: 1.3;
    }

    header#home .coat-of-arms {
        margin-right: 15px;
    }

        header#home .coat-of-arms img {
            height: 50px;
        }

    header#home .header-user-info {
        right: -50px; /* Lùi vào hơn */
    }

    header#home .header-logo-section {
        max-width: calc(100% - 250px);
    }

    .nav-bar .menu ul {
        gap: 8px;
    }

        .nav-bar .menu ul li a {
            padding: 8px 12px;
            font-size: 13px;
        }
}

/* Laptop Small (≤1024px) */
@media (max-width: 1024px) {
    header#home .header-user-info {
        right: -30px; /* Lùi vào nhiều hơn */
    }

    header#home .header-title h1 {
        font-size: 15px;
    }

    header#home .coat-of-arms img {
        height: 48px;
    }

    header#home .header-logo-section {
        max-width: calc(100% - 220px);
    }
}

/* Tablet Landscape (≤992px) - Switch to stacked layout */
@media (max-width: 992px) {
    header#home {
        padding: 12px 0;
    }

        header#home .header-wrapper {
            min-height: auto;
            flex-direction: column;
            padding: 10px 15px;
        }

        /* Center section - Remove absolute positioning */
        header#home .header-logo-section {
            position: static;
            transform: none;
            left: auto;
            width: 100%;
            max-width: 100%;
            margin-bottom: 10px;
        }

        /* User info below - Remove absolute positioning */
        header#home .header-user-info {
            position: static;
            right: auto;
            width: 100%;
            justify-content: center;
        }

        header#home .header-title h1 {
            font-size: 15px;
        }

        header#home .coat-of-arms img {
            height: 45px;
        }

    .nav-bar {
        padding: 5px 10px;
    }

        .nav-bar .menu ul {
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
        }

            .nav-bar .menu ul li a {
                padding: 7px 10px;
                font-size: 12px;
            }
}

/* Tablet Portrait (≤768px) - Vertical stack */
@media (max-width: 768px) {
    header#home {
        padding: 10px 0;
    }

        header#home .header-wrapper {
            padding: 10px;
        }

        header#home .header-logo-section {
            flex-direction: column;
            text-align: center;
        }

        header#home .coat-of-arms {
            margin-right: 0;
            margin-bottom: 10px;
        }

            header#home .coat-of-arms img {
                height: 40px;
            }

        header#home .header-title h1 {
            font-size: 13px;
            line-height: 1.3;
        }

    /* Hide desktop menu, show mobile toggle */
    .nav-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
        background: #a8390b;
        color: white;
        border: none;
        padding: 12px 20px;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        text-align: center;
        font-weight: bold;
        transition: background 0.3s ease;
    }

        .mobile-menu-toggle:hover {
            background: #8b3009;
        }

        .mobile-menu-toggle i {
            margin-right: 8px;
        }

    .nav-bar.show-mobile {
        display: block;
    }

        .nav-bar.show-mobile .menu ul {
            flex-direction: column;
            width: 100%;
            gap: 0;
        }

            .nav-bar.show-mobile .menu ul li {
                width: 100%;
                margin: 0;
            }

                .nav-bar.show-mobile .menu ul li a {
                    width: 100%;
                    justify-content: center;
                    padding: 12px 20px;
                    font-size: 14px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                }

            .nav-bar.show-mobile .menu ul ul {
                position: static;
                width: 100%;
                box-shadow: none;
                border: none;
            }

                .nav-bar.show-mobile .menu ul ul li a {
                    padding-left: 40px;
                    background: rgba(0, 0, 0, 0.1);
                }
}

/* Mobile Large (≤576px) */
@media (max-width: 576px) {
    header#home .header-wrapper {
        padding: 8px;
    }

    header#home .coat-of-arms img {
        height: 35px;
    }

    header#home .header-title h1 {
        font-size: 12px;
        line-height: 1.2;
    }

    header#home .header-user-info {
        font-size: 11px;
    }

    #user-info a {
        font-size: 11px;
        padding: 6px 12px !important;
    }

    .mobile-menu-toggle {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Mobile Small (≤375px) */
@media (max-width: 375px) {
    header#home .coat-of-arms img {
        height: 30px;
    }

    header#home .header-title h1 {
        font-size: 11px;
    }

    header#home .header-user-info {
        font-size: 10px;
    }

    #user-info a {
        font-size: 10px;
        padding: 5px 10px !important;
    }
}

/* ==================== END RESPONSIVE HEADER ==================== */
