/* Sàn công nghệ Robot3T: dùng font của giao diện Flatsome, màu theo thương hiệu */
.r3t-san {
	--r3t-navy: #133a66;
	--r3t-blue: #1f6fb5;
	--r3t-blue-soft: #e8f1fa;
	--r3t-need: #a85d00;
	--r3t-need-soft: #fdf1e2;
	--r3t-ink: #1d2733;
	--r3t-muted: #5b6b7c;
	--r3t-line: #d5dee8;
	--r3t-ok: #1c7a46;
	--r3t-err: #b3261e;
	color: var(--r3t-ink);
	margin: 0 0 2rem;
}
.r3t-san *, .r3t-san *::before, .r3t-san *::after { box-sizing: border-box; }

/* Nút */
.r3t-san .r3t-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 1.25rem; margin: 0;
	border: 1.5px solid var(--r3t-blue); border-radius: 4px;
	background: #fff; color: var(--r3t-blue);
	font-weight: 600; font-size: 0.95rem; text-transform: none; letter-spacing: 0;
	line-height: 1.2; text-decoration: none; cursor: pointer;
}
.r3t-san .r3t-btn:hover { background: var(--r3t-blue-soft); }
.r3t-san .r3t-btn--primary { background: var(--r3t-blue); color: #fff; }
.r3t-san .r3t-btn--primary:hover { background: var(--r3t-navy); border-color: var(--r3t-navy); }
.r3t-san .r3t-btn:focus-visible,
.r3t-san a:focus-visible,
.r3t-san input:focus-visible,
.r3t-san select:focus-visible,
.r3t-san textarea:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.r3t-san .r3t-btn[disabled] { opacity: .6; cursor: progress; }

.r3t-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }

/* Khối tìm kiếm AI: điểm nhấn duy nhất của trang danh sách */
.r3t-ai {
	background: var(--r3t-navy); color: #fff;
	padding: 1.5rem; border-radius: 6px; margin-bottom: 2rem;
}
.r3t-ai__title { color: #fff; font-size: 1.35rem; margin: 0 0 1rem; line-height: 1.3; }
.r3t-ai__form { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; margin: 0; }
.r3t-ai__form textarea {
	width: 100%; margin: 0; min-height: 84px; resize: vertical;
	border: 0; border-radius: 4px; padding: .75rem; font-size: 1rem; color: var(--r3t-ink);
}
.r3t-ai .r3t-btn--primary { background: #fff; color: var(--r3t-navy); border-color: #fff; }
.r3t-ai .r3t-btn--primary:hover { background: var(--r3t-blue-soft); }
.r3t-ai__out:not(:empty) { margin-top: 1.25rem; }
.r3t-ai__out .r3t-empty { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.r3t-ai__out .r3t-empty .r3t-btn { background: #fff; }
.r3t-ai__status { color: #cfe0f2; margin: 0; }

/* Tab và bộ lọc */
.r3t-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--r3t-line); margin-bottom: 1rem; }
.r3t-tabs a {
	padding: .6rem 1rem; margin-bottom: -2px; border-bottom: 2px solid transparent;
	color: var(--r3t-muted); font-weight: 600; text-decoration: none;
}
.r3t-tabs a.is-active { color: var(--r3t-blue); border-bottom-color: var(--r3t-blue); }
.r3t-filter { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; margin-bottom: 1.5rem; }
.r3t-filter input, .r3t-filter select { margin: 0; height: 44px; }

/* Thẻ tin */
.r3t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.r3t-card { background: #fff; border: 1px solid var(--r3t-line); border-radius: 6px; }
.r3t-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.r3t-card__link:hover .r3t-card__title { color: var(--r3t-blue); }
.r3t-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f6; }
.r3t-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r3t-card__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.r3t-card__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.r3t-card__cat { font-size: .82rem; color: var(--r3t-muted); }
.r3t-tag { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .8rem; font-weight: 700; line-height: 1.5; }
.r3t-tag--need { background: #fdf0e1; color: #8a4800; }
.r3t-tag--solution { background: #e6eff8; color: #154f8c; }
.r3t-tag--equipment { background: #e1f2f1; color: #0b5c5a; }
.r3t-tag--transfer { background: #efe8f7; color: #5a3290; }
.r3t-tag--expert { background: #e7f1e4; color: #2e5a24; }
.r3t-tag--job { background: #f8e6ee; color: #8a2350; }
.r3t-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--r3t-ink); }
.r3t-card__sum { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--r3t-muted); }
.r3t-card__facts { margin: auto 0 0; padding-top: .4rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .88rem; }
.r3t-card__facts em { font-style: normal; color: var(--r3t-muted); }
.r3t-card__why { margin: .25rem 0 0; padding: .55rem .7rem; background: var(--r3t-blue-soft); border-radius: 3px; font-size: .88rem; line-height: 1.45; }


.r3t-pager { display: flex; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.r3t-pager a, .r3t-pager span {
	min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--r3t-line); border-radius: 4px; text-decoration: none;
}
.r3t-pager span { background: var(--r3t-blue); border-color: var(--r3t-blue); color: #fff; font-weight: 700; }

.r3t-empty { border: 1px dashed var(--r3t-line); border-radius: 4px; padding: 1.5rem; text-align: center; }
.r3t-empty p { margin: 0 0 .75rem; }
.r3t-empty p:last-child { margin: 0; }

/* Form */
.r3t-form { margin: 0; }
.r3t-field { margin-bottom: 1rem; }
.r3t-field label, .r3t-form legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.r3t-field input[type="text"], .r3t-field input[type="email"], .r3t-field input[type="tel"],
.r3t-field select, .r3t-field textarea { width: 100%; margin: 0; }
.r3t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.r3t-hint { font-size: .88rem; color: var(--r3t-muted); margin: .35rem 0 0; }
.r3t-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.r3t-contact { border-top: 1px solid var(--r3t-line) !important; padding-top: 1.25rem !important; }

.r3t-switch { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.r3t-switch legend { grid-column: 1 / -1; }
.r3t-switch__opt { display: block; cursor: pointer; margin: 0; }
.r3t-switch__opt input { position: absolute; opacity: 0; }
.r3t-switch__opt span {
	display: block; height: 100%; padding: .85rem 1rem; border: 1.5px solid var(--r3t-line); border-radius: 4px;
	font-weight: 400; color: var(--r3t-muted); line-height: 1.4;
}
.r3t-switch__opt span strong { display: block; color: var(--r3t-ink); font-size: 1.05rem; }
.r3t-switch__opt input:checked + span { border-color: var(--r3t-blue); background: var(--r3t-blue-soft); }
.r3t-switch__opt input[value="need"]:checked + span, .r3t-switch__opt input[value="job"]:checked + span { border-color: var(--r3t-need); background: var(--r3t-need-soft); }
.r3t-switch__opt input:focus-visible + span { outline: 3px solid #f2b705; outline-offset: 2px; }

.r3t-agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0 0 1.25rem; line-height: 1.5; }
.r3t-agree input { margin: .3rem 0 0; flex: none; }

.r3t-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.r3t-notice { padding: .9rem 1.1rem; border-radius: 4px; margin-bottom: 1.25rem; border-left: 4px solid; }
.r3t-notice p { margin: 0 0 .4rem; }
.r3t-notice p:last-child, .r3t-notice ul { margin-bottom: 0; }
.r3t-notice--ok { background: #e9f6ee; border-color: var(--r3t-ok); }
.r3t-notice--err { background: #fcebea; border-color: var(--r3t-err); }
.r3t-notice--warn { background: #fdf0e1; border-color: #b45f00; }
.r3t-san [hidden] { display: none !important; }
.r3t-row--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.r3t-field input[type="number"], .r3t-field input[type="date"] { width: 100%; margin: 0; }

/* Thanh dịch */
.r3t-translate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .92rem; color: var(--r3t-muted); }
.r3t-san .r3t-chip { min-height: 36px; padding: 0 .8rem; margin: 0; border: 1px solid var(--r3t-line); border-radius: 999px; background: #fff; color: var(--r3t-ink); font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.r3t-san .r3t-chip[aria-pressed="true"] { border-color: var(--r3t-blue); background: var(--r3t-blue-soft); }
.r3t-tr-out { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--r3t-line); border-radius: 6px; background: #fff; }
.r3t-tr-title { font-size: 1.2rem; margin: 0 0 .75rem; }

/* Trang chi tiết */
.r3t-single h2 { font-size: 1.2rem; margin: 2rem 0 .9rem; }
.r3t-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--r3t-line); }
.r3t-facts > div { padding: .6rem .25rem; border-bottom: 1px solid var(--r3t-line); }
.r3t-facts dt { font-size: .82rem; color: var(--r3t-muted); font-weight: 400; margin: 0; }
.r3t-facts dd { margin: .1rem 0 0; font-weight: 600; }
.r3t-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.r3t-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 3px; }
.r3t-contact-box { margin-top: 2.5rem; padding: 1.5rem; background: #f4f7fa; border-radius: 6px; }
.r3t-contact-box h2 { margin-top: 0; }

@media (max-width: 640px) {
	.r3t-ai__form, .r3t-filter, .r3t-row, .r3t-switch { grid-template-columns: 1fr; }
	.r3t-ai { padding: 1.1rem; }
	.r3t-tabs a { padding: .6rem .7rem; }
}

/* Chống giao diện (Flatsome) ghi đè kiểu dt/dd: in hoa, nằm cùng dòng */
.r3t-san .r3t-facts > div { display: block; }
.r3t-san .r3t-facts dt { display: block; float: none; width: auto; margin: 0 0 2px; padding: 0; font-size: .82rem; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; color: var(--r3t-muted); }
.r3t-san .r3t-facts dd { display: block; float: none; margin: 0; padding: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: 0; color: var(--r3t-ink); }

/* 0.2.2: tăng cỡ chữ cho dễ đọc */
.r3t-san { font-size: 16px; line-height: 1.55; }
.r3t-san .r3t-card__cat { font-size: 14px; }
.r3t-san .r3t-tag { font-size: 13px; }
.r3t-san .r3t-card__title { font-size: 19px; line-height: 1.35; }
.r3t-san .r3t-card__sum { font-size: 15.5px; line-height: 1.55; }
.r3t-san .r3t-card__facts { font-size: 15px; }
.r3t-san .r3t-card__why { font-size: 15px; }
.r3t-san .r3t-tabs a { font-size: 16px; }
.r3t-san .r3t-hint { font-size: 14.5px; }
.r3t-san .r3t-facts dt { font-size: 14px; }
.r3t-san .r3t-facts dd { font-size: 16.5px; }
.r3t-san .r3t-field label, .r3t-san .r3t-form legend { font-size: 16px; }
.r3t-san .r3t-field input, .r3t-san .r3t-field select, .r3t-san .r3t-field textarea,
.r3t-san .r3t-filter input, .r3t-san .r3t-filter select, .r3t-san .r3t-ai__form textarea { font-size: 16px; }
.r3t-san .r3t-switch__opt span { font-size: 15px; }
.r3t-san .r3t-switch__opt span strong { font-size: 17px; }
.r3t-san .r3t-btn { font-size: 16px; }
.r3t-san .r3t-translate, .r3t-san .r3t-chip { font-size: 15px; }
.r3t-single .r3t-desc { font-size: 17px; line-height: 1.7; }

/* 0.2.3: ảnh */
.r3t-san .r3t-card__media { background: #f4f6f9; }
.r3t-san .r3t-card__img { object-fit: contain; padding: 8px; }
.r3t-single .r3t-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.r3t-single .r3t-gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #f4f6f9; }
.r3t-single .r3t-gallery--one { display: block; }
.r3t-single .r3t-gallery--one img { width: 100%; max-height: 420px; aspect-ratio: auto; object-fit: contain; border-radius: 6px; }

/* 0.2.4: trang danh sách và đăng tin tự có lề hai bên, dùng tốt với mẫu trang Toàn chiều rộng */
.r3t-san.r3t-san--page {
	box-sizing: border-box;
	width: 100%;
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 4vw, 56px);
	padding-right: clamp(16px, 4vw, 56px);
	padding-top: 24px;
}
.r3t-san--page .r3t-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
/* Form dài thì đọc khó nếu quá rộng: giữ form ở giữa, rộng tối đa 1100px */
.r3t-san--form > .r3t-form,
.r3t-san--form > .r3t-notice { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* 0.3.0: chuyển ngôn ngữ trên trang tin */
.r3t-langswitch { margin: 0 0 1rem; font-size: 14.5px; color: var(--r3t-muted); }
.r3t-langswitch a, .r3t-langswitch span { display: inline-block; margin-left: .35rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--r3t-line); }
.r3t-langswitch span[aria-current] { border-color: var(--r3t-blue); background: var(--r3t-blue-soft); color: var(--r3t-ink); font-weight: 600; }
