/*
Theme Name: TF88VN365 Child
Description: Independent Flatsome child theme for tf88vn365.com.
Author: TF88VN365
Template: flatsome
Version: 1.0.0
Text Domain: tf88vn365
*/

:root {
  --tf-bg: #0f1013;
  --tf-bg-soft: #181a20;
  --tf-gold: #e3b650;
  --tf-gold-dark: #a97e27;
  --tf-orange: #ef672a;
  --tf-blue: #47ace3;
  --tf-text: #25262a;
  --tf-muted: #6e7179;
  --tf-border: #e5e7eb;
  --tf-page: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tf88vn365-site {
  margin: 0;
  color: var(--tf-text);
  background: #f5f6f8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a { color: #dc4f62; text-decoration: none; }
a:hover { color: var(--tf-orange); }
img { display: block; max-width: 100%; height: auto; }

.tf-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.tf-topbar { background: #0b0c0e; color: #c7c8cc; border-bottom: 1px solid #2a2c31; }
.tf-topbar .tf-shell { display: flex; justify-content: space-between; align-items: center; min-height: 34px; font-size: 13px; }
.tf-topbar-links { display: flex; gap: 18px; }
.tf-topbar a { color: #d7d8db; }

.tf-header { background: var(--tf-bg); color: #fff; }
.tf-brand-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; min-height: 98px; }
.tf-logo img { width: 220px; height: auto; }
.tf-tagline { margin: 0; color: #c7c8cc; font-size: 14px; text-align: center; }
.tf-search { color: #fff; font-size: 23px; line-height: 1; }

.tf-nav { border-top: 1px solid #34363b; background: #111216; }
.tf-nav-list { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.tf-nav-list > li > a { display: block; padding: 17px 14px; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tf-nav-list > li > a:hover, .tf-nav-list > .current-menu-item > a { color: var(--tf-gold); background: #1c1e24; }
.tf-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 28px; padding: 10px 0; }

.tf-titlebar { background: #f0f1f3; border-bottom: 1px solid #e3e5e8; }
.tf-titlebar h1 { margin: 0; padding: 13px 0; font-size: 21px; line-height: 1.35; }

.tf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; padding: 28px 0 48px; align-items: start; }
.tf-content, .tf-sidebar-card { background: var(--tf-page); border: 1px solid var(--tf-border); border-radius: 4px; box-shadow: 0 4px 18px rgba(19, 21, 28, .05); }
.tf-content { overflow: hidden; }
.tf-content-inner { padding: 0 30px 36px; }

.tf-link-panel { padding: 25px 30px 18px; text-align: center; background: #fff; }
.tf-link-panel h2 { margin: 0 0 14px; font-size: 18px; }
.tf-button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 18px; }
.tf-button { display: inline-flex; min-width: 150px; justify-content: center; align-items: center; min-height: 45px; padding: 10px 22px; border-radius: 7px; color: #fff; font-weight: 800; letter-spacing: .1px; box-shadow: inset 0 1px rgba(255,255,255,.28), 0 4px 11px rgba(0,0,0,.13); }
.tf-button:hover { color: #fff; transform: translateY(-1px); }
.tf-button-gold { background: linear-gradient(180deg, #e4c466, var(--tf-gold-dark)); }
.tf-button-blue { background: linear-gradient(180deg, #5dc2ec, #238dbd); }
.tf-notice { margin: 0; padding: 14px 17px; border: 1px dashed #6888a1; background: #f2f7fb; text-align: left; border-radius: 3px; }

.tf-hero { position: relative; background: #11131c; }
.tf-hero img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.tf-hero-copy { position: absolute; top: 50%; right: 4%; width: 43%; transform: translateY(-50%); color: #fff; text-align: right; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
.tf-hero-copy strong { display: block; color: #f3c857; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.15; }
.tf-hero-copy span { display: block; margin-top: 7px; font-size: clamp(13px, 1.25vw, 18px); }

.tf-content h2, .tf-content h3 { color: #1e2025; line-height: 1.35; text-align: center; }
.tf-content h2 { margin: 30px 0 12px; font-size: 24px; }
.tf-content h3 { margin: 28px 0 10px; font-size: 20px; }
.tf-content p { margin: 0 0 15px; }
.tf-lead { font-size: 17px; }
.tf-checklist { padding: 0; margin: 14px 0 22px; list-style: none; }
.tf-checklist li { position: relative; padding: 8px 0 8px 29px; border-bottom: 1px solid #eceef1; }
.tf-checklist li::before { content: "✓"; position: absolute; left: 3px; color: #ef5268; font-weight: 900; }
.tf-feature-table { width: 100%; margin: 18px 0 26px; border-collapse: collapse; }
.tf-feature-table td { padding: 10px 13px; border: 1px solid #e7e8eb; }
.tf-feature-table tr:nth-child(even) { background: #f8f9fa; }
.tf-section-image { margin: 22px 0; border-radius: 5px; overflow: hidden; }
.tf-section-image img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

.tf-sidebar { display: grid; gap: 22px; }
.tf-sidebar-card { padding: 21px; }
.tf-sidebar-card h2 { margin: 0 0 17px; font-size: 21px; }
.tf-sidebar-card h2::before { content: "●"; margin-right: 9px; color: #df4d69; text-shadow: 8px 0 #7057dd; }
.tf-side-links { margin: 0; padding: 0; list-style: none; }
.tf-side-links li { border-bottom: 1px solid #eceef1; }
.tf-side-links a { display: block; padding: 12px 0; color: #292b30; font-weight: 700; line-height: 1.45; }
.tf-side-links a:hover { color: var(--tf-orange); }
.tf-side-note { color: var(--tf-muted); font-size: 14px; }

.tf-page-main { min-height: 60vh; padding: 40px 0 60px; }
.tf-page-card { background: #fff; padding: 34px; border: 1px solid var(--tf-border); box-shadow: 0 4px 18px rgba(19,21,28,.05); }
.tf-page-card h1 { margin-top: 0; line-height: 1.3; }

.tf-footer { background: #0e0f12; color: #c6c8cd; border-top: 3px solid #c79431; }
.tf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 38px 0 28px; }
.tf-footer h2 { color: #fff; font-size: 18px; }
.tf-footer ul { list-style: none; margin: 0; padding: 0; }
.tf-footer li { margin-bottom: 8px; }
.tf-footer a { color: #d9dade; }
.tf-footer-bottom { padding: 17px 0; border-top: 1px solid #292b31; text-align: center; font-size: 13px; }

@media (max-width: 980px) {
  .tf-shell { width: min(100% - 24px, 760px); }
  .tf-topbar { display: none; }
  .tf-brand-row { grid-template-columns: auto 1fr auto; min-height: 66px; }
  .tf-logo img { width: 165px; }
  .tf-tagline { display: none; }
  .tf-menu-toggle { display: block; grid-column: 1; grid-row: 1; }
  .tf-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .tf-search { grid-column: 3; grid-row: 1; }
  .tf-nav { display: none; }
  .tf-nav.is-open { display: block; }
  .tf-nav-list { display: block; padding: 6px 0 12px; }
  .tf-nav-list > li > a { padding: 12px 16px; }
  .tf-layout { grid-template-columns: 1fr; }
  .tf-sidebar { display: none; }
  .tf-footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  body.tf88vn365-site { font-size: 15px; }
  .tf-shell { width: calc(100% - 20px); }
  .tf-titlebar h1 { font-size: 20px; }
  .tf-layout { padding-top: 18px; }
  .tf-content-inner { padding: 0 16px 28px; }
  .tf-link-panel { padding: 22px 15px 14px; }
  .tf-button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tf-button { min-width: 0; padding: 9px 10px; font-size: 15px; }
  .tf-hero img { min-height: 180px; object-position: 37% center; }
  .tf-hero-copy { display: none; }
  .tf-content h2 { font-size: 21px; }
  .tf-content h3 { font-size: 19px; }
  .tf-page-card { padding: 24px 18px; }
}
