@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #d84403;
    --nav-bg: #f7e8c5;
    --footer-bg: #f7e8c5;
    --page-bg: #f6f6f6;
    --text: #333333;
    --muted: #6f6f6f;
    --link-hover: #dc1435;
    --shell: 1050px;
    --page: 1020px;
}

html { background: var(--footer-bg) !important; }
body {
    background: var(--page-bg) !important;
    color: var(--text) !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.5;
}

.site-shell {
    background: transparent;
    max-width: none;
    margin: 0;
}

.site-shell > header {
    max-width: none;
    margin: 0;
    background: #fff;
}
.site-shell > header .main {
    max-width: var(--shell);
    margin: 0 auto;
}
.site-shell > section.content,
.site-shell > .content.main {
    max-width: var(--page);
    margin: 20px auto;
    background: #fff;
    padding: 20px 15px 24px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
    font-family: Roboto, Arial, sans-serif !important;
    color: var(--text);
    font-weight: 500;
}

h1 { font-size: 28px !important; font-weight: 600 !important; line-height: 1.3; }
h2 { font-size: 24px !important; font-weight: 500 !important; }
h3 { font-size: 20px !important; font-weight: 500 !important; }

a { color: #333; }
a:hover { color: var(--link-hover); }

#top-info.top-info {
    background: #fff !important;
    display: flex;
    align-items: center;
    height: 64px;
    min-height: 64px;
    padding: 0 12px !important;
    position: relative;
    box-sizing: border-box;
}

.logo,
.logo.txtlogo {
    float: none !important;
    text-align: left !important;
    margin: 0 !important;
}

.logo { width: 225px; }
.header-logo-image,
.logo img {
    width: auto !important;
    max-width: 225px !important;
    max-height: 64px !important;
    height: auto !important;
    display: block;
}

#nav {
    background: var(--nav-bg) !important;
    width: 100% !important;
    max-width: none;
    margin: 0;
    min-height: 50px;
}
.nav-pc, .nav-mobi { max-width: var(--shell); margin: 0 auto; }
#nav ul, #nav li { list-style: none; margin: 0; padding: 0; }

.nav-pc #nav-horizontal-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.nav-pc #nav-horizontal-list > li.fl {
    float: none;
}

@media (min-width: 1024px) {
    #nav { width: 100% !important; }
    .container, .main { max-width: var(--shell) !important; }
    .col-l { width: 100% !important; float: none; padding-right: 0 !important; }
    .expert-page > .expert-main { width: auto !important; flex: 1 1 0; min-width: 0; padding-right: 18px; }
    .nav-pc #nav-horizontal-list > li.fl {
        border-bottom: 2px solid transparent;
    }
    nav li > a,
    .nav-pc li > a.fl {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-weight: 400;
        font-size: 14.4px;
        letter-spacing: .02em;
        text-transform: uppercase;
        padding: 16px 11px !important;
        line-height: 16px;
        white-space: nowrap;
    }
    .nav-pc li.active,
    .nav-pc li:hover {
        border-bottom-color: var(--primary-color);
    }
    .nav-pc li.active > a.fl,
    .nav-pc li:hover > a.fl,
    .nav-pc li.current > a.fl {
        color: #ff0000 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .menu-c2 {
        top: 100% !important;
        background: #fff !important;
        border: 1px solid #ececec !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
        min-width: 230px;
        padding: 6px 0;
    }
    .menu-c2 li {
        background: #fff !important;
        padding: 0 12px !important;
    }
    .menu-c2 li a,
    .menu-c2 li > a {
        color: #333 !important;
        line-height: 34px !important;
        font-size: 14px !important;
    }
    .menu-c2 li:hover a { color: var(--primary-color) !important; }
    .nav-horizontal li .arr-d { display: none !important; }
}

.nav-mobi {
    background: var(--nav-bg);
}
.nav-mobi a {
    color: #000 !important;
    font-size: 13px;
    font-weight: 500;
}
.container-wrapper-time { display: none !important; }

.title1, .title2, .title3, .title4, .title5,
.section-kq .section-kq-header,
.aside-title-red,
.content-right .title-r {
    background: transparent !important;
    color: var(--text) !important;
    border-left: 4px solid var(--primary-color);
    border-bottom: 0;
    border-radius: 0;
    padding: 2px 0 8px 10px !important;
    margin: 22px 0 12px;
    min-height: 0;
    text-transform: none;
}
.title1 h3, .linkMnuF h3,
.section-kq .section-kq-header .section-kq-title,
.section-kq .section-kq-header .section-kq-title span {
    color: #333 !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    text-transform: none;
    line-height: 1.3;
}
.section-kq .section-kq-header { text-align: left !important; }
.tk-nhanh-item-header {
    background: #fafafa;
    border-left: 4px solid var(--primary-color);
    color: #333;
}
.pascal .pascal-header {
    background: var(--nav-bg);
    color: #333;
}

.mag-box, .container-wrapper, .section-kq {
    background: #fff;
}
.note-dudoan { color: #666; font-size: 14px !important; }
.table-chotso td { font-size: 15px; padding: 8px 10px; }
.table-chotso .value, .table-chotso .value b, .table-chotso .value strong { color: var(--primary-color) !important; }

.expert-page {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
}
.expert-main { flex: 1 1 auto; min-width: 0; }
.expert-side {
    width: 250px;
    flex: 0 0 250px;
    position: sticky;
    top: 12px;
    padding-left: 15px;
    box-sizing: border-box;
}
nav.expert-crumbs,
.expert-crumbs {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--muted) !important;
    border-bottom: 1px solid #ececec;
    padding: 0 0 8px !important;
    margin: 0 0 14px;
    min-height: 0;
}
.expert-crumbs a,
.expert-crumbs span {
    background: transparent !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-weight: 400;
}
.expert-h1 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
}
.expert-lead {
    color: #444;
    margin: 0 0 18px;
    font-size: 16px;
}
.expert-section-head {
    display: block;
    position: relative;
    margin: 18px 0 12px;
    border-bottom: 0;
}
.expert-section-head h2 {
    font-size: 24px !important;
    margin: 0 !important;
    padding: 0;
    border: 0;
    font-weight: 500 !important;
}
.expert-section-head h2 span {
    display: inline-block;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}
.expert-section-head a {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.expert-card {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ececec;
}
.expert-card-img {
    width: 35%;
    flex: 0 0 35%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f3f3;
}
.expert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.expert-card-text { padding: 0 0 0 15px; }
.expert-card h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin: 0 0 6px !important;
    line-height: 1.35;
}
.expert-card h3 a { color: #222; }
.expert-card h3 a:hover { color: var(--link-hover); }
.expert-card p {
    margin: 0;
    color: #555;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-title {
    display: block;
    border-left: 4px solid var(--primary-color);
    padding: 0 0 0 10px;
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.widget-title h3 {
    display: inline;
    font-size: 22px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
.widget { margin-bottom: 22px; font-size: 15px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid #f2f2f2; padding: 7px 0; }
.widget li a { color: #333; }
.widget li a:hover { color: var(--primary-color); }
.is-divider.small { height: 2px; background: #ececec; margin: 0 0 8px; border: 0; width: 100%; max-width: none; }

.expert-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
}
.expert-search input {
    flex: 1;
    border: 0;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.expert-search button {
    background: var(--primary-color);
    color: #fff;
    border: 0;
    padding: 0 14px;
    cursor: pointer;
}

.site-footer {
    background: var(--footer-bg) !important;
    color: #333;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 16px 18px;
}
.footer-grid {
    max-width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 4fr 3fr;
    gap: 24px;
}
.footer-label { margin: 0 0 8px; font-size: 15px; }
.footer-brand img {
    max-width: 240px;
    height: auto;
    margin-bottom: 8px;
}
.footer-brand p, .site-footer li, .site-footer p { font-size: 15px; line-height: 1.55; }
.site-footer h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
    letter-spacing: .02em;
}
.site-footer ul { margin: 0; padding-left: 18px; }
.site-footer a { color: #333; }
.site-footer a:hover { color: var(--primary-color); }
.footer-social { display: flex; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.footer-copy {
    max-width: var(--shell);
    margin: 16px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    font-size: 13px;
    color: #555;
}

.info-page, .cate-news {
    padding: 8px 0 24px;
    max-width: 760px;
}
.info-page p, .search-page p, .cate-news p { margin-bottom: 10px; }
.info-form label { display: block; font-weight: 500; margin: 10px 0 4px; }
.info-form input, .info-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 15px;
}
.info-form button, .btn-primary-expert {
    margin-top: 12px;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    border-radius: 2px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
}
.form-ok {
    background: #f3f8ef;
    border-left: 4px solid #7a9c59;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.form-error { color: #b20000; font-size: 13px; }
#article-list { list-style: none; padding: 0; }
#article-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.tit-mien { border-left: 4px solid var(--primary-color); padding-left: 10px; margin: 12px 0; }

#go-top {
    background: var(--primary-color);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 2px;
}

.expert-pager { margin: 18px 0 8px; }
.expert-pager .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.expert-pager .page-link { color: #333; border: 1px solid #ececec; padding: 4px 10px; }
.expert-pager .page-item.active .page-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.expert-crumbs .sep { margin: 0 4px; }

@media (max-width: 1023px) {
    h1, .expert-h1 { font-size: 23px !important; }
    h2, .expert-section-head h2 { font-size: 20px !important; }
    h3, .expert-card h3 { font-size: 18px !important; }
    .site-shell > section.content,
    .site-shell > .content.main { margin: 0 auto; padding: 12px; }
    .expert-page { display: block; padding: 0; }
    .expert-main { padding-right: 0 !important; }
    .expert-side { width: auto; position: static; margin-top: 22px; padding-left: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    #top-info.top-info { justify-content: center; height: 70px; }
    .navbar-toggle { position: absolute; left: 8px; top: 22px; }
    .logo { text-align: center !important; width: auto; margin: 0 auto !important; }
    .logo img { max-height: 70px !important; }
    #nav { overflow-x: auto; }
    .nav-mobi ul { display: flex; min-width: max-content; }
    .nav-mobi li { width: auto !important; }
    .nav-mobi a { padding: 14px 12px; display: block; white-space: nowrap; color: #000 !important; font-size: 14px; }
}
@media (max-width: 549px) {
    .expert-card { align-items: center; }
    .expert-card-img { width: 35%; flex: 0 0 35%; margin-bottom: 0; }
    .expert-card-text { padding: 0 0 0 12px; }
    .expert-card h3 { font-size: 16px !important; }
    .expert-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
