/* =========================================================
 * sportify-v19.css — single-sf_tournament.php (V20 redesign)
 * PHẦN 1 hero full width, PHẦN 2 tabs, PHẦN 3 main 2 cột.
 * Dùng :root variables (navy/lime/coral/cream). Responsive.
 * ========================================================= */

/* ---------- PHẦN 1 — HERO ---------- */
.sft-hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	color: #fff;
	background-color: var(--sf-navy, #0B1C2C);
	background-size: cover;
	background-position: center;
}
.sft-hero-in { width: 100%; padding-top: 44px; padding-bottom: 44px; }
.sft-hero-grid {
	display: grid;
	grid-template-columns: 65fr 35fr;
	gap: 40px;
	align-items: center;
}
.sft-hero-left { min-width: 0; }

.sft-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--sf-lime, #C8F000); color: #0B1C2C;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 12.5px; letter-spacing: 1px;
	padding: 7px 15px; border-radius: 999px; margin-bottom: 16px;
}
.sft-badge-ic { display: inline-flex; color: #0B1C2C; }

.sft-h1 {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.18; font-weight: 800;
	color: #fff; margin: 0 0 14px;
}
.sft-sub {
	color: rgba(255,255,255,.85);
	font-size: 15.5px; line-height: 1.65;
	margin: 0 0 24px; max-width: 640px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sft-hero-info {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 22px 30px;
}
.sft-hero-info li { display: flex; align-items: center; gap: 10px; }
.sft-hi-ic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 9px; flex: none;
	background: rgba(255,255,255,.14); color: var(--sf-lime, #C8F000);
}
.sft-hi-tx { display: flex; flex-direction: column; }
.sft-hi-tx small { font-size: 11.5px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }
.sft-hi-tx strong { font-size: 14.5px; color: #fff; font-weight: 700; }

.sft-hero-right { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.sft-logo { text-align: center; margin-bottom: 4px; }
.sft-logo img { max-height: 72px; width: auto; margin: 0 auto; display: block; filter: drop-shadow(0 3px 10px rgba(0,0,0,.3)); }

.sft-st {
	align-self: flex-start;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 12px;
	padding: 6px 13px; border-radius: 999px; color: #fff; background: #1c8a4e;
}
.sft-st.sf-st-live { background: #e8724a; }
.sft-st.sf-st-soon { background: #2f6fb0; }
.sft-st.sf-st-open { background: #1c8a4e; }
.sft-st.sf-st-other { background: #64748b; }
.sft-st-sm { font-size: 10.5px; padding: 4px 10px; }

.sft-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 14.5px;
	padding: 14px 20px; border-radius: 11px; cursor: pointer;
	text-decoration: none; border: 0;
	transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.sft-btn-primary { background: var(--sf-lime, #C8F000); color: #0B1C2C; }
.sft-btn-primary:hover { background: #b6dd00; transform: translateY(-1px); }
.sft-btn-outline { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.sft-btn-outline:hover { background: rgba(255,255,255,.18); }
.sft-btn-full { width: 100%; }
.sft-fav.is-fav { background: #e11d48; color: #fff; border-color: #e11d48; }
.sft-fav.is-fav svg { fill: #fff; }

/* ---------- PHẦN 2 — BREADCRUMB + TABS ---------- */
.sft-crumb-bar { background: #fff; border-bottom: 1px solid #eef1f5; }
.sft-crumb-bar .sf-container { padding-top: 14px; padding-bottom: 14px; }
.sft-crumb-bar .sf-breadcrumb,
.sft-crumb-bar nav { font-size: 13px; color: #64748b; }

.sft-tabs {
	background: #fff; border-bottom: 1px solid #e5e9ee;
	position: sticky; top: 0; z-index: 30;
}
.sft-tabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sft-tabs-in::-webkit-scrollbar { display: none; }
.sft-tab {
	flex: none;
	background: none; border: 0; cursor: pointer;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 14.5px; color: #64748b;
	padding: 16px 18px; position: relative; white-space: nowrap;
	transition: color 160ms ease;
}
.sft-tab:hover { color: #0B1C2C; }
.sft-tab.is-active { color: #0B1C2C; }
.sft-tab.is-active::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
	height: 2px; background: var(--sf-lime, #C8F000);
}

/* ---------- PHẦN 3 — MAIN 2 CỘT ---------- */
.sf-tour-body {
	display: grid;
	grid-template-columns: 65fr 35fr;
	gap: 32px;
	align-items: start;
	padding-top: 34px;
	padding-bottom: 64px;
}
/* Chống Flatsome/theme cha ép display:block hoặc float lên 2 cột con */
.sf-tour-body > .sf-tour-main,
.sf-tour-body > .sf-tour-sidebar {
	display: block;
	float: none;
	width: auto;
	max-width: none;
	min-width: 0;
}
.sf-tour-main { min-width: 0; }

.sft-panel { display: none; }
.sft-panel.is-active { display: block; animation: sftFade 220ms ease-out; }
@keyframes sftFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sft-block {
	background: #fff; border: 1px solid #eef1f5; border-radius: 14px;
	padding: 22px 24px; margin-bottom: 20px;
}
.sft-block-title {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 18px; font-weight: 700; color: #0B1C2C;
	margin: 0 0 16px;
}
.sft-block-title svg { color: var(--sf-coral, #E8724A); flex: none; }
.sft-block-sub {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 15px; font-weight: 700; color: #33445a; margin: 0 0 12px;
}
.sft-content { font-size: 15.5px; line-height: 1.75; color: #33445a; }
.sft-content h2, .sft-content h3 { color: #0B1C2C; }
.sft-content img { max-width: 100%; height: auto; border-radius: 10px; }
.sft-empty { color: #94a3b8; font-style: italic; }

/* Highlights 2x2 */
.sft-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sft-hl { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: #33445a; }
.sft-hl-ic {
	flex: none; width: 38px; height: 38px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(28,138,78,.12); color: #1c8a4e;
}

/* Info grid */
.sft-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.sft-info-cell { display: flex; align-items: flex-start; gap: 11px; }
.sft-info-ic {
	flex: none; width: 38px; height: 38px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #f1f5f9; color: #0B1C2C;
}
.sft-info-tx { display: flex; flex-direction: column; }
.sft-info-tx small { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }
.sft-info-tx strong { font-size: 14.5px; color: #0f172a; font-weight: 700; }

.sft-pills-wrap { border-top: 1px solid #eef1f5; padding-top: 16px; }
.sft-pills-label { display: block; font-size: 12.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.sft-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sft-pill {
	color: #fff; font-weight: 700; font-size: 12.5px;
	padding: 6px 14px; border-radius: 999px;
}

/* Timeline */
.sft-timeline { position: relative; padding-left: 8px; }
.sft-tl-item {
	display: grid; grid-template-columns: 76px 22px 1fr; align-items: center; gap: 10px;
	padding: 9px 0; position: relative;
}
.sft-tl-item:not(:last-child)::before {
	content: ""; position: absolute; left: 86px; top: 50%; bottom: -50%;
	width: 2px; background: #e2e8f0;
}
.sft-tl-time { font-family: var(--sf-mono, monospace); font-weight: 700; font-size: 13.5px; color: #0B1C2C; }
.sft-tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #1c8a4e; z-index: 1; }
.sft-tl-text { font-size: 14.5px; color: #33445a; }

/* Map + route */
.sft-map { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sft-map iframe { width: 100%; height: 360px; border: 0; display: block; }
.sft-route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sft-route-img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #eef1f5; }
.sft-route-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sft-map-btn { margin-top: 4px; }

/* Gallery grid 3 cột */
.sft-gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sft-gal-img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #eef1f5; }
.sft-gal-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 220ms ease; }
.sft-gal-img:hover img { transform: scale(1.05); }

/* FAQ accordion */
.sft-faq-item { border-bottom: 1px solid #eef1f5; }
.sft-faq-item:last-child { border-bottom: 0; }
.sft-faq-q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 15px; color: #0f172a;
	padding: 15px 0;
}
.sft-faq-ic { font-size: 20px; color: #1c8a4e; transition: transform 180ms ease; flex: none; }
.sft-faq-q[aria-expanded="true"] .sft-faq-ic { transform: rotate(45deg); }
.sft-faq-a { max-height: 0; overflow: hidden; transition: max-height 240ms ease; }
.sft-faq-a p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: #475569; }
.sft-faq-item.is-open .sft-faq-a { max-height: 500px; }

/* Others */
.sft-others-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sft-other {
	display: flex; gap: 12px; text-decoration: none; color: inherit;
	border: 1px solid #eef1f5; border-radius: 12px; overflow: hidden;
	transition: box-shadow 160ms ease, transform 160ms ease;
}
.sft-other:hover { box-shadow: 0 8px 22px rgba(15,23,42,.10); transform: translateY(-2px); }
.sft-other-media { width: 96px; flex: none; background: #eef1f5; overflow: hidden; }
.sft-other-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sft-other-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 0; min-width: 0; }
.sft-other-body strong { font-family: var(--sf-head, "Space Grotesk", sans-serif); font-size: 14px; color: #0f172a; line-height: 1.35; }
.sft-other-body small { font-size: 12.5px; color: #94a3b8; }

/* ---------- SIDEBAR STICKY ---------- */
.sf-tour-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; align-self: start; }
.sft-card {
	background: #fff; border: 1px solid #eef1f5; border-radius: 14px;
	padding: 20px; box-shadow: 0 2px 14px rgba(15,23,42,.06);
}
.sft-card-title {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 17px; font-weight: 700; color: #0B1C2C; margin: 0 0 6px;
}
.sft-card-sub { font-size: 13px; color: #7b8a99; margin: 0 0 16px; line-height: 1.5; }

.sft-pricing { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.sft-price-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; background: #f8fafc; border-radius: 10px;
}
.sft-price-name { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #33445a; }
.sft-price-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sft-price-val { font-family: var(--sf-mono, monospace); font-weight: 700; color: #1c8a4e; font-size: 14.5px; }

.sft-secure {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 12px; color: #7b8a99; margin: 12px 0 0;
}
.sft-secure svg { color: #1c8a4e; }

.sft-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sft-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: #33445a; }
.sft-ct-ic {
	flex: none; width: 32px; height: 32px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #f1f5f9; color: #0B1C2C;
}
.sft-contact a { color: #1c8a4e; text-decoration: none; font-weight: 600; }
.sft-contact a:hover { text-decoration: underline; }

/* Lightbox */
.sft-lb {
	position: fixed; inset: 0; z-index: 99999; display: none;
	background: rgba(6,12,22,.92); align-items: center; justify-content: center; padding: 24px;
}
.sft-lb.is-open { display: flex; }
.sft-lb img { max-width: 92vw; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.sft-lb-close {
	position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.sft-hero { min-height: 340px; }
	.sft-hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.sft-hero-right { flex-direction: row; flex-wrap: wrap; align-items: center; }
	.sft-hero-right .sft-btn { flex: 1; min-width: 160px; }
}
@media (max-width: 900px) {
	/* 2 cột → 1 cột, sidebar xuống dưới nội dung */
	.sf-tour-body { grid-template-columns: 1fr; gap: 24px; }
	.sf-tour-sidebar { position: static; top: auto; }
}
@media (max-width: 768px) {
	.sft-hero { min-height: 280px; }
	.sft-hero-info { gap: 16px; flex-direction: column; align-items: flex-start; }
	.sft-highlights, .sft-info-grid, .sft-others-list { grid-template-columns: 1fr; }
	.sft-route-grid, .sft-gal-grid { grid-template-columns: 1fr 1fr; }
	.sft-block { padding: 18px; }
}
@media (max-width: 480px) {
	.sft-hero-right { flex-direction: column; }
	.sft-route-grid, .sft-gal-grid { grid-template-columns: 1fr; }
	.sft-tl-item { grid-template-columns: 58px 18px 1fr; }
	.sft-tl-item:not(:last-child)::before { left: 66px; }
}

/* =========================================================
 * V20b — CARD 3 (Sự kiện sắp tới) + PHẦN 4 (Giải liên quan)
 * ========================================================= */

/* CARD heading có link phải */
.sft-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sft-card-head .sft-card-title { margin: 0; }
.sft-card-link {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 12.5px; color: #1c8a4e;
	text-decoration: none; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 4px;
}
.sft-card-link:hover { text-decoration: underline; }

/* Item "Sự kiện sắp tới" */
.sft-upcoming { display: flex; flex-direction: column; gap: 10px; }
.sft-up {
	display: flex; gap: 11px; text-decoration: none; color: inherit;
	padding: 8px; border-radius: 10px; transition: background-color 160ms ease;
}
.sft-up:hover { background: #f8fafc; }
.sft-up-thumb {
	width: 80px; height: 80px; flex: none; border-radius: 9px; overflow: hidden;
	background: #eef1f5; display: block;
}
.sft-up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sft-up-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; justify-content: center; }
.sft-up-body strong {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sft-up-body small { font-size: 12px; color: #94a3b8; }
.sft-up-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.sft-up-pill {
	font-size: 10.5px; font-weight: 600; color: #475569;
	background: #f1f5f9; padding: 2px 8px; border-radius: 999px;
}

/* ---------- PHẦN 4 — GIẢI ĐẤU LIÊN QUAN ---------- */
.sft-related { background: #f8f8f8; padding: 46px 0 56px; margin-top: 10px; }
.sft-related-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.sft-related-ttl {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #0B1C2C; margin: 0;
}
.sft-related-ttl svg { color: var(--sf-coral, #E8724A); flex: none; }
.sft-related-more {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 14px; color: #1c8a4e;
	text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.sft-related-more:hover { text-decoration: underline; }

.sft-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sft-rel {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 14px; text-decoration: none; color: inherit;
	box-shadow: 0 2px 12px rgba(15,23,42,.05);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.sft-rel:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,28,44,.12); }
.sft-rel-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.sft-rel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sft-rel-sport {
	position: absolute; top: 10px; left: 10px;
	background: var(--sf-lime, #C8F000); color: #0B1C2C;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 10.5px; letter-spacing: .5px;
	padding: 4px 10px; border-radius: 999px;
}
.sft-rel-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 15px 16px; }
.sft-rel-name {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	padding-right: 26px;
}
.sft-rel-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sft-rel-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #64748b; }
.sft-rel-meta svg { color: #94a3b8; flex: none; }
.sft-rel-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.sft-rel-pill {
	font-size: 11px; font-weight: 600; color: #475569;
	background: #f1f5f9; padding: 3px 9px; border-radius: 999px;
}
.sft-rel-arrow {
	position: absolute; right: 14px; bottom: 16px;
	color: #1c8a4e; font-size: 18px; font-weight: 700;
	transition: transform 160ms ease;
}
.sft-rel:hover .sft-rel-arrow { transform: translateX(3px); }

@media (max-width: 1200px) {
	.sft-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.sft-related { padding: 34px 0 44px; }
	.sft-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
	.sft-related-grid { grid-template-columns: 1fr; }
	.sft-related-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
