/* ==========================================================================
   Vetting.vn – lớp tinh chỉnh giao diện (nạp sau style.css / custom.css)
   Chỉ làm mịn: màu, chữ, khoảng cách, hover, form, bảng, mobile, a11y.
   Không đổi bố cục gốc. Muốn bỏ: xoá file này là site trở lại như cũ.
   ========================================================================== */

:root {
    --vt-navy: #0b3d75;
    --vt-blue: #005faf;
    --vt-sky: #34bbed;
    --vt-yellow: #fce327;
    --vt-ink: #1f2a37;
    --vt-muted: #5b6778;
    --vt-line: #e3e8ef;
    --vt-bg-soft: #f5f8fc;
    --vt-radius: 10px;
    --vt-shadow: 0 6px 24px rgba(11, 61, 117, .08);
    --vt-shadow-hover: 0 12px 32px rgba(11, 61, 117, .16);
    --vt-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Chữ & nội dung ------------------------------------------------ */
body {
    color: var(--vt-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.entry-content,
.ht-main-content,
.post-content {
    line-height: 1.75;            /* dấu tiếng Việt cần dòng thoáng hơn */
    font-size: 1.05rem;
}

.entry-content p,
.post-content p { margin-bottom: 1.1em; }

.entry-content h2, .entry-content h3,
.post-content h2, .post-content h3 {
    color: var(--vt-navy);
    line-height: 1.35;
    margin: 1.6em 0 .6em;
}

.entry-content img,
.post-content img,
.ht-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

a { transition: color .2s var(--vt-ease); }

/* ---------- Header & menu ------------------------------------------------- */
#ht-masthead.ht-site-header {
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    position: relative;
    z-index: 50;
}

.ht-main-navigation .ht-menu > ul > li > a,
.ht-main-navigation > div > ul > li > a {
    position: relative;
    letter-spacing: .02em;
}

/* (đã bỏ gạch chân vàng dưới menu – bị đè lên chữ) */

.ht-main-navigation ul ul {
    border-radius: 0 0 var(--vt-radius) var(--vt-radius);
    box-shadow: var(--vt-shadow-hover);
    overflow: hidden;
}

.ht-main-navigation ul ul li a {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* ---------- Tiêu đề section ---------------------------------------------- */
.section-title {
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--vt-blue), var(--vt-sky));
    border-radius: 3px;
}

/* ---------- Thẻ dịch vụ / dự án / tin -------------------------------------- */
.project-ct,
.pro-ject .project-thumbnail-link,
.blog-sidebar .post-item,
.khung-chu-nhat {
    border-radius: var(--vt-radius);
    transition: transform .3s var(--vt-ease), box-shadow .3s var(--vt-ease);
}

.project-ct:hover,
.khung-chu-nhat:hover {
    transform: translateY(-4px);
    box-shadow: var(--vt-shadow-hover);
}

.project-thumbnail-link img {
    transition: transform .5s var(--vt-ease);
}

.project-thumbnail-link:hover img { transform: scale(1.04); }

/* ---------- Số liệu thống kê --------------------------------------------- */
.number-wrap .counter,
.count_block .counter {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* ---------- Logo đối tác --------------------------------------------------- */
.ht-logo-slider img,
.img-logo-kh {
    filter: grayscale(100%);
    opacity: .75;
    transition: filter .3s, opacity .3s;
    max-height: 90px;
    width: auto !important;
    margin: 0 auto;
    object-fit: contain;
}

.ht-logo-slider img:hover,
.img-logo-kh:hover {
    filter: none;
    opacity: 1;
}

/* ---------- Nút ------------------------------------------------------------ */
.btn,
button,
input[type="submit"],
.wpcf7-submit,
.sgb_loadmore {
    border-radius: 8px;
    transition: background-color .2s, box-shadow .2s, transform .15s;
}

.btn:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover,
.sgb_loadmore:hover {
    box-shadow: 0 6px 16px rgba(0, 95, 175, .25);
    transform: translateY(-1px);
}

.wpcf7-submit,
.sgb_loadmore {
    background: var(--vt-blue);
    border-color: var(--vt-blue);
    color: #fff;
    padding: 10px 26px;
    font-weight: 600;
}

/* ---------- Form (liên hệ, yêu cầu kiểm tra, đăng nhập, khai báo tàu) ------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], input[type="url"],
select, textarea, .form-control {
    border: 1px solid var(--vt-line);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
    border-color: var(--vt-blue);
    box-shadow: 0 0 0 3px rgba(0, 95, 175, .15);
    outline: none;
}

.wpcf7-not-valid-tip { font-size: .875rem; margin-top: 4px; }

.wpcf7 form .wpcf7-response-output {
    border-radius: 8px;
    padding: 12px 16px;
}

/* ---------- Bảng dữ liệu (Danh sách tàu / Báo cáo – DataTables) ----------- */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-radius);
    overflow: hidden;
    background: #fff;
}

table.dataTable thead th {
    background: var(--vt-navy);
    color: #fff;
    font-weight: 600;
    border-bottom: 0 !important;
    white-space: nowrap;
}

table.dataTable tbody tr:nth-child(even) { background: var(--vt-bg-soft); }
table.dataTable tbody tr:hover { background: #eaf3fc; }
table.dataTable td { vertical-align: middle; }

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 10px;
    margin-left: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--vt-blue) !important;
    color: #fff !important;
    border-color: var(--vt-blue) !important;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Footer -------------------------------------------------------- */
.footer-wrapper .fh5co-footer-links li { margin-bottom: 10px; line-height: 1.6; }

.footer-wrapper a { transition: color .2s; }
.footer-wrapper a:hover { color: var(--vt-yellow) !important; }

.footer-logo { min-width: 90px; margin-top: 8px; }

/* Nút Zalo nổi */
.float-contact .chat-zalo img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s;
}
.float-contact .chat-zalo img:hover { transform: scale(1.08); }

/* ---------- Mobile -------------------------------------------------------- */
@media (max-width: 991px) {
    .ht-container { padding-left: 16px; padding-right: 16px; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 575px) {
    .entry-content, .post-content { font-size: 1rem; }
    .footer-wrapper h5 { font-size: 1rem; line-height: 1.5; }
}

/* ---------- Accessibility ------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--vt-sky);
    outline-offset: 2px;
}

.skip-link.screen-reader-text:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    background: #fff;
    color: var(--vt-navy);
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: var(--vt-shadow-hover);
    clip: auto;
    width: auto;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Footer cũ (các trang khác): chữ thường bị kế thừa màu tối của body → mờ trên nền xanh */
.footer-wrapper, .footer-wrapper p, .footer-wrapper li, .footer-wrapper span:not(.footer-icon), .footer-wrapper .footer-fax { color: rgba(255, 255, 255, .85) !important; }
.footer-wrapper a { color: rgba(255, 255, 255, .9) !important; }
