﻿/* =============================================================
   HVHCV2 Theme - site.css
   Design inspired by hocvienhaucan.edu.vn
   Stack: jQuery + Tailwind CSS (CDN) + Bootstrap grid
   ============================================================= */

/* ---- PrimeIcons font ---- */
@font-face {
    font-family: 'PrimeIcons';
    src: url('../fonts/primes/primeicons.eot');
    src: url('../fonts/primes/primeicons.ief.eot') format('embedded-opentype'),
         url('../fonts/primes/primeicons.ttf') format('truetype'),
         url('../fonts/primes/primeicons.woff') format('woff'),
         url('../fonts/primes/primeicons.svg#primeicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.pi {
    font-family: 'primeicons', 'PrimeIcons', sans-serif;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.pi-search:before   { content: "\e908"; }
.pi-home:before     { content: "\e90c"; }
.pi-bars:before     { content: "\e91a"; }
.pi-times:before    { content: "\e90b"; }
.pi-angle-up:before { content: "\e931"; }

/* ---- CSS variables ---- */
:root {
    --color-primary:       #d42b1a;
    --color-primary-dark:  #aa1f10;
    --color-primary-light: #e8372a;
    --color-accent:        #d42b1a;
    --color-accent-hover:  #b52315;
    --color-text:          #333333;
    --color-text-light:    #666666;
    --color-border:        #e0e0e0;
    --color-bg-light:      #f5f5f5;
    --font-base:           'Arial', 'Helvetica Neue', sans-serif;
    --transition:          all 0.2s ease;
    /* Override Bootstrap primary so .bg-primary/.text-primary use our red */
    --bs-primary:          #d42b1a;
    --bs-primary-rgb:      212, 43, 26;
    --bs-link-color:       #d42b1a;
    --bs-link-hover-color: #aa1f10;
}

/* ---- Base ---- */
body.hvhcv2-theme {
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-light);
    line-height: 1.6;
}

body.hvhcv2-theme a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

body.hvhcv2-theme a:hover {
    text-decoration: none;
}

#wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

#wrapper .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Loading ---- */
#over-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#over-loading.active {
    display: flex;
}

.loader {
    border: 4px solid #e0e0e0;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: hvhcv2-spin 0.8s linear infinite;
}

@keyframes hvhcv2-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- Mobile nav overlay ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    cursor: pointer;
}

.nav-overlay.active {
    display: block;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* -- Banner / Logo -- */
.header-banner {
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    height: 150px;
}

#logo, #logo a, #logo img {
    height: 100% !important;
    display:block;
}

#logo,
#logo a {
    display: block;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* -- Main nav bar -- */
.main-nav {
    background: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    min-height: 46px;
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: left center;
}

.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(1px, -2px); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(1px, 2px); }

.mobile-menu-close {
    display: none;
}

/* Site nav container */
.site-nav { width: 100%; }

/* -- Nav menu (desktop) -- */
.hvhcv2-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hvhcv2-menu > li {
    position: relative;
}

.hvhcv2-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.hvhcv2-menu > li > a:hover,
.hvhcv2-menu > li.active > a {
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: var(--color-accent);
    color: #fff;
}

.hvhcv2-menu > li.home-item > a {
    font-size: 16px;
    padding: 11px 16px;
}

/* Dropdown arrow */
.hvhcv2-menu > li.has-children > a::after {
    content: '▾';
    font-size: 10px;
    opacity: 0.75;
    margin-left: 2px;
}

/* -- Dropdown menu -- */
.hvhcv2-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    border-top: 3px solid var(--color-accent);
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    animation: hvhcv2-fadeDown 0.15s ease;
}

@keyframes hvhcv2-fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* show on desktop hover */
.hvhcv2-menu > li:hover > .hvhcv2-dropdown {
    display: block;
}

.hvhcv2-dropdown li a {
    display: block;
    padding: 8px 18px;
    color: #333;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.hvhcv2-dropdown li a:hover {
    background: #f4f7fb;
    color: var(--color-primary);
    border-left-color: var(--color-accent);
}

/* -- Mega menu -- */
.hvhcv2-megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    border-top: 3px solid var(--color-accent);
    z-index: 999;
    padding: 18px;
    min-width: 500px;
    flex-wrap: wrap;
    gap: 8px;
    animation: hvhcv2-fadeDown 0.15s ease;
}

.hvhcv2-menu > li:hover > .hvhcv2-megamenu {
    display: flex;
}

.hvhcv2-megamenu-col {
    flex: 1;
    min-width: 160px;
    padding-right: 12px;
}

.hvhcv2-megamenu-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.hvhcv2-megamenu-col a {
    display: block;
    padding: 4px 0;
    color: #555;
    font-size: 13px;
    transition: color 0.15s;
}

.hvhcv2-megamenu-col a:hover {
    color: var(--color-accent);
}

/* -- Sub header -- */
.sub-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    gap: 12px;
    min-height: 40px;
}

.hc-datetime {
    font-size: 12px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.hc-search-form {
    display: flex;
    align-items: center;
}

.hc-search-input {
    border: 1px solid #ccc;
    border-right: none;
    padding: 5px 12px;
    font-size: 13px;
    outline: none;
    border-radius: 20px 0 0 20px;
    width: 200px;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
    color: #333;
}

.hc-search-input:focus {
    border-color: var(--color-primary);
    background: #fff;
}

.hc-search-btn {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    padding: 5px 14px;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1.5;
}

.hc-search-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ==============================================
   MAIN CONTENT
   ============================================== */
#main-content {
    background: #fff;
    min-height: 400px;
}

/* Section header style - clip-path polygon (like hocvienhaucan.edu.vn) */
.section-title,
.hv-section-title {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 0 0 14px 0;
}

.section-title h2,
.hv-section-title h2 {
    margin: 0;
    padding: 0;
}

.section-title h2 a,
.section-title h2 span,
.hv-section-title h2 a,
.hv-section-title h2 span {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 7px 28px 7px 12px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
    white-space: nowrap;
    line-height: 1.2;
    z-index: 2;
    letter-spacing: 0.3px;
}

.section-title h2 a::after,
.section-title h2 span::after,
.hv-section-title h2 a::after,
.hv-section-title h2 span::after {
    content: "";
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 2000px;
    height: 2px;
    background-color: var(--color-primary);
    z-index: 1;
}

/* Post card styles */
.post-card {
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Tab highlight (Tiêu điểm / Đọc nhiều) */
.tw-tab-highlight {
    border: 1px solid #ececec;
    background: #fff;
    height: clamp(460px, 62vh, 680px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tw-tab-head {
    display: flex;
    border-bottom: 2px solid var(--color-primary);
}

.tw-tab-btn {
    border: none;
    background: #eef0f2;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.tw-tab-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.tw-tab-content {
    padding: 8px 10px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tw-tab-list {
    flex: 1;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
}

@media (max-width: 991px) {
    .tw-tab-highlight {
        height: auto;
    }
}

.tw-tab-content.is-hidden {
    display: none;
}

.tw-tab-list::-webkit-scrollbar {
    width: 4px;
}

.tw-tab-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.tw-tab-list::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2px;
}

.tw-tab-item {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tw-tab-item:last-child {
    border-bottom: none;
}

.tw-tab-thumb {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
}

.tw-tab-body {
    flex: 1;
    min-width: 0;
}

.tw-tab-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-tab-item:hover .tw-tab-title {
    color: var(--color-primary);
}

.tw-tab-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #9a9a9a;
}

.post-card-title:hover {
    color: var(--color-accent);
}

.post-card-meta {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Featured badge */
.badge-featured {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
    background-image:  url('../images/footer-bg.png');
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center;
    color: #3e0a00 !important;
    padding: 32px 0 16px;
    margin-top: 18px;
    border-top: 3px solid #cf2b1a;
}

.footer-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 14px;
    margin-bottom: 0;
}

.footer-col {
    padding-bottom: 20px;
}

.site-footer h3,
.site-footer h4,
.site-footer .footer-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 9px;
    margin-bottom: 12px;
    position: relative;
}

.site-footer h3::after,
.site-footer h4::after,
.site-footer .footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: #ffcc57;
}

.site-footer a {
    color: #f6ddd8;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #fff6d9;
}

.site-footer p {
    color: #f4d3cd;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
    padding: 5px 0;
    font-size: 13px;
    color: #f4d3cd;
}

.site-footer ul li::before {
    display: none;
}

.site-footer .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f4d3cd;
    padding: 4px 0;
}

.site-footer .stat-item .stat-icon {
    color: #ffcc57;
    width: 20px;
    text-align: center;
}

.site-footer .tw-website-info .fa,
.site-footer .tw-menu-bottom .fa,
.site-footer .tw-web-links .fa,
.site-footer .tw-web-stat .fa {
    color: #b51f12 !important;
}

.site-footer .tw-web-stat li span:last-child {
    color: #5d1d13 !important;
    font-weight: 700;
}

.site-footer .tw-website-info,
.site-footer .tw-web-stat {
    color: #4a1a12 !important;
}

.site-footer .tw-website-info h4,
.site-footer .tw-web-stat h4 {
    color: #7a160d !important;
    border-bottom-color: rgba(122, 22, 13, 0.25) !important;
}

.site-footer .tw-website-info a,
.site-footer .tw-web-stat a,
.site-footer .tw-website-info li,
.site-footer .tw-web-stat li,
.site-footer .tw-web-stat span {
    color: #4a1a12 !important;
}

/* Copyright bar */
.copyright-bar {
    background: #7f140b;
    padding: 10px 0;
}

.copyright-text {
    text-align: center;
    color: rgba(255, 239, 207, 0.85);
    font-size: 12px;
}

/* ==============================================
   BACK TO TOP & SOCIAL FLOAT
   ============================================== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 100%;
    text-align: center;
    line-height: 42px;
    font-size: 20px;
    z-index: 998;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.back-to-top i {
    display: block;
    color: #fff !important;
    line-height: 42px;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Social floating dropup */
.social-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.social-float-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-float-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.social-float-menu {
    position: absolute;
    right: 4px;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.social-float.open .social-float-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-float.open .social-float-toggle i {
    transform: rotate(45deg);
    display: inline-block;
}

.social-float-toggle i {
    transition: transform 0.2s ease;
    color: #fff !important;
}

.social-float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-float-item i {
    color: #fff !important;
}

.social-float-item:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.social-float-item.fb { background: #1877f2; }
.social-float-item.phone { background: #d42b1a; }

.social-float-item.zalo { background: #0068ff; }

/* keep legacy style compatibility */
.social-float-item,
.social-float-toggle {
    z-index: 998;
}

/* ==============================================
   BREADCRUMBS
   ============================================== */
.breadcrumb-wrap {
    background: #f0f4f8;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-wrap .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 12px;
}

.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-text-light);
}

.breadcrumb-wrap .breadcrumb-item.active {
    color: var(--color-text-light);
}

.breadcrumb-wrap .breadcrumb-item a {
    color: var(--color-primary);
}

.breadcrumb-wrap .breadcrumb-item a:hover {
    color: var(--color-accent);
}

/* ==============================================
   OWL CAROUSEL OVERRIDES
   ============================================== */
.owl-theme .owl-nav [class*='owl-'] {
    background: rgba(26, 58, 92, 0.7);
    color: #fff;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 4px;
    font-size: 18px;
    transition: background 0.15s;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: var(--color-accent);
}

.owl-theme .owl-dots .owl-dot span {
    background: rgba(26, 58, 92, 0.4);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--color-primary);
}

/* ==============================================
   RESPONSIVE – TABLET / MOBILE
   ============================================== */
@media (max-width: 991px) {

    /* Show hamburger */
    .hamburger-btn {
        display: flex;
    }

    /* Sticky header keeps working */
    .site-header {
        position: sticky;
        top: 0;
    }

    /* Slide-in sidebar nav */
    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -290px;
        width: 280px;
        height: 100vh;
        background: var(--color-primary-dark);
        z-index: 999;
        overflow-y: auto;
        padding: 56px 0 20px;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .site-nav.open {
        left: 0;
    }

    .hvhcv2-menu {
        flex-direction: column;
    }

    .hvhcv2-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .hvhcv2-menu > li > a {
        padding: 13px 18px;
        font-size: 13px;
        border-bottom: none;
        text-transform: none;
    }

    .hvhcv2-menu > li > a:hover,
    .hvhcv2-menu > li.active > a {
        background: rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    /* Mobile: static dropdowns toggled by JS */
    .hvhcv2-menu > li:hover > .hvhcv2-dropdown,
    .hvhcv2-menu > li:hover > .hvhcv2-megamenu {
        display: none; /* disable CSS hover on mobile */
    }

    .hvhcv2-menu > li > .hvhcv2-dropdown.open {
        display: block;
    }

    .hvhcv2-menu > li > .hvhcv2-megamenu.open {
        display: flex;
    }

    .hvhcv2-dropdown,
    .hvhcv2-megamenu {
        position: static;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        min-width: 0;
        width: 100%;
        animation: none;
    }

    .hvhcv2-dropdown li a {
        padding: 9px 18px 9px 32px;
        color: rgba(255, 255, 255, 0.82);
        border-left: none;
        font-size: 13px;
    }

    .hvhcv2-dropdown li a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        border-left: none;
    }

    .hvhcv2-megamenu {
        flex-direction: column;
        padding: 0;
    }

    .hvhcv2-megamenu-col {
        padding: 8px 18px 8px 32px;
        min-width: 0;
    }

    .hvhcv2-megamenu-title {
        color: rgba(255, 255, 255, 0.6);
        border-bottom-color: rgba(255, 255, 255, 0.15);
        font-size: 11px;
    }

    .hvhcv2-megamenu-col a {
        color: rgba(255, 255, 255, 0.82);
    }

    .hvhcv2-megamenu-col a:hover {
        color: #fff;
    }

    /* Sub header stacks */
    .sub-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 6px 0;
    }

    .hc-search-input {
        width: 150px;
    }

    /* Footer */
    .site-footer {
        padding: 24px 0 12px;
    }

    .back-to-top {
        bottom: 126px;
        right: 14px;
    }

    .social-float {
        bottom: 16px;
        right: 14px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        background: transparent;
        border-bottom: none;
    }

    .main-nav .container {
        padding-left: 0;
        padding-right: 0;
    }

    .nav-wrapper {
        min-height: 0;
        position: static;
    }

    .hamburger-btn {
        display: flex;
        position: absolute;
        right: 12px;
        top: 10px;
        width: 44px;
        height: 40px;
        margin-right: 0;
        z-index: 1003;
        background: var(--color-primary);
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        padding: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .hamburger-btn span {
        width: 20px;
    }

    .nav-overlay {
        background: rgba(10, 18, 32, 0.48);
    }

    .site-nav {
        width: min(84vw, 320px);
        left: -330px;
        background: #ffffff;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
        padding: 56px 0 16px;
        transition: left 0.28s ease;
    }

    .mobile-menu-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        color: #9f1d14;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }

    .hvhcv2-menu > li {
        border-bottom: 1px solid #eef1f4;
    }

    .hvhcv2-menu > li > a {
        min-height: 46px;
        padding: 11px 16px;
        color: #a0271a;
        background: #fff;
        font-weight: 600;
        text-transform: none;
        display: flex;
        align-items: center;
    }

    .hvhcv2-menu > li > a:hover,
    .hvhcv2-menu > li.active > a {
        color: #7f1c12;
        background: #fff7f5;
    }

    .hvhcv2-menu > li.active > a {
        position: relative;
    }

    .hvhcv2-menu > li.active > a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        background: var(--color-primary);
        border-radius: 0 2px 2px 0;
    }

    .hvhcv2-menu > li.has-children > a::after {
        margin-left: auto;
        opacity: 0.7;
        transition: transform 0.25s ease;
    }

    .hvhcv2-menu > li.has-children.submenu-open > a::after {
        transform: rotate(180deg);
    }

    .hvhcv2-dropdown,
    .hvhcv2-megamenu {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.28s ease, opacity 0.2s ease;
        background: #fafbfc;
        border-top: 1px solid #f0f2f5;
    }

    .hvhcv2-menu > li > .hvhcv2-dropdown.open,
    .hvhcv2-menu > li > .hvhcv2-megamenu.open {
        opacity: 1;
    }

    .hvhcv2-dropdown li a {
        min-height: 44px;
        padding: 10px 16px 10px 42px;
        color: #334155;
        font-size: 13px;
        font-weight: 400;
        border-left: none;
    }

    .hvhcv2-dropdown li a:hover {
        background: #f3f6f9;
        color: #0f172a;
        border-left: none;
    }

    .hvhcv2-megamenu-col {
        padding: 8px 16px 8px 34px;
    }

    .hvhcv2-megamenu-col a {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-weight: 400;
        color: #334155;
    }

    .hvhcv2-megamenu-title {
        color: #64748b;
        border-bottom-color: #e2e8f0;
    }
}

@media (max-width: 575px) {

    .header-banner {
        height: 60px;
    }

    #logo,
    #logo a {
        height: 60px !important;
    }

    .header-banner-img {
        height: 100%;
        max-height: none;
    }

    .hc-datetime {
        display: none;
    }

    .hc-search-input {
        width: 130px;
    }

    .hvhcv2-menu > li > a {
        font-size: 12px;
        padding: 11px 14px;
    }
}

/* ==============================================
   LINE-CLAMP (fallback for browsers without Tailwind)
   ============================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================================
   HERO SLIDER
   ============================================== */
.tw-hero-slider {
    max-height: 420px;
    overflow: hidden;
}

.tw-hero-slider .slide {
    position: relative;
    height: 420px;
}

.tw-hero-slider .owl-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.tw-hero-slider .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
}

.tw-hero-slider .owl-dots .owl-dot.active span {
    background: #fff;
}

.tw-hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
}

.tw-hero-slider .owl-nav [class*='owl-'] {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 20px;
}

.tw-hero-slider .owl-nav [class*='owl-']:hover {
    background: var(--color-accent);
}

@media (max-width: 767px) {
    .tw-hero-slider,
    .tw-hero-slider .slide {
        height: 240px;
        max-height: 240px;
    }

    .tw-hero-slider .slide h2 {
        font-size: 16px;
    }
}

/* ==============================================
   ARTICLE BODY / PROSE STYLES
   ============================================== */
.tw-article-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.tw-article-body p {
    margin-bottom: 1em;
}

.tw-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.tw-article-body h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.5em 0 0.5em;
}

.tw-article-body h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
    margin: 1.2em 0 0.4em;
}

.tw-article-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 12px 16px;
    margin: 1em 0;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
}

.tw-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.tw-article-body table th,
.tw-article-body table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

.tw-article-body table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.tw-article-body table tr:nth-child(even) {
    background: #f8f9fa;
}

.tw-article-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.tw-article-body a:hover {
    color: var(--color-accent);
}

.tw-article-body ul,
.tw-article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.tw-article-body li {
    margin-bottom: 0.3em;
}

/* ==============================================
   SIDEBAR
   ============================================== */
.tw-sidebar {
    position: sticky;
    top: 120px;
}

/* ==============================================
   SECTION WRAPPERS
   ============================================== */
.tw-section {
    background: #fff;
}

/* ==============================================
   ALBUM SLIDER
   ============================================== */
.tw-album-slider .owl-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.tw-album-slider .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5);
}

.tw-album-slider .owl-dots .owl-dot.active span {
    background: #fff;
}

/* ==============================================
   NEW-ITEM ICON
   ============================================== */
img.new-item {
    display: inline;
    vertical-align: middle;
    width: auto;
    height: 14px;
    margin-left: 4px;
}

/* ==============================================
   PAGER (TW_Pager fallback)
   ============================================== */
.tw-pager a:hover {
    text-decoration: none;
}

/* ==============================================
   PRINT
   ============================================== */
@media print {
    .site-header,
    .site-footer,
    .copyright-bar,
    .back-to-top,
    .social-float,
    .nav-overlay {
        display: none !important;
    }
}

/* ==============================================
   TICKER BAR (home page — marquee + search)
   ============================================== */
.hv-ticker-bar {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #e7e7e7;
}

.hv-ticker-row {
    margin-top:6px;
    min-height: 42px;
}

.hv-ticker-marquee-wrap {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    padding: 0 16px 0 0;
    /* Add a subtle gradient fade on the right edge */
}

/* Marquee inner */
.tw-news-marquee {
    height: 100%;
}

@keyframes tw-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hv-ticker-label {
    color: var(--color-primary);
    padding: 0 8px 0 0;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tw-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    width: max-content;
    animation: tw-marquee 35s linear infinite;
    padding: 0 16px;
    will-change: transform;
}

.tw-news-marquee:hover .tw-marquee-track {
    animation-play-state: paused;
}

.hv-ticker-item {
    font-size: 12px;
    color: #444;
    text-decoration: none;
    transition: color 0.15s;
}

.hv-ticker-item:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Search form on the right */
.hv-ticker-search {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    margin-block-end: 6px !important; 
}

.hv-ticker-search-input {
    border: 1px solid #ccc;
    border-right: none;
    padding: 4px 14px;
    font-size: 12px;
    outline: none;
    height: 30px;
    width: 210px;
    border-radius: 15px 0 0 15px;
    background: #fff;
    color: #333;
    flex: 1 1 auto;
}

.hv-ticker-search-input:focus {
    border-color: var(--color-primary);
}

.hv-ticker-search-btn {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    padding: 0 14px;
    height: 30px;
    cursor: pointer;
    border-radius: 0 15px 15px 0;
    font-size: 13px;
    line-height: 1;
    transition: background 0.2s;
}

.hv-ticker-search-btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

@media (max-width: 575px) {
    .hv-ticker-search-input { width: 130px; }
}


.hv-fslide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
}

.hv-fslide-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv-fslide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hv-btn-detail {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #fff !important;
    text-decoration: none;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 2px 10px;
    border-radius: 3px;
    transition: var(--transition);
}
.hv-btn-detail:hover { background: var(--color-primary-dark); color: #fff !important; text-decoration: none; }

.hv-fslide-info {
    font-size: 11px;
    color: rgba(255,255,255,.8);
}

.hv-badge-featured {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary);
    padding: 3px 8px;
    border-radius: 3px;
}

/* Owl nav arrows for column slider */
.hv-col-carousel .owl-nav [class*='owl-'] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4) !important;
    color: #fff !important;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    font-size: 18px;
    margin: 0;
    text-align: center;
    transition: background 0.2s;
}
.hv-col-carousel .owl-prev { left: 6px; }
.hv-col-carousel .owl-next { right: 6px; }
.hv-col-carousel .owl-nav [class*='owl-']:hover { background: var(--color-primary) !important; }
.hv-col-carousel .owl-dots { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); }
.hv-col-carousel .owl-dot span { background: rgba(255,255,255,.6) !important; width: 8px; height: 8px; }
.hv-col-carousel .owl-dot.active span { background: var(--color-primary) !important; }

/* ==============================================
   CARD ROW (4 thumbnail cards below slider)
   ============================================== */
.hv-card-thumb { color: inherit; }
.hv-card-thumb:hover { text-decoration: none; }
.hv-card-thumb-img img { transition: transform .3s ease; }
.hv-card-thumb:hover .hv-card-thumb-img img { transform: scale(1.06); }
.hv-card-thumb-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin: 4px 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.hv-card-thumb:hover .hv-card-thumb-title { color: var(--color-primary); }
.hv-card-thumb-date { font-size: 10px; color: #888; }

/* ==============================================
   NOTICE LIST (numbered items)
   ============================================== */
.hv-notice-item { font-size: 12px; border-color: #eee !important; }
.hv-notice-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 1px;
}
.hv-notice-link { text-decoration: none; color: inherit; }
.hv-notice-link:hover { text-decoration: none; color: var(--color-primary); }
.hv-notice-date { font-size: 10px; color: #888; }
.hv-notice-title { font-size: 12px; color: #333; line-height: 1.4; }
.hv-notice-link:hover .hv-notice-title { color: var(--color-primary); }
.hv-badge-new {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #e53e3e;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
}
.hv-btn-more {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 4px 14px;
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition);
}
.hv-btn-more:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.tw-feature-section {
    border-bottom: solid 1px #e7e7e7;
}
/* ==============================================
   QUICK ACTION CARDS (home shortcuts)
   ============================================== */
.tw-section-quick-links {
    margin: 24px 0; /* tăng khoảng cách thay vì 2px/4px */
    padding: 0px 24px;
}

.tw-quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* sáng hơn #f1f1f1 một chút cho nhẹ */
    border: 1px solid #dcdcdc;
    gap: 40px;
    width: 100%;
    min-height: 120px;
    padding: 18px 14px;
    color: #2f2f2f;
    text-align: center;
    text-decoration: none;
    border-radius: 0px; /* 0px hơi cứng, 4px vừa nghiêm vừa mềm */
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .tw-quick-action-card:hover {
        border-color: #c40000;
        box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    }

.tw-quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 6px; /* 8px hơi mềm, 6px cân hơn */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c40000;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.tw-quick-action-text {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 19px; /* 20px hơi to so với block */
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    letter-spacing: 0.2px;
}

@media (max-width: 767px) {
    .tw-quick-action-card {
        min-height: 96px;
        padding: 12px;
    }

    .tw-quick-action-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .tw-quick-action-text {
        font-size: 17px;
    }
}
