/* --- DESKTOP: Standard Table --- */
.responsive-card-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.responsive-card-table th, .responsive-card-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}
.responsive-card-table th {
  background-color: #003660; /* UCSB Navy */
  color: white;
}

/* --- MOBILE: Card Layout --- */
@media screen and (max-width: 600px) {
  /* Hide the header row entirely */
  .responsive-card-table thead {
    display: none;
  }

  /* Force every row to look like a "Card" */
  .responsive-card-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* Force every cell to be a full-width row inside the card */
  .responsive-card-table td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
    font-size: 14px;
  }

  /* Pull the "Header" text from the data-label attribute */
  .responsive-card-table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
    color: #003660;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }
}