:root {
  --bg: #07141f;
  --bg-soft: #0c1d2b;
  --card: rgba(10, 25, 37, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: rgb(178, 178, 178);
  --muted: #9fb2c2;
  --accent: rgb(255, 221, 177);
  --accent-soft: rgba(201, 155, 74, 0.14);
  --success: #25d366;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: rgb(0, 0, 0);
  color: var(--text);
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  box-sizing: border-box;
  z-index: 2000;
  padding: 20px 30px;
  margin-bottom: 30px;
}

#header.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.trainings-section {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto 50px;
  font-family: "Assistant", sans-serif;
  flex: 1;
  padding: 0 10px;
  margin-top: 70px;
}

.section-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 20px;
  padding: 50px 30px 0 30px;
}

#logoHeader {
  width: clamp(60px, 5vw, 70px);
}

#toTheHomePage {
  text-align: center;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: clamp(14px, 3vw, 16px);
  font-family: "Assistant", sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background-image: linear-gradient(to right, rgb(33, 33, 33), rgb(0, 0, 0));
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#toTheHomePage:hover {
  background-image: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0));
}

.section-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  color: rgb(255, 221, 177);
}

.section-subtitle {
  color: rgb(255, 221, 177);
  font-size: 18px;
  font-weight: 600;
}

#trainingsTablesContainer {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.location-block {
  width: 100%;
  scroll-margin-top: 120px;
}

.location-title {
  margin: 0 0 20px;
  padding: 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: rgb(216, 216, 216);
  text-align: center;
}

#chooseLocation {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 1300px) {
      #chooseLocation {
        flex-direction: column;
     }
  }

#ctaD, #ctaE {
    display: block;
    text-align: center;
    border: none;
    width: 20%;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 700;
    cursor: pointer;
    font-family: "Assistant", sans-serif;
    color: rgb(213, 213, 213);
    /* background:
    linear-gradient(135deg, rgba(120, 0, 0, 0.22), rgba(0, 0, 0, 0.96)),
    linear-gradient(to top, #050505, #161616); */
    background-image: linear-gradient(to right, rgb(50, 50, 50), rgb(24, 24, 24));
    /* border: 1px solid rgba(255, 70, 70, 0.18); */
    box-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#ctaD:hover {
    background-image: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0));
}
#ctaE:hover {
    background-image: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0));
}

@media (max-width: 768px) {
      #ctaD {
        padding: 10px 20px;
        width: 70%;
        margin-bottom: 0;
     }
      #ctaE {
        padding: 10px 20px;
        width: 70%;
     }
}

.table-wrap {
  background:
    linear-gradient(135deg, rgba(120, 0, 0, 0.22), rgba(0, 0, 0, 0.96)),
    linear-gradient(to right, #050505, #161616);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0 20px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trainings-table {
  width: 100%;
  border-collapse: collapse;
}

.trainings-table thead th {
  color: rgb(255, 221, 177);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: right;
  padding: 18px 16px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.trainings-table tbody tr {
  transition: background 0.25s ease;
}

.trainings-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  color: var(--text);
}

.trainings-table tbody tr:last-child td {
  border-bottom: 0;
}

.training-name {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.5;
}

.training-desc {
  color: rgb(178, 178, 178);
  line-height: 1.5;
  max-width: 320px;
}

.training-meta {
  white-space: nowrap;
  font-weight: 700;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 14px;
  border-radius: 999px;
  background-image: linear-gradient(to right, white, rgb(255, 221, 177));
  border: 1px solid rgba(201, 155, 74, 0.22);
  color: rgb(94, 77, 56);
  font-weight: 800;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background-image: linear-gradient(
    to right,
    rgb(255, 58, 58),
    rgb(159, 0, 0)
  );
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  background-image: linear-gradient(
    to right,
    rgb(159, 0, 0),
    rgb(159, 0, 0)
  );
}

.sold-out-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 27px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  white-space: nowrap;
  cursor: not-allowed;
  user-select: none;
  width: fit-content;
}

.loading-cell,
.empty-cell,
.error-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px !important;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .training-name {
    font-size: 24px;
  }
}

@media (max-width: 980px) {
  .table-wrap {
    border: 0;
    box-shadow: none;
    padding: 0;
    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .trainings-table,
  .trainings-table thead,
  .trainings-table tbody,
  .trainings-table th,
  .trainings-table td,
  .trainings-table tr {
    display: block;
    width: 100%;
  }

  .trainings-table td:nth-child(6) {
    padding-inline: 0;
  }

  .trainings-table thead {
    display: none;
  }

  .trainings-table tbody {
    display: grid;
    gap: 16px;
  }

  .trainings-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 70px;
    border-radius: 0px;
    padding: 14px;
    border-bottom: 1px solid var(--card-border);
  }

  .trainings-table td {
    border: 0;
    padding: 10px 6px;
    width: 100%;
  }

  .trainings-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 800;
  }

  .trainings-table td:nth-child(1),
  .trainings-table td:nth-child(2),
  .trainings-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .training-desc {
    max-width: 100%;
  }

  .whatsapp-btn,
  .sold-out-badge {
    width: 100%;
  }
}


.courses-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.course-card {
  background:
    linear-gradient(135deg, rgba(120, 0, 0, 0.22), rgba(0, 0, 0, 0.96)),
    linear-gradient(to right, #050505, #161616);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 10px;
}

.course-card-top > div:first-child {
  flex: 1;
  min-width: 0;
}

.course-price-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.course-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: rgb(255, 221, 177);
  font-weight: 900;
}

.course-desc {
  margin: 0;
  color: rgb(178, 178, 178);
  line-height: 1.6;
  max-width: 700px;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.course-meta-label {
  color: rgb(255, 221, 177);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-session-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgb(255, 221, 177);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.course-note {
  margin-top: 8px;
  margin-bottom: 10px;
  color: rgb(255, 221, 177);
  font-weight: 500;
}

.course-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.course-workshops {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.course-workshops-title {
  margin-bottom: 15px;
  color: rgb(255, 221, 177);
  font-weight: 800;
  font-size: 1.05rem;
}

.course-workshops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-workshop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.course-workshop-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.course-workshop-name {
  font-weight: 800;
  color: rgb(216, 216, 216);
}

.course-workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgb(178, 178, 178);
  font-size: 0.95rem;
}

.course-workshop-action {
  flex-shrink: 0;
  display: flex;
}

@media (max-width: 980px) {
  .course-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .course-price-wrap {
    align-self: flex-start;
  }

  .course-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-action .whatsapp-btn,
  .course-action .sold-out-badge,
  .course-workshop-action .whatsapp-btn,
  .course-workshop-action .sold-out-badge {
    width: 100%;
  }

  .course-workshop-row {
    flex-direction: column;
    align-items: stretch;
  }

  .course-workshop-action {
    width: 100%;
  }
}