/* =====================================================================
   TRUONG PTDTBT TIEU HOC MUONG TUNG - lop giao dien "Tuoi sang - Than thien"
   Bang mau lay tu logo: xanh lam #12296b / #1d4fa8, vang #f0b429,
   xanh la #3a9a3f, do ngon duoc #e5532d. Nap sau custom.css.
   ===================================================================== */
:root {
    --mt-navy: #12296b;
    --mt-blue: #1d6fd1;
    --mt-sky: #e8f1ff;
    --mt-gold: #f5b82e;
    --mt-gold-dark: #c98e07;
    --mt-red: #e5532d;
    --mt-green: #3aa655;
    --mt-cream: #fff9ee;
    --mt-line: #e6ecf7;
    --mt-radius: 20px;
    --ns-navy: #12296b;
    --ns-line: #e6ecf7;
    --ns-shadow: 0 8px 24px rgba(29, 79, 168, 0.10);
}

/* ---------- nen: troi xanh nhe -> kem am, co cac vet tron mem ---------- */
html,
html body {
    background-image: none !important;
    background-color: #f1f7ff !important;
}
body {
    background:
        radial-gradient(circle at 8% 14%, rgba(245, 184, 46, 0.16) 0, rgba(245, 184, 46, 0) 260px),
        radial-gradient(circle at 94% 30%, rgba(58, 166, 85, 0.13) 0, rgba(58, 166, 85, 0) 300px),
        radial-gradient(circle at 12% 78%, rgba(29, 111, 209, 0.10) 0, rgba(29, 111, 209, 0) 340px),
        linear-gradient(180deg, #e6f1ff 0%, #f7fbff 38%, #fff9ee 100%) !important;
    background-attachment: fixed !important;
}
.body-bg {
    background-color: #d8e9ff !important;
}

/* ---------- thanh menu: bo tron, nut dang vien thuoc, dai ruy bang 4 mau ---------- */
.second-nav .bg {
    background: linear-gradient(180deg, #2a7be0 0%, #164ea8 100%) !important;
    border-radius: 0 0 22px 22px !important;
    border-bottom: 0;
    box-shadow: 0 10px 22px rgba(22, 78, 168, 0.28);
    position: relative;
}
.second-nav .bg::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -7px;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(90deg, #f5b82e 0 25%, #3aa655 25% 50%, #e5532d 50% 75%, #2a7be0 75% 100%);
}
#menusite .navbar-default .navbar-nav > li > a {
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 700;
    border-radius: 999px;
    margin: 6px 2px;
    height: 36px;
    padding: 0 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}
#menusite .navbar-default .navbar-nav > li > a::after {
    display: none;
}
#menusite .navbar-default .navbar-nav > li > a:hover,
#menusite .navbar-default .navbar-nav > li.active > a,
#menusite .navbar-default .navbar-nav > li.open > a {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-1px);
}
#menusite .navbar-default .navbar-nav > li > a.home {
    width: 40px;
    height: 36px;
    margin: 6px 8px 6px 8px;
    padding: 0;
    border-radius: 999px;
    background-image: none;
    background-color: var(--mt-gold) !important;
    box-shadow: 0 3px 8px rgba(158, 111, 2, 0.35);
}
#menusite .dropdown-menu {
    border-radius: 16px;
    border: 0;
    box-shadow: 0 12px 28px rgba(18, 41, 107, 0.2);
    overflow: hidden;
}
#menusite .dropdown-menu > li > a:hover,
#menusite .dropdown-menu > li > a:focus,
#menusite .dropdown-menu > .active > a {
    background-color: var(--mt-sky) !important;
    color: var(--mt-navy) !important;
    border-left-color: var(--mt-gold) !important;
}
.headerSearch input {
    border-radius: 999px 0 0 999px !important;
}
.headerSearch .btn-info {
    background: var(--mt-gold) !important;
    border-color: var(--mt-gold) !important;
    border-radius: 0 999px 999px 0 !important;
    color: var(--mt-navy);
}
.third-nav {
    margin-top: 6px;
}

/* ---------- the noi dung: bo tron lon, bong mem, nang len khi tro vao ---------- */
.panel-ns,
.mainright-card,
#body .panel-default {
    border: 0 !important;
    border-radius: var(--mt-radius) !important;
    background: #fff;
    box-shadow: var(--ns-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.panel-ns:hover,
.mainright-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(29, 79, 168, 0.16);
}
.panel-ns > .panel-heading {
    border-bottom: 0;
    padding: 16px 20px 8px;
    font-family: "Baloo 2", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--mt-navy);
    position: relative;
}
.panel-ns > .panel-heading::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 0;
    border-bottom: 3px dotted #cfe0f7;
}
.panel-ns .ns-ico {
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(29, 79, 168, 0.18);
}
#body .panel-default > .panel-heading {
    background: linear-gradient(90deg, #2a7be0, #164ea8) !important;
    border-radius: 18px 18px 0 0;
    border: 0;
}
.ns-more,
.ns-sec-more {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--mt-sky);
    color: var(--mt-blue) !important;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}
.ns-more:hover,
.ns-sec-more:hover {
    background: var(--mt-gold);
    color: var(--mt-navy) !important;
}
.ns-tabs .ns-tab {
    border-radius: 999px !important;
}
.ns-tabs .ns-tab-news {
    background: linear-gradient(180deg, #ffd25c, #f5b82e) !important;
    color: var(--mt-navy) !important;
}
.ns-tabs .ns-tab-doc {
    background: linear-gradient(180deg, #2a7be0, #164ea8) !important;
}

/* ---------- cac khoi tin: moi chuyen muc mot mau rieng ---------- */
.mainright-column {
    --sec: var(--mt-blue);
    --sec-soft: #e8f1ff;
}
.mainright-column:nth-of-type(2) { --sec: #e6a210; --sec-soft: #fff4d6; }
.mainright-column:nth-of-type(3) { --sec: #e5532d; --sec-soft: #ffe9e2; }
.mainright-column:nth-of-type(4) { --sec: #3aa655; --sec-soft: #e3f6e8; }
.mainright-column:nth-of-type(5) { --sec: #1aa3c4; --sec-soft: #def5fb; }
.mainright-column:nth-of-type(6) { --sec: #8a5cd6; --sec-soft: #efe8fb; }
.mainright-column:nth-of-type(7) { --sec: #12296b; --sec-soft: #e4e8f5; }
.ns-sec-head {
    border-bottom: 0 !important;
    position: relative;
    padding-bottom: 12px;
}
.ns-sec-head::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-bottom: 3px dotted var(--sec-soft);
}
.ns-sec-head:after {
    background: var(--sec) !important;
    height: 4px !important;
    width: 70px !important;
    border-radius: 4px;
    z-index: 1;
}
.ns-sec-title,
.ns-sec-title a {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    color: var(--mt-navy);
}
.ns-sec-title a:hover {
    color: var(--sec);
}
.ns-sec-more {
    background: var(--sec-soft);
    color: var(--sec) !important;
}
.ns-sec-more:hover {
    background: var(--sec);
    color: #fff !important;
}
.mainright-card .mainright-featured-img {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(18, 41, 107, 0.18);
    border: 0;
}
.mainright-card .mainright-featured-img img {
    transition: transform 0.5s ease;
}
.mainright-card .mainright-featured-img:hover img {
    transform: scale(1.05);
}
.ns-badge,
.mainright-column:nth-of-type(3) .ns-badge,
.mainright-column:nth-of-type(4) .ns-badge {
    border-radius: 999px !important;
    background: var(--sec) !important;
    padding: 3px 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.mainright-card .mainright-featured-title,
.mainright-card .mainright-featured-title a {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    color: var(--mt-navy);
}
.mainright-card .mainright-featured-title a:hover,
.mainright-card .mainright-related-list a:hover .mainright-related-title {
    color: var(--sec) !important;
}
.mainright-card .mainright-related-thumb {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(18, 41, 107, 0.15);
    overflow: hidden;
}
.mainright-card .mainright-related-list li,
.mainright-card .mainright-related-list li.icon_list {
    border-bottom: 2px dotted var(--sec-soft);
    border-radius: 12px;
    transition: background 0.2s ease;
}
.mainright-card .mainright-related-list li:hover {
    background: var(--sec-soft) !important;
}

/* ---------- nut, o nhap lieu ---------- */
.panel-ns .btn-primary,
.panel-ns .btn-info,
.panel-ns input[type=submit],
.search-doc-btn {
    background: linear-gradient(180deg, #ffd25c, #f5b82e) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: var(--mt-navy) !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(201, 142, 7, 0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.panel-ns .btn-primary:hover,
.panel-ns .btn-info:hover,
.panel-ns input[type=submit]:hover,
.search-doc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(201, 142, 7, 0.4) !important;
}
.panel-ns .form-control {
    border-radius: 999px;
    border: 2px solid #dbe8fb;
    padding-left: 16px;
}
.ns-login .btn-primary {
    background: linear-gradient(180deg, #2a7be0, #164ea8) !important;
    color: #fff !important;
}

/* ---------- thu vien anh ---------- */
.ns-photo .MagicSlideshow,
.ns-photo .mss-slider,
.ns-photo .mss-slide-wrapper {
    border-radius: 16px;
}
.album-run-name,
.block_album_tab_new .album-run-name {
    border-radius: 999px !important;
    background: linear-gradient(90deg, #2a7be0, #3aa655) !important;
    border-left: 0 !important;
    box-shadow: 0 4px 10px rgba(22, 78, 168, 0.25) !important;
}
.ns-photo .block_album_tab_new .tab-pane .row a,
.ns-photo .block_album_tab_new .tab-pane .row a img.img-thumbnail {
    border-radius: 14px !important;
}

/* ---------- bai viet, duong dan ---------- */
.breadcrumbs-wrap .breadcrumbs li a {
    color: var(--mt-blue);
}
h1, .page-header h1, .news .page-header, #news-detail h1, .news_column h1 {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    color: var(--mt-navy);
}
a {
    transition: color 0.15s ease;
}

/* ---------- chan trang ---------- */
footer.ns-footer#footer .dtnt-footer-bottom {
    border-top: 0;
}
.ns-footer h3 {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
}
