
html, body {
    height: 100%;
    margin: 0;
}


body {
    display: flex;
    flex-direction: column;
    background-color: #f5f7fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


main {
    flex: 1;
}

.brand-text-main {
    color: #3a57e8;
    font-weight: 700;
    font-size: 18px;
}

.wrap-1000 {
    max-width: 1100px;
    margin: 0 auto; /* căn giữa */
}

.brand-text-sub {
    color: #3a57e8;
    font-weight: 600;
    font-size: 17px;
}


.header-wrapper {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #4169f5;
}

    .header-wrapper .container {
        max-width: 1000px;
    }

.register-wrapper {
    display: flex;
    align-items: flex-start; /* form không nằm đúng giữa dọc nữa */
    justify-content: center;
    padding-top: 40px; /* đẩy form cách header 1 đoạn đẹp */
    padding-bottom: 40px;
}


.register-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.register-input {
    border-radius: 10px;
    border-color: #e5e7eb;
    font-size: 14px;
    padding: 10px 12px;
}

    .register-input:focus {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, .3);
        border-color: #3b82f6;
    }

.register-btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
}

.register-card {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #3b82f6;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
    /* chỉ main trực tiếp trong page-wrapper mới flex:1 */
    .page-wrapper > main {
        flex: 1;
    }

.menu-row {
    background-color: #4169f5;
    padding: 10px 16px;
    border-radius: 8px;
}

.menu-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.btn-login {
    background-color: #2d70ff;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
}

.main-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e1e4f0;
}

.news-item {
    border-radius: 12px;
    background-color: #f8f9ff;
    /*padding: 14px 18px;*/
    margin-bottom: 10px;
    transition: all .15s ease-in-out;
    cursor: pointer;
}

    .news-item:hover {
        background-color: #edf0ff;
        transform: translateY(-1px);
    }

.news-date {
    font-size: 13px;
    color: #6c757d;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.news-summary {
    font-size: 13px;
    color: #4b5563;
}

.news-scroll {
    max-height: 520px; /* giống khung cuộn */
    overflow-y: auto;
    padding-right: 4px;
}

footer {
    background-color: #7b2dfb;
    color: #ffffff;
    font-size: 13px;
}

.block-card {
    background: #fff;
    padding: 10px 10px;
    padding-left:50px;
    border: 1px solid #d0d7f5;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.block-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2a40;
    margin-bottom: 15px;
}

.block-card {
    margin-top: 10px;
    padding: 15px; /* padding chung */
    border-radius: 10px;
}

/* thanh tiêu đề kín viền */
.title-full {
    margin: -15px -15px 10px -15px; /* 👈 ăn ngược padding */
    padding: 12px;
    background: #eaf1ff;
    color: #2f55ff;
    font-weight: 600;
    text-align: center;
    border-radius: 10px 10px 0 0; /* bo tròn đúng khung */
}

.form-label {
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    border-radius: 10px;
    padding: 8px 12px;
}

.input-sm-custom {
    height: 32px !important;
    padding: 2px 8px !important;
    font-size: 15px;
}

.btn-sm-custom {
    height: 32px !important;
    padding: 0 20px !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 32px; /* giúp text canh giữa hoàn hảo */
}

.disabled-all-links a {
    pointer-events: none; /* không bấm được */
    opacity: 0.5; /* làm mờ cho dễ biết */
    cursor: default !important;
}

.top-nav {
    background: #8DBB2B; /* xanh giống ảnh */
    border-bottom: 1px solid #6FA11A;
}

    .top-nav .nav-link {
        color: #fff !important;
        padding: 10px 14px;
        font-weight: 600;
        border-right: 1px solid rgba(255,255,255,.25);
        line-height: 1;
    }

        .top-nav .nav-link:hover {
            background: rgba(0,0,0,.08);
        }

        .top-nav .nav-link.active {
            background: #79AA1F;
            box-shadow: inset 0 -3px 0 rgba(255,255,255,.5);
        }

/* Sidebar trái kiểu “khối” */
.side-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    width: 100%;
}

    .side-card .side-title {
        background: #F28A2A; /* cam giống ảnh */
        color: #fff;
        font-weight: 700;
        padding: 5px 7px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .side-card .side-body a {
        display: block;
        padding: 6px 10px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-top: 1px solid #f2f2f2;
    }

        .side-card .side-body a:hover {
            background: #f7f7f7;
        }

/* Khung nội dung */
.page-wrap {
    background: #f3efdf; /* nền vàng nhạt như ảnh (tuỳ) */
    min-height: calc(100vh - 130px);
    padding: 16px 0;
}

.dropdown-hover {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: none;
    z-index: 9999;
    padding: 6px 0;
}

    .dropdown-menu-custom li a {
        display: block;
        padding: 6px 12px;
        color: #333;
        text-decoration: none;
        font-size: 13px;
        white-space: nowrap;
    }

        .dropdown-menu-custom li a:hover {
            background: #f2f2f2;
            color: #000;
        }

/* rê chuột thì hiện menu */
.dropdown-hover:hover .dropdown-menu-custom {
    display: block;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.select2-container .select2-selection--single {
    height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
}

.select2-results__options {
    max-height: 300px !important;
}

.footer-main {
    background-color: #ffffff;
    background-image: url('/Images/bg-pattern.png');
    width: 100%;
    border-top: 1px solid #4169f5;
    padding: 6px 0;
    text-align: center;
    color: #333;
}

.wrap-1000 {
    max-width: 1000px;
    margin: auto;
}



.login-link {
    text-decoration: none;
    margin-right: 0px;
    font-size: 14px;
    color: #333;
}

    .login-link:hover {
        color: #000;
    }

.header-right {
    margin-left: auto;
    text-align: right;
}

.sub-text {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.sub-text-Name {
    font-size: 15px;
    color: #3b82f6;
    margin-top: 2px;
}

.headpage {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /*background: linear-gradient(90deg, #f68c3a, #f37021);*/
    /*color: #fff;*/
    padding: 8px 65px;
    width: calc(100% + 65px);
    margin-left: -50px;
    margin-top: -5px;
    margin-bottom: 0px;
    border-radius: 6px 6px 0 0;
    /*font-size: 16px;
    font-weight: 400;*/
    letter-spacing: 0.5px;
    text-align: center;
}

.wp-menu {
    background: url(/Images/bg-box-green1.png) left top repeat-x;
    background-size: auto 100%;
    background-position: center top;
    color: rgb(242, 242, 242);
    position: relative;
    padding: 1px 0px 3px;
    z-index: 89;
}

.menu-mainmenu {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border-radius: 6px;
    /* box-shadow: 0 2px 2px rgba(0,0,0,0.1); */
    /* background: linear-gradient(90deg,#7b2ff7,#a34cf0); */
}

    /* ITEM */
    .menu-mainmenu li {
        list-style: none;
        position: relative;
        border-right: 1px solid rgba(255,255,255,0.4);
        padding: 0 5px;
    }

        .menu-mainmenu li:first-child {
            border-left: 1px solid rgba(255,255,255,0.4);
        }
        /* LINK */
        .menu-mainmenu li a {
            display: block;
            padding: 5px 5px;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            transition: 0.3s;
            position: relative;
            white-space: nowrap;
        }

            /* HOVER */
            .menu-mainmenu li a:hover {
                background: rgba(255,255,255,0.15);
            }

            .menu-mainmenu li a::before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background: #fff;
                transition: 0.3s;
            }

            .menu-mainmenu li a:hover::before {
                width: 100%;
            }
        /* SUBMENU */
        .menu-mainmenu li ul {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            min-width: 200px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            padding: 5px 0;
            z-index: 999;
        }

        /* SHOW SUB */
        .menu-mainmenu li:hover > ul {
            display: block;
        }

        /* ITEM SUB */
        .menu-mainmenu li ul li a {
            color: #333;
            padding: 8px 15px;
        }

            /* HOVER SUB */
            .menu-mainmenu li ul li a:hover {
                background: #f2f2f2;
            }

        /* LEVEL 2 */
        .menu-mainmenu li ul li ul {
            top: 0;
            left: 100%;
        }