/* ==========================================================================
   ZILA – Bù khác biệt khi nâng cấp Porto 4.3 (MYPAGE) -> Porto 7.9.5
   Porto 7 dùng Bootstrap 5: link mặc định gạch chân/màu #0d6efd, form bo góc…
   File này giữ giao diện như bản cũ. Nạp sau style.css của child theme.
   ========================================================================== */

/* Cỡ chữ gốc (rem): luôn 16px như bản cũ (Porto 7 thu nhỏ còn ~13.9px trên mobile) */
html { font-size: 16px; }

/* Link: không gạch chân, màu thương hiệu */
a, a:hover, a:focus, a:visited { text-decoration: none; }
a { color: #0827a3; }

/* Menu chính: nền trong suốt như bản cũ (Porto 7 lấy màu nền menu từ cài đặt cũ) */
#header .main-menu,
#header .header-main #main-menu .mega-menu,
.fixed-header #header.sticky-header .main-menu { background: transparent; }

/* Thanh trên cùng: ô tìm kiếm trước, VN/KR/EN sau; ô tìm kiếm gọn như cũ */
#header .header-top .header-right > .top-links { float: right; margin-left: 8px; }
#header .header-top .searchform { width: auto; }
#header .header-top .searchform input { width: 140px; }
#header .header-top .searchform button { width: 40px; }

/* Tiêu đề h1–h6: chép đúng kiểu chữ của bản cũ (skin Porto 4.3) */
h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; margin: 0; }
h1 { font-weight: 400; font-size: 30px; line-height: 34px; color: #000; margin-bottom: 32px; }
h2 { font-weight: 300; font-size: 26px; line-height: 30px; color: #000; margin-bottom: 32px; }
h3 { font-weight: 400; font-size: 24px; line-height: 28px; color: #000; margin-bottom: 20px; }
h4 { font-weight: 400; font-size: 20px; line-height: 24px; color: #000; margin-bottom: 14px; }
h5 { font-weight: 600; font-size: 18px; line-height: 22px; color: #000; margin-bottom: 14px; }
h6 { font-weight: 400; font-size: 16px; line-height: 20px; color: #000; margin-bottom: 14px; }
@media (max-width: 575px) {
	h1 { font-size: 26px; } h2 { font-size: 22.5333px; } h3 { font-size: 20.8px; }
	h4 { font-size: 17.3333px; } h5 { font-size: 15.6px; } h6 { font-size: 13.8667px; }
}

/* Thanh header-top trên mobile: bản cũ vẫn hiện (số điện thoại + VN/KR/EN); Porto 7 ẩn mặc định */
@media (max-width: 767px) { #header:not(.header-builder) .header-top { display: flex; } }

/* Khung nội dung trên mobile: lề 10px như bản cũ (Porto 7 dùng 20px) */
@media (max-width: 575px) { .container, .container-fluid { padding-left: 10px; padding-right: 10px; } }

/* Đoạn văn: dãn dòng 24px như bản cũ */
p { line-height: 24px; }

/* Tiêu đề bài viết */
#main .post .entry-title,
#main .post .entry-title a { color: #000; font-weight: 300; }

/* Bảng trong bài viết: viền như bản cũ */
#main .post-content table td,
#main .post-content table th { border: 1px inset #333; }

/* Form (Contact Form 7): đưa mặc định Bootstrap 5 về như Bootstrap 4 cũ.
   Độ ưu tiên đúng 1 class (dùng :where) để form có kiểu riêng (vd. .wrap_block_camnhan, .sidebar) vẫn giữ kiểu của mình. */
input.form-control, textarea.form-control, select.form-control,
:is(input, textarea, select).wpcf7-form-control:where(:not(.wpcf7-submit)) {
	border-radius: 0; font-size: 14px; line-height: 1.42857; padding: 6px 12px;
}
input.wpcf7-submit { border-radius: 0; font-size: 14px; line-height: 1.42857; padding: 6px 12px; }

/* Băng chuyền bài viết (Cẩm nang, Tin tức): giữ khoảng cách 20px dưới carousel như bản cũ */
.porto-recent-posts { display: flow-root; }

/* Footer */
#footer .widget-title { font-weight: 400; text-transform: none; }
#footer .footer-bottom { font-size: 15px; }
#footer .share-links a { background-color: transparent; color: #666; }
