/*
 * Tablet (601px - 1169px): no tablet design in Figma, so this range reuses the mobile
 * header and off-canvas menu, hides both sidebars and the bottom bar, keeps desktop content.
 * Mobile (<= 600px) only gets the footer corrections from the Figma mobile design;
 * desktop (>= 1170px) only gets the header width fix and the category filter colour.
 * Load order of dev-css/*.css is not guaranteed, so selectors are prefixed with `html`
 * to win over custom.css rules of the same specificity.
 */

/* ---------- 850px - 1169px: switch the desktop header to the mobile header ---------- */
@media (min-width: 850px) and (max-width: 1169px) {
	html #header .header-inner > .hide-for-medium {
		display: none !important;
	}

	html #header .header-inner > .show-for-medium {
		display: block !important;
	}

	html #masthead .header-inner {
		padding: 0 !important;
	}

	html .header-inner .nav {
		flex-wrap: nowrap;
	}

	html .medium-logo-center .flex-left {
		flex: 1 1 0;
		order: 1;
		max-width: 30px;
	}

	html .header .medium-logo-center .logo {
		order: 2;
		margin: 0;
		text-align: center;
	}

	html .medium-logo-center .flex-right {
		flex: 1 1 0;
		order: 3;
	}

	html .header .header-wrapper .nav > li > a {
		padding: 0;
	}

	html .nav > li > a > i.icon-menu {
		font-size: 24px !important;
		color: #fff;
	}

	html .nav > li.html.html_top_right_text {
		padding: 4px 8px;
		width: 44px;
		height: 20px;
		background: #dc010d;
		border-radius: 5px;
		font-style: normal;
		font-weight: 700;
		font-size: 12px;
		line-height: 100%;
		color: #fff;
		text-transform: uppercase;
	}

	html .nav > li.html.html_topbar_right {
		display: flex;
	}

	html .header .gift-icon,
	html .header .gift-icon__svg {
		width: 24px;
		height: 24px;
	}

	html .header .gift-icon__badge {
		top: 0;
		right: -7px;
	}

	html .header .gift-icon__popup::before {
		right: 6px;
	}

	html body .header #logo img,
	html .header .stuck #logo img {
		max-height: 40px !important;
		margin: 0 !important;
	}
}

/* ---------- <= 1169px: sidebars are hidden, so the main column takes the full row ----------
 * Between 550px and 600px Flatsome's medium-8 (66.7%) applies while custom.css already hides
 * the sidebars, which left an empty strip on the right. */
@media (max-width: 1169px) {
	html .content-main {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

/* ---------- 601px - 1169px: hamburger menu, no sidebars, no bottom bar ---------- */
@media (min-width: 601px) and (max-width: 1169px) {
	/* Sidebars */
	html .sidebar-left,
	html .sidebar-right,
	html .content-right,
	html .page-two-sidebar .sidebar-left,
	html .page-two-sidebar .sidebar-right {
		display: none !important;
	}

	html .page-two-sidebar {
		display: block;
	}

	html .page-two-sidebar .content.container {
		width: 100%;
		min-width: 0;
	}

	/* The red bottom bar (#wide-nav) belongs to the mobile design only */
	html #wide-nav,
	html .header-wrapper.stuck #wide-nav {
		display: none !important;
	}

	/* Off-canvas menu: a 400px drawer styled like the mobile menu */
	html .off-canvas-left .mfp-content,
	html .off-canvas-right .mfp-content {
		--drawer-width: 400px;
		width: var(--drawer-width);
		scrollbar-width: none;
	}

	html .off-canvas-left .mfp-content::-webkit-scrollbar,
	html .off-canvas-right .mfp-content::-webkit-scrollbar {
		display: none;
	}

	html .off-canvas.mfp-ready .mfp-close {
		left: 0;
		top: 16px;
		opacity: 1;
	}

	html .off-canvas .sidebar-menu {
		padding: 15px 0 !important;
	}

	html .off-canvas:not(.off-canvas-center) li.html {
		padding: 0 16px !important;
		border: 0;
	}

	html .off-canvas .nav .hot-leagues__list {
		background: transparent;
	}

	html .off-canvas .hot-leagues {
		max-width: 100%;
		background: transparent;
		border: 1px solid #373737;
	}

	html .off-canvas .hot-leagues__head {
		position: relative;
		margin-left: 16px;
		margin-right: 16px;
		padding-left: 30px;
		padding-right: 0;
	}

	html .off-canvas .hot-leagues__head::before {
		position: absolute;
		left: 0;
		content: '';
		width: 20px;
		height: 20px;
		background-image: url(/wp-content/uploads/2026/09/trophy.svg);
		background-position: center;
		background-size: contain;
	}

	html .off-canvas .html_nav_position_text .hot-leagues__head::before {
		background-image: url(/wp-content/uploads/2026/09/earth.svg);
	}

	html .off-canvas .hot-leagues__list {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}

	html .off-canvas .nav.nav-vertical .hot-leagues--country .hot-leagues__list {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	html .off-canvas .nav.nav-vertical .hot-leagues--country li {
		width: calc(50% - 4px);
	}

	html .off-canvas .mobile-sidebar .hot-leagues__item {
		padding: 6px 16px;
	}

	html .off-canvas .mobile-sidebar .hot-leagues__item .hot-leagues__link {
		padding-left: 0 !important;
	}

	html .off-canvas .header-social-icons .social-icons i {
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 8px !important;
		background: #212121;
		border-radius: 4px;
		font-size: 22px;
	}

	html .off-canvas .social-icons.follow-icons {
		display: flex;
		justify-content: center;
		gap: 20px;
		text-align: center;
	}

	html .off-canvas .mobile-sidebar-social-text {
		width: 100%;
		padding-top: 20px;
		font-family: 'Be Vietnam Pro', sans-serif;
		font-weight: 400;
		font-size: 12px;
		line-height: 150%;
		text-align: center;
	}
}

/* ---------- <= 1169px: footer follows the Figma mobile footer ---------- */
@media (max-width: 1169px) {
	html #footer .col-logo-social p {
		font-size: 12px !important;
		line-height: 150%;
		text-align: center;
	}

	html #footer .social-icons.list-social-ft {
		display: flex;
		justify-content: center;
		gap: 12px;
	}

	html #footer .social-icons.list-social-ft a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		padding: 0;
		margin: 0 !important;
	}

	html #footer .social-icons.list-social-ft a i {
		font-size: 18px;
		width: auto;
		min-width: 0;
		height: auto;
		padding: 0 !important;
	}

}

/* Figma mobile wraps the league / keyword pills inside a ~270px wide block (2-3-3 and 2-3-2 rows).
 * Vertical rhythm from the 375px frame: headings 10px above their links, links 28.5px apart,
 * pills 34px high with 10px / 16px gaps, second link column starting at 192px. */
@media (max-width: 600px) {
	html .list-row-ft > .col:nth-child(4) .ux-menu,
	html .list-row-ft > .col:nth-child(5) .ux-menu {
		max-width: 270px;
		/* the heading's bottom margin would swallow a top margin */
		padding-top: 3.5px;
		column-gap: 10px;
		row-gap: 16px;
	}

	html .list-row-ft > .col.col-logo-social {
		padding-bottom: 15px;
	}

	html .list-row-ft > .col.cnt-menu-ft {
		padding-bottom: 16px;
	}

	html .list-row-ft > .col.cnt-menu-ft:nth-child(3) {
		padding-left: 5px;
	}

	html .list-row-ft > .col.cnt-menu-ft:nth-child(4) {
		padding-bottom: 10px;
	}

	html .list-row-ft > .col.cnt-menu-ft:nth-child(5) {
		padding-bottom: 9px;
	}

	html .list-row-ft > .col.cnt-menu-ft p {
		margin-bottom: 10px;
	}

	html .list-row-ft > .col.cnt-menu-ft:nth-child(2) .ux-menu-link__link,
	html .list-row-ft > .col.cnt-menu-ft:nth-child(3) .ux-menu-link__link {
		min-height: 28.5px;
	}

	html .list-row-ft > .col:nth-child(4) .ux-menu-link__link,
	html .list-row-ft > .col:nth-child(5) .ux-menu-link__link {
		height: 34px;
		min-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	html .absolute-footer {
		padding-bottom: 19px !important;
	}
}

/* 601px - 1169px: same column layout as the mobile footer */
@media (min-width: 601px) and (max-width: 1169px) {
	html footer .row-divided > .col + .col:not(.large-12) {
		border-left: 0 !important;
	}

	html footer .row .col {
		padding-bottom: 20px;
	}

	html .list-row-ft > .col.col-logo-social,
	html .list-row-ft > .col.cnt-menu-ft:nth-child(4),
	html .list-row-ft > .col.cnt-menu-ft:nth-child(5) {
		flex-basis: 100%;
		max-width: 100%;
	}

	html .list-row-ft > .col.cnt-menu-ft:nth-child(2),
	html .list-row-ft > .col.cnt-menu-ft:nth-child(3) {
		flex-basis: 50%;
		max-width: 50%;
	}

	html #footer .ux-logo.logo-ft {
		width: 216px !important;
		display: table;
		margin: 0 auto;
	}

	html #footer .ux-logo.logo-ft .ux-logo-link {
		display: flex;
		justify-content: center;
		padding: 0 0 15px !important;
	}

	html #footer .logo-ft img {
		height: 37px !important;
	}

	html .cnt-menu-ft p {
		font-weight: 700;
		font-size: 14px;
		line-height: 150%;
	}

	html .cnt-menu-ft .ux-menu-link__link {
		font-size: 12px;
		line-height: 150%;
	}

	html .copyright-footer {
		font-weight: 400;
		font-size: 12px;
		line-height: 150%;
		text-align: center;
	}
}

/* Copyright sits on the footer background in both Figma frames, not on a darker strip */
html .absolute-footer {
	background-color: #1e1e1e;
}

/* ---------- >= 1170px: footer columns, icons and pills measured from the Figma desktop frame ---------- */
@media (min-width: 1170px) {
	html .list-row-ft > .col:nth-child(1) {
		flex-basis: 30.4%;
		max-width: 30.4%;
	}

	html .list-row-ft > .col:nth-child(2) {
		flex-basis: 13.75%;
		max-width: 13.75%;
	}

	html .list-row-ft > .col:nth-child(3) {
		flex-basis: 13.45%;
		max-width: 13.45%;
	}

	html .list-row-ft > .col:nth-child(4) {
		flex-basis: 21.8%;
		max-width: 21.8%;
	}

	html .list-row-ft > .col:nth-child(5) {
		flex-basis: 20.6%;
		max-width: 20.6%;
	}

	html .list-row-ft > .col.col-logo-social > .col-inner {
		padding-left: 14px;
	}

	/* Figma keeps every footer heading and link on one line; the 40px right padding of the
	 * menu columns made "Chính sách bảo mật" / "Điều khoản nhà cái" wrap */
	html .list-row-ft > .col.cnt-menu-ft,
	html .list-row-ft > .col.cnt-menu-ft > .col-inner {
		padding-right: 0 !important;
	}

	html .list-row-ft > .col.cnt-menu-ft p,
	html .list-row-ft > .col.cnt-menu-ft .ux-menu-link__link {
		white-space: nowrap;
	}

	html #footer .social-icons.list-social-ft a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 45px;
		height: 45px;
		padding: 0;
		margin-right: 12px !important;
	}

	html #footer .social-icons.list-social-ft a:last-child {
		margin-right: 0 !important;
	}

	html #footer .social-icons.list-social-ft a i {
		font-size: 22px;
	}

	/* League / keyword pills: 28px high, wrapped inside a 240px block (3 rows each) */
	html .list-row-ft > .col:nth-child(4) .ux-menu,
	html .list-row-ft > .col:nth-child(5) .ux-menu {
		max-width: 240px;
		gap: 14px 9px;
	}

	html .list-row-ft > .col:nth-child(4) .ux-menu-link__link,
	html .list-row-ft > .col:nth-child(5) .ux-menu-link__link {
		display: inline-flex;
		align-items: center;
		height: 28px;
		min-height: 28px;
		padding: 0 8px;
		border-radius: 6px;
		justify-content: center;
	}

	html .absolute-footer {
		padding: 0 0 27px;
	}
}

/* ---------- >= 768px (two match cards): banner from the Figma desktop home frame ----------
 * Match cards sit 18px below the header and 18px above the banner bottom. The cards (plugin)
 * change height with the viewport, so the banner grows with them instead of using
 * Flatsome's fixed padding-top. */
@media (min-width: 768px) {
	html .banner.banner-snower {
		padding-top: 0 !important;
		height: auto;
	}

	html .banner-snower .banner-inner {
		position: relative;
	}

	html .banner-snower .banner-layers {
		height: auto;
		max-height: none;
		margin: 0;
		padding: 18px 0;
	}

	html .banner-snower .banner-layers > .text-box {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
	}
}

/* >= 1170px: first match card at x=34 as in the Figma desktop frame */
@media (min-width: 1170px) {
	html .banner-snower .banner-layers > .text-box {
		padding-left: 34px;
	}
}

/* ---------- 1170px - 1730px: three-column body from the Figma desktop home frame ----------
 * At 1440: 36px margin | left sidebar 208 | 23 | content 904 | 26 | right sidebar 207 | 36px margin.
 * #main keeps its 20px side padding, the column paddings make up the rest. */
@media (min-width: 1170px) and (max-width: 1730px) {
	html .sidebar-left {
		flex: 0 0 235px !important;
		width: 235px !important;
		max-width: 235px !important;
		min-width: 0 !important;
		padding: 0 11px 0 16px !important;
	}

	html .content-main {
		padding-left: 12px !important;
		padding-right: 13px !important;
	}

	html .sidebar-right {
		flex: 0 0 236px !important;
		width: 236px !important;
		max-width: 236px !important;
		min-width: 0 !important;
		padding: 0 16px 0 13px !important;
	}
}

/* >= 850px (2x2 ad grid): 12px around and between the ads, ads start at x=35 */
@media (min-width: 850px) {
	html .section-baner-qc {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}

	html .section-baner-qc .section-content {
		padding-left: 29px;
		padding-right: 29px;
	}

	/* Flatsome prints the 5px column padding with an id selector */
	html .section-baner-qc .col > .col-inner {
		padding: 0px 8px !important;
	}
}

/* >= 1170px: 24px between the tallest column and the footer */
@media (min-width: 1170px) {
	html #main {
		margin-bottom: 24px;
	}
}

/* >= 601px: blocks in the main column are 16px apart in the Figma desktop frame
 * (Flatsome prints each gap element's height with an id selector) */
@media (min-width: 601px) {
	html .content-main .gap-element {
		height: 16px !important;
		padding-top: 16px !important;
	}

	html .content-main > .col-inner > .gwd-shortcode {
		margin-bottom: 0;
	}
}

/* ---------- 850px - 1365px: "Top nhà cái" list rows ----------
 * A row needs ~780px for logo + description + promo + button on one line. Narrower rows
 * wrapped the button label and the promo title; keep those on one line and let only the
 * description wrap. */
@media (min-width: 850px) and (max-width: 1365px) {
	html .item-topnhacai.row {
		flex-wrap: nowrap;
	}

	html .item-topnhacai > .col:first-child {
		flex: 0 0 46px !important;
		max-width: 46px !important;
	}

	html .item-topnhacai > .col.col-btn-logo {
		flex: 1 1 0 !important;
		max-width: none !important;
		min-width: 0;
	}

	/* Flatsome gives every .col width:100%, so auto-sized columns need width:auto */
	html .item-topnhacai > .col.col-box-km,
	html .item-topnhacai > .col.list-button-nhacai {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
	}

	html .item-topnhacai .col-box-km h3 {
		font-size: 14px;
		white-space: nowrap;
	}

	html .item-topnhacai > .col.list-button-nhacai {
		padding-right: 10px !important;
	}

	html .item-topnhacai .list-button-nhacai .button {
		white-space: nowrap;
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* 1170px - 1365px: the main column is only 583-779px wide between the fixed sidebars,
 * so the promo title is 12px and the logo is smaller, leaving the description room for
 * two lines. */
@media (min-width: 1170px) and (max-width: 1365px) {
	html .item-topnhacai > .col.col-box-km {
		flex: 0 0 200px !important;
		width: 200px !important;
	}

	html .item-topnhacai .col-box-km h3 {
		font-size: 12px;
	}

	html .item-topnhacai .col-btn-logo .icon-box-img,
	html .item-topnhacai .col-btn-logo .icon-box-img img {
		width: 48px !important;
		max-width: 48px !important;
		height: 48px;
	}
}

/* 1170px - 1365px: the Figma percentages leave the link columns too narrow below 1366px,
 * so the logo column gives up some width */
@media (min-width: 1170px) and (max-width: 1365px) {
	html .list-row-ft > .col:nth-child(1) {
		flex-basis: 27%;
		max-width: 27%;
	}

	html .list-row-ft > .col:nth-child(2),
	html .list-row-ft > .col:nth-child(3) {
		flex-basis: 15%;
		max-width: 15%;
	}

	html .list-row-ft > .col:nth-child(4) {
		flex-basis: 22%;
		max-width: 22%;
	}

	html .list-row-ft > .col:nth-child(5) {
		flex-basis: 21%;
		max-width: 21%;
	}
}

/* ---------- >= 850px: "Phân tích & soi kèo mới nhất" / blog slider blocks (Figma desktop) ----------
 * Heading centred 27px below the block top, images 16px under the heading, cards 208px wide
 * with 12px gaps, image ratio 208x97.5, title 14/18 bold 7px under the image, excerpt 12/16
 * 8px under the title, date 5px under the excerpt, 24px to the block bottom. */
@media (min-width: 850px) {
	html section.sec-custom:has(.blog-home) {
		padding-top: 14px !important;
		padding-bottom: 24px !important;
	}

	html section.sec-custom:has(.blog-home) .section-title-container {
		margin-bottom: 0;
	}

	html section.sec-custom:has(.blog-home) .gap-element {
		height: 16px !important;
		padding-top: 16px !important;
	}

	html .row.blog-home {
		margin-left: -6px;
		margin-right: -6px;
	}

	html .row.blog-home > .post-item {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	/* Flatsome prints the 56.25% ratio inline */
	html .row.blog-home .box-image .image-cover {
		padding-top: 47% !important;
	}

	html .row.blog-home .box-text {
		padding-top: 7px;
		padding-bottom: 0;
	}

	/* Figma clamps the title and the excerpt to two lines */
	html .row.blog-home .post-title,
	html .row.blog-home .from_the_blog_excerpt {
		display: -webkit-box !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	/* the card text column is a flex column with a 9px gap on top of the margins */
	html .row.blog-home .blog-post-inner {
		gap: 0;
	}

	html .row.blog-home .post-title {
		margin: 0;
		font-size: 14px;
		line-height: 18px;
	}

	html .row.blog-home .from_the_blog_excerpt {
		margin: 8px 0 0;
		font-size: 14px;
		line-height: 16px !important;
		/* custom.css fixes the excerpt at 36px up to 1730px */
		height: auto;
		color: #575757;
	}

	html .row.blog-home .post-meta {
		margin-top: 5px;
		font-size: 12px;
		line-height: 16px;
	}
}

/* ---------- >= 601px: category filter links were black text on the black page background ----------
 * Only where the filter sits on the dark page (category archives), not inside the white
 * "Bài viết mới nhất" box. */
@media (min-width: 601px) {
	html .post-cat-filter__link {
		color: #fff;
		border-color: #fff;
	}

	html .sec-custom-blog .post-cat-filter__link:not(.is-active) {
		color: #222;
		border-color: #e3e5e8;
		background: #fff;
	}

	/* custom.css turns the tabs into a hidden-scrollbar row below 850px; with a mouse the
	 * overflowing categories cannot be reached, so they wrap instead (phones keep the swipe row) */
	html .post-cat-filter {
		flex-wrap: wrap;
		row-gap: 8px;
		overflow: visible;
	}
}

/* ---------- >= 850px: "Bài viết mới nhất" (soi kèo nhà cái) from the Figma desktop frame ----------
 * Heading 16px above the white box, tabs 34px high / 12px text / 8px apart (wrapping to more rows),
 * 17px to a 4-column grid (208px cards, 12px column gap, 10px row gap), image 208x97.5,
 * title 14/18 bold 7.5px below the image, excerpt 12/15 8px below, date 4px below. */
@media (min-width: 850px) {
	html .sec-custom-pd .section-title-container.title-sec {
		margin-bottom: 0;
	}

	/* Flatsome prints display:block inline on gap elements */
	html .sec-custom-blog .gap-element {
		display: none !important;
	}

	html .sec-custom-blog {
		padding-top: 16px !important;
	}

	/* wraps so every category stays visible when they do not fit one row */
	html .sec-custom-blog .post-cat-filter {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 17px;
		overflow: visible;
	}

	html .sec-custom-blog .post-cat-filter__link {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		height: 34px;
		padding: 0 16px;
		border-width: 1px;
		border-radius: 3px;
		font-size: 14px;
		font-weight: 400;
		line-height: 1;
		white-space: nowrap;
	}

	html .sec-custom-blog .post-card-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 12px;
		row-gap: 10px;
	}

	html .sec-custom-blog .post-card {
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
	}

	html .sec-custom-blog .post-card .cat-label {
		display: none;
	}

	html .sec-custom-blog .post-card__image {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 208 / 97.5;
		object-fit: cover;
		border-radius: 6px;
	}

	/* the media box had a fixed height taller than the 208x97.5 image */
	html .sec-custom-blog .post-card__media {
		height: auto !important;
		padding: 0 !important;
		aspect-ratio: auto;
	}

	html .sec-custom-blog .post-card__body {
		gap: 0;
		padding: 7.5px 0 0;
	}

	html .sec-custom-blog .post-card__title,
	html .sec-custom-blog .post-card__excerpt {
		display: -webkit-box !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	html .sec-custom-blog .post-card__title {
		margin: 0;
		font-size: 14px;
		line-height: 18px;
	}

	html .sec-custom-blog .post-card__excerpt {
		height: auto;
		margin: 8px 0 0;
		font-size: 12px;
		line-height: 15px !important;
	}

	html .sec-custom-blog .post-card__date {
		display: block;
		margin-top: 4px;
		font-size: 12px;
		line-height: 16px;
	}
}

/* ---------- >= 850px: page intro + featured "soi kèo" cards (Figma desktop, soi kèo nhà cái) ----------
 * Page heading 18px, intro 14/22, cards 18px apart, image 443x210 (47.4%), text on the image
 * 12px from the edges: time 12px, title 14px bold, excerpt 12/16 (2 lines), 4px apart,
 * 8px above the image bottom. */
@media (min-width: 850px) {
	html .sec-custom-pd > .section-content > .text h3 {
		font-size: 18px;
		line-height: 24px;
	}

	html .sec-custom-pd > .section-content > .text p {
		font-size: 14px;
		line-height: 22px;
	}

	html .featured-bet-posts {
		gap: 18px;
	}

	html .featured-bet-posts .box-image .image-cover {
		padding-top: 47.4% !important;
	}

	html .featured-bet-posts .box-text {
		padding: 0 12px 8px !important;
	}

	html .featured-bet-posts .blog-post-inner {
		gap: 0 !important;
	}

	html .featured-bet-posts .post-meta {
		margin: 0;
		font-size: 12px;
		line-height: 16px;
	}

	/* custom.css sets 16px through .list-blog-haskeo .box .blog-post-inner .post-title */
	html .featured-bet-posts .box .blog-post-inner .post-title {
		margin: 4px 0 0;
		font-size: 14px;
		line-height: 20px;
	}

	html .featured-bet-posts .from_the_blog_excerpt {
		display: -webkit-box !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		height: auto;
		margin: 4px 0 0;
		font-size: 14px !important;
		line-height: 16px !important;
	}
}

/* 1170px - 1365px: the main column is only 583-779px wide, keep three cards per row */
@media (min-width: 1170px) and (max-width: 1365px) {
	html .sec-custom-blog .post-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 601px - 849px: post cards lose their white background here, use the mobile white wrapper */
@media (min-width: 601px) and (max-width: 849px) {
	html .post-card-grid-wrap {
		background-color: #fff;
		padding: 8px;
		border-radius: 5px;
	}
}

/* ---------- 1170px - 1365px: desktop header is too narrow for 7 menu items, tighten it ---------- */
@media (min-width: 1170px) and (max-width: 1365px) {
	html #logo {
		width: 160px !important;
	}

	html #logo img {
		width: 100%;
		height: auto;
	}

	html .header-nav-main.nav-left > li {
		margin-left: 8px;
		margin-right: 8px;
	}

	html .header-nav-main.nav-left > li:first-child {
		margin-left: 0;
	}

	html .header-nav-main.nav-left > li:last-child {
		margin-right: 0;
	}

	html .header .header-nav-main.nav-left > li > a {
		font-size: 14px;
	}

	html .header .flex-right .gift-icon {
		width: 56px;
	}
}

/* ---------- 1170px - 1730px: "Top nhà cái" rows use the fixed sizes of the Figma desktop design ----------
 * Row 54px, logo 42x30, name 12px bold, bonus line 10px, "Chơi Ngay" button 55x26.
 * custom.css enlarged the logo/text for this range, so the bonus text ran under the button. */
@media (min-width: 1170px) and (max-width: 1730px) {
	html .top-bookies__item {
		display: flex;
		align-items: center;
		gap: 0;
		min-height: 54px;
		padding: 12px 11px 12px 10px;
	}

	html .top-bookies__logo {
		flex: 0 0 42px;
		width: 42px;
		height: 30px;
		margin-right: 8px;
	}

	html .top-bookies__info {
		flex: 1 1 auto;
		min-width: 0;
		margin-right: 6px;
	}

	html .top-bookies__name,
	html .top-bookies__meta {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	html .top-bookies__name {
		margin: 0;
		font-size: 12px;
		font-weight: 700;
		line-height: 16px;
	}

	html .top-bookies__meta {
		margin: 0;
		font-size: 10px;
		line-height: 14px;
	}

	html .top-bookies__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 55px;
		width: 55px;
		height: 26px;
		padding: 0;
		font-size: 10px;
		white-space: nowrap;
	}
}

/* ---------- 601px - 1169px: banner layer must not be pushed past the right edge ---------- */
@media (min-width: 601px) and (max-width: 1169px) {
	html .banner-snower .banner-layers {
		margin-left: 0;
		margin-right: 0;
	}
}

/* ---------- 768px - 1169px: home banner shows both match cards side by side ---------- */
@media (min-width: 768px) and (max-width: 1169px) {
	html .banner-snower .text-box.banner-layer {
		width: 100% !important;
		padding-left: 24px;
		padding-right: 24px;
	}
}



/* ---------- >= 1170px: Top nhà cái page from the Figma "Top Nhà Cái" desktop frame ----------
 * Sections sit flush in the 904px content column (custom.css pads .sec-custom 18px up to 1730px).
 * Heading 18/24, intro 14/22 35px below the section top, bookie rows 88px with 16px between them,
 * bonus line in sentence case as typed in the editor. */
@media (min-width: 1170px) {
	html section.sec-custom.list-sec-ten {
		padding: 0 !important;
	}

	/* heading box is 27px high, intro starts 35px below the section top */
	html .list-sec-ten .section-title-container.title-sec {
		margin-bottom: 8px;
	}

	/* Flatsome prints display:block inline on gap elements */
	html .list-sec-ten .section-title-container.title-sec + .gap-element {
		display: none !important;
	}

	html .list-sec-ten .section-title-container.title-sec .section-title,
	html .list-sec-ten .section-title-container.title-sec .section-title > span {
		font-size: 18px;
		line-height: 24px;
	}

	html .list-sec-ten > .section-content > .list-box-top-nc:first-child p {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 160%;
	}

	html .list-sec-ten > .section-content > .list-box-top-nc:first-child > .col {
		padding-bottom: 16px !important;
	}

	html .list-sec-ten .sec-mb-lr > .col {
		padding-bottom: 16px;
	}

	/* "Xem Thêm Nhà Cái" sits on a full-width divider 36px below the last row */
	html .list-sec-ten .sec-mb-lr > .col.col-btn-css {
		margin-top: -2px;
		padding-right: 0;
		padding-left: 0;
	}

	html .item-topnhacai .icon-box-text p {
		text-transform: none;
	}

	/* "10 tiêu chí" cards: 217px wide, 12px apart, 38px icon 13px from the top, title 14/20 */
	html .list-sec-ten .list-10-box-top {
		margin-left: -6px !important;
		margin-right: -6px !important;
	}

	html .list-sec-ten .list-10-box-top > .col {
		padding: 0 6px 12px;
	}

	html .list-10-box-top > .col > .col-inner {
		padding: 13px 8px 16px;
	}

	/* Flatsome prints the icon width inline */
	html .list-10-box-top .icon-box-img {
		width: 38px !important;
		margin: 0 auto 13px;
	}

	html .list-10-box-top .icon-box-img img {
		width: 38px;
		height: 38px;
	}

	html .list-10-box-top .icon-box-text h3 {
		margin-bottom: 14px;
		font-size: 14px;
		line-height: 20px;
	}

	html .list-10-box-top .icon-box-text p {
		font-size: 14px;
		line-height: 22px;
	}
}

@media (min-width: 1700px) {
	html .list-sec-ten > .section-content > .list-box-top-nc:first-child p,
	html .list-10-box-top .icon-box-text h3,
	html .list-10-box-top .icon-box-text p {
		font-size: 16px !important;
	}
}

/* ---------- 1170px - 1730px: left sidebar widgets from the same frame ----------
 * "Bộ lọc nhanh": 14px links 44px high, 8px apart, 16px icon 6px from the text.
 * "Top nhà cái mới": 67px rows split by a line, logo 69x48, name 18px bold, bonus line 14px. */
@media (min-width: 1170px) and (max-width: 1730px) {
	html .quick-filter__head {
		padding: 9px 14px;
	}

	html .quick-filter__item + .quick-filter__item {
		margin-top: 8px !important;
	}

	html .quick-filter__link {
		gap: 6px;
		padding: 11px;
		font-size: 14px;
		line-height: 20px;
	}

	html .quick-filter__icon,
	html .quick-filter__icon svg {
		flex: 0 0 16px;
		width: 16px;
		height: 16px;
	}

	html .top-bookies--new .top-bookies__head {
		padding: 10px 15px 9px;
	}

	html .top-bookies--new .top-bookies__list {
		padding: 11px 0 9px;
	}

	html .widget .top-bookies--new .top-bookies__item,
	html .top-bookies--new .top-bookies__item {
		min-height: 67px;
		padding: 7px 8px 7px 15px;
		border-bottom: 1px solid #2b2b2b;
	}

	html .widget .top-bookies--new .top-bookies__item:last-child {
		border-bottom: 0;
	}

	html .top-bookies--new .top-bookies__row {
		gap: 0;
	}

	html .top-bookies--new .top-bookies__logo {
		flex: 0 0 69px;
		width: 69px;
		height: 48px;
		margin-right: 13px;
	}

	html .top-bookies--new .top-bookies__info {
		margin-right: 0;
	}

	html .top-bookies--new .top-bookies__name {
		font-size: 18px;
		line-height: 27px;
	}

	html .top-bookies--new .top-bookies__meta {
		margin-top: 4px;
		font-size: 14px;
		line-height: 21px;
	}
}

/* ---------- >= 1170px: two-sidebar template (post detail, league pages) ----------
 * Figma "Chi tiết bài viết" / "Giải Hot": columns start right under the ads and the main box
 * spans the same 267-1171 column as the other pages (1440 frame). */
@media (min-width: 1170px) {
	html .page-wrapper.page-two-sidebar {
		padding-top: 0;
		padding-bottom: 0;
	}

	html .page-two-sidebar > .content > .row > .col {
		padding-right: 13px;
		padding-left: 7px;
	}

	/* page variant: content sits in .page-inner inside the 15px-padded container */
	html .page-two-sidebar > .content > .page-inner {
		margin-right: -2px;
		margin-left: -8px;
	}
}

/* ---------- >= 850px: post detail typography from the same frame ----------
 * Breadcrumb 12/18, title 18/24 on one line, body 14/22, section headings 16/24,
 * images 600px wide centred, ~12px between blocks. */
@media (min-width: 850px) {
	html .single-post article.post {
		padding: 8px 12px 12px;
	}

	html .single-post article.post .rank-math-breadcrumb {
		margin-bottom: 12px;
		font-size: 12px;
		line-height: 18px;
	}

	html .single-post article.post h1.entry-title {
		margin: 0 0 13px;
		font-size: 18px;
		line-height: 24px;
	}

	html .single-post article.post .entry-content p {
		margin-bottom: 13px;
		font-size: 14px;
		line-height: 22px;
	}

	html .single-post article.post .entry-content h2,
	html .single-post article.post .entry-content h3,
	html .single-post article.post .entry-content h4 {
		margin-bottom: 12px;
		font-size: 16px;
		line-height: 24px;
	}

	html .single-post article.post .entry-content img {
		max-width: 600px;
		height: auto;
	}

	html .single-post article.post .entry-content img.aligncenter {
		margin-right: auto;
		margin-left: auto;
	}

	/* "Tin tức liên quan": 17px under the post, 16px padding, four 208x97.5 cards 12px apart,
	 * category badge on the bottom-left of the image, title 14/18, excerpt 12/15, date 12/16 */
	html .single-post article.post {
		margin-bottom: 0;
	}

	html .single-post .related-posts {
		margin-top: 17px;
		padding: 16px 16px 14px;
	}

	html .related-posts .related-posts__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	/* custom.css pads the card with !important */
	html .related-posts .post-card {
		padding: 0 !important;
	}

	html .related-posts .post-card__body {
		gap: 0;
		padding-top: 0;
	}

	html .related-posts .post-card__media {
		height: auto !important;
		aspect-ratio: auto;
		border-radius: 6px;
	}

	html .related-posts .post-card__image {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 208 / 97.5;
		border-radius: 6px;
		object-fit: cover;
	}

	html .related-posts .cat-label {
		top: auto;
		bottom: 0;
		left: 0;
	}

	html .related-posts .cat-label .cat-item {
		padding: 3px 7px;
		border-radius: 0 4px 0 6px;
		font-size: 12px;
		line-height: 16.5px;
	}

	html .related-posts .post-card__title {
		margin-top: 8px;
		font-size: 14px;
		line-height: 18px;
	}

	html .related-posts .post-card__excerpt {
		margin-top: 10px;
		font-size: 12px;
		line-height: 15px;
	}

	html .related-posts .post-card__date {
		margin-top: 4px;
		font-size: 12px;
		line-height: 16px;
	}
}

/* ---------- <= 600px: mobile header and home banner from the Figma 375px mobile frames ----------
 * Header 45px with no red rule under it (custom.css forces 66px up to 1730px), hamburger 16px
 * from the edge, logo 144px wide 10px after it. */
@media (max-width: 600px) {
	html #header .header-main,
	html .header.show-on-scroll,
	html .header .stuck .header-main {
		height: 45px !important;
	}

	html .header .header-wrapper .nav > li > a,
	html .header .header-wrapper.stuck .nav > li > a {
		height: 45px !important;
	}

	html #header {
		border-bottom: 0;
	}

	html #header .header-main {
		padding-right: 16px;
		padding-left: 16px;
	}

	html #header #logo {
		margin-left: 10px;
	}

	html body .header #logo img,
	html .header .stuck #logo img {
		width: 144px;
		max-height: none !important;
		height: auto;
	}

	/* Flatsome prints the banner height inline; the card sits 3px from the top instead of centred */
	html .banner.banner-snower {
		padding-top: 184px !important;
	}

	html .banner-snower .text-box.banner-layer {
		top: 3px !important;
		transform: none !important;
	}

	/* "Tổng quát" article: 522px scroll box (custom.css uses 100vh), uppercase 14px headings,
	 * 12/18 body, 9px before the image, heading 8px from the top */
	html .sec-mb-scroll .section-content {
		max-height: 522px;
		scrollbar-width: none;
	}

	html .sec-mb-scroll .section-content::-webkit-scrollbar {
		display: none;
	}

	/* Flatsome prints the gap height inline */
	html .sec-mb-scroll .section-content > .gap-element:first-child {
		padding-top: 8px !important;
	}

	html .sec-mb-scroll .section-content h3.uppercase {
		text-transform: uppercase;
	}

	/* custom.css sets body p to 14px !important on phones */
	html .sec-mb-scroll .section-content p {
		margin-bottom: 9px;
		font-size: 12px !important;
		line-height: 18px;
	}
}

/* ---------- <= 600px: Top nhà cái from the Figma 375px mobile frame ----------
 * The list sits on a full-width panel (#232426 fading to #131416) right under the ad, 12px side padding,
 * heading 12px above the 14/22 intro, first card 15px below it. */
@media (max-width: 600px) {
	html .section-baner-qc:has(+ .list-sec-ten),
	html body:has(.list-sec-ten) .section-baner-qc {
		margin-bottom: 0;
	}

	/* custom.css makes .sec-custom transparent with !important on phones */
	html section.sec-custom.list-sec-ten {
		width: calc(100% + 30px);
		margin-right: -15px;
		margin-left: -15px;
		padding: 13px 12px 0 !important;
		border-radius: 0;
		background: unset !important;
	}

	/* "10 tiêu chí" continues on the #131416 background the list fades into */
	html section.sec-custom-pd.list-sec-ten:not(.sec-custom) {
		width: calc(100% + 30px);
		margin-right: -15px;
		margin-left: -15px;
		padding: 0 16px !important;
		border-radius: 0;
		background: unset !important;
	}

	html .list-sec-ten .section-title-container.title-sec {
		margin-bottom: 12px;
	}

	/* Flatsome prints display:block inline on gap elements */
	html .list-sec-ten .section-title-container.title-sec + .gap-element {
		display: none !important;
	}

	html .list-sec-ten > .section-content > .list-box-top-nc:first-child p {
		margin-bottom: 0;
		font-size: 14px !important;
		line-height: 160%;
	}

	html .list-sec-ten > .section-content > .list-box-top-nc:first-child > .col {
		padding-bottom: 15px !important;
	}

	/* bookie cards 410px high, 16px apart */
	html .list-sec-ten .sec-mb-lr > .col {
		padding-bottom: 16px;
	}

	html .item-topnhacai .list-button-nhacai .button {
		height: 44px;
		min-height: 44px;
		line-height: 44px;
	}

	/* "Xem Thêm Nhà Cái": full-width 52px bar 12px under the last card, no divider line */
	html .list-sec-ten .sec-mb-lr > .col.col-btn-css {
		margin-top: -4px;
		padding-right: 0;
		padding-left: 0;
	}

	html .row.sec-mb-lr .col-btn-css .btn-top-nhacai {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: none;
		height: 52px;
		margin: 0;
		border-radius: 0;
	}

	html .row.sec-mb-lr .col-btn-css .btn-top-nhacai::before {
		display: none;
	}

	/* "10 tiêu chí" cards: two 167px columns 9px apart, 38px icon 8px from the top */
	html .list-sec-ten .list-10-box-top {
		margin-right: -4.5px !important;
		margin-left: -4.5px !important;
	}

	html .list-sec-ten .list-10-box-top > .col {
		padding: 0 4.5px 9px;
	}

	html .list-10-box-top > .col > .col-inner {
		padding: 8px 8px 7px;
	}

	/* Flatsome prints the icon width inline */
	html .list-10-box-top .icon-box-img {
		width: 38px !important;
		margin: 0 auto 3px;
	}

	html .list-10-box-top .icon-box-img img {
		width: 38px;
		height: 38px;
	}
}

/* ---------- <= 600px: Soi kèo nhà cái from the Figma 375px mobile frame ----------
 * Content 16px from the edges, intro 12/19, featured cards 8px apart with a 158px image
 * (title 12px on one line, excerpt 11/14.3 on two). The odds table keeps the plugin layout. */
@media (max-width: 600px) {
	html section.sec-custom-pd:not(.list-sec-ten):has(.featured-bet-posts) {
		padding-right: 6.5px !important;
		padding-left: 6.5px !important;
	}

	html .sec-custom-pd > .section-content > .text p {
		margin-bottom: 8px;
		font-size: 12px !important;
		line-height: 19px;
	}

	html .featured-bet-posts {
		gap: 8px;
	}

	html .featured-bet-posts .box-image .image-cover {
		padding-top: 46% !important;
	}

	html .featured-bet-posts .box-text {
		padding: 0 12px 10px !important;
	}

	html .featured-bet-posts .blog-post-inner {
		gap: 0 !important;
	}

	html .featured-bet-posts .post-meta {
		line-height: 12px;
	}

	html .featured-bet-posts .post-title {
		height: auto !important;
		margin: 6px 0 0 !important;
		line-height: 14.4px;
	}

	/* "Bài viết mới": heading 14px 6px under the cards, tabs 9px below it (29px high, 8px apart),
	 * white box 8px under the tabs, 159x94.5 images, title 11/13.5, excerpt 12/15, rows 16px apart */
	html .sec-custom-pd > .section-content > .featured-bet-posts + .gap-element {
		padding-top: 6px !important;
	}

	html .sec-custom-pd > .section-content > .section-title-container.title-sec {
		margin-bottom: 3px;
	}

	html .sec-custom-pd > .section-content > .section-title-container.title-sec .section-title,
	html .sec-custom-pd > .section-content > .section-title-container.title-sec .section-title > span {
		font-size: 14px;
		line-height: 21px;
	}

	/* Flatsome prints display:block inline on gap elements */
	html .sec-custom-pd > .section-content > .section-title-container.title-sec + .gap-element,
	html .sec-custom-blog .gap-element {
		display: none !important;
	}

	html .sec-custom-blog {
		padding: 0 6.5px !important;
	}

	html .sec-custom-blog .post-cat-filter {
		gap: 8px;
		margin-bottom: 8px;
	}

	html .sec-custom-blog .post-cat-filter__link {
		padding: 4.6px 11.5px;
		line-height: 18px;
	}

	html .sec-custom-blog .post-card-grid {
		column-gap: 8px;
		row-gap: 16px;
	}

	html .sec-custom-blog .post-card__media {
		height: auto !important;
	}

	html .sec-custom-blog .post-card__image {
		height: auto;
		aspect-ratio: 159 / 94.5;
		object-fit: cover;
	}

	html .sec-custom-blog .post-card__body {
		gap: 0 !important;
		padding-top: 0 !important;
	}

	html .sec-custom-blog .post-card__title {
		margin-top: 3px;
		font-size: 11px;
		line-height: 13.5px;
	}

	html .sec-custom-blog .post-card__excerpt {
		margin-top: 7px;
		font-size: 12px !important;
		line-height: 15px !important;
	}

	html .sec-custom-blog .post-card__date {
		margin-top: 3px;
	}

	html .featured-bet-posts .from_the_blog_excerpt {
		display: -webkit-box !important;
		height: auto !important;
		margin: 6px 0 0 !important;
		overflow: hidden;
		font-size: 11px !important;
		line-height: 14.3px !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical;
	}
}

/* ---------- <= 600px: post detail from the Figma 375px "Chi tiết bài viết" frame ----------
 * Breadcrumb 11/16 on one line 11px under the ad, title 16/24, body 12/19 with 5px between
 * blocks, section headings 14/20. */
@media (max-width: 600px) {
	html body.single-post .section-baner-qc {
		margin-bottom: 11px;
	}

	html .single-post .page-wrapper.page-two-sidebar {
		padding-top: 0;
	}

	html .single-post article.post .rank-math-breadcrumb {
		margin-bottom: 11px;
		overflow: hidden;
		font-size: 11px;
		line-height: 16px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	html .single-post article.post .rank-math-breadcrumb p {
		margin: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 11px !important;
		line-height: 16px;
	}

	html .single-post article.post .entry-content p {
		margin-bottom: 5px;
		font-size: 12px !important;
		line-height: 19px;
	}

	html .single-post article.post .entry-content h2,
	html .single-post article.post .entry-content h3,
	html .single-post article.post .entry-content h4 {
		margin-bottom: 5px;
		font-size: 14px;
		line-height: 20px;
	}
}

/* ---------- <= 600px: league pages (Figma "Giải Hot" mobile frame) ----------
 * The league block starts right under the ad. */
@media (max-width: 600px) {
	html body.page-template-page-two-sidebar .page-wrapper.page-two-sidebar {
		padding-top: 0;
	}
}

/* ---------- <= 600px: off-canvas menu from the Figma 375px menu frame ----------
 * Full-width drawer, quick links 48px rows, league rows 33px, countries in two columns
 * filled top to bottom (Việt Nam, Anh, Tây Ban Nha, Đức | Ý, Pháp, Brazil, Argentina) 36px apart. */
@media (max-width: 600px) {
	html .off-canvas-left .mfp-content,
	html .off-canvas-right .mfp-content {
		width: 100%;
	}

	html .off-canvas .nav-sidebar > li.menu-item > a {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}

	html .off-canvas .mobile-sidebar .hot-leagues__item,
	html .off-canvas .hot-leagues__item {
		padding: 4px 16px;
	}

	html .off-canvas .hot-leagues__item .hot-leagues__link {
		min-height: 0;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		line-height: 25px;
		white-space: nowrap;
	}

	html .off-canvas .nav.nav-vertical .hot-leagues--country .hot-leagues__list {
		display: grid;
		/* second column starts 178px into the box like the Figma frame */
		grid-template-columns: 161px minmax(0, 1fr);
		grid-template-rows: repeat(4, auto);
		grid-auto-flow: column;
		gap: 0;
	}

	html .off-canvas .nav.nav-vertical .hot-leagues--country li {
		width: auto;
	}

	html .off-canvas .hot-leagues--country .hot-leagues__item .hot-leagues__link {
		line-height: 28px;
	}
}
