/* =========================================================
 * bs4-compat.css — ให้ธีม Porto (เขียนบน Bootstrap 4) แสดงผลถูกต้องบน Bootstrap 5.3
 * ========================================================= */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .fab-btn:hover, .cta-btn:hover, .contact-card:hover, .mg-item:hover, .pf-card:hover, .pf-filter a:hover { text-decoration: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* spacing / alignment utilities จาก BS4 */
.ml-auto { margin-left: auto !important; } .mr-auto { margin-right: auto !important; }
.ml-0 { margin-left: 0 !important; } .mr-0 { margin-right: 0 !important; }
.ml-1 { margin-left: .25rem !important; } .mr-1 { margin-right: .25rem !important; }
.ml-2 { margin-left: .5rem !important; } .mr-2 { margin-right: .5rem !important; }
.ml-3 { margin-left: 1rem !important; } .mr-3 { margin-right: 1rem !important; }
.pl-0 { padding-left: 0 !important; } .pr-0 { padding-right: 0 !important; }
.pl-3 { padding-left: 1rem !important; } .pr-3 { padding-right: 1rem !important; }
.text-left { text-align: left !important; } .text-right { text-align: right !important; }
.float-left { float: left !important; } .float-right { float: right !important; }
.font-weight-bold { font-weight: 700 !important; } .font-weight-normal { font-weight: 400 !important; } .font-weight-semibold { font-weight: 600 !important; }
.btn-block { display: block; width: 100%; }
.form-group { margin-bottom: 1rem; }
.no-gutters { margin-right: 0; margin-left: 0; --bs-gutter-x: 0; }
.no-gutters > [class*="col"] { padding-right: 0; padding-left: 0; }
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; padding-top: 56.25%; }
.embed-responsive iframe, .embed-responsive .embed-responsive-item { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media { display: flex; align-items: flex-start; } .media-body { flex: 1; }

/* BS5 เปลี่ยนค่า gutter/line-height ของ row — คืนค่าให้ใกล้ BS4 เพื่อไม่ให้ layout ธีมเพี้ยน */
.row { --bs-gutter-x: 30px; }
body { line-height: 1.6; }
/* BS5 จำกัด .container ที่จอใหญ่สุด 1320px; ธีมเดิมใช้ 1140px */
@media (min-width: 1400px) { .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1200px; } }
