/*
 * Hiệp Phát – CSS bổ sung riêng cho WordPress.
 * KHÔNG sửa đổi assets/css/style.css (CSS gốc của giao diện). Mọi rule ở đây chỉ phục vụ
 * các thành phần mà WordPress tự sinh ra (căn lề ảnh, chú thích, bình luận, thanh quản trị...)
 * hoặc các thành phần mới (honeypot, thông báo form, lọc chuyên mục tin tức).
 */

/* ---- Truy cập (Accessibility) ---- */
.screen-reader-text{
	border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;
	padding:0;position:absolute!important;width:1px;word-wrap:normal!important;
}
.screen-reader-text:focus,.skip-link:focus{
	background:#fff;border-radius:4px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;clip-path:none;
	color:#0756a5;display:block;font-size:14px;font-weight:700;height:auto;left:8px;line-height:normal;
	padding:14px 22px;text-decoration:none;top:8px;width:auto;z-index:100000;
}
:focus-visible{outline:2px solid #0756a5;outline-offset:2px}

/* ---- Thanh quản trị WordPress đẩy header dính xuống ---- */
.admin-bar .header{top:32px}
@media screen and (max-width:782px){.admin-bar .header{top:46px}}
@media screen and (max-width:600px){.admin-bar .header{top:0}}

/* ---- Căn lề & chú thích mặc định của WordPress ---- */
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin:0 auto 1em;clear:both}
.alignwide,.alignfull{max-width:100%}
.wp-caption{max-width:100%;margin-bottom:1em}
.wp-caption img{display:block;height:auto}
.wp-caption-text,.gallery-caption,figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.sticky,.bypostauthor{display:block}
.gallery{display:grid;gap:12px;grid-template-columns:repeat(3,1fr);margin:0 0 1.5em}
.gallery img{width:100%;height:auto}
@media(max-width:620px){.gallery{grid-template-columns:repeat(2,1fr)}}

/* ---- Nội dung soạn thảo (trang / bài viết / tổng quan) ---- */
.page-content,.news-article,.service-overview-content,.product-overview-copy,.project-overview-copy{overflow-wrap:break-word}
.page-content > :last-child,.news-article > :last-child{margin-bottom:0}
.page-content h2{margin-top:1.6em}
.page-content h3{margin-top:1.4em}
.page-content ul,.page-content ol,.news-article ol,.service-overview-content ul,.service-overview-content ol,.product-overview-copy ul,.product-overview-copy ol,.project-overview-copy ul,.project-overview-copy ol{padding-left:1.4em;margin:0 0 18px}
.page-content img,.news-article img,.service-overview-content img,.product-overview-copy img,.project-overview-copy img{max-width:100%;height:auto}
.page-content table,.news-article table{width:100%;border-collapse:collapse;margin:0 0 20px;display:block;overflow-x:auto}
.page-content th,.page-content td,.news-article th,.news-article td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.page-content blockquote,.news-article blockquote{margin:0 0 20px;padding:4px 0 4px 18px;border-left:4px solid var(--accent);color:var(--muted)}
.page-content a,.news-article a{color:var(--blue);text-decoration:underline}
.page-content .wp-block-button__link,.news-article .wp-block-button__link{text-decoration:none}
.news-article iframe,.news-article video,.page-content iframe,.page-content video{max-width:100%}
.page-content .wp-block-embed__wrapper{position:relative}
.catalog-pagination .catalog-page-gap{color:var(--muted);padding:0 4px}
.catalog-pagination a,.catalog-pagination > span:not(.catalog-page-gap){min-width:42px}

/* ---- Tin tức: ảnh đại diện trên thẻ + lọc chuyên mục ---- */
.news-card-link .news-card-thumb{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.news-category-nav a{transition:background .18s ease,border-color .18s ease}
.news-category-nav a:hover,.news-category-nav a.is-current{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.7)}
.news-category-card{margin-top:18px}
.news-detail-sidebar .card + .card{margin-top:18px}

/* ---- Khách hàng ---- */
.partner-logo-card .partner-logo-img,.client-logo img{max-width:100%;max-height:64px;width:auto;height:auto;object-fit:contain}

/* ---- Form báo giá ---- */
.hp-trap{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.rfq-notice{padding:12px 14px;border-radius:10px;font-size:14px;font-weight:700}
.rfq-success{background:#e8f6ef;border:1px solid #b9e2cd;color:#0f7b55}
.rfq-error{background:#fdecec;border:1px solid #f4c3c3;color:#9b1c1c}
.field select{font:inherit}
button[disabled]{opacity:.65;cursor:not-allowed}

/* ---- Tìm kiếm ---- */
.hp-search-form{display:flex;gap:8px;align-items:center;max-width:460px}
.hp-search-form .search-field{flex:1;min-width:0;border:1px solid #cddde7;border-radius:10px;padding:11px 13px;background:#fff}

/* ---- Bình luận ---- */
.comments-area{max-width:860px}
.comments-title{font-size:26px;margin-bottom:20px}
.comment-list,.comment-list ol{list-style:none;padding:0;margin:0 0 26px}
.comment-list .comment-body{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.comment-list .children{margin-left:22px}
.comment-meta{font-size:13px;color:var(--muted);margin-bottom:8px}
.comment-author .avatar{float:left;margin-right:12px;border-radius:50%}
.comment-respond{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
.comment-respond label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url],.comment-respond textarea{width:100%;border:1px solid #cddde7;border-radius:10px;padding:11px 13px;background:#fff}
.comment-respond .submit{background:#0756a5;color:#fff;border:0;border-radius:6px;padding:12px 20px;font-weight:700;cursor:pointer}
.comment-respond .submit:hover{background:#053b7d}
.comment-navigation .nav-links,.comments-pagination .nav-links{display:flex;gap:12px;justify-content:space-between}

/* ---- Hộp tìm kiếm trong header khi không có kết quả ---- */
.header-search-empty{padding:12px 14px;color:var(--muted);font-size:13px}

/* ---- In ---- */
@media print{.site-contact-strip,.header,.floating-mobile,.site-back-to-top,.prefooter-contact{display:none!important}}
