/* === Coach Table Styles - Final Enhanced Version with Hard Image Sizing === */

.nwa-coach-section {
  margin: 28px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Section title */
.nwa-coach-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #222;
}

/* Card-style wrapper */
.nwa-coach-table-container {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: visible;
}

/* Base table */
.nwa-coach-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: auto;
  font-size: 14px; /* consistent size everywhere */
}

/* Header cells */
.nwa-coach-table thead th {
  padding: 12px 14px;
  background: #eef1f7;
  font-weight: 700;
  border-bottom: 2px solid #d4d9e6;
  text-align: center;
  color: #000000;   /* black header text */
  line-height: 1.4;
}

/* Body cells */
.nwa-coach-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eceff4;
  text-align: center;      /* default center for all cells */
  vertical-align: top;     /* lets row grow with content */
  line-height: 1.45;
  word-break: break-word;
  font-size: 14px;         /* consistent with headers */
}

/* Make sure rows auto-size, no clipping from theme defaults */
table,
tbody,
tr {
  height: auto !important;
}

/* Zebra rows */
.nwa-coach-table tbody tr:nth-child(even) {
  background: #f7f9ff;
}

/* Hover effect */
.nwa-coach-table tbody tr:hover {
  background: #eef3ff;
}

/* === Column width & wrapping behavior === */

/* Locations column (3rd column): avoid awkward word wraps */
.nwa-coach-table th:nth-child(3),
.nwa-coach-table td:nth-child(3) {
  min-width: 130px;      /* tweak if needed */
  white-space: nowrap;   /* prevents last few letters from jumping to next line */
}

/* Give more width to long-text columns (Why + Background) */
.nwa-coach-table th:nth-child(4),
.nwa-coach-table td:nth-child(4),
.nwa-coach-table th:nth-child(6),
.nwa-coach-table td:nth-child(6) {
  width: 26%;
}

/* === Photo column (rounded rectangles, larger) === */

.nwa-coach-photo-cell {
  width: 140px;
  text-align: center;
}

.nwa-coach-photo-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 16px;       /* rounded rectangle */
  overflow: hidden;
  background: #dfe3eb;
  border: 3px solid #cfd5df;
  position: relative;
}

/* HARD LIMIT: every image inside the coach table is forced to this size */
.nwa-coach-table img {
  width: 110px !important;
  height: 110px !important;
  max-width: 110px !important;
  max-height: 110px !important;
  object-fit: cover !important;
  display: block;
}

/* Coach name */
.nwa-coach-name {
  font-weight: 700;
}

/* Location badges */
.nwa-coach-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #c7cde0;
  font-size: 13px;
  background: #eef1ff;
  margin: 3px;
  color: #111;
}

/* Long text: Why they love teaching + Background */
.nwa-coach-long-text {
  text-align: left;      /* override center for readability */
  white-space: pre-line;
  line-height: 1.45;
}

/* === Book Private button column === */

.nwa-coach-book {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.nwa-coach-book:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* === Responsive tweaks === */

@media (max-width: 768px) {
  .nwa-coach-table th,
  .nwa-coach-table td {
    font-size: 13px;
    padding: 10px;
  }

  .nwa-coach-photo-wrapper {
    width: 90px;
    height: 90px;
  }

  .nwa-coach-table img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }

  /* Slightly loosen the min-width on locations for small screens */
  .nwa-coach-table th:nth-child(3),
  .nwa-coach-table td:nth-child(3) {
    min-width: 110px;
  }
}
