/*
Theme Name: Sport WP Theme Child
Theme URI: #
Description: Child theme for Sport WP Theme Bongdalu
Author: Your Name
Author URI: #
Template: sport-theme-bongdalu
Version: 1.0.0
*/

/* Import parent theme styles */
/* Parent stylesheet already enqueued by child functions.php. */
.close_banner{
	display:none;
}
.banner_show_moible, .banner_show_mobile{
	display:none !important;
}

.sport-group-category_title .cat-title:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 55px;
    background-color: #3a7f1a;
}
.sport-group-category_title .cat-title{
	margin-bottom: 10px !important;
}
.sport-group-category_title .cat-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1px;
    width: 100%;
    background-color: #3a7f1a;
}

.block_blog_soikeo{
	margin-top:10px;
    flex: unset;
    width: 100%;
}
iframe{
	max-width: 100%;
    width: 100%;
}
.box-content{
	table{
    	margin-bottom: 16px;
    }
}	
.sport-group-category_title{
	background: #fff;
    padding: 10px 10px 0px;
    margin-bottom: 0;
	>.row{
		margin-bottom:0;
	}
}
@media (max-width: 768px) {
    body .custom-grid-big.col-md-5, .custom-grid .col-4, .custom-grid-small.col-md-7 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
	body .custom-grid-small .grid-item {
        display: flex;
        align-items: start;
        background: var(--Mono-200, #F2F2F2);
    }
	body .custom-grid-small .grid-item .post-thumbnail {
        padding: unset;
        width: 40%;
        height: fit-content;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
	    .custom-grid-small .grid-item .post-thumbnail img {
        position: relative;
    }
	    .custom-grid-small .grid-caption {
        position: relative;
        background: transparent;
        color: var(--Mono-900, #070F03);
    }
	.grid-caption>div{
		font-size: 14px;
	}
}
.sport-group-category_title+.custom-grid{
	background: #fff;
    padding: 10px;
}
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.bookmaker_render .bookmaker_main_desc,
.bookmaker_render .bookmaker_sub_desc{
	text-align:left !important;
}
.footer-banner-render{
	display:none;
}
body.sport-theme-bongdanet {
    .bookmaker_render .bookmaker_action a {
        font-size: 14px;
    }
	.bookmaker_render .bookmaker_info{
		width: 190px;
	}
	.bookmaker_desc {
        padding-left: 10px;
    }
}
@media (max-width: 48em) {
	.footer-banner-render{
		display:block !important;
	}
	body.sport-theme-bongdanet{
		.bookmaker_desc {
			padding-left: 0px;
		}	
	}
	.bookmaker_render .bookmaker_main_desc,
	.bookmaker_render .bookmaker_sub_desc{
		text-align:center !important;
	}
}

.score-box-wrapper {
    min-width: 46px;
    max-width: 66px
}

.score-box-wrapper .score-box {
    margin: calc(var(--spacing,.25rem)*1);
    border-radius: var(--radius-md,.375rem);
    padding-block:calc(var(--spacing,.25rem)*1);color: var(--color-white,#fff);
    background-color: #14b922
}

.score-box-wrapper .score-box.half-time {
    background-color: #9fa0a4
}
@media (max-width: 768px) {
    .banner_show_moible, .banner_show_mobile {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
	
	.banner_before_header {
		display: none !important;
	}
}

@media (max-width: 768px) {
    .sport-theme-bongdalu .sport-theme-mobile-menu .menu-item-img {
       margin-right:0px !important;
    }
    
    .sport-theme-mobile-menu > .menu-item > a > .menu-title-wrapper span{
    	font-size: 9px !important;
       
    }
	
	.footer-banner-render {
		position: fixed;
    	bottom: 10px;
    	left: 10px;
    	right: 10px;
	}
}

:root {
    --text-primary: #15825f !important;
    --primary-color: #397f19 !important;
    --second-color: #43951e !important;
    --down: green;
    --up: red;
}

.setting_bongdalu .popup-settings {
	width: 96dvw;
}

.bottomFly {
	position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
	z-index: 1;
}

.bottomFly.mobile {
	display: none;
}

.st-lang
/* #div_banner_float_top */
{
	display: none;
}

#div_banner_float_top > div > div:nth-child(1) {
	display: none;
}
.banner_tr {
	display: none !important;
}


#div_banner_float_top .banner_temp_wrapper,
#div_banner_float_top .banner_temp_wrapper .img-wrapper-has{
	margin-bottom: 0;
}


@media (max-width: 768px) {
	.bottomFly.mobile {
		display: block;
		width: calc(100% - 20px);
		
		img {
			height: auto;
			width: 100%;
		}
	}
	
	.bottomFly.pc {
		display: none;
	}
}


@media (max-width: 991px) {
	body .sidebar-right .main-content.sport-theme-main-content {
		max-width: unset;
	}
	.row-type-vertical{
		.sp-post-item{
			display: flex;
			flex-direction: row;
		}
		.sp-spost-item.mb-4 {
			margin-bottom: 12px !important;
		}
		.sp-post-thumbnail.img_cover{
			width: 140px;
			margin-bottom: 0;
			padding-top: 80px !important;
		}
		.sp-post-content {
			padding-left: 12px;
		}
		
	}
}

/* Bongdalu Live Desk: homepage shell only. No ad or feed DOM replacement. */
body.home.sport-theme-bongdalu {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: #f3f6f5;
    color: #173326;
}
body.home.sport-theme-bongdalu .container {
    width: 100%;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}
body.home.sport-theme-bongdalu .contain { width: 100%; max-width: none; display: flex; flex-wrap: nowrap; }
body.home.sport-theme-bongdalu .gutter_warp { width: calc((100vw - 1066px) / 2); display: flex; }
/* Three existing banner rows, two 728x90 creatives per desktop row. */
body.home.sport-theme-bongdalu .gwd_banner_header_custom {
    min-height: calc((min(100vw, 1060px) - 10px) * 135 / 728 + 20px);
}
body.home.sport-theme-bongdalu .header-bongdalu {
    background: #fff;
    border-bottom: 1px solid #dce6e0;
}
body.home.sport-theme-bongdalu .sport_theme_logo,
body.home.sport-theme-bongdalu .sport_theme_logo_dark {
    width: 188px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 2560 / 526;
    object-fit: contain;
}
body.home.sport-theme-bongdalu .tf-section {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    container-type: inline-size;
}
body.home.sport-theme-bongdalu .tf-s3-container {
    display: flex;
    width: 100%;
    height: 90px;
    min-height: 90px;
    border: 1px solid #dce6e0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}
body.home.sport-theme-bongdalu .tf-s3-right {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 32px;
}
body.home.sport-theme-bongdalu .tf-s3-track-wrap { overflow: hidden; width: 100%; }
body.home.sport-theme-bongdalu .tf-s3-track { display: flex; gap: 8px; }
body.home.sport-theme-bongdalu .tf-s3-item { flex-shrink: 0; }
body.home.sport-theme-bongdalu #app-vue,
body.home.sport-theme-bongdalu #main {
    width: 100%;
    min-height: 680px;
}
body.home.sport-theme-bongdalu #min,
body.home.sport-theme-bongdalu .livescore_content {
    min-height: 640px;
}
body.home.sport-theme-bongdalu #min {
    background: #fff;
    border-radius: 8px;
}
body.home.sport-theme-bongdalu #tools {
    background: #fff;
    border-bottom: 1px solid #dce6e0;
}
body.home.sport-theme-bongdalu #table_live { width: 100%; }
body.home.sport-theme-bongdalu #table_live .tds td { font-variant-numeric: tabular-nums; }
body.home.sport-theme-bongdalu #left .lrdiv,
body.home.sport-theme-bongdalu #right .lrdiv { border-radius: 8px; }
body.home.sport-theme-bongdalu .tf-s3-title-area { display: flex; align-items: center; flex-shrink: 0; padding: 10px; }
body.home.sport-theme-bongdalu .tf-s3-title-area--outside { display: none; }
body.home.sport-theme-bongdalu .tf-s3-small .tf-s3-logo { width: 64px; height: 48px; }
@media (max-width: 585px) {
    body.home.sport-theme-bongdalu .tf-s3-title-area { display: none; }
    body.home.sport-theme-bongdalu .tf-s3-title-area--outside { display: block; width: 100%; margin-bottom: 4px; }
}
@media (max-width: 500px) {
    body.home.sport-theme-bongdalu .tf-s3-right { padding: 0 10px; }
    body.home.sport-theme-bongdalu .tf-s3-track { gap: 4px; }
    body.home.sport-theme-bongdalu .tf-s3-logo { width: 64px; height: 48px; }
}
@media (max-width: 768px) {
    /* The existing mobile policy displays one 728x90 creative per row. */
    body.home.sport-theme-bongdalu .gwd_banner_header_custom {
        min-height: calc((100vw - 20px) * 270 / 728 + 20px);
    }
    body.home.sport-theme-bongdalu .container { padding-left: 10px; padding-right: 10px; }
    body.home.sport-theme-bongdalu .header_flex { width: 100%; margin-left: 0; margin-right: 0; }
    body.home.sport-theme-bongdalu .sport_theme_header-top-left { min-width: 0; width: 100%; gap: 10px; }
    body.home.sport-theme-bongdalu #main,
    body.home.sport-theme-bongdalu #min,
    body.home.sport-theme-bongdalu .livescore_content { width: 100%; min-width: 0; }
    body.home.sport-theme-bongdalu #app-vue,
    body.home.sport-theme-bongdalu #main { min-height: 640px; }
    body.home.sport-theme-bongdalu #min,
    body.home.sport-theme-bongdalu .livescore_content { min-height: 600px; }
}
body.home.sport-theme-bongdalu.dark,
body.home.sport-theme-bongdalu.sport_theme_dark { background: #111a18; color: #edf7f1; }
body.home.sport-theme-bongdalu.dark .header-bongdalu,
body.home.sport-theme-bongdalu.dark #min,
body.home.sport-theme-bongdalu.dark #tools,
body.home.sport-theme-bongdalu.dark .tf-s3-container,
body.home.sport-theme-bongdalu.sport_theme_dark .header-bongdalu,
body.home.sport-theme-bongdalu.sport_theme_dark #min,
body.home.sport-theme-bongdalu.sport_theme_dark #tools,
body.home.sport-theme-bongdalu.sport_theme_dark .tf-s3-container { background: #1b2723; border-color: #33443b; }
