/* General styling */
.widget.match-center .match-center-left {
        width: 100% !important;    }
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;}

.widget.match-analysis {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 10px;
}

.heading-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #359b0a;
    border-bottom: 2px solid #359b0a;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.batsman-box {
    font-size: 1em;
    color: #333;
    margin: 5px 0;
}

.batsman-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.col-sm-12 {
    width: 100%;
}


/* homepage match scroll card */
/* Competition Tabs Wrapper */

.tabs-scroll-container {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth; /* ✅ Smooth horizontal scroll */
    -webkit-overflow-scrolling: touch; /* ✅ iOS smooth touch scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tabs-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Each tab */
.competition-tab {
    color: #fff;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    margin: 5px;
}
.competition-tab.active {
    color: #359b0a;
}
.modern-match-card *,
.team-row-modern span {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-cards-scroller-modern {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .match-cards-scroller-modern::-webkit-scrollbar {
        display: none !important;
    }

.modern-match-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        width: 260px;
        height: 120px;
    }
    
    .team-row-modern img {
        width: 22px;
        height: 22px;
        margin-bottom: 5px;
    }
    
    .match-cards-section {
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .match-main {
    display: flex;
    justify-content: space-between;
}

.wpec-competition-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 10px 8px;
    gap: 10px;
    overflow: hidden;
}

.match-cards-scroller-modern2 {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.modern-match-card2 {
  flex: 0 0 auto;
  width: 150px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  text-align: center;
}

.match-cards-scroller-modern2::-webkit-scrollbar {
  display: none;
}

@media screen and (max-width: 768px) {
  .modern-match-card2 {
    width: 120px;
    font-size: 12px;
  }
}

/* New css news */

    .perf-matches-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
        gap: 5px;
    }
    
    @media (max-width: 600px) {
        .perf-matches-grid {
            grid-template-columns: 1fr; /* 1 column on mobile */
        }
    }

    .team-performance-box {
        background: #f9fbff;
        border-radius: 10px;
        padding: 15px;
        border: 1px solid #d9e3f0;
    }
    .perf-header {
        font-size: 15px;
        font-weight: 600;
        color: #222;
        border-left: 4px solid #2b63e6;
        padding-left: 10px;
        margin-bottom: 10px;
    }
    .label-sub {
        font-weight: normal;
        font-size: 13px;
        color: #888;
    }
    .perf-team-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 15px;
    }
    .perf-flag {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: contain;
    }
    .perf-result {
        margin-left: auto;
        display: inline-block;
        background: #e3e3e3;
        padding: 4px 8px;
        font-size: 13px;
        font-weight: bold;
        color: #444;
        border-radius: 4px;
        margin-left: 5px;
    }
    .win { background: #4caf50; color: white; }
    .lose { background: #f44336; color: white; }

    .perf-match-box {
        background: #fff;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        text-decoration: none;
        color: #111;
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: relative;
    }
    .team-score {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 500;
    }
    .team-score img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }
    .perf-meta {
        font-size: 13px;
        color: #666;
        display: flex;
        justify-content: space-between;
    }
    .perf-result-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 3px 6px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 12px;
    }
    .perf-result-icon.win { background: #4caf50; color: #fff; }
    .perf-result-icon.lose { background: #f44336; color: #fff; }
    
    .profile-player-name {font-size: 1.5rem;}

.team-banner-top {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}
.team-banner-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ddd;
}


.team-format-tabs,
.squad-role-tabs {
    display: flex;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.team-format-tabs button,
.squad-role-tabs button {
    border: 5px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 120px;
    text-align: center;
}

.team-format-tabs button.active,
.squad-role-tabs button.active {
    background-color: #359b0a;
    color: white;
}

@media (max-width: 480px) {
    .team-format-tabs button,
    .squad-role-tabs button {
        flex-basis: 100%;
    }
}

.coach-captain-cards {
    gap: 16px;
    margin: 10px 0 20px;
}
.coach-captain-cards .card {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    margin: 10px;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    background: #d4e4ff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
}
.section-heading h2 {
    font-size: 16px;
}

.squad-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.player-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.player-card img {
    width: 55px;
    height: 55px;
    margin-bottom: 6px;
}
.player-card p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.player-card p {
    font-size: 13px !important;
    color: #777;
}
.player-captain-highlight {
    border: 2px solid #007bff;
}

.display-none {
    display: none !important;
}

/* player profile css */

.teams-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 10px;
  justify-content: flex-start;
}

.team-card {
  width: 70px;
  height: 90px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

.team-abbr {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}


.teams-played-section {
    margin-top: 20px;
}

.team-card {
    width: 60px;
    text-align: center;
    font-size: 12px;
    color: #222;
    transition: transform 0.2s ease;
}

.team-card img {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 4px;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-abbr {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}


.section-heading {
  font-size: 16px;
  background-color: #f0f5ff;
  padding: 10px 15px;
  border-left: 3px solid #1677ff;
  border-radius: 4px;
}

.tab-containerpp {
  background: #f0f5ff;
  padding: 6px;
  border-radius: 10px;
}

.about-player-box {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-player-box p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Base Styles */
body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Layout Components */
.player-profile-wrapper {
  max-width: min(860px, 95%);
  margin: 2rem auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.profile-header,
.about-player-box,
.career-tabs {
  background: var(--section-bg);
  border-radius: var(--radius-md);
  padding: 0.6rem;
}

/* Tab Styles */
.tabs ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.tabs ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--light-gray);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tabs ul li a.active {
  background: var(--primary-color);
  color: #fff;
}

.tabs ul li a:hover:not(.active) {
  background: #e0e0e0;
}

.tabs-content {
  display: none !important;
}

.tabs-content.active {
  display: block !important;
}

.tabs-link.active {
    font-weight: bold;
    color: #0066cc;
}

/* Table Styles */
.table-box {
  overflow-x: auto;
  position: relative;
  margin: 0.6rem;
}

.table-box table {
  width: auto !important;               /* Let the table grow as per content */
  min-width: 100% !important;           /* Still fill the container at minimum */
  border-collapse: collapse !important;
  table-layout: auto !important;        /* Crucial: allow columns to auto size */
}

.table-box th {
  background: var(--table-header-bg);
}

.table-box th:first-child,
.table-box td:first-child {
  position: sticky;
  left: 0;
  background: var(--table-header-bg);
  z-index: 2;
  max-width: 160px; /* ðŸ”’ Limit width */
  width: 160px;
  overflow: hidden;
  text-overflow: ellipsis; /* âœ‚ Truncate long match names */
}

/* Toggle Buttons */
.toggle-tabs,
.vs-toggle {
  display: flex;
}

.toggle-tabs button,
.vs-toggle button {
  padding: 0.375rem 0.75rem;
  border: none;
  background: #ddd;
  margin-left: 0.625rem;
  cursor: pointer;
  border-radius: 1.25rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.toggle-tabs button.active,
.vs-toggle button.active {
  background: var(--primary-color);
  color: #fff;
}

/* Player Profile Components */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.flag-container {
  flex: 0 0 80px;
}

.country-flag {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-info {
  flex: 1;
  min-width: 200px;
}

.player-info h1 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1.2;
}

.player-d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  color: #333 !important;
}

.player-ds p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.player-d strong {
  color: #555;
}

/* About Player Sections */
.about-player-box {
  margin-bottom: 1rem;
}

.about-player-box a {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
}

.about-player-box a:hover {
  text-decoration: underline;
}

.about-player-paragraph {
  font-size: 0.9375rem;
  color: var(--text-color);
  padding: 0.625rem 0.9375rem;
  background: #f9f9f9;
  border-radius: var(--radius-md);
  line-height: 1.7;
}

.about-player-paragraph p {
  margin-bottom: 0.9375rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .player-profile-wrapper {
    padding: 1rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .flag-container {
    flex: 0 0 auto;
    width: 120px;
    margin-bottom: 0.5rem;
  }
  
  .player-info {
    width: 100%;
  }
  
  .player-info h1 {
    font-size: 1.4rem;
  }
  
  .player-d {
    grid-template-columns: 1fr;
  }
  
  .tabs ul {
    gap: 0.25rem;
  }
  
  .tabs ul li a {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .player-profile-wrapper {
    margin: 1rem auto;
  }
  
  .flag-container {
    width: 100px;
  }
  
  .player-info h1 {
    font-size: 1.3rem;
  }
  
  .player-d p {
    font-size: 0.875rem;
  }
  
  .toggle-tabs button,
  .vs-toggle button {
    margin: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }
}

.player-header {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.player-title {
    color: #333;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.player-key-stats {
    display: flex;
    gap: 15px;
}

.stat-pill {
    background: #f3f3f3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.stat-value {
    color: #555;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-title {
        font-size: 24px;
    }
    
    .player-key-stats {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .stat-pill {
        padding: 4px 10px;
        font-size: 13px;
    }
}

.player-banner {
  background: linear-gradient(135deg, #1e73be, #359b0a);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 10px 10px;
  box-sizing: border-box;
  color: #fff;
}

.player-banner-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-player-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff !important;
}

.player-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  row-gap: 1rem;
}

.player-meta-grid > div {
  flex: 1 1 220px;
}

.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #FF9100;
  font-weight: 1200;
  margin-bottom: 4px;
}
.player-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.player-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  row-gap: 1.5rem;
}

.player-meta-grid > div {
  flex: 1 1 220px;
}

/* âœ… 2x2 grid on mobile */
@media (max-width: 600px) {
  .player-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }

  .player-meta-grid > div {
    flex: unset;
  }
}

.player-news-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
}

.player-news-card {
    width: calc(32% - 12px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.player-news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.news-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4em;
}

.news-date {
    font-size: 12px;
    color: #777;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .player-news-card {
        width: calc(40% - 8px);
    }
}
@media (max-width: 576px) {
    .player-news-card {
        width: 45%;
    }
}

/* Global Faq */
.modern-faq-section {
  border-radius: 8px;
}
.faq-accordion .faq-item {
  border-bottom: 1px solid #e2e2e2;
}
.faq-question {
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question .arrow {
  transform: rotate(-135deg);
}
.faq-answer {
  padding: 0 20px 15px;
  display: none;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tabs-scroll-container2 {
    display: flex !important;
    flex: 1;
    overflow-x: auto;
        }
        
.series-schedule-table table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }
    .series-schedule-table th, .series-schedule-table td {
        border: 1px solid #ccc;
        padding: 8px 10px;
        text-align: left;
        font-size: 14px;
    }
    .series-schedule-table th {
        background: #c9f3ca;
    }

.series-section-footer-box {
    	border: 1px solid #ddd;
    	padding: 5px;
    	margin-bottom: 5px;
    }