/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */

/* ===== Giao diện cổng thông tin trường học - THCS Đại Hải ===== */
:root {
    --school-blue: #0d4fa3;
    --school-blue-dark: #083a7a;
    --school-blue-light: #e8f1fc;
    --school-gold: #f5be28;
    --school-red: #c62828;
}

body {
    background: #eef2f7;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
}

/* --- Thanh trên cùng --- */
.section-header-bar {
    background: var(--school-blue-dark);
}

/* --- Băng rôn đầu trang --- */
.site-banner {
    display: none;
}

.section-header {
    background: linear-gradient(115deg, #ffffff 0%, #eaf3ff 38%, #cfe3fb 100%);
    border-bottom: 4px solid var(--school-gold);
    position: relative;
    overflow: hidden;
}

.section-header:after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(13, 79, 163, .07);
    pointer-events: none;
}

#header {
    min-height: 140px;
}

#header .logo {
    padding: 15px 18px 15px 0;
}

#header .logo img {
    max-height: 115px;
}

#header .logo .site_description {
    display: none;
}

#header .school-title {
    display: block;
    text-decoration: none;
    flex-grow: 1;
}

#header .school-title span {
    display: block;
}

#header .school-portal {
    color: var(--school-red);
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#header .school-name {
    color: var(--school-blue);
    font-size: 38px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.15;
    text-shadow: 1px 1px 0 #fff, 2px 2px 3px rgba(0, 0, 0, .15);
}

#header .school-slogan {
    color: #345;
    font-size: 16px;
    font-style: italic;
    margin-top: 4px;
}

#header .right-ads {
    flex-grow: 0;
}

/* --- Menu chính --- */
.second-nav .bg {
    background: var(--school-blue) !important;
    background-image: none !important;
    border: 0;
    border-radius: 0;
}

.second-nav .navbar-default {
    background: var(--school-blue) !important;
    border: 0;
}

.second-nav .navbar-default .navbar-nav > li > a,
.second-nav .navbar-nav > li > a {
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

.second-nav .navbar-nav > li > a:hover,
.second-nav .navbar-nav > li.active > a,
.second-nav .navbar-nav > .open > a {
    background: var(--school-blue-dark) !important;
    color: var(--school-gold) !important;
}

/* Màn hình 992-1199px: thu gọn khoảng cách để menu (thêm mục Học liệu số) vẫn nằm trên 1 dòng */
@media (min-width: 992px) and (max-width: 1199px) {
    .second-nav .navbar-default .navbar-nav > li > a,
    .second-nav .navbar-nav > li > a {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.second-nav .dropdown-menu > li > a {
    padding: 7px 15px;
}

.second-nav .dropdown-menu > li > a:hover {
    background: var(--school-blue-light);
    color: var(--school-blue);
}

/* --- Thanh ngày giờ + chào mừng --- */
.third-nav .bg {
    background: #fff;
    border-bottom: 1px solid #dde4ee;
}

.third-nav .current-time {
    color: var(--school-blue);
    font-weight: bold;
}

.third-nav .current-time {
    display: inline-block;
    vertical-align: top;
    line-height: 35px;
}

.welcome-marquee {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 200px);
    margin-left: 12px;
    overflow: hidden;
    white-space: nowrap;
    height: 35px;
    line-height: 35px;
}

.welcome-marquee span {
    display: inline-block;
    padding-left: 100%;
    color: var(--school-red);
    font-weight: bold;
    animation: school-marquee 28s linear infinite;
}

.breadcrumbs-wrap ~ .welcome-marquee {
    display: none;
}

@keyframes school-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --- Khối nội dung --- */
#body {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.panel-primary {
    border-color: var(--school-blue);
}

.panel-primary > .panel-heading {
    background: var(--school-blue);
    border-color: var(--school-blue);
    font-weight: bold;
    text-transform: uppercase;
}

.panel-default > .panel-heading {
    background: var(--school-blue-light);
    color: var(--school-blue);
    font-weight: bold;
}

/* tiêu đề hộp chuyên mục trên trang chủ */
.news_column .panel-heading,
.viewcat_two_column .panel-heading,
.news-two-column .panel-heading {
    border-bottom: 3px solid var(--school-gold);
}

.news_column .panel-heading a,
.viewcat_two_column .panel-heading a {
    color: var(--school-blue);
    font-weight: bold;
    text-transform: uppercase;
}

h1, h2, h3 {
    color: var(--school-blue-dark);
}

a {
    color: #0b4a96;
}

/* --- Chân trang --- */
.section-footer-top {
    background: var(--school-blue-dark) !important;
    background-image: linear-gradient(180deg, #0a438c 0%, var(--school-blue-dark) 100%) !important;
    color: #dbe6f5;
    border-top: 4px solid var(--school-gold) !important;
    border-bottom: 0 !important;
    min-height: 0 !important;
    padding: 28px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.6;
}

#footer,
#footer a {
    color: #dbe6f5;
}

#footer a:hover,
#footer a:focus {
    color: var(--school-gold);
    text-decoration: none;
}

/* bỏ lớp đệm lồng nhau để các cột thẳng hàng */
#footer .panel-body {
    padding: 0;
}

#footer .row > [class*="col-"] > .panel-body {
    padding: 0 0 20px;
}

/* tiêu đề mỗi cột: chữ hoa, gạch chân vàng */
#footer .row > [class*="col-"] > .panel-body > .h3 {
    position: relative;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

#footer .row > [class*="col-"] > .panel-body > .h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 46px;
    height: 3px;
    background: var(--school-gold);
}

/* cột Chuyên mục */
#footer .menu li a {
    border-bottom: 1px dashed rgba(255, 255, 255, .18);
    padding: 7px 0;
}

#footer .menu li a:before {
    color: var(--school-gold);
}

#footer .menu li a:hover:before {
    color: var(--school-gold);
}

/* cột Liên kết hữu ích: mỗi liên kết là một dòng gọn, mô tả nằm ngay dưới */
#footer .featured-products > .row {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 12px 30px;
    border-bottom: 1px dashed rgba(255, 255, 255, .18);
}

#footer .featured-products > .row:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

#footer .featured-products > .row:before {
    content: "\f0c1";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    color: var(--school-blue-dark);
    background: var(--school-gold);
}

#footer .featured-products > .row > .h3 {
    font-size: 14px;
    font-weight: bold;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 2px;
    padding: 0;
    border: 0;
}

#footer .featured-products > .row > .h3 a {
    color: #fff;
}

#footer .featured-products > .row > .h3 a:hover {
    color: var(--school-gold);
}

#footer .featured-products > .row > [class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
    font-size: 13px;
    color: #b9cbe6;
}

/* cột ảnh trống của khối liên kết: ẩn đi (vẫn hiện nếu có ảnh) */
#footer .featured-products > .row > .col-md-8:not(:has(img)) {
    display: none;
}

/* cột Thông tin nhà trường */
#footer .company_info {
    margin: 0;
    list-style: none;
}

#footer .company_info li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
}

#footer .company_info li.company_name {
    padding-left: 0;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

#footer .company_info li em {
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    text-align: center;
    color: var(--school-gold);
}

/* thanh bản quyền cuối trang */
#footer .footer-bottom-bar {
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#footer .footer-bottom-bar:before,
#footer .footer-bottom-bar:after {
    display: none;
}

#footer .copyright {
    margin: 0;
    font-size: 13px;
    color: #b9cbe6;
    line-height: 1.7;
}

#footer .copyright span {
    white-space: nowrap;
}

#footer .copyright span a {
    color: #fff !important;
}

#footer .copyright span a:hover {
    color: var(--school-gold) !important;
}

#footer .footer-tools-col {
    text-align: right;
    position: relative;
}

#footer .footer-tools-col #ftip {
    left: auto;
    right: 15px;
    text-align: left;
}

#footer .qr-code-wraper .btn {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    color: #fff !important;
    border-radius: 14px;
    padding: 3px 10px;
    box-shadow: none;
    margin-left: 4px;
}

#footer .qr-code-wraper .btn:hover {
    background: var(--school-gold) !important;
    color: var(--school-blue-dark) !important;
}

.section-footer-bottom {
    background: #062b5c !important;
}

@media (max-width: 991px) {
    #footer .footer-tools-col {
        text-align: left;
        margin-top: 8px;
    }

    #footer .footer-tools-col #ftip {
        left: 15px;
        right: auto;
    }

    #footer .qr-code-wraper .btn {
        margin: 0 4px 0 0;
    }
}

@media (max-width: 767px) {
    #header {
        min-height: 0;
    }

    #header .logo img {
        max-height: 70px;
    }

    #header .school-portal {
        font-size: 13px;
    }

    #header .school-name {
        font-size: 22px;
    }

    #header .school-slogan {
        font-size: 12px;
    }

    .welcome-marquee {
        display: none;
    }
}
