/*
Theme Name: FFXL - Xoilac TV
Description: Theme WordPress chuyên dụng cho website xem bóng đá trực tiếp với giao diện hiện đại, responsive và nhiều tính năng đặc biệt.
Author: Your Name
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffxl
Tags: sports, football, live-streaming, dark-theme, responsive, bootstrap
*/
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: #121212;
  color: #fff;
  font-family: Inter;
  margin: 0;
}
:root {
  --border-color-light: rgba(163, 162, 162, 0.3);
}
/* Header */
.site-header {
  background: #1a1a1a;
  border-bottom: 3px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-height: 70px;
}
/* Match Grid Layout Fix */
.matches-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important; /* 3 cột bằng nhau */
  gap: 0px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Match Card Fix */
.match-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  min-height: 280px !important;
  max-height: 320px !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  cursor: pointer !important;
  /* Remove fixed background */
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  width: 100% !important;
  height: auto !important;
  /* Remove the fixed background image */
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  flex-direction: column !important;
}
.match-time {
  text-align: -webkit-center;
}
.match-time .time {
    border: 1px solid #ffffff;
    border-radius: 2px;
    width: max-content;
    padding: 0 3px 0 3px;
    margin: unset;
}

.site-header .container {
  height: 100%;
}

.site-header .row {
  min-height: 70px;
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo {
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo img,
.custom-logo,
.logo-img {
  max-height: 48px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 70px;
}

.nav-menu li {
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav-menu .menu-item a {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 8px;
  margin: 0 8px;
  overflow: hidden;
  position: relative;
  background: transparent;
  border: 2px solid transparent;
}

/* Gradient glow effect */
.nav-menu .menu-item a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #2d5a3d, #4c935c, #3a7049, #1e3c72, #2a5298);
  background-size: 300% 300%;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: gradientShift 3s ease infinite;
}

/* Inner glow effect */
.nav-menu .menu-item a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: -1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.nav-menu .menu-item a:hover::before {
  opacity: 1;
}

.nav-menu .menu-item a:hover::after {
  transform: scale(1);
}

.nav-menu .menu-item a:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 4px 15px rgba(76, 147, 92, 0.2),
    0 2px 8px rgba(45, 90, 61, 0.15);
}

.nav-menu .menu-item a.active {
  color: #4c935c !important;
  background: rgba(76, 147, 92, 0.15);
  border: 2px solid rgba(76, 147, 92, 0.5);
  border-radius: 8px;
  box-shadow:
    0 0 8px rgba(76, 147, 92, 0.2),
    inset 0 0 8px rgba(76, 147, 92, 0.05);
  transform: translateY(-2px);
}

/* Ripple effect on click */
.nav-menu .menu-item a {
  overflow: hidden;
}

.nav-menu .menu-item a .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(76, 147, 92, 0.6);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Pulse animation for active state */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 147, 92, 0.3);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(76, 147, 92, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 147, 92, 0);
  }
}

.nav-menu .menu-item a.active {
  animation: pulse 2s infinite;
}

/* Responsive Header */

@media (min-width: 576px) {
  .container {
    max-width: 540px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 660px) {
  .container {
    max-width: 660px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 819px) {
  .container {
    max-width: 750px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 900px) {
  .container {
    max-width: 820px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 950px) {
  .container {
    max-width: 900px;
    transition: max-width 0.3s ease;
  }
}


@media (min-width: 992px) {
  .container {
    max-width: 960px;
    transition: max-width 0.3s ease;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    transition: max-width 0.3s ease;
  }
}

/* Fix cho header mobile */
@media (max-width: 768px) {
  .site-header {
    min-height: 60px;
    padding: 0;
  }
  
  /* .site-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  } */
  
  .site-header .row {
    margin: 0;
    padding: 8px 0;
    min-height: 60px;
  }
  
  .logo img,
  .custom-logo,
  .logo-img {
    max-height: 35px !important;
    max-width: 120px !important;
  }
  /* .badge.bg-gradient.text-white {
    font-size: 1rem !important;
  } */
}

@media (max-width: 767px) and (min-width: 577px)/*Ipad Mini*/{
  /*Menu doc*/
  .matches-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Scale down match cards for iPad Mini */
  .match-card {
    min-height: 240px !important;
    max-height: 280px !important;
    transform: scale(0.95) !important;
    transform-origin: center !important;
  }
  
  /* Scale down team logos */
  .team-logo-img {
    width: 45px !important;
    height: 45px !important;
  }
  
  /* Scale down team names */
  .team-name {
    font-size: 0.85rem !important;
  }
  
  /* Scale down badges */
  .badge {
    font-size: 0.7rem !important;
    padding: 3px 6px !important;
  }
  
  /* Scale down card padding */
  .match-card .card-header,
  .match-card .card-body,
  .match-card .card-footer {
    padding: 12px !important;
  }
  
  /* Scale down score display */
  .home-score,
  .away-score {
    font-size: 1.5rem !important;
  }
  
  /* Scale down buttons */
  .btn-sm {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }
  
  /* Fix text overflow */
  .match-info small {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  /* Scale down vs text */
  .text-muted.fs-2 {
    font-size: 1.5rem !important;
  }
  
  /* Scale down play icon */
  .fa-play-circle.fa-3x {
    font-size: 2rem !important;
  }
  
  /* Ensure proper spacing */
  .match-teams-card {
    align-items: center !important;
  }
  
  /* Fix upcoming match layout */
  .upcoming-match .mt-3 {
    margin-top: 8px !important;
  }
  
  .upcoming-match .mt-2 {
    margin-top: 6px !important;
  }
  
  /* Scale down text playing */
  .text-playing p {
    font-size: 0.75rem !important;
    margin: 3px 0 0 0 !important;
  }
  
  /* Fix container padding for iPad Mini */
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Fix filter buttons for iPad Mini */
  .d-flex.justify-content-center.flex-wrap.gap-3 {
    gap: 8px !important;
    padding: 8px 5px !important;
  }
  
  .d-flex.justify-content-center.flex-wrap.gap-3 > * {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    transform: scale(0.95) !important;
  }
  
  /* Hide navigation menu on iPad Mini */
  .main-navigation {
    display: none !important;
  }
  
  /* Fix header layout */
  /* .row.align-items-center {
    flex-direction: column !important;
  } */
  
  /* Fix logo size */
  .logo img,
  .custom-logo,
  .logo-img {
    max-height: 40px !important;
    max-width: 140px !important;
  }
}

@media (max-width: 576px) and (min-width: 530px)/*Ipad Mini*/{
  /*Menu doc*/
  .matches-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Chỉ 1 cột để full width */
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important; /* Thêm padding cho container */
  }
  
  /* Match card full width */
  .match-card {
    width: 100% !important; /* Full width */
    max-width: 100% !important; /* Đảm bảo không vượt quá */
    min-height: 240px !important;
    max-height: 280px !important;
    transform: none !important; /* Bỏ scale để tránh lệch */
    transform-origin: center !important;
    margin: 0 auto !important; /* Center align */
    display: flex !important;
    flex-direction: column !important;
    background-position: center !important; /* Center background image */
    background-size: cover !important;
  }
  
  /* Fix card content layout */
  .match-card .card-header,
  .match-card .card-body,
  .match-card .card-footer {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Scale down team logos */
  .team-logo-img {
    width: 45px !important;
    height: 45px !important;
  }
  
  /* Scale down team names */
  .team-name {
    font-size: 0.85rem !important;
  }
  
  /* Scale down badges */
  .badge {
    font-size: 0.7rem !important;
    padding: 3px 6px !important;
  }
  
  /* Scale down score display */
  .home-score,
  .away-score {
    font-size: 1.5rem !important;
  }
  
  /* Scale down buttons */
  .btn-sm {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }
  
  /* Fix text overflow */
  .match-info small {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  /* Scale down vs text */
  .text-muted.fs-2 {
    font-size: 1.5rem !important;
  }
  
  /* Scale down play icon */
  .fa-play-circle.fa-3x {
    font-size: 2rem !important;
  }
  
  /* Ensure proper spacing */
  .match-teams-card {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Fix upcoming match layout */
  .upcoming-match .mt-3 {
    margin-top: 8px !important;
  }
  
  .upcoming-match .mt-2 {
    margin-top: 6px !important;
  }
  
  /* Scale down text playing */
  .text-playing p {
    font-size: 0.75rem !important;
    margin: 3px 0 0 0 !important;
  }
  
  /* Fix container padding for iPad Mini */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
  }
  
  /* Fix filter buttons for iPad Mini */
  .d-flex.justify-content-center.flex-wrap.gap-3 {
    gap: 8px !important;
    padding: 8px 5px !important;
    flex-wrap: wrap !important;
  }
  
  .d-flex.justify-content-center.flex-wrap.gap-3 > * {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    transform: scale(0.95) !important;
  }
  
  /* Hide navigation menu on iPad Mini */
  .main-navigation {
    display: none !important;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 24px !important;
    height: 24px !important;
    background: none !important;
    border: none !important;
    padding: 3px !important;
    cursor: pointer !important;
  }
  
  /* Mobile navigation styles */
  .mobile-navigation {
    display: block !important;
    padding: 15px 0 !important;
    background: #1a1a1a !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
  }
  
  .mobile-nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .mobile-nav-menu li {
    border-bottom: 1px solid rgba(163, 162, 162, 0.3) !important;
    padding: 8px 0 !important;
  }
  
  .mobile-nav-menu a {
    display: block !important;
    padding: 5px 0 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
  }
  
  /* Fix header layout */
  .row.align-items-center {
    flex-direction: column !important;
  }
  
  /* Fix logo size */
  .logo img,
  .custom-logo,
  .logo-img {
    max-height: 40px !important;
    max-width: 140px !important;
  }
  
  /* Ensure match content is properly aligned */
  .match-teams {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
  }
  
  /* Fix team layout */
  .team.team-home,
  .team.team-away {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  .team.team-home {
    justify-content: flex-start !important;
  }
  
  .team.team-away {
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
  }
}

@media (max-width: 529px) and (min-width: 509px)/*Mobile Small*/{
  /*Menu doc*/
  .matches-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Chỉ 1 cột để full width */
    gap: 10px !important; /* Giảm gap */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 5px !important; /* Giảm padding để thu gọn chiều ngang */
  }
  
  /* Match card - chỉ thu gọn chiều ngang */
  .match-card {
    width: calc(100% - 10px) !important; /* Thu gọn chiều ngang 10px */
    max-width: calc(100% - 10px) !important;
    min-height: 240px !important; /* Giữ nguyên chiều cao */
    max-height: 280px !important; /* Giữ nguyên chiều cao */
    transform: none !important; /* Bỏ scale để không thu nhỏ toàn bộ */
    transform-origin: center !important;
    margin: 0 auto !important; /* Center align */
    display: flex !important;
    flex-direction: column !important;
    background-position: center !important;
    background-size: cover !important;
  }
  
  /* Fix card content layout - padding bình thường */
  .match-card .card-header,
  .match-card .card-body,
  .match-card .card-footer {
    padding: 8px !important; /* Giảm padding nhẹ thay vì nửa */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Team logos - giữ kích thước vừa phải */
  .team-logo-img {
    width: 35px !important;
    height: 35px !important;
  }
  
  /* Team names - giữ font size dễ đọc */
  .team-name {
    font-size: 0.75rem !important;
  }
  
  /* Badges - giữ kích thước vừa phải */
  .badge {
    font-size: 0.65rem !important;
    padding: 3px 5px !important;
  }
  
  /* Score display - giữ kích thước dễ nhìn */
  .home-score,
  .away-score {
    font-size: 1.2rem !important;
  }
  
  /* Buttons - giữ kích thước vừa phải */
  .btn-sm {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
  
  /* Text overflow - giữ dễ đọc */
  .match-info small {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }
  
  /* VS text - giữ kích thước vừa phải */
  .text-muted.fs-2 {
    font-size: 1.1rem !important;
  }
  
  /* Play icon - giữ kích thước vừa phải */
  .fa-play-circle.fa-3x {
    font-size: 1.3rem !important;
  }
  
  /* Ensure proper spacing */
  .match-teams-card {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Fix upcoming match layout */
  .upcoming-match .mt-3 {
    margin-top: 6px !important;
  }
  
  .upcoming-match .mt-2 {
    margin-top: 4px !important;
  }
  
  /* Text playing */
  .text-playing p {
    font-size: 0.65rem !important;
    margin: 3px 0 0 0 !important;
  }
  
  /* Container - thu gọn padding để tiết kiệm không gian ngang */
  .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
    max-width: 100% !important;
  }
  
  /* Filter buttons - thu gọn nhẹ */
  .d-flex.justify-content-center.flex-wrap.gap-3 {
    gap: 3px !important;
    padding: 5px 2px !important;
    flex-wrap: wrap !important;
  }
  
  .d-flex.justify-content-center.flex-wrap.gap-3 > * {
    font-size: 0.65rem !important;
    padding: 4px 6px !important;
    transform: none !important; /* Bỏ scale */
  }
  
  /* Hide navigation menu */
  .main-navigation {
    display: none !important;
  }
  
  /* Mobile menu toggle - kích thước bình thường */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 24px !important;
    height: 24px !important;
    background: none !important;
    border: none !important;
    padding: 3px !important;
    cursor: pointer !important;
  }
  
  /* Mobile navigation styles */
  .mobile-navigation {
    display: block !important;
    padding: 12px 0 !important;
    background: #1a1a1a !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
  }
  
  .mobile-nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .mobile-nav-menu li {
    border-bottom: 1px solid rgba(163, 162, 162, 0.3) !important;
    padding: 6px 0 !important;
  }
  
  .mobile-nav-menu a {
    display: block !important;
    padding: 4px 0 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
  }
  
  /* Fix header layout */
  .row.align-items-center {
    flex-direction: column !important;
  }
  
  /* Logo size - giữ kích thước vừa phải */
  .logo img,
  .custom-logo,
  .logo-img {
    max-height: 35px !important;
    max-width: 120px !important;
  }
  
  /* Match content - thu gọn padding ngang */
  .match-teams {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 6px !important; /* Thu gọn padding ngang */
  }
  
  /* Team layout - giữ gap vừa phải */
  .team.team-home,
  .team.team-away {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  
  .team.team-home {
    justify-content: flex-start !important;
  }
  
  .team.team-away {
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
  }
  
  /* Match time display */
  .match-time .time {
    font-size: 0.75rem !important;
    padding: 0 2px !important;
  }
  
  /* Status display */
  .match-status {
    width: 50px !important;
    height: 35px !important;
    margin: 5px !important;
  }
  
  .match-status .status-text {
    font-size: 0.65rem !important;
  }
}
@media (max-width: 509px) and (min-width: 390px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 450px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}


@media (max-width: 300px) {
  /* Force 1 column cho mobile */
  .match-time .time {
    font-size: 0.9rem !important;
    padding: 0 2px !important;
    border: 1px solid #ffffff;
    border-radius: 2px;
  }
  
  .match-time span {
    font-size: 0.9rem !important;
  }
  
  .badge.bg-info.fs-6 {
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
  }
  
  /* Fix thêm các element time khác */
  .time {
    font-size: 0.8rem !important;
  }
  
  /* Fix status time */
  .status-text {
    font-size: 0.7rem !important;
  }
  
  /* Fix match time container */
  .match-time {
    font-size: 0.8rem !important;
  }
  .badge.upcoming-indicator{
    scale: 0.8 !important;
  }
}


@media (max-width: 1280px)/*Nest Hub Max*/{
  /*Menu Ngang*/
  .menu-item-type-custom a{
    padding: 0 10px !important;
    font-size: 0.85rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-post_type a{
    padding: 0 10px !important;
    font-size: 0.85rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-taxonomy a{
    padding: 0 10px !important;
    font-size: 0.85rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .matches-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
}
@media (max-width: 1024px)/*Ipad Pro*/{
  /*Menu Ngang*/
  .menu-item-type-custom a{
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-post_type a{
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-taxonomy a{
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
 
}
@media (max-width: 1024px) and (min-width: 980px){
  .panel__body .row .col-lg-3{
    flex: 0 0 24% !important;
    max-width: 24% !important;
    padding: 0 !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px){
  .badge.bg-gradient.text-white {
    font-size: 1rem !important;
  }
  .team-info .team-logo.mb-2 img{
    width: 60px !important;
    height: 60px !important;
  }
  .team-info .team-name.text-white{
    /* font-size: 1.3rem !important; */
  }
}
@media (max-width: 1279px) and (min-width: 1023px)/*Ipad Pro*/{
  .panel__body .row .col-lg-3{
    flex: 0 0 23% !important;
    max-width: 23% !important;
    padding: 0 !important;
  }
}
@media (max-width: 912px) and (min-width: 577px)/*surface Pro 7*/{
  /*Menu doc*/
  .main-navigation{
    display: none !important;
  }
  /* .row.align-items-center.py-2 {
    flex-direction: column !important;
  } */
  .menu-item-type-custom a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-post_type a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-taxonomy a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
}

@media (max-width: 768px) {
  .site-header .row {
    flex-direction: column;
    min-height: 60px;
    padding: 10px 0;
  }

  .site-header .col-auto {
    margin-bottom: 10px;
  }

  .main-navigation {
    justify-content: center !important;
  }

  .logo img,
  .custom-logo,
  .logo-img {
    max-height: 40px !important;
    max-width: 150px !important;
  }

  .nav-menu {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 5px;
  }

  .nav-menu .menu-item a {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px;
    margin: 0 3px;
  }
  .menu-item-type-custom a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-post_type a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
  .menu-item-type-taxonomy a{
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    border-radius: 7px;
    margin: 0 4px !important;
  }
}

@media (max-width: 576px) {
  .nav-menu .menu-item a {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 5px;
    margin: 0 2px;
  }

  .nav-menu .menu-item a::before {
    border-radius: 7px;
  }

  .nav-menu .menu-item a::after {
    border-radius: 4px;
  }
  .d-flex.justify-content-center.flex-wrap.gap-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3px !important;
  overflow-x: auto !important; /* Scroll ngang nếu cần */
  padding: 5px 0 !important;
}

  /* Thu nhỏ từng button */
  .d-flex.justify-content-center.flex-wrap.gap-3 > * {
    flex-shrink: 0 !important; /* Không co lại */
    font-size: 0.75rem !important; /* Giảm font size */
    padding: 4px 8px !important; /* Giảm padding */
    min-width: auto !important;
    border-radius: 4px !important;
    transform: scale(0.9) !important; /* Thu nhỏ 90% */
    transform-origin: center !important;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation cho hamburger menu */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */

.mobile-navigation {
  padding: 20px 0;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-color-light);
  padding: 10px 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

.mobile-nav-menu a:hover {
  color: #198754;
}
.main-navigation .nav-menu a{
  padding: 10px !important;
}
/* Search Box CSS */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px;
  min-width: 100px;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 1; /* Cho phép co lại */
  flex-grow: 0; /* Không tự động mở rộng */
}

.search-box:hover {
  border-color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.search-box:focus-within {
  border-color: #FFC107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 50px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #888;
  transition: color 0.3s ease;
}

.search-input:focus::placeholder {
  color: #666;
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-button:active {
  transform: translateY(-50%) scale(0.95);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: #888;
  transition: color 0.3s ease;
}

.search-button:hover .search-icon {
  color: #ffffff;
}
.icon-search{
  display: none;
  color: #b6b6b6;
  transition: color 0.3s ease;
}
.icon-search i{
  font-size: 1.2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    padding: 15px;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .search-input {
    padding: 10px 14px;
    padding-right: 45px;
    font-size: 13px;
  }
  
  .search-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .search-input {
    padding: 8px 12px;
    padding-right: 40px;
    font-size: 12px;
  }
  
  .search-button {
    right: 6px;
    padding: 6px;
  }
  
  .search-icon {
    width: 14px;
    height: 14px;
  }
}
/* Desktop menu*/
@media (max-width: 1599px) and (min-width: 1281px){
  .matches-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 3 cột bằng nhau */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease;
  }
  .main-navigation .nav-menu a{
    padding: 5px !important;
    font-size:0.8rem !important;
  }
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.2s ease;
  }
  .search-box {
    max-width: 150px !important;
    min-width: 100px !important;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1001;
    transform-origin: right center; /* Điểm gốc từ bên phải */
  }
  .search-box input{
    font-size:0.8rem !important;
    transition: font-size 0.3s ease;
  }
  /* Khi search-box được focus hoặc có class active - animation từ phải sang trái */
  .search-box:focus-within,
  .search-box.active {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;       /* Bắt đầu từ bên phải */
    left: 15px !important;
    max-width: calc(100% - 30px) !important;
    min-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    z-index: 1002 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform-origin: right center !important; /* Điểm gốc từ bên phải */
  }
  
  /* Ẩn các element khác khi search active */
  .search-box:focus-within ~ .nav-menu,
  .search-box.active ~ .nav-menu {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  /* Overlay để click ra ngoài sẽ đóng search */
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 1280px) and (min-width: 1200px){
  .main-navigation .nav-menu a{
    padding: 4px !important;
    font-size:0.8rem !important;
  }
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.2s ease;
  }
  .search-box {
    max-width: 150px !important;
    min-width: 100px !important;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1001;
    transform-origin: right center; /* Điểm gốc từ bên phải */
  }
  .search-box input{
    font-size:0.8rem !important;
    transition: font-size 0.3s ease;
  }
  /* Khi search-box được focus hoặc có class active - animation từ phải sang trái */
  .search-box:focus-within,
  .search-box.active {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;       /* Bắt đầu từ bên phải */
    left: 15px !important;
    max-width: calc(100% - 30px) !important;
    min-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    z-index: 1002 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform-origin: right center !important; /* Điểm gốc từ bên phải */
  }
  
  /* Ẩn các element khác khi search active */
  .search-box:focus-within ~ .nav-menu,
  .search-box.active ~ .nav-menu {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  /* Overlay để click ra ngoài sẽ đóng search */
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 1199px) and (min-width: 1025px){
  .main-navigation .nav-menu a{
    padding: 4px !important;
    font-size:0.8rem !important;
  }
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.2s ease;
  }
  .search-box {
    max-width: 50px !important;
    min-width: 40px !important;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1001;
    transform-origin: right center; /* Điểm gốc từ bên phải */
  }
  .search-box input{
    font-size:0.8rem !important;
    transition: font-size 0.3s ease;
  }
  /* Khi search-box được focus hoặc có class active - animation từ phải sang trái */
  .search-box:focus-within,
  .search-box.active {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;       /* Bắt đầu từ bên phải */
    left: 15px !important;
    max-width: calc(100% - 30px) !important;
    min-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    z-index: 1002 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform-origin: right center !important; /* Điểm gốc từ bên phải */
  }
  
  /* Ẩn các element khác khi search active */
  .search-box:focus-within ~ .nav-menu,
  .search-box.active ~ .nav-menu {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  /* Overlay để click ra ngoài sẽ đóng search */
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1024px) and (min-width: 300px){
  .matches-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 3 cột bằng nhau */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease;
  }
  .main-navigation .nav-menu a{
    padding: 4px !important;
    font-size:0.8rem !important;
  }
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.2s ease;
  }
  .search-box {
    max-width: 50px !important;
    min-width: 40px !important;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1001;
    transform-origin: right center; /* Điểm gốc từ bên phải */
  }
  .search-box input{
    font-size:0.8rem !important;
    transition: font-size 0.3s ease;
  }
  /* Khi search-box được focus hoặc có class active - animation từ phải sang trái */
  .search-box:focus-within,
  .search-box.active {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;       /* Bắt đầu từ bên phải */
    left: 15px !important;
    max-width: calc(100% - 30px) !important;
    min-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    z-index: 1002 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform-origin: right center !important; /* Điểm gốc từ bên phải */
  }
  
  /* Ẩn các element khác khi search active */
  .search-box:focus-within ~ .nav-menu,
  .search-box.active ~ .nav-menu {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  /* Overlay để click ra ngoài sẽ đóng search */
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
/* Desktop menu - ẩn trên mobile - setmenu tren mobie*/
@media (max-width: 991px) and (min-width: 821px) {
  .main-navigation {
    display: none !important;
  }
  .mobie-header{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-nav-menu a {
    padding: 7px 0 !important;
    font-size: 1rem !important;
  }
  /* Thêm CSS để hiển thị mobile-menu-toggle */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 30px !important;
    height: 30px !important;
    background: none !important;
    border: none !important;
    padding: 5px !important;
    cursor: pointer !important;
  }
  .collapse.d-lg-none{
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    border-radius:3%;
  }
  .mobile-menu-toggle span{
    width: 26px !important;
    height: 2px !important;
  }
  .mobile-menu-toggle .hamburger-line {
  width: 26px !important;
  height: 2px !important;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2px 0 !important; /* Tạo khoảng cách trên/dưới */
  }

  .mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
  }

  .mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
  }
    .d-flex.justify-content-center.flex-wrap.gap-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* Không xuống hàng */
  gap: 5px !important;
  overflow-x: auto !important; /* Scroll ngang nếu cần */
  padding: 10px 0 !important;
  transition: all 0.2s ease;
}

/* Thu nhỏ từng button */
.d-flex.justify-content-center.flex-wrap.gap-3 > * {
  flex-shrink: 0 !important; /* Không co lại */
  font-size: 0.8rem !important; /* Giảm font size */
  /* padding: 4px 8px !important;*/
  min-width: auto !important;
  white-space: nowrap !important; /* Không xuống dòng text */
  border-radius: 50px !important;
  transform: scale(1) !important; /* Thu nhỏ 90% */
  transform-origin: center !important;
  transition: transform 0.2s ease; /* Hiệu ứng mượt khi hover */
}
}

/* Desktop menu - ẩn trên mobile - setmenu tren mobie*/
@media (max-width: 820px) and (min-width: 768px) {
  .main-navigation {
    display: none !important;
  }
  .mobie-header{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-nav-menu a {
    padding: 5px 0 !important;
    font-size: 0.875rem !important;
  }
  .row.align-items-center {
    flex-direction: column;
  }
  .collapse.d-lg-none{
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    border-radius:3%;
  }
  .mobile-menu-toggle span{
    width: 26px !important;
    height: 2px !important;
  }
  .mobile-menu-toggle .hamburger-line {
  width: 26px !important;
  height: 2px !important;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2px 0 !important; /* Tạo khoảng cách trên/dưới */
  }

  .mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
  }

  .mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 818px) and (min-width: 701px){
  .match-status{
    width:40px !important;
    height:50px !important;
  }
}
/* Desktop menu - ẩn trên mobile - setmenu tren mobie*/
@media (max-width: 767px) and (min-width: 540px) {
  .main-navigation {
    display: none !important;
  }
  .mobie-header{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-nav-menu a {
    padding: 5px 0 !important;
    font-size: 0.875rem !important;
  }
  .row.align-items-center {
    flex-direction: column;
  }
  .collapse.d-lg-none{
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    border-radius:3%;
  }
  .mobile-menu-toggle span{
    width: 24px !important;
    height: 2px !important;
  }
  .mobile-menu-toggle .hamburger-line {
    width: 24px !important;
    height: 2px !important;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
    margin: 2px 0 !important; /* Tạo khoảng cách trên/dưới */
  }

  .mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
  }

  .mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 539px) and (min-width: 360px) {
  .main-navigation {
    display: none !important;
  }
  .mobie-header{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-nav-menu a {
    padding: 3px 0 !important;
    font-size: 0.675rem !important;
  }
  .row.align-items-center {
    flex-direction: column;
  }
  .collapse.d-lg-none{
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    border-radius:3%;
  }
  .mobile-menu-toggle span{
    width: 20px !important;
    height: 2px !important;
  }
  .mobile-menu-toggle .hamburger-line {
  width: 20px !important;
  height: 2px !important;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2px 0 !important; /* Tạo khoảng cách trên/dưới */
  }

  .mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
  }

  .mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 480px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 420px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}
@media (max-width: 479px) and (min-width:455) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 400px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}
@media (max-width: 440px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 400px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}
@media (max-width: 430px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 390px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}

@media (max-width: 414px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 370px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}

@media (max-width: 390px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 350px !important;
  }
   .match-teams .team.team-away img{
    /* margin-left: 10px; */
    width:30px;
    height:30px;
}
  .match-teams .team.team-home img{
    /* margin-right: 10px; */
    width:30px;
    height:30px;
  }
  .result-match .match-status{
    width:50px !important;
    height:50px !important;
  }
}
@media (max-width: 375px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 335px !important;
  }
  .match-time .time {
    font-size: 0.9rem !important;
    padding: 0 4px !important;
    border: 1px solid #ffffff;
    border-radius: 2px;
  }
  
  .match-time span {
    font-size: 0.9rem !important;
  }
  
  .badge.bg-info.fs-6 {
    padding: 2px 4px !important;
    font-size: 0.9rem !important;
  }
  
  /* Fix thêm các element time khác */
  .time {
    font-size: 0.9rem !important;
  }
  
  /* Fix status time */
  .status-text {
    font-size: 0.9rem !important;
  }
  
  /* Fix match time container */
  .match-time {
    font-size: 0.9rem !important;
  }
}
@media (max-width: 360px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 320px !important;
  }
  .badge.upcoming-indicator{
    scale: 0.8 !important;
  }
  .match-time .time {
    font-size: 0.8rem !important;
    padding: 0 2px !important;
    border: 1px solid #ffffff;
    border-radius: 2px;
  }
  
  .match-time span {
    font-size: 0.8rem !important;
  }
  
  .badge.bg-info.fs-6 {
    padding: 2px 4px !important;
    font-size: 0.7rem !important;
  }
  
  /* Fix thêm các element time khác */
  .time {
    font-size: 0.8rem !important;
  }
  
  /* Fix status time */
  .status-text {
    font-size: 0.7rem !important;
  }
  
  /* Fix match time container */
  .match-time {
    font-size: 0.8rem !important;
  }
}
@media (max-width: 344px) {
  /* Force 1 column cho mobile */
  .card.match-card {
    width: 305px !important;
  }
}

@media (max-width: 359px){
  .main-navigation {
    display: none !important;
  }
  .mobie-header{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-nav-menu a {
    padding: 3px 0 !important;
    font-size: 0.675rem !important;
  }
  .row.align-items-center {
    flex-direction: column;
  }
  .collapse.d-lg-none{
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    border-radius:3%;
  }
  .mobile-menu-toggle span{
    width: 18px !important;
    height: 2px !important;
  }
  .mobile-menu-toggle .hamburger-line {
  width: 18px !important;
  height: 2px !important;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2px 0 !important; /* Tạo khoảng cách trên/dưới */
  }

  .mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
  }

  .mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
  }
}


@media (max-width: 912px) and (min-width: 768px) {
  
  /* Image thumbnail - full width */
  .post-item-video .post-item-image {
    width: 100% !important;
    height: 180px !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
  }
  
  /* Add gradient overlay cho thumbnail */
  .post-item-video .post-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
  }
}
@media (max-width: 821px) and (min-width: 769px) {
  .badge.bg-gradient.text-white {
    font-size: 1rem !important;
  }
  .main-navigation {
    display: none !important;
  }
  /* .row.align-items-center {
    flex-direction: column;
  } */

  .mobile-nav-menu a {
    padding: 5px 0 !important;
    font-size: 1rem !important;
  }
  .filter-section.py-4{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .d-flex.justify-content-center.flex-wrap.gap-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* Không xuống hàng */
  gap: 5px !important;
  overflow-x: auto !important; /* Scroll ngang nếu cần */
  padding: 10px 0 !important;
}

/* Thu nhỏ từng button */
.d-flex.justify-content-center.flex-wrap.gap-3 > * {
  flex-shrink: 0 !important; /* Không co lại */
  font-size: 0.8rem !important; /* Giảm font size */
  /* padding: 4px 8px !important;*/
  min-width: auto !important;
  white-space: nowrap !important; /* Không xuống dòng text */
  border-radius: 10px !important;
  transform: scale(1) !important; /* Thu nhỏ 90% */
  transform-origin: center !important;
}
}

@media (max-width: 540px) and (min-width: 431px) {
  
  /* Image thumbnail - full width */
  .post-item-video .post-item-image {
    width: 100% !important;
    height: 150px !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
  }
  
  /* Add gradient overlay cho thumbnail */
  .post-item-video .post-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
  }
}

.panel__body .row{
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;       /* Firefox: làm thanh cuộn nhỏ hơn */
  scroll-snap-type: x mandatory; /* Giúp cuộn mượt từng card */
}
/* Banner */
.banner {
  background: #0d47a1;
  color: yellow;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}

/* Tiêu đề */
.headline {
  background: #222;
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

/* Bộ lọc */
.filter-bar {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 10px;
  background: #1f1f1f;
}

.filter-bar button {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.filter-bar button:hover {
  background: #f54242;
}

/* Match Grid */

/* Match Card Custom */
.match-card {
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/wp-content/uploads/2025/08/istockphoto-1041868334-612x612-1.jpg") !important;
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: left;
}

.match-card:hover {
  box-shadow: 0 6px 24px rgba(0, 255, 0, 0.15);
  transform: translateY(-4px) scale(1.02);
}

.score-box {
  min-width: 90px;
  text-align: center;
  font-size: 2rem;
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: bold;
}

.commentator {
  display: none;
  position: absolute;
  left: 18px;
  bottom: 12px;
  background: #222;
  color: #b3ff00;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.08);
}

.match-card:hover .commentator {
  display: block;
}

.fw-bold {
  font-size: clamp(8px, 2vw, 14px);
}

.league {
  font-weight: bold;
  color: #b3ff00;
}

.status.live {
  background: #1e7e34;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.status.finished {
  background: #007bff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.time {
  color: #ccc;
  font-size: 13px;
}

.match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #222;
  object-fit: cover;
  border: 2px solid #333;
}

.score {
  font-size: 28px;
  font-weight: bold;
  color: #00e676;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vs {
  color: #fff;
  font-size: 18px;
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 8px;
}

.ht-score {
  color: #ffeb3b;
}

.total-score {
  color: #ff5252;
}

.viewer {
  color: #00e676;
}

.commentator {
  display: none;
  position: absolute;
  left: 18px;
  bottom: 12px;
  background: #222;
  color: #b3ff00;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.08);
}

.match-card:hover .commentator {
  display: block;
}

/* .match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}

.match-card {
  background: #1a1a1a;
  padding: 15px;
  border-left: 4px solid limegreen;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.league {
  font-size: 14px;
  color: #ccc;
  align-self: flex-start;
}

.teams {
  font-size: 16px;
  margin: 10px 0;
  text-align: center;
}

.info {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.watch-btn {
  background: #f54242;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  align-items: center;
  justify-content: center;
} */

/* Highlight */
/* VIDEO HIGHLIGHT layout */
.highlight {
  padding: 20px;
  background: #1e1e1e;
}

.highlight h2 {
  color: limegreen;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.highlight-list {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
}

.video-main {
  position: relative;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.video-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-main .play-btn {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

.video-main .main-title {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 4px #000;
  z-index: 1;
  margin-left: 60px;
}

.video-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.video-item {
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 70px;
  position: relative;
}

.video-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}

.video-item .play-btn {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}

.video-item .video-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  text-shadow: 1px 1px 2px #000;
  padding-left: 5px;
}

@media (max-width: 900px) {
  .highlight-list {
    grid-template-columns: 1fr;
  }

  .video-list {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-section {
  background: #181a1b;
  padding: 30px 0;
}

.about-container {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
}

.about-menu {
  width: 260px;
  background: #161718;
  border-radius: 6px;
  padding: 20px 10px 20px 20px;
}

.about-menu h3 {
  color: #aaff77;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #222;
  padding-bottom: 8px;
  font-weight: bold;
}

.about-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-menu ul li {
  margin-bottom: 8px;
}

.about-menu ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}

.about-menu ul li a:hover {
  color: #fff;
}

.about-content {
  flex: 1;
  background: #202224;
  border-radius: 6px;
  padding: 25px 30px;
  color: #fff;
  min-width: 0;
}

.about-content h2 {
  color: #aaff77;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 260px;
  width: 100%;
  border-radius: 16px;
  border: 4px solid #222;
  margin-bottom: 10px;
  background: #fff;
}

.about-caption {
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 20px;
  }

  .about-menu {
    width: 100%;
    padding: 15px;
  }

  .about-content {
    padding: 18px 10px;
  }
}

/* Footer */
.footer-xl {
  background: #111;
  color: #fff;
  margin-top: 40px;
  font-size: 16px;
  border-top: 3px solid #222;
}

.footer-xl-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 12px;
  border-left: 4px solid #aaff77;
  padding-left: 10px;
  text-transform: none;
}

.footer-xl-logo-link {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
}

.footer-xl-logo-link:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-xl-logo {
  width: 180px !important;
  height: 60px !important;
  margin: 8px 0 12px 0;
  display: block !important;
  object-fit: contain !important;
  object-position: left center;
  background: transparent;
  border-radius: 4px;
  max-width: 180px !important;
  max-height: 60px !important;
}

.footer-xl-desc {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-xl-info {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-xl-info a {
  color: #aaff77;
  text-decoration: none;
  margin-right: 6px;
  font-size: 1rem;
}

.footer-xl-info a:hover {
  color: #fff;
}

.footer-xl-disclaimer {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-xl-disclaimer b {
  color: #aaff77;
}

.footer-xl-disclaimer ul {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.footer-xl-disclaimer ul li {
  margin-bottom: 4px;
}

.footer-xl-disclaimer ul li a {
  color: #7fff4e;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-xl-disclaimer ul li a:hover {
  color: #fff;
}

.footer-xl-col-dmca {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-xl-dmca {
  width: 100px;
  margin-top: 12px;
}

.footer-xl-bottom {
  background: #0f0f0f;
  color: #aaff77;
  font-size: 1rem;
  border-top: 1px solid #222;
}

/* Footer responsive styles are handled by Bootstrap */


@media (max-width: 700px) {

  .footer-top,
  .footer-main {
    max-width: 98vw;
    padding: 0 6px;
  }

  .footer-logo .logo-main {
    font-size: 22px;
  }

  .footer-social img {
    width: 22px;
    height: 22px;
  }
}

/* Highlight headline */
.highlight-headline {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin: 25px 0 18px 0;
  letter-spacing: 1px;
}

/* Highlight list grid */
.highlight-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.highlight-item {
  background: #181a1b;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlight-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.highlight-caption {
  color: #fff;
  font-size: 15px;
  padding: 10px 8px 8px 8px;
  text-align: center;
  background: #111;
  width: 100%;
}

/* Pagination */
.highlight-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 30px 0;
}

.highlight-pagination button {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.highlight-pagination button.active,
.highlight-pagination button:hover {
  background: #aaff77;
  color: #222;
  font-weight: bold;
}

/* About Section (reuse or override if needed) */
.about-section {
  background: #181a1b;
  padding: 30px 0;
}

.about-container {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
}

.about-menu {
  width: 260px;
  background: #161718;
  border-radius: 6px;
  padding: 20px 10px 20px 20px;
}

.about-menu h3 {
  color: #aaff77;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #222;
  padding-bottom: 8px;
  font-weight: bold;
}

.about-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-menu ul li {
  margin-bottom: 8px;
}

.about-menu ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}

.about-menu ul li a:hover {
  color: #fff;
}

.about-content {
  flex: 1;
  background: #202224;
  border-radius: 6px;
  padding: 25px 30px;
  color: #fff;
  min-width: 0;
}

.about-content h2 {
  color: #aaff77;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.about-content h3 {
  color: #aaff77;
  font-size: 18px;
  margin: 18px 0 10px 0;
  font-weight: bold;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 350px;
  width: 100%;
  border-radius: 12px;
  border: 3px solid #222;
  margin-bottom: 10px;
  background: #fff;
}

.about-caption {
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}
/* .@media (max-width: 1280px){

} */
@media (max-width: 900px) {
  .highlight-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-container {
    flex-direction: column;
    gap: 20px;
  }

  .about-menu {
    width: 100%;
    padding: 15px;
  }

  .about-content {
    padding: 18px 10px;
  }
}
@media (max-width: 800px) {
  .matches-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .highlight-list {
    grid-template-columns: 1fr;
  }
}

/* bang-xep-hang */
.page-title {
  font-size: 2rem;
  font-weight: bold;
  color: #aaff77;
  margin: 20px 0 10px 0;
}

.filter-bar {
  margin-bottom: 15px;
}

.league-table table {
  width: 100%;
  border-collapse: collapse;
  background: #181818;
  color: #fff;
}

.league-table th,
.league-table td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
}

.league-table th {
  background: #2e2e2e;
  color: #aaff77;
}

.league-table tr:nth-child(even) {
  background: #222;
}

.content-section {
  margin-top: 30px;
  color: #fff;
}

.content-section h2 {
  color: #aaff77;
  margin-top: 20px;
}

.content-section ul {
  margin-left: 20px;
}

/* Tabs kết quả */
.result-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px 0;
  justify-content: flex-start;
}

.result-tabs button {
  background: #181818;
  color: #aaff77;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: bold;
  font-size: 15px;
  padding: 8px 18px 4px 18px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border 0.2s, color 0.2s;
  outline: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-tabs button span {
  font-size: 12px;
  color: #fff;
  font-weight: normal;
  margin-top: 2px;
}

.result-tabs button.active,
.result-tabs button:hover {
  color: #fff;
  border-bottom: 3px solid #aaff77;
  background: #222;
}

/* Bảng kết quả */
.result-table {
  background: #181818;
  border-radius: 8px;
  padding: 18px 12px;
  margin-bottom: 24px;
}

.result-league {
  margin-bottom: 18px;
}

.league-title {
  color: #aaff77;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-match {
  text-align: center !important;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #222;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 7px;
  font-size: 15px;
}

.match-status {
  color: #aaff77;
  font-weight: bold;
  width: 45px;
  text-align: center;
}

.match-teams>img {
  height: 40px;
}

.match-teams>strong {
  display: flex;
  width: 90px;
  gap: 1rem;
  padding: .2rem .6rem;
  border-radius: .5rem;
  border: 1px solid #fff3;
  color: #fff;
  justify-content: center;
}

.match-teams .team p {
  margin: unset !important;

}
.match-teams .team {
  flex-direction: row-reverse;
  gap: 1rem;
}

.match-teams {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-around;
  gap: .75rem;
  padding: .5rem 0;
  position: relative;
  z-index: 3;
  width: 100%;
}

.match-odds {
  color: #ffd700;
  font-size: 14px;
  min-width: 90px;
  text-align: center;
}

.match-extra {
  color: #4caf50;
  font-size: 13px;
  min-width: 60px;
  text-align: right;
}

@media (max-width: 700px) {
  .result-match {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
  }

  .result-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* Tin Thể Thao Layout */
.news-container {
  display: flex;
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 0 40px 0;
}

.news-main {
  flex: 2;
}

.news-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 18px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  background: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.news-item a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.news-thumb {
  width: 200px;
  min-width: 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin-right: 18px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-headline {
  font-size: 1.1rem;
  font-weight: bold;
  color: #aaff77;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-meta {
  font-size: 0.95rem;
  color: #bbb;
}

.news-meta span {
  color: #4caf50;
}

.news-item:hover .news-headline {
  color: #fff;
}

/* Sidebar */
.news-sidebar {
  flex: 1;
  background: #181818;
  border-radius: 8px;
  padding: 18px 18px 18px 22px;
  min-width: 260px;
  max-width: 340px;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 14px;
  border-left: 4px solid #aaff77;
  padding-left: 10px;
  text-transform: uppercase;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 8px;
}

.sidebar-list a {
  color: #7fff4e;
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.sidebar-list a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .news-container {
    flex-direction: column;
    gap: 18px;
    padding: 12px 0 24px 0;
  }

  .news-sidebar {
    max-width: 100%;
    min-width: unset;
    margin-top: 18px;
  }

  .news-thumb {
    width: 140px;
    min-width: 140px;
    height: 90px;
    margin-right: 12px;
  }
}

/* Toin Thể Thao Layout */

.news-container {
  display: flex;
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 0 40px 0;
}

.news-main {
  flex: 2;
}

.news-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 18px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  background: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.news-item a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.news-thumb {
  width: 200px;
  min-width: 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin-right: 18px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-headline {
  font-size: 1.1rem;
  font-weight: bold;
  color: #aaff77;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-meta {
  font-size: 0.95rem;
  color: #bbb;
}

.news-meta span {
  color: #4caf50;
}

.news-item:hover .news-headline {
  color: #fff;
}

/* Sidebar */
.news-sidebar {
  flex: 1;
  background: #181818;
  border-radius: 8px;
  padding: 18px 18px 18px 22px;
  min-width: 260px;
  max-width: 340px;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 14px;
  border-left: 4px solid #aaff77;
  padding-left: 10px;
  text-transform: uppercase;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 8px;
}

.sidebar-list a {
  color: #7fff4e;
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.sidebar-list a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .news-container {
    flex-direction: column;
    gap: 18px;
    padding: 12px 0 24px 0;
  }

  .news-sidebar {
    max-width: 100%;
    min-width: unset;
    margin-top: 18px;
  }

  .news-thumb {
    width: 140px;
    min-width: 140px;
    height: 90px;
    margin-right: 12px;
  }
}


.upcoming-title {
  font-family: auto !important;
}



@media (min-width: 1600px) {
  .container {
    max-width: 1400px !important;
  }
}


/* Home box content */

.section-about .entry-content {
  color: #f2f3f3;
  font-family: Raleway;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5625rem;
  height: 100%;
  background-color: #292b2e;
  border-radius: 0 6px 6px 6px;
  padding: 15px 0 15px 15px;
}

.section-about .entry-content .overflow-scroll {
  max-height: 750px;
  overflow: auto;
  padding-right: 15px;
}

.section-about .entry-content .wp-caption {
  max-width: 100%;
}

.section-about .entry-content h2 {
  font-size: 1.6em;
}


.title_box h1,
.title_box h2,
.title_box h3,
.title_box h4,
.title_box span {
  font-family: "Oswald";
  display: inline-block;
  padding: 5px 10px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(142deg, #bb5014 0%, #8b0000 100%);
  color: #fff;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.625rem; /* 130% */
}

.title_box a {
  color: #fff;
}


.highlights_box, .box_content_home {
    background: #1c1e1f;
    border-radius: 20px;
}

.toc-fixed ul {
    list-style-type: none;
  padding: 1rem;
  margin: 0;
}
.toc-fixed  a {
    color: #f2f3f3;
    font-size: 0.875rem;
    text-decoration: none;
}
/*Layout Lich Thi Dau*/
.team-home-ltd{
  width: 360px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 1rem;
  justify-content: flex-start;
}

.team-away-ltd{
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 1rem;
  justify-content: flex-end;
  width: 360px;
}
/*Layout Ket Quả*/
.team.team-home {
  width: 260px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 1rem;
  justify-content: flex-start;
}

.team.team-away {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 1rem;
  justify-content: flex-end;
  width: 260px;
}
.page-title{
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-tabs{
  display: flex;
  align-content: center;
  justify-content: center;
}
.match-status{
  width: 70px !important;
  height: 50px !important;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0.5px solid #e7e6e6;
}

.score-section .score-display {
  font-size: 30px;
}




/* Banner */
  body {
  font-family: Arial, sans-serif;
}

h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/*Homepage Banner*/
.banner-homepage {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.banner-content.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    width: 100%;
    /* CSS banner Desktop */
    background-position: center center !important;
    background-size: cover !important;
    /* Thêm fallback nếu hình quá nhỏ */
    background-repeat: no-repeat !important;
    position: relative;
    padding: 60px 20px;
    
    /* Default gradient nếu không có hình */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Overlay để text dễ đọc hơn */
.banner-content.text-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(10 9 9 / 85%);
    border-radius: 20px;
    z-index: 1;
}

.banner-content.text-center > * {
    position: relative;
    z-index: 2;
}

.banner-content .display-4.text-white {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content .lead.text-white {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Nút CTA */
.banner-cta-button {
    background: linear-gradient(45deg, #4c935c, #2d5a3d);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(76, 147, 92, 0.3);
}

.banner-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 147, 92, 0.4);
    background: linear-gradient(45deg, #5ba66c, #3a7049);
}

/* Responsive */
@media (max-width: 1597px) and (min-width: 1200px) {
    .banner-content.text-center {
        min-height: 600px;
        padding: 40px 15px;
        background-position: center center !important;
        background-size: cover !important;
        /* Thêm fallback nếu hình quá nhỏ */
        background-repeat: no-repeat !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.75rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 1rem;
    }
    
    .banner-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
@media (max-width: 1200px) and (min-width: 1024px) {
    .banner-content.text-center {
        min-height: 550px;
        padding: 40px 15px;
        background-position: center center !important;
        background-size: cover !important;
        /* Thêm fallback nếu hình quá nhỏ */
        background-repeat: no-repeat !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.75rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 1rem;
    }
    
    .banner-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
@media (max-width: 1024px) and (min-width: 930px) {
    .banner-content.text-center {
        min-height: 450px;
        padding: 40px 15px;
        background-position: center center !important;
        background-size: cover !important;
        /* Thêm fallback nếu hình quá nhỏ */
        background-repeat: no-repeat !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.75rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 1rem;
    }
    
    .banner-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
@media (max-width: 930px) and (min-width: 768px) {
    .banner-content.text-center {
        min-height: 400px;
        padding: 40px 15px;
        background-position: center center !important;
        background-size: cover !important;
        /* Thêm fallback nếu hình quá nhỏ */
        background-repeat: no-repeat !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.75rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 1rem;
    }
    
    .banner-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .banner-content.text-center {
        min-height: 350px;
        padding: 40px 15px;
        background-position: center center !important;
        background-size: cover !important;
        /* Thêm fallback nếu hình quá nhỏ */
        background-repeat: no-repeat !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.75rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 1rem;
    }
    
    .banner-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .banner-content.text-center {
        min-height: 300px;
        padding: 30px 10px;
        /* Đảm bảo background luôn center trên mobile nhỏ */
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        /* Có thể điều chỉnh background-size nếu cần */
        /* background-size: contain !important; */ /* Uncomment nếu muốn hiển thị toàn bộ hình */
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.5rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 0.9rem;
    }
}

/* Thêm breakpoint cho các màn hình rất nhỏ */
@media (max-width: 480px) {
    .banner-content.text-center {
        min-height: 280px;
        padding: 25px 10px;
        background-position: center center !important;
        background-size: cover !important;
        /* Có thể thử background-attachment để tạo hiệu ứng parallax nhẹ */
        background-attachment: scroll !important;
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.3rem;
    }
    
    .banner-content .lead.text-white {
        font-size: 0.85rem;
    }
    
    .banner-cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Breakpoint cho màn hình cực nhỏ */
@media (max-width: 360px) {
    .banner-content.text-center {
        min-height: 250px;
        padding: 20px 8px;
        background-position: center center !important;
        background-size: cover !important;
        /* Đối với màn hình rất nhỏ, có thể cân nhắc dùng contain */
        /* background-size: contain !important; */
    }
    
    .banner-content .display-4.text-white {
        font-size: 1.2rem;
        margin-bottom: 15px;
        font-family:
    }
    
    .banner-content .lead.text-white {
        font-size: 0.8rem;
    }
    
    .banner-cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

}
