/* ==========================================================================
   FUGA — Bảng size (khung tối đa 1200px, các bảng mở/đóng, hướng dẫn đo, bảng kéo ngang trên điện thoại)
   ========================================================================== */
.fg-sg { background: #fff; color: #000; }
.fg-sg__wrap { max-width: 1200px; margin-inline: auto; padding: 40px 20px; }
.fg-sg__head { text-align: center; }
.fg-sg__title { margin-bottom: 20px; font-size: 33px; line-height: 1.4; font-weight: 700; letter-spacing: .56px; }
.fg-sg__intro { max-width: 900px; margin: 0 auto 20px; font-size: 16px; line-height: 1.8; }
.fg-sg__list { margin: 20px 0; }

.fg-sg__sec { margin-bottom: 20px; overflow: hidden; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; transition: box-shadow .3s; }
.fg-sg__sec:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.fg-sg__sum { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; background: #f8f9fa; transition: background-color .3s; }
.fg-sg__sum::-webkit-details-marker { display: none; }
.fg-sg__sum:hover { background: #e9ecef; }
.fg-sg__sec-title { font-size: 19px; line-height: 1.4; font-weight: 600; }
.fg-sg__toggle { display: grid; place-items: center; width: 25px; height: 33.6px; }
.fg-sg__toggle::before { content: ""; width: 0; height: 0; border-left: 9.5px solid transparent; border-right: 9.5px solid transparent; border-top: 16px solid #666; transition: transform .3s; }
.fg-sg__sec[open] .fg-sg__toggle::before { transform: rotate(180deg); }
.fg-sg__body { padding: 25px; }

/* Hướng dẫn đo */
.fg-sg__guide { display: flex; align-items: flex-start; gap: 40px; margin: 25px 0; padding: 25px; background: #fff; border-radius: 8px; }
.fg-sg__diagram { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; }
.fg-sg__diagram img { max-width: 76%; height: auto; }
.fg-sg__how { flex: 1; display: flex; flex-direction: column; }
.fg-sg__how-title { margin-bottom: 15px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.fg-sg__steps { counter-reset: fg-sg; }
.fg-sg__steps li { position: relative; padding: 10px 0 10px 35px; line-height: 1.6; color: #555; counter-increment: fg-sg; }
.fg-sg__steps li::before {
	content: counter(fg-sg); position: absolute; left: 0; top: 10px; display: grid; place-items: center;
	width: 24px; height: 24px; font-size: 14px; line-height: 1; font-weight: 700; color: #fff; background: #000; border-radius: 50%;
}

/* Bảng */
.fg-sg__table-wrap { margin: 20px 0; overflow-x: auto; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.fg-sg__table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; font-size: 14px; }
.fg-sg__table col { width: var(--sg-w, auto); }
.fg-sg__table thead { background: #000; color: #fff; }
.fg-sg__table th { padding: 15px 12px; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; text-align: center; border-right: 1px solid rgba(255, 255, 255, .2); }
.fg-sg__table td { padding: 12px; text-align: center; color: #000; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.fg-sg__table th:last-child, .fg-sg__table td:last-child { border-right: 0; }
.fg-sg__table td.fg-sg__sticky { font-weight: 600; }
.fg-sg__table tbody tr:nth-child(2n) { background: #f8f9fa; }
.fg-sg__table tbody tr { transition: background-color .2s; }
.fg-sg__table tbody tr:hover { background: #e3f2fd; }
.fg-sg__note-img { vertical-align: middle; }
.fg-sg__note-img img { display: block; max-width: 80px; height: auto; margin: 0 auto; }
.fg-sg__table .fg-sg__note { padding: 15px; text-align: left; font-weight: 400; }
.fg-sg__note { line-height: 1.8; }
.fg-sg__note strong { font-weight: 700; }

/* Mẹo + thẻ dịch vụ */
.fg-sg__tip { max-width: 900px; margin: 10px auto; padding: 15px 20px; font-size: 15px; line-height: 1.7; background: #fff; }
.fg-sg__tip strong { font-weight: 600; }
.fg-sg__foot { margin-top: 30px; padding-top: 40px; border-top: 1px solid #e0e0e0; }
.fg-sg__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin-inline: auto; }
.fg-sg__card { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 30px 20px; transition: background-color .3s; }
.fg-sg__card:hover { background: #f5f5f5; }
.fg-sg__card-icon { flex: none; width: 30px; height: 30px; object-fit: contain; }
.fg-sg__card-label { font-size: 19px; line-height: 1.4; font-weight: 700; }

@media (min-width: 769px) {
	.fg-sg__table--tight th { white-space: nowrap; }
}
@media (max-width: 768px) {
	.fg-sg__wrap { padding: 30px 15px; }
	.fg-sg__title { font-size: 28px; }
	.fg-sg__intro { font-size: 14px; }
	.fg-sg__guide { flex-direction: column; gap: 20px; padding: 20px 15px; }
	.fg-sg__diagram { flex: 1; }
	.fg-sg__sum { padding: 15px 20px; }
	.fg-sg__sec-title { font-size: 18px; }
	.fg-sg__body { padding: 20px 15px; }
	.fg-sg__table { min-width: var(--sg-min, 540px); font-size: 12px; border-collapse: separate; border-spacing: 0; }
	.fg-sg__table col { width: var(--sg-wm, var(--sg-w, auto)); }
	.fg-sg__table th, .fg-sg__table td { padding: 8px 4px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
	.fg-sg__table th { letter-spacing: 0; line-height: 1.1; }
	.fg-sg__table .fg-sg__sticky { position: sticky; left: 0; z-index: 2; background: #fff; background-clip: padding-box; box-shadow: 2px 0 rgba(224, 224, 224, .9); }
	.fg-sg__table thead .fg-sg__sticky { z-index: 4; background: #000; box-shadow: 2px 0 rgba(255, 255, 255, .12); }
	.fg-sg__table tbody tr:nth-child(2n) .fg-sg__sticky { background: #f8f9fa; }
	.fg-sg__table .fg-sg__note { padding: 10px 8px; font-size: 12px; line-height: 1.5; white-space: normal; }
	.fg-sg__note-img { padding: 10px 4px !important; }
	.fg-sg__note-img img { width: 56px; }
	.fg-sg__list { margin: 20px 0; }
	.fg-sg__tip { margin: 20px auto; }
	.fg-sg__foot { margin-top: 20px; padding-top: 20px; }
	.fg-sg__cards { grid-template-columns: 1fr; gap: 0; }
	.fg-sg__card { justify-content: flex-start; padding: 15px 20px; }
	.fg-sg__card-icon { width: 25px; height: 25px; }
	.fg-sg__card-label { font-size: 16px; text-align: center; }
}
@media (max-width: 480px) {
	.fg-sg__title { font-size: 24px; }
	.fg-sg__sec-title { font-size: 16px; }
	.fg-sg__table th, .fg-sg__table td { padding: 8px 5px; }
}

/* Tiêu đề cột tiếng Việt dài hơn: cho xuống dòng để không đè sang cột bên (bản EN giữ một dòng như bản gốc) */
:lang(vi) .fg-sg__table th { white-space: normal; overflow-wrap: break-word; }
