/* === SSOP Course Table Styles === */

#tableContent2 {
  border-collapse: collapse;
  margin-left: 0px;
  margin-right: 0px;
  width: 100%;
}
#tableContent2 tr td,
#tableContent2 tr th {
  border: 1px solid #ddd;
  padding: 18px 5px;
  font-family: "Futura-PT" !important;
  font-size: 17px;
  text-align: left;
  vertical-align: top;
}
#tableContent2 tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* === Header Styling === */
#tableContent2 tr th {
  background-color: #e83e3f !important;
  color: white;
  text-align: center !important;
  vertical-align: middle;
  padding: 18px 5px;
  font-weight: bold;
  white-space: nowrap;
}

/* === General Cell Styling === */
#tableContent2 tr td {
  vertical-align: middle;
  padding: 18px 5px;
}
/* Course Name: Top-Left */
#tableContent2 tr td:nth-child(3) {
  vertical-align: top;
  text-align: left;
}

/* Fixed column widths */
#tableContent2 tr th, #tableContent2 tr td {
  width: 16.6667% !important;
}

/* === Column Specific Alignment === */
/* Date Column: Center */
#tableContent2 tr td:nth-child(1) {
  text-align: center;
}
/* Time Column: Center */
#tableContent2 tr td:nth-child(2) {
  text-align: center;
}
/* Language Column: Center */
#tableContent2 tr td:nth-child(4) {
  text-align: center;
}
/* Price Column: Center */
#tableContent2 td.priceCol {
  text-align: center !important;
}
/* Last Column (Button): Center */
#tableContent2 tr td:last-child {
  text-align: center !important;
  vertical-align: middle !important;
}

/* === Button Group (Top Tabs) === */
.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-group button {
  background-color: #dedede;
  margin: 2px 2px 4px 2px;
  color: #000;
  padding: 8px 10px !important;
  cursor: pointer;
  font-size: 20px;
  font-family: "Futura-PT" !important;
  border: none;
  text-transform: uppercase;
}
.btn-group .active {
  background-color: #e83e3f !important;
  color: #fff;
}
.btn-group:after {
  content: ""; clear: both; display: table;
}

/* === BOOK NOW Button === */
.btnBookNow {
  background: #222222;
  color: #fff;
  text-align: center;
  font-family: "Futura-PT" !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 10px 5px !important;
  border: 0px;
  border-radius: 0px;
  text-decoration: none;
  display: inline-block;
  box-shadow: none;
  width: 100px;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* RED Active Button */
.btnBookNow:not(.sold-out) {
  background-color: #e83e3f !important;
  color: #fff !important;
}
.btnBookNow:not(.sold-out):hover {
  background-color: #d33435 !important;
}

/* === SOLD OUT Button === */
.sold-out {
  background-color: #dedede !important;
  color: #555 !important;
  cursor: not-allowed !important;
  letter-spacing: 1px !important;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.1) inset !important;
}
.sold-out:hover {
  background-color: #dedede !important;
}

/* === Badge Styling === */
.badge {
  display: inline-block;
  padding: 0.2em 0.45em;
  font-size: 60%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 0.35rem;
  color: #fff;
  max-height: 15px;
  background-color: #e83e3f;
}

/* Button + Badge container */
#tableContent2 tr td:last-child > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  gap: 8px;
}

/* === No Courses - Express Interest === */
.no-courses-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}
.no-courses-icon {
  margin-bottom: 16px;
  opacity: 0.9;
}
.no-courses-heading {
  font-family: "Futura-PT", sans-serif !important;
  font-size: 22px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.no-courses-message {
  font-family: "Futura-PT", sans-serif !important;
  font-size: 15px;
  color: #555;
  max-width: 420px;
  line-height: 1.5;
  margin: 0 0 24px 0;
}
.no-courses-btn {
  display: inline-block;
  background-color: #222222 !important;
  color: #fff !important;
  font-family: "Futura-PT", sans-serif !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.no-courses-btn:hover {
  background-color: #e83e3f !important;
  color: #fff !important;
}
.no-courses-fallback {
  font-family: "Futura-PT", sans-serif !important;
  font-size: 13px;
  color: #777;
  margin-top: 14px;
}
.no-courses-fallback a {
  color: #e83e3f;
  text-decoration: underline;
}

/* No-courses row styling */
.no-courses-row td {
  text-align: center !important;
  padding: 0 !important;
  border: none !important;
  width: 100% !important;
}
.no-courses-row td .no-courses-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

/* === Mobile Adjustments === */
@media only screen and (max-width: 768px) {
  #tableContent2 tr td,
  #tableContent2 tr th {
    padding: 10px 3px !important;
    font-size: 12.5px;
    width: auto !important;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
  }
  #tableContent2 tr th {
    font-size: 13px;
    white-space: nowrap;
  }

  #tableContent2 tr td:nth-child(1),
  #tableContent2 tr td:nth-child(2) {
    font-size: 11px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  #tableContent2 tr td:nth-child(1) br,
  #tableContent2 tr td:nth-child(2) br {
    content: " "; display: block; margin-bottom: 2px;
  }

  #tableContent2 tr td:nth-child(3) {
    text-align: left;
    vertical-align: middle;
    padding-left: 8px !important;
    font-size: 12.5px;
  }

  #tableContent2 td.priceCol {
    text-align: center !important;
    font-size: 11px !important;
    font-weight: normal !important;
    padding: 10px 3px !important;
  }

  #tableContent2 tr td:nth-child(4) {
    font-size: 11px;
  }

  .btnBookNow {
    font-size: 8px !important;
    width: 75px !important;
    padding: 7px 3px !important;
    letter-spacing: 1.5px !important;
  }

  .badge {
    padding: 0.2em 0.45em;
    font-size: 50%;
    font-weight: 600;
    line-height: 1;
    margin-left: 0 !important;
    margin-top: 3px !important;
    display: block;
    width: 75px;
    vertical-align: initial;
    top: 0;
  }

  #tableContent2 tr td:last-child > div {
    flex-direction: column;
    padding: 8px 0 !important;
  }
  .acuity-embed-button.btnBookNow + .badge {
    margin-top: 4px;
  }

  .sold-out {
    font-size: 8px !important;
    letter-spacing: 1px !important;
    width: 75px !important;
  }

  /* Mobile no-courses */
  .no-courses-container {
    padding: 30px 15px;
  }
  .no-courses-heading {
    font-size: 18px;
  }
  .no-courses-message {
    font-size: 13px;
  }
  .no-courses-btn {
    font-size: 11px;
    padding: 12px 24px;
    letter-spacing: 2px;
  }
}
