/* =========================================================
   Trang chủ: khối Tin tức - Sự kiện (2 cột) và Câu hỏi thường gặp
   Màu thương hiệu: #174095 (xanh đậm), #008fe2 (xanh nước)
   ========================================================= */

.home-article { padding: 40px 0; background: #f4f6fa; }

/* Tiêu đề section: đồng bộ với "ĐĂNG KÝ DỊCH VỤ ONLINE", "ẢNH VỀ DỰ ÁN" */
.home-sec-head { margin-bottom: 24px; }
.home-sec-head h2 { color: #174095; margin: 0 0 6px; }
.home-sec-head .summary { font-size: 16px; color: #555; margin: 0; }

/* ---------- Thẻ tin tức ---------- */
.hn-col { display: flex; margin-bottom: 24px; }
.hn-card {
    flex: 1; display: flex; flex-direction: column;
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 2px 12px rgba(23, 64, 149, .08);
    border-top: 4px solid #008fe2;
}
.hn-col:last-child .hn-card { border-top-color: #174095; }

.hn-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #edf0f5;
}
.hn-head h3 { margin: 0; font-size: 20px; font-weight: 700; color: #174095; display: flex; align-items: center; }
.hn-icon {
    width: 36px; height: 36px; border-radius: 50%; margin-right: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e6f4fd; color: #008fe2; font-size: 16px;
}
.hn-col:last-child .hn-icon { background: #e8edf8; color: #174095; }
.hn-more { font-size: 14px; font-weight: 500; color: #008fe2; white-space: nowrap; }
.hn-more:hover { color: #174095; text-decoration: none; }
.hn-more i { margin-left: 4px; transition: transform .2s; }
.hn-more:hover i { transform: translateX(3px); }

/* Ảnh: khung cố định, ảnh phủ kín, phóng nhẹ khi rê chuột */
.hn-thumb { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #e9eef5; flex-shrink: 0; }
.hn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a:hover .hn-thumb img { transform: scale(1.06); }

/* Bài nổi bật */
.hn-feat { display: block; color: #333; margin-bottom: 16px; }
.hn-feat:hover { text-decoration: none; color: #333; }
.hn-thumb-lg { padding-top: 52%; }
.hn-feat-body { padding-top: 12px; }
.hn-feat-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 18px; font-weight: 700; line-height: 1.4; color: #1d2b4f; margin: 4px 0 6px;
    transition: color .2s;
}
.hn-feat:hover .hn-feat-title { color: #008fe2; }
.hn-summary {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; line-height: 1.6; color: #5b6475;
}
.hn-summary p { margin: 0; display: inline; font-size: inherit; }

.hn-date { display: block; font-size: 12.5px; color: #8a93a6; }
.hn-date i { margin-right: 4px; }

/* Danh sách bài còn lại */
.hn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #edf0f5; }
.hn-list li { border-bottom: 1px dashed #e3e8f0; }
.hn-list li:last-child { border-bottom: 0; }
.hn-list a { display: flex; align-items: center; padding: 12px 0; color: #333; }
.hn-list a:hover { text-decoration: none; }
.hn-list .hn-thumb { width: 96px; height: 64px; margin-right: 14px; }
.hn-item-body { display: block; min-width: 0; }
.hn-item-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #1d2b4f; margin-bottom: 4px;
    transition: color .2s;
}
.hn-list a:hover .hn-item-title { color: #008fe2; }

/* Chưa có bài */
.hn-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 220px; color: #9aa4b5; text-align: center;
    background: #f7f9fc; border: 2px dashed #dbe4f0;
    border-radius: 8px;
}
.hn-empty i { font-size: 40px; color: #b9d9f2; margin-bottom: 10px; }
.hn-empty p { margin: 0; font-size: 15px; }

/* ---------- Câu hỏi thường gặp ---------- */
#home-faq { background: #fff; }
.hfaq-grid > div { display: flex; margin-bottom: 16px; }
.hfaq-item {
    flex: 1; display: flex; align-items: flex-start;
    padding: 16px 18px; border-radius: 10px; background: #f7f9fc;
    border: 1px solid #e6ebf3; color: #333;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hfaq-item:hover {
    text-decoration: none; color: #333; border-color: #9fd3f5;
    box-shadow: 0 6px 18px rgba(0, 143, 226, .12); transform: translateY(-2px);
}
.hfaq-icon {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; margin-right: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #008fe2; color: #fff; font-size: 14px;
}
.hfaq-body { min-width: 0; }
.hfaq-ask { display: block; font-weight: 700; color: #174095; line-height: 1.45; margin-bottom: 4px; }
.hfaq-answer {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; line-height: 1.55; color: #5b6475;
}
.hfaq-answer p { margin: 0; display: inline; }

.home-btn {
    display: inline-block; margin-top: 8px; padding: 10px 26px; border-radius: 30px;
    border: 2px solid #174095; color: #174095; font-weight: 600; transition: all .2s;
}
.home-btn:hover { background: #174095; color: #fff; text-decoration: none; }
.home-btn i { margin-left: 6px; }

@media (max-width: 991px) {
    .home-article { padding: 28px 0; }
    .home-article .col { margin-top: 0; }
}
@media (max-width: 575px) {
    .hn-card { padding: 16px; }
    .hn-head h3 { font-size: 17px; }
    .hn-icon { width: 30px; height: 30px; font-size: 14px; }
    .hn-feat-title { font-size: 16px; }
    .hn-list .hn-thumb { width: 84px; height: 56px; }
}

/* =========================================================
   Trang chủ: khối Giới thiệu (#about-home)
   Nội dung lấy từ About Id 21 (WebAdmin) nên chỉ style bằng CSS,
   ghi đè font/cỡ chữ inline do trình soạn thảo sinh ra.
   ========================================================= */
#about-home { margin: 0; padding: 60px 0; background: #fff; position: relative; overflow: hidden; }
#about-home::before {
    content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0, 143, 226, .08), rgba(0, 143, 226, 0) 70%);
    pointer-events: none;
}
#about-home > .container > .row { align-items: center; }
#about-home .text span,
#about-home .text strong { font-family: inherit !important; font-size: inherit !important; }

/* Tiêu đề + gạch nhấn */
#about-home .text h2 { color: #174095; margin: 0 0 18px; padding-bottom: 12px; position: relative; }
#about-home .text h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, #174095, #008fe2);
}

/* Đoạn đầu: tên công ty */
#about-home .text h2 + p { font-size: 17px; line-height: 1.5; color: #008fe2; margin-bottom: 14px; }
#about-home .text h2 + p br + span,
#about-home .text h2 + p br + * { display: inline-block; margin-top: 2px; color: #1d2b4f; font-size: 15px !important; }

/* Đoạn mô tả */
#about-home .text p { font-size: 15px; line-height: 1.75; color: #4a5568; text-align: justify; }

/* Danh sách điểm mạnh -> lưới 2 cột có icon */
#about-home .text ul {
    list-style: none; padding: 0; margin: 20px 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
#about-home .text ul li {
    position: relative; padding: 12px 14px 12px 50px; border-radius: 10px;
    background: #f4f8fd; border: 1px solid #e3edf8; color: #1d2b4f; font-weight: 500;
    font-size: 14.5px; line-height: 1.45; display: flex; align-items: center; min-height: 58px;
    transition: border-color .2s, box-shadow .2s;
}
#about-home .text ul li:hover { border-color: #9fd3f5; box-shadow: 0 4px 14px rgba(0, 143, 226, .1); }
#about-home .text ul li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: #008fe2; color: #fff;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* Link "Xem thêm" -> nút */
#about-home .text p:last-child { margin: 0; }
#about-home .text p:last-child a {
    display: inline-block; padding: 10px 26px; border-radius: 30px; background: #174095; color: #fff;
    font-weight: 600; text-decoration: none; transition: background .2s, transform .2s;
}
#about-home .text p:last-child a:hover { background: #008fe2; transform: translateY(-1px); }
/* Ảnh: bo góc, đổ bóng, khối màu lệch phía sau */
#about-home .image { position: relative; }
#about-home .image:not(:has(img)) { display: none; }
#about-home .image img {
    position: relative; z-index: 1; display: block; width: 100%; height: auto;
    border-radius: 16px; box-shadow: 0 16px 40px rgba(23, 64, 149, .18);
}
#about-home .image:has(img)::before {
    content: ""; position: absolute; z-index: 0; top: 22px; left: 37px; right: -7px; bottom: -22px;
    border-radius: 16px; background: linear-gradient(135deg, #008fe2, #174095); opacity: .15;
}

@media (max-width: 767px) {
    #about-home { padding: 36px 0; }
    #about-home .text ul { grid-template-columns: 1fr; }
    #about-home .image { margin-top: 28px; }
    #about-home .image:has(img)::before { left: 22px; right: -8px; top: 14px; bottom: -14px; }
    #about-home .text p { text-align: left; }
}

/* =========================================================
   Trang chủ: Đăng ký dịch vụ online (#service-home)
   ========================================================= */
#service-home { background: #f4f6fa; padding: 56px 0; }
.svc-col { display: flex; margin-bottom: 24px; }
.svc-card {
    flex: 1; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(23, 64, 149, .08);
    transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(23, 64, 149, .16); }
.svc-thumb { display: block; position: relative; padding-top: 58%; overflow: hidden; background: #e6eef8; }
.svc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .svc-thumb img { transform: scale(1.06); }
.svc-no {
    position: absolute; left: 14px; top: -20px; z-index: 1;
    width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff;
    background: linear-gradient(135deg, #008fe2, #174095); color: #fff;
    font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(23, 64, 149, .3);
}
.svc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px 18px 18px; }
.svc-body h3 { font-size: 16.5px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.svc-body h3 a { color: #174095; }
.svc-body h3 a:hover { color: #008fe2; text-decoration: none; }
.svc-summary {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; line-height: 1.6; color: #5b6475; margin-bottom: 12px;
}
.svc-summary p { margin: 0; display: inline; }
.svc-price { margin-top: auto; font-size: 14px; color: #5b6475; padding: 10px 0; border-top: 1px dashed #e3e8f0; }
.svc-price i { color: #008fe2; margin-right: 6px; }
.svc-price b { color: #e2541b; font-size: 15px; }
.svc-actions { display: flex; gap: 8px; }
.svc-btn {
    flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px;
    border: 2px solid #008fe2; transition: background .2s, color .2s;
}
.svc-btn:hover { text-decoration: none; }
.svc-btn-ghost { color: #008fe2; background: #fff; }
.svc-btn-ghost:hover { background: #e6f4fd; color: #0b80c3; }
.svc-btn-primary { color: #fff; background: #008fe2; }
.svc-btn-primary:hover { background: #174095; border-color: #174095; color: #fff; }

/* =========================================================
   Trang chủ: Ảnh dự án nước sạch (#image-home-carousel)
   ========================================================= */
#image-home-carousel { padding: 56px 0; background: #fff; }
#image-home-carousel .container { position: relative; }
.prj-card { display: block; color: #1d2b4f; }
.prj-card:hover { text-decoration: none; color: #008fe2; }
.prj-thumb {
    display: block; position: relative; padding-top: 70%; overflow: hidden;
    border-radius: 12px; background: #e6eef8; box-shadow: 0 4px 14px rgba(23, 64, 149, .1);
}
#image-home-carousel .prj-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.prj-card:hover .prj-thumb img { transform: scale(1.07); }
.prj-zoom {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(23, 64, 149, 0) 40%, rgba(23, 64, 149, .55));
    color: #fff; font-size: 26px; opacity: 0; transition: opacity .3s;
}
.prj-card:hover .prj-zoom { opacity: 1; }
.prj-caption {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.45; transition: color .2s;
}
#image-home-carousel .owl-stage-outer { padding: 4px 2px 12px; margin: -4px -2px -12px; }
#image-home-carousel .owl-nav button {
    top: -78px; width: 40px; height: 40px; border: 0 !important; border-radius: 50%;
    background: #e6f4fd !important; color: #008fe2 !important; transition: background .2s, color .2s;
}
#image-home-carousel .owl-nav button.owl-prev { right: 48px; }
#image-home-carousel .owl-nav button:hover { background: #008fe2 !important; color: #fff !important; }
#image-home-carousel .owl-nav button.disabled { opacity: .4; cursor: default; }

@media (max-width: 767px) {
    #service-home, #image-home-carousel { padding: 36px 0; }
    .svc-body { padding: 26px 14px 14px; }
}
