/* ============================================================================================
   footer.css — footer kiểu public happyheath (Views/Shared/_Footer.cshtml), user chốt 14/10/2026 ("giống demo").
   Chép khối "FOOTER" + "ICON LIÊN HỆ CHÂN TRANG" trong style.css của happyheath. Khác happyheath:
     • Bảng màu site: nền navy (#0a3347 → #041823 — màu menu/footer cũ), vạch nhấn + hover vàng #ffc107
       (trùng màu nhấn của happyheath). Ảnh nền mờ = ảnh của footer cũ (/uploads/images/icon/bg-project.webp).
     • Biến --sd-* của happyheath thay bằng giá trị cụ thể (site không có bộ biến đó).
     • style.css cũ có `.ft-bottom {...}` (nền gradient xám, margin-top 50px) và `ul.ft-social` TRÙNG TÊN lớp →
       mọi rule ở đây có tiền tố .site-footer để thắng, và .ft-bottom đặt lại nền/khoảng cách.
   ============================================================================================ */
.site-footer {
    --ft-bg:       #0a3347;
    --ft-title:    #ffffff;
    --ft-accent:   #ffc107;
    --ft-text:     #ffffff;
    --ft-text-mut: rgba(255, 255, 255, .62);
    position: relative;
    clear: both;
    overflow: hidden;
    margin-top: 0;
    padding-top: 48px;
    color: var(--ft-text);
    font-size: 15px;
    text-align: left;
    background-color: var(--ft-bg);
    background-image: linear-gradient(to top, rgba(4, 18, 27, .92) 0%, rgba(10, 51, 71, .55) 100%);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}
/* Ảnh nền mờ (ảnh footer cũ) chồng dưới gradient */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/uploads/images/icon/bg-project.webp") no-repeat center bottom / cover;
    opacity: .1;
    z-index: 0;
    pointer-events: none;
}
/* Viền trắng mảnh lượn theo mép cong phía trên */
.site-footer::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 44px;
    border-top: 2px solid rgba(255, 255, 255, .85);
    border-top-left-radius: 22px; border-top-right-radius: 22px;
    pointer-events: none; z-index: 2;
}
@media (max-width: 767.98px) { .site-footer { padding-top: 44px; } }
.site-footer > * { position: relative; z-index: 1; }
.site-footer a, .site-footer a:visited { color: var(--ft-text); text-decoration: none; transition: color .18s; }
.site-footer a:hover { color: var(--ft-accent); text-decoration: none; }
.site-footer p { color: var(--ft-text); }
.site-footer .ft-cols { row-gap: 30px; }
.site-footer .ft-col { min-width: 0; }

/* Tiêu đề cột — trắng + 2 gạch chân chồng nhau (dài mờ + ngắn vàng) */
.site-footer .ft-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: var(--ft-title);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.site-footer .ft-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 64px; height: 2px;
    background: var(--ft-accent);
}

/* ── Cột 1: thương hiệu ── */
.site-footer .ft-logo { display: inline-block; margin-bottom: 14px; }
.site-footer .ft-logo img { max-height: 70px; width: auto; }
.site-footer .ft-logo__txt { font-size: 24px; font-weight: 700; color: #fff; }
.site-footer .ft-brandname { color: #fff; font-weight: 700; font-size: 17px; line-height: 1.45; margin-bottom: 10px; }
.site-footer .ft-desc { color: var(--ft-text); line-height: 1.7; margin: 0 0 16px; }

.site-footer .ft-social { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; line-height: normal; }
.site-footer .ft-social__lb { color: var(--ft-text-mut); font-size: 14px; }
.site-footer .ft-soc {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}
.site-footer .ft-soc:hover { background: var(--ft-accent); color: #1a1a1a; transform: translateY(-2px); }
.site-footer .ft-soc--brand:hover { color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .28); }
.site-footer .ft-soc--letter { font-weight: 700; font-size: 15px; line-height: 1; }
.site-footer .ft-soc svg { width: 15px; height: 15px; }
.site-footer .ft-soc svg.ft-soc__fb { width: 16px; height: 16px; }

/* ── Cột 2: thông tin liên hệ — icon SVG nét mảnh vàng trong vòng tròn viền mảnh ── */
.site-footer .ft-contact { list-style: none; margin: 0; padding: 0; }
.site-footer .ft-contact li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.site-footer .ft-contact__ic {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-top: 2px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2);
    color: var(--ft-accent); transition: background-color .25s, border-color .25s, color .25s;
}
.site-footer .ft-contact__ic svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.site-footer .ft-contact li:hover .ft-contact__ic { background: var(--ft-accent); border-color: var(--ft-accent); color: #1a1a1a; }
.site-footer .ft-contact__tx { min-width: 0; line-height: 1.5; }
.site-footer .ft-contact__lb {
    display: block; color: var(--ft-text-mut);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em;
}
.site-footer .ft-contact__tx a { color: #fff; font-weight: 500; word-break: break-word; }
.site-footer .ft-contact__tx a:hover { color: var(--ft-accent); }
.site-footer .ft-contact__num { white-space: nowrap; }
.site-footer .ft-contact__sep { color: var(--ft-text-mut); }

/* ── Cột 3: liên kết — bullet chấm tròn ── */
.site-footer .ft-links { list-style: none; margin: 0; padding: 0; }
.site-footer .ft-links li { line-height: 1.35; }
.site-footer .ft-links li + li { margin-top: 2px; }
.site-footer .ft-links a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--ft-text); }
.site-footer .ft-links a::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.site-footer .ft-links a:hover { color: var(--ft-accent); }
.site-footer .ft-links a:hover::before { background: var(--ft-accent); }

/* ── Cột 4: bài viết mới nhất — ảnh 72px trái + tiêu đề (2 dòng) và ngày ── */
.site-footer .ft-posts { list-style: none; margin: 0; padding: 0; }
.site-footer .ft-post { display: flex; gap: 12px; }
.site-footer .ft-post + .ft-post { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .ft-post__media {
    flex: 0 0 auto; width: 72px; height: 72px;
    border-radius: 8px; overflow: hidden;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}
.site-footer .ft-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.site-footer .ft-post:hover .ft-post__media img { transform: scale(1.06); }
.site-footer .ft-post__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.site-footer .ft-post__title {
    color: #fff; font-weight: 500; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-footer .ft-post__title:hover { color: var(--ft-accent); }
.site-footer .ft-post__date { color: var(--ft-text-mut); font-size: 14px; }
.site-footer .ft-post__date .fa { margin-right: 4px; }

/* ── Thanh dưới: bản quyền — đặt lại .ft-bottom của style.css cũ (nền gradient xám, margin-top 50px) ── */
.site-footer .ft-bottom {
    margin-top: 34px;
    padding: 18px 0 22px;
    background: none;
    text-align: center;
}
.site-footer .ft-bottom__in { text-align: center; color: var(--ft-text-mut); font-size: 14px; }
.site-footer .ft-bottom__in a { color: #fff; }
.site-footer .ft-bottom__in a:hover { color: var(--ft-accent); }
