/*
Theme Name: Build Flatsome Child
Theme URI: https://example.com/build-flatsome
Description: Child theme tối giản cho bộ dựng giao diện Flatsome bằng JSON.
Author: Build Flatsome
Template: flatsome
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: build-flatsome-child
*/

/* CSS của từng mẫu được quản lý bởi plugin Build Flatsome JSON Builder. */

/* Header Builder right group: keep search and CTA visibly separated. */
#header .header-bottom-nav.nav-right {
  gap: 14px;
}

#header .header-bottom-nav.nav-right > .header-search-form {
  margin-right: 0;
}

/* LIVE module: Flatsome title + GWD data table share one native column shell. */
body #wrapper #main .gwd-live-card-row {
  margin-right: 0;
  margin-left: 0;
}
body #wrapper #main .gwd-live-card-row .gwd-live-card-col {
  padding: 0;
}
body #wrapper #main .gwd-live-card-row .gwd-live-card-col > .col-inner {
  overflow: hidden;
  border: 1px solid #393a40;
  border-radius: 12px;
  background: #111216;
}
body #wrapper #main .gwd-live-card-col .gwd-native-title {
  border: 0;
  border-left: 4px solid #e50919;
  border-radius: 0;
}
body #wrapper #main .gwd-live-card-col .tc-live-table {
  border: 0;
  border-top: 1px solid #393a40;
  border-radius: 0;
  box-shadow: none;
}
body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__state {
  min-height: 24px;
}

/* Schedule module uses the same native Flatsome card shell. */
.gwd-template-schedule-with-odd-template-custom-schedule-with-odd {
  padding: 0 !important;
}
body #wrapper #main .gwd-schedule-card-row {
  margin-right: 0;
  margin-left: 0;
}
body #wrapper #main .gwd-schedule-card-row .gwd-schedule-card-col {
  padding: 0;
}
body #wrapper #main .gwd-schedule-card-row .gwd-schedule-card-col > .col-inner {
  overflow: hidden;
  border: 1px solid #393a40;
  border-radius: 12px;
  background: #111216;
}
body #wrapper #main .gwd-schedule-card-col .gwd-native-title {
  border: 0;
  border-left: 4px solid #e50919;
  border-radius: 0;
}
body #wrapper #main .gwd-schedule-card-col .gwd-custom-schedule,
body #wrapper #main .gwd-schedule-card-col .gwd-custom-results {
  border: 0;
  border-top: 1px solid #393a40;
  border-radius: 0;
}
/* Compact standings: the Flatsome sidebar panel owns the only outer card. */
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__hot-controls,
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__title {
  display: none;
}

body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"],
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__card,
body #wrapper .gwd-sidebar-right .gwd-custom-standing {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__filters {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #303239;
  border-radius: 0;
  background: linear-gradient(90deg, #17181d, #111216);
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__filters > label:not(.gwd-standings__featured),
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__competitions {
  display: none;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured {
  position: relative;
  display: block;
  margin: 0;
  padding: 10px;
  color: #f5f5f7;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: #b9bbc3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured > span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e50919;
  box-shadow: 0 0 9px rgba(229, 9, 25, .65);
  content: "";
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured::after {
  display: none;
  content: none;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 38px 0 14px;
  border: 1px solid #363943;
  border-radius: 9px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: #0d0e12;
  background-image: linear-gradient(45deg, transparent 50%, #e50919 50%), linear-gradient(135deg, #e50919 50%, transparent 50%), linear-gradient(180deg, #14151a, #0d0e12);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%, 0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 5px 14px rgba(0, 0, 0, .16);
  color: #f5f5f7;
  font: 600 12px/1.2 Inter, sans-serif;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured select:hover {
  border-color: #565963;
  background-color: #101116;
}
body #wrapper .gwd-sidebar-right [data-gwd-custom-layout="template-custom-standings-compact"] .gwd-standings__featured select:focus-visible {
  border-color: #e50919;
  box-shadow: 0 0 0 2px rgba(229, 9, 25, .18);
}
body #wrapper [data-gwd-custom-layout="template-custom-schedule-with-odd"] .gwd-custom-schedule__league-name [data-gwd-league-code] {
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(rgba(7, 9, 14, .32), rgba(7, 9, 14, .32)), var(--gwd-league-primary-color, #3b3d46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
body #wrapper [data-gwd-custom-layout="template-custom-schedule-with-odd"] [data-gwd-odds-status-id="1"] .gwd-custom-schedule__score-line i {
  display: none;
}

/* Mobile body uses the main content only; desktop keeps both reusable sidebars. */
@media (max-width: 849px) {
  body #wrapper #main .gwd-body-grid > .gwd-left-sidebar,
  body #wrapper #main .gwd-body-grid > .gwd-right-sidebar {
    display: none;
  }
}

.custom-height-100dvh .gwd-template-schedule-with-odd-template-custom-schedule-with-odd .gwd-custom-schedule__list {
  max-height: 100dvh !important;
}

.custom-height-100dvh .gwd-template-result-with-odd-template-custom-result-with-odd .gwd-custom-results__list {
  max-height: 100dvh;
}


/* Single post: native Flatsome layout, styled as a focused dark reading card. */
body.single-post #wrapper #main .blog-single.page-wrapper {
  padding: 28px 22px 44px;
}
@media (min-width: 850px) {
  body.single-post #wrapper #main .blog-single > .row > .large-9.col {
    padding-left: 15px;
    padding-right: 15px;
  }
  body.single-post #wrapper #main .blog-single > .row > .post-sidebar.col {
    padding-left: 15px;
    padding-right: 15px;
  }
}
body.single-post #wrapper #main .blog-single article .article-inner {
  overflow: hidden;
  padding: 34px clamp(22px, 4vw, 52px) 38px;
  border: 1px solid #34363d;
  border-radius: 14px;
  background: linear-gradient(145deg, #17181d, #0f1014);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}
body.single-post #wrapper #main .blog-single .entry-header-text {
  padding: 0 0 24px;
  text-align: left;
}
body.single-post #wrapper #main .blog-single .entry-category {
  margin-bottom: 12px;
}
body.single-post #wrapper #main .blog-single .entry-category a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #8f1822;
  border-radius: 999px;
  background: rgba(229, 9, 25, .12);
  color: #ff5963;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
body.single-post #wrapper #main .blog-single .entry-title {
  max-width: 900px;
  margin: 0;
  color: #f7f7f8;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
body.single-post #wrapper #main .blog-single .entry-divider {
  width: 54px;
  height: 3px;
  margin: 18px 0 14px;
  background: #e50919;
}
body.single-post #wrapper #main .blog-single .entry-meta {
  color: #9da0a9;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
}
body.single-post #wrapper #main .blog-single .entry-content {
  padding: 0;
  color: #d6d7dc;
  font-size: 15px;
  line-height: 1.8;
}
body.single-post #wrapper #main .blog-single .entry-content h2,
body.single-post #wrapper #main .blog-single .entry-content h3,
body.single-post #wrapper #main .blog-single .entry-content h4 {
  margin-top: 1.7em;
  color: #f4f4f6;
  line-height: 1.3;
}
body.single-post #wrapper #main .blog-single .entry-content a {
  color: #ff5963;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.single-post #wrapper #main .blog-single .entry-content img {
  border-radius: 10px;
}
body.single-post #wrapper #main .blog-single .entry-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #e50919;
  border-radius: 0 10px 10px 0;
  background: #111216;
  color: #ececf0;
}
body.single-post #wrapper #main .blog-single article > footer.entry-meta,
body.single-post #wrapper #main .blog-single .entry-author {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #303239;
  color: #aeb0b7;
}
body.single-post #wrapper #main .blog-single .post-sidebar > .widget-area {
  padding: 0;
}

@media (max-width: 849px) {
  body.single-post #wrapper #main .blog-single.page-wrapper {
    padding: 16px 12px 30px;
  }
  body.single-post #wrapper #main .blog-single article .article-inner {
    padding: 24px 18px 28px;
    border-radius: 12px;
  }
  body.single-post #wrapper #main .blog-single > .row > .large-9.col {
    padding-left: 0;
    padding-right: 0;
  }
  body.single-post #wrapper #main .blog-single .post-sidebar {
    display: none;
  }
}

@media (max-width: 549.98px) {
  body #wrapper [data-gwd-custom-layout="template-custom-schedule-with-odd"] .gwd-custom-schedule__card-top {
    margin-top: 10px;
  }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__match {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px 7px;
    min-height: 0;
    padding: 12px 14px;
  }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__league {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    padding: 0;
  }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__team {
    grid-row: 2;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__team--home { grid-column: 1; text-align: right; }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__score { grid-column: 2; grid-row: 2; min-width: 46px; }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__team--away { grid-column: 3; text-align: left; }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table .tc-live-table__state {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    min-width: 48px;
    min-height: 24px;
    padding: 4px 8px;
  }
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table__match[data-gwd-live-mode="upcoming"] [data-gwd-home-score],
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table__match[data-gwd-live-mode="upcoming"] [data-gwd-live-score-separator],
  body #wrapper #main .gwd-template-live-matches-template-custom-live-today .tc-live-table__match[data-gwd-live-mode="upcoming"] [data-gwd-away-score] {
    display: none;
  }
}

/* Category archives: Flatsome native 3-column blog grid. */
body.category #wrapper #main .blog-archive.page-wrapper {
  padding: 28px 22px 44px;
}
body.category #wrapper #main .archive-page-header {
  margin-bottom: 20px;
}
body.category #wrapper #main .archive-page-header .row {
  max-width: 1600px;
}
body.category #wrapper #main .archive-page-header .col {
  padding: 0 15px;
}
body.category #wrapper #main .archive-page-header .page-title {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  text-align: left;
  text-transform: none;
}
body.category #wrapper #main #post-list > .row {
  align-items: stretch;
}
body.category #wrapper #main #post-list .post-item {
  display: flex;
}
body.category #wrapper #main #post-list .post-item > .col-inner {
  display: flex;
  width: 100%;
}
body.category #wrapper #main #post-list .box-blog-post {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid #34363d;
  border-radius: 12px;
  background: linear-gradient(145deg, #17181d, #0f1014);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
body.category #wrapper #main #post-list .box-image {
  width: 100%;
  border-bottom: 1px solid #303239;
}
body.category #wrapper #main #post-list .box-image img {
  object-fit: cover;
  transition: transform .25s ease;
}
body.category #wrapper #main #post-list .box-blog-post:hover .box-image img {
  transform: scale(1.035);
}
body.category #wrapper #main #post-list .box-text {
  flex: 1;
  padding: 18px;
  background: transparent;
}
body.category #wrapper #main #post-list .post-title {
  margin: 0;
  color: #f5f5f7;
  font-size: 17px;
  line-height: 1.4;
}
body.category #wrapper #main #post-list .post-title a:hover {
  color: #ff5963;
}
body.category #wrapper #main #post-list .is-divider {
  width: 38px;
  height: 2px;
  margin: 12px 0;
  background: #e50919;
}
body.category #wrapper #main #post-list .from_the_blog_excerpt {
  margin: 0;
  color: #aeb0b7;
  font-size: 14px;
  line-height: 1.65;
}
body.category #wrapper #main #post-list .post-date .badge-inner {
  border-color: #e50919;
  background: #111216;
  color: #fff;
}

@media (min-width: 850px) {
  body.category #wrapper #main .blog-archive > .row > .large-9.col,
  body.category #wrapper #main .blog-archive > .row > .post-sidebar.col {
    padding-right: 15px;
    padding-left: 15px;
  }
}
@media (min-width: 550px) and (max-width: 849px) {
  body.category #wrapper #main #post-list .post-item {
    flex-basis: 50%;
    max-width: 50%;
  }
}
@media (max-width: 849px) {
  body.category #wrapper #main .blog-archive.page-wrapper {
    padding: 18px 12px 30px;
  }
  body.category #wrapper #main .blog-archive > .row > .large-9.col {
    padding-right: 0;
    padding-left: 0;
  }
  body.category #wrapper #main .blog-archive .post-sidebar {
    display: none;
  }
}
