/*
Theme Name: Trophy
Theme URI: https://trophy.qodeinteractive.com/
Description: A Dynamic Soccer Club, Sports, and Coaching Theme
Author: Mikado Themes
Author URI: https://themeforest.net/user/mikado-themes
Text Domain: trophy
Version: 1.8
License: GNU General Public License v2 or later
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, featured-images, flexible-header, post-formats, sticky-post, threaded-comments, translation-ready
License URI: http://www.gnu.org/licenses/gpl-2.0.html

CSS changes can be made in files in the /css/ folder. This is a placeholder file required by WordPress, so do not delete it.

*/
table.has-fixed-layout thead tr:first-child {
  background-color: #d40000;
  color: #fff;
  border-color: black;
}
table.has-fixed-layout tbody td {
	color: black;
	border-color: black;
}
table.has-fixed-layout tr {
	border-color: black;
}

table.has-fixed-layout tbody tr:nth-child(even) {
    background-color: lightgray;
}

/* Container pentru tabel */
.responsive-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}
 .responsive-table thead tr:first-child {
  background-color: #d40000;
  color: #fff;
  border-color: black;
}
/* Structura clasică pentru celule și linii */
.responsive-table th, .responsive-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}
 .responsive-table tbody tr:nth-child(even) {
	 background-color: #eee;
 }

/* Pe mobil, transformă tabelul într-un card/listă verticală */
@media (max-width: 1024px) {
  .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table tr {
    display: block;
    width: 100%;
  }
  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
  }
  .responsive-table td {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    padding: 6px 8px;
    position: relative;
  }
  .responsive-table tbody tr:nth-child(even) {
	 background-color: #eee;
  }
  /* optional: adaugă label pentru fiecare celulă */
  .responsive-table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #444;
  }

}