/* Team Page Container */
.dp-team-display,
.dp-team-page {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 10px;
}

/* Breadcrumbs (match player page styles) */
.dp-team-breadcrumbs {
  color: #cfcfcf;
  text-align: center;
}

.dp-team-breadcrumbs a {
  color: inherit;
  text-decoration: underline;
}

.dp-team-breadcrumbs a:hover {
  text-decoration: underline;
}

.dp-team-breadcrumb-sep {
  opacity: 0.7;
}

/* Header and Intro (match player page styles) */
.dp-team-header h1.dp-team-title {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  margin: 0;
  text-align: center;
}

.dp-team-intro-text {
  color: #fff;
  background: #2f2e28;
  border-radius: 8px;
  border-left: 6px solid #f5f2d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  padding: 12px 14px;
}

/* Season selector */
.dp-team-season-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ffcc00;
  border-radius: 6px;
}

.dp-team-season-selector__label {
  font-weight: 600;
  color: #f5f2d0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dp-team-season-selector__select {
  padding: 8px 12px;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  min-width: 150px;
}

.dp-team-overview .dp-team-season-selector,
.dp-team-overview .dp-table-wrapper {
  margin: 8px 12px 12px;
}

.dp-team-directory-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 12px;
}

.dp-team-directory .dp-team-season-selector {
  margin: 0;
  justify-content: flex-start;
}

.dp-team-directory .dp-team-season-selector__select {
  width: 25%;
  min-width: 180px;
  max-width: 260px;
}

.dp-team-directory-filters {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.dp-team-directory-filter-button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: #666;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.8rem;
  text-decoration: none;
}

.dp-team-directory-filter-button.is-active {
  background: #d4af37;
  text-decoration: underline;
  color: #111;
}

.dp-team-directory-filter-button:hover {
  background: #d4af37;
  color: #111;
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

body[class*="elementor-kit-"] .dp-team-directory-filter-button {
  background: #666 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[class*="elementor-kit-"] .dp-team-directory-filter-button.is-active {
  background: #d4af37 !important;
  color: #111 !important;
}

body[class*="elementor-kit-"] .dp-team-directory-filter-button:hover {
  background: #d4af37 !important;
  color: #111 !important;
}

/* Sections */

.dp-team-directory {
  border: 3px solid #222;
  background: #333;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  color: #f5f2d0;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dp-team-events,
.dp-team-tables,
.dp-team-player-list {

}




.dp-team-overview {
  border: 3px solid #222;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  color: #f5f2d0;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  margin-bottom: 24px;
}

.dp-team-directory-col-team,
.dp-team-directory-col-division {
  text-align: left !important;
}

.dp-team-directory-col-team,
.dp-team-directory-col-team a {
  font-size: 0.95rem;
}

.dp-team-page .dp-team-directory-table .dp-team-directory-col-team a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-block;
  width: 100%;
  text-align: left;
}

.dp-team-page .dp-team-directory-table .dp-team-directory-col-team a:hover {
  text-decoration: underline !important;
}

.dp-team-directory-col-division {
  width: 180px;
}

/* Highlight the current team row (team pages only). */
.dp-team-content .dp-standings-grid__row.dp-highlight {
  background: rgba(245, 215, 120, 0.75) !important;
}

.dp-team-content .dp-standings-grid__row.dp-highlight > div {
  color: #111111;
}

.dp-team-content .dp-standings-grid__row.dp-highlight .dp-col-pos {
  background: rgba(232, 190, 95, 0.75);
}

.dp-team-content .dp-standings-grid__row.dp-highlight .dp-col-pts {
  background: rgba(219, 170, 75, 0.75);
}

.dp-team-content .dp-standings-grid__row.dp-highlight:hover {
  background: rgba(235, 200, 105, 0.75) !important;
}

.dp-team-content .dp-standings-grid__row.dp-highlight:hover .dp-col-pos {
  background: rgba(221, 180, 85, 0.75);
}

.dp-team-content .dp-standings-grid__row.dp-highlight:hover .dp-col-pts {
  background: rgba(206, 160, 70, 0.75);
}

.dp-team-content .dp-standings-grid__row.dp-highlight .dp-team-link,
.dp-team-content .dp-standings-grid__row.dp-highlight .dp-team-link:hover {
  color: #111111;
}
.dp-team-overview-name {
  text-align: left;
  width: 250px;
  white-space: nowrap;
}

.dp-team-section-title {
  background: #222;
  color: #f5f2d0;
  border-bottom: 1px solid #000;
  font-family: "Days One", "Roboto", "Helvetica", sans-serif;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  margin: 0;
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.dp-team-tabs {
  margin-bottom: 30px;
  background: #3a3938;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dp-team-tabs__nav {
  margin-bottom: 0;
}

.dp-team-tabs__list {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-team-tabs__item {
  flex: 1 1 0;
  min-width: 0;
  margin-right: 2px;
}

.dp-team-tabs__item:last-child {
  margin-right: 0;
}

.dp-team-tabs__button {
  display: block;
  width: 100%;
  padding: 12px 20px !important;
  background: #555555;
  color: #f5f2d0;
  border: none;
  border-right: 1px solid #777777;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.1rem;
  transition: all 0.2s;
  outline: none;
  box-shadow: none;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

body[class*="elementor-kit-"] .dp-team-tabs__button {
  display: block !important;
  width: 100% !important;
  background: #555555 !important;
  color: #f5f2d0 !important;
  border: none !important;
  border-right: 1px solid #777777 !important;
  box-shadow: none !important;
  text-shadow: 1px 1px 2px rgb(0, 0, 0) !important;
}

body[class*="elementor-kit-"] .dp-team-tabs__list {
  display: flex !important;
}

body[class*="elementor-kit-"] .dp-team-tabs__item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

body[class*="elementor-kit-"] .dp-team-tabs__button:last-child {
  border-right: none !important;
}

body[class*="elementor-kit-"] .dp-team-tabs__button.is-active {
  background: #222222 !important;
  color: #D7BE69 !important;
  border-bottom: 1px solid #222222 !important;
}

body[class*="elementor-kit-"] .dp-team-tabs__button:hover:not(.is-active) {
  background: #111111 !important;
  color: #ffffff !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table {
  background: #555 !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table thead tr,
body[class*="elementor-kit-"] .dp-team-page .dp-data-table thead th {
  background-color: #434343 !important;
  color: #f5f2d0 !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table thead th {
  font-size: 0.7rem !important;
  padding: 8px 6px !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  background-color: #434343 !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table tbody tr {
  background-color: #555 !important;
  color: #fff !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table tbody td {
  padding: 8px 6px !important;
  font-size: 0.8rem !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table th,
body[class*="elementor-kit-"] .dp-team-page .dp-data-table td {
  border: none !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table a {
  color: #ffffff !important;
  text-decoration: none !important;
}

body[class*="elementor-kit-"] .dp-team-page .dp-data-table a:hover {
  text-decoration: underline !important;
}

.dp-team-tabs__button:last-child {
  border-right: none;
}

.dp-team-tabs__button:focus,
.dp-team-tabs__button:active {
  border: none;
  border-right: 1px solid #f5f2d0;
  box-shadow: none;
  outline: none;
}

.dp-team-tabs__button:last-child:focus,
.dp-team-tabs__button:last-child:active {
  border-right: none;
}

.dp-team-tabs__button:hover:not(.is-active) {
  color: #ffffff;
  background: #111111;
}

.dp-team-tabs__button:not(.is-active) {
  border-bottom: 1px solid #333333;
}

.dp-team-tabs__button.is-active {
  background: #222222;
  color: #D7BE69;
  border-bottom: 1px solid #222222;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-team-tabs__panels {
  margin-top: 0;
  padding: 8px;
  background: #222222;
  border-radius: 0 0 8px 8px;
}

.dp-team-tabs__panel {
  padding-top: 0;
  display: none;
  color: #333;
}

.dp-team-tabs__panel.is-active {
  display: block;
}

.dp-team-table-section {
  margin-bottom: 24px;
}

.dp-team-table-title {
  background: #222;
  color: #f5f2d0;
  border-bottom: 1px solid #000;
  font-family: "Days One", "Roboto", "Helvetica", sans-serif;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  margin: 0 0 12px;
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.dp-table-wrapper {
  border-top: 1px solid #d7be69 !important;
}

/* Generic table styles */
.dp-team-page .dp-data-table {
  margin: 0;
  background: #555;
  border-collapse: collapse;
  border-top: 1px solid #d7be69;
  width: 100%;
  table-layout: fixed;
}

table.dp-data-table.dp-team-overview-table,
table.dp-data-table.dp-team-directory-table,
table.dp-data-table.dp-team-player-table,
table.dp-data-table.dp-team-events-table {
  margin: 0;
  background: #555;
  border-collapse: collapse;
  width: 100%;
  /* table-layout: fixed; */
  color: #f5f2d0;
  text-transform: none;
  letter-spacing: normal;
}

table.dp-data-table.dp-team-overview-table thead tr,
table.dp-data-table.dp-team-player-table thead tr,
table.dp-data-table.dp-team-events-table thead tr {
  background: #434343;
  color: #f5f2d0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

table.dp-data-table.dp-team-overview-table thead th,
table.dp-data-table.dp-team-player-table thead th,
table.dp-data-table.dp-team-events-table thead th {
  text-align: center;
  border: none !important;
  line-height: 1.5;
  background-color: #434343 !important;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 6px;
}

table.dp-data-table.dp-team-overview-table tbody tr,
table.dp-data-table.dp-team-directory-table tbody tr,
table.dp-data-table.dp-team-player-table tbody tr,
table.dp-data-table.dp-team-events-table tbody tr {
  border-bottom: 1px solid #454545;
  color: #fff;
}

table.dp-data-table.dp-team-overview-table tbody td,
table.dp-data-table.dp-team-directory-table tbody td,
table.dp-data-table.dp-team-player-table tbody td,
table.dp-data-table.dp-team-events-table tbody td {
  line-height: 1.5;
  text-align: center;
  padding: 8px 6px;
  border: none !important;
  font-size: 0.8rem;
}


table.dp-data-table.dp-team-overview-table tbody td a,
table.dp-data-table.dp-team-directory-table tbody td a,
table.dp-data-table.dp-team-player-table tbody td a,
table.dp-data-table.dp-team-events-table tbody td a {
  color: #ffffff !important;
  font-weight: inherit;
  text-decoration: none;
  box-shadow: none;
  border: none;
}

table.dp-data-table.dp-team-overview-table tbody td a:hover,
table.dp-data-table.dp-team-directory-table tbody td a:hover,
table.dp-data-table.dp-team-player-table tbody td a:hover,
table.dp-data-table.dp-team-events-table tbody td a:hover {
  text-decoration: underline;
}

.dp-team-events-home,
.dp-team-events-away,
.dp-team-player-name {
  text-align: left;
}

.dp-team-events-result {
  width: 70px;
}

.dp-team-events-matchday {
  text-align: left;
}

.dp-team-player-rank {
  width: 48px;
  text-align: center;
}

.dp-team-player-name {
  width: 220px;
  white-space: nowrap;
}

.dp-team-events-table tbody tr:hover,
.dp-team-player-table tbody tr:hover {
  background-color: #666;
}

.dp-team-events-vs {
  margin-right: 6px;
  font-size: 0.75em;
  text-transform: uppercase;
  color: #fff;
}

.dp-team-events-score-link {
  color: #f9a825;
  text-decoration: none;
}

.dp-team-events-gallon {
  font-size: 0.75em;
  opacity: 0.85;
  margin-top: 2px;
}

/* Result badges */
.dp-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.dp-result-badge.is-win {
  background: #2e8b57;
  border: 1px solid #63e59c;
}

.dp-result-badge.is-loss {
  background: #c0392b;
  border: 1px solid #f69286;
}

.dp-result-badge.is-draw {
  background: #555;
  border: 1px solid #888;
}

/* Competition Type Badges */
.dp-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  color: #fff;
  padding: 3px 10px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

span.dp-type-league {
  background: #1f7a3a;
}

span.dp-type-ko-cup {
  background: #c96a10;
}

span.dp-type-ko-shield {
  background: #b88900;
}

span.dp-type-free,
span.dp-type-comp {
  background: #555;
}

/* ************************* */
/* ----Responsive Design---- */
/* ************************* */

@media (min-width: 360px) {
  .dp-team-display,
  .dp-team-page {
    gap: 20px;
    padding: 10px 5px 20px;
  }

  .dp-team-header h1.dp-team-title {
    text-align: center;
    font-size: 1.5rem;
  }

  .dp-team-breadcrumbs {
    text-align: center;
  }

  .dp-team-breadcrumb-sep {
    margin: 0 3px;
  }

  .dp-team-intro-text {
    font-size: 0.8rem;
    line-height: 1.25rem;
    padding: 10px 5px 10px 15px;
  }
}

@media (min-width: 480px) {
}

@media (min-width: 768px) {
  .dp-team-display,
  .dp-team-page {
    gap: 20px;
    padding: 10px 20px 20px;
  }
}

@media (min-width: 1024px) {
  .dp-team-display,
  .dp-team-page {
    gap: 20px;
    max-width: 1200px;
    padding: 20px 20px 30px;
  }

  .dp-team-breadcrumbs {
    font-size: 1rem;
    text-align: left;
  }

  .dp-team-breadcrumb-sep {
    margin: 0 6px;
  }

  .dp-team-header h1.dp-team-title {
    font-size: 2rem;
    text-align: left;
  }

  .dp-team-intro-text {
    margin-bottom: 10px;
    padding: 20px 40px;
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* Elementor global fonts (only when Elementor kit is active) */
body[class*="elementor-kit-"] .dp-team-display,
body[class*="elementor-kit-"] .dp-team-content,
body[class*="elementor-kit-"] .dp-team-page,
body[class*="elementor-kit-"] .dp-teams-page {
  font-family: var(--e-global-typography-text-font-family, inherit);
}

body[class*="elementor-kit-"] .dp-team-title,
body[class*="elementor-kit-"] .dp-team-header h1,
body[class*="elementor-kit-"] .dp-team-section-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
}

@media (min-width: 1200px) {
  .dp-team-display,
  .dp-team-page {
    gap: 20px;
    max-width: 1200px;
    padding: 20px 20px 30px;
  }

  .dp-team-breadcrumbs {
    font-size: 1rem;
    text-align: left;
  }

  .dp-team-breadcrumb-sep {
    margin: 0 6px;
  }

  .dp-team-header h1.dp-team-title {
    font-size: 2rem;
    text-align: left;
  }

  .dp-team-intro-text {
    margin-bottom: 10px;
    padding: 20px 40px;
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
