/**
 * TrialAndMember Connect - Public Styles
 */

.tam-platform-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tam-platform-header__inner {
  max-width: 1280px;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.tam-platform-header__brand {
  color: #2c2424;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tam-platform-header__brand:hover {
  color: #2c2424;
  text-decoration: none;
}

.tam-platform-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
}

.tam-platform-header__nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tam-platform-header__nav .sub-menu {
  display: none;
}

.tam-platform-header__nav a {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.tam-platform-header__nav a:hover {
  color: #8b0000;
  text-decoration: none;
}

/* Schedule Wrapper */
.tam-schedule-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Filter Buttons */
.tam-schedule-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.tam-filter-btn {
  padding: 12px 30px;
  border: 2px solid #8b0000;
  background: white;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tam-filter-btn.active,
.tam-filter-btn:hover {
  background: #8b0000;
  color: white;
}

/* Day Section Headers */
.tam-day-header,
.tam-lesson-header,
.tam-area-title,
.tam-type-title,
.tam-trainer-title {
  background: #8b0000;
  color: white;
  padding: 12px 20px;
  margin: 20px 0 15px 0;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Schedule by Day */
.tam-schedule-by-day {
  display: grid;
  gap: 20px;
}

.tam-day-section {
  margin-bottom: 20px;
}

.tam-day-classes {
  padding: 15px;
  background: #f9f9f9;
}

/* Schedule by Lesson Type */
.tam-schedule-by-lesson {
  display: grid;
  gap: 30px;
}

.tam-lesson-section {
  margin-bottom: 30px;
}

.tam-lesson-day {
  margin: 15px 0;
  padding-left: 20px;
}

.tam-lesson-day-name {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

/* Schedule by Area */
.tam-schedule-by-area .tam-area-title {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Schedule by Type */
.tam-schedule-by-type .tam-type-title {
  font-size: 22px;
  margin-bottom: 20px;
  background: #333;
}

.tam-type-day {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
}

.tam-type-day-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: #333;
  padding: 8px 15px;
  margin: 0 0 15px 0;
}

/* Schedule by Trainer */
.tam-schedule-by-trainer .tam-trainer-title {
  font-size: 22px;
  margin-bottom: 20px;
  background: #333;
}

.tam-trainer-day {
  margin: 20px 0;
  padding: 15px;
  background: #333;
  color: white;
}

.tam-trainer-day-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 15px 0;
}

/* Class Items */
.tam-class-item {
  padding: 10px 0;
  line-height: 1.6;
  border-bottom: 1px solid #e0e0e0;
}

.tam-class-item:last-child {
  border-bottom: none;
}

.tam-trainer-day .tam-class-item,
.tam-type-day .tam-class-item {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.tam-class-time {
  font-weight: bold;
  color: #8b0000;
}

.tam-trainer-day .tam-class-time,
.tam-type-day .tam-class-time {
  color: white;
}

.tam-class-name {
  font-weight: 600;
  color: #333;
}

.tam-trainer-day .tam-class-name,
.tam-type-day .tam-class-name {
  color: white;
}

.tam-class-category {
  font-style: italic;
  color: #666;
  margin-left: 5px;
}

.tam-trainer-day .tam-class-category,
.tam-type-day .tam-class-category {
  color: rgba(255, 255, 255, 0.8);
}

.tam-class-area,
.tam-class-trainer {
  color: #666;
}

.tam-trainer-day .tam-class-area,
.tam-type-day .tam-class-area {
  color: rgba(255, 255, 255, 0.9);
}

.tam-class-separator {
  color: #999;
  margin: 0 5px;
}

.tam-trainer-day .tam-class-separator,
.tam-type-day .tam-class-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* No Classes Message */
.tam-no-classes {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.tam-location-schedule-section {
  margin-top: 32px;
}

.tam-seo-page-single--city {
  max-width: 1500px;
  padding: 48px 40px 64px;
}

.tam-seo-city-hero {
  margin-bottom: 36px;
}

.tam-seo-city-hero h1 {
  margin: 0;
  color: #252b33;
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.tam-seo-city-page {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tam-seo-city-page__header {
  margin-bottom: 24px;
}

.tam-seo-city-page__header h2 {
  margin: 0 0 8px;
  color: #8b0000;
  font-size: 32px;
  font-weight: 700;
}

.tam-seo-city-page__header p {
  margin: 0;
  color: #555;
  font-size: 16px;
}

.tam-seo-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.tam-seo-city-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #333;
  border-radius: 14px;
  box-shadow: none;
}

.tam-seo-city-card h3 {
  margin: 0 0 12px;
  color: #252b33;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.tam-seo-city-card__meta {
  margin: 0 0 6px;
  color: #000;
  font-size: 20px;
  line-height: 1.35;
}

.tam-seo-city-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f4f4;
  color: #111;
  text-decoration: none;
}

.tam-seo-city-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tam-seo-city-card__media span {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tam-seo-city-card__body {
  flex: 1 1 auto;
  padding: 20px 14px 28px;
}

.tam-seo-city-card__actions {
  margin-top: auto;
}

.tam-seo-city-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  background: #000;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.tam-seo-city-card__link:hover {
  background: #1b1b1b;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .tam-seo-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tam-seo-page-single--city {
    padding: 34px 20px 48px;
  }

  .tam-seo-city-grid {
    grid-template-columns: 1fr;
  }

  .tam-seo-distance-filter {
    padding: 16px;
  }

  .tam-seo-distance-filter fieldset {
    gap: 12px;
  }

  .tam-seo-distance-filter legend {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .tam-seo-distance-filter__label {
    font-size: 13px;
  }

  .tam-seo-distance-filter__submit {
    width: 100%;
    padding: 10px 16px;
    margin-top: 12px;
  }
}

.tam-location-booking-section {
  margin-top: 32px;
}

.tam-gym-info-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 32px;
  margin-top: 44px;
  padding: 36px;
  background: linear-gradient(135deg, #fffdfa 0%, #f4eadc 100%);
  border: 1px solid #e8d6c2;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(67, 42, 19, 0.1);
}

.tam-gym-info-section__content {
  display: grid;
  gap: 26px;
  align-content: start;
}

.tam-gym-info-section__brand {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #faf4ec 100%);
  border: 1px solid #eddcc8;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(56, 36, 16, 0.08);
}

.tam-gym-info-section__brand::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -18px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(205, 111, 48, 0.16) 0%, rgba(205, 111, 48, 0) 72%);
}

.tam-gym-info-section__logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7efe4 100%);
  border-radius: 20px;
}

.tam-gym-info-section__logo-wrap img {
  max-width: min(100%, 440px);
  max-height: 220px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.tam-gym-info-section__logo-fallback {
  color: #1e1a15;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tam-gym-info-section__main {
  max-width: 780px;
}

.tam-gym-info-section__main h2 {
  margin: 12px 0 14px;
  color: #171717;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.tam-gym-info-section__eyebrow {
  display: inline-block;
  padding: 10px 14px;
  background: #fff0db;
  border-radius: 999px;
  color: #a12b00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tam-gym-info-section__subline {
  margin: 0 0 18px;
  color: #7a6047;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tam-gym-info-section__description {
  color: #44372a;
  font-size: 18px;
  line-height: 1.85;
}

.tam-gym-info-section__description p {
  margin: 0 0 18px;
}

.tam-gym-info-section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tam-gym-info-section__meta li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ead8c4;
  border-radius: 999px;
  color: #5d4630;
  font-size: 14px;
  font-weight: 600;
}

.tam-gym-info-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 20px;
  background: #171717;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 24px rgba(23, 23, 23, 0.18);
}

.tam-gym-info-section__cta:hover {
  color: #fff;
  background: #2d241c;
  text-decoration: none;
  transform: translateY(-1px);
}

.tam-gym-info-card {
  align-self: start;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ecdaca;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(61, 40, 20, 0.08);
}

.tam-gym-info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.tam-gym-info-card h3 {
  margin: 0;
  color: #171717;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tam-gym-info-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #eef8ef;
  border: 1px solid #cce3ce;
  border-radius: 999px;
  color: #2f6e39;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tam-gym-info-card__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tam-gym-info-card__item + .tam-gym-info-card__item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1e7dc;
}

.tam-gym-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff0dd;
  color: #db6a2b;
  box-shadow: inset 0 0 0 1px rgba(219, 106, 43, 0.12);
}

.tam-gym-info-card__icon svg {
  width: 22px;
  height: 22px;
}

.tam-gym-info-card__body {
  min-width: 0;
}

.tam-gym-info-card__label {
  display: block;
  margin-bottom: 6px;
  color: #ab3506;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tam-gym-info-card__value {
  margin: 0;
  color: #2f251d;
  line-height: 1.7;
  font-size: 17px;
}

.tam-gym-info-card__value a {
  color: #8b2d04;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.tam-gym-info-card__value a:hover {
  color: #661700;
  text-decoration: underline;
}

.tam-gym-info-card__socials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tam-gym-info-card__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  background: #f8f2ea;
  border: 1px solid #e8d7c5;
  border-radius: 999px;
  color: #6a2612;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tam-gym-info-card__socials a:hover {
  color: #4f1405;
  background: #f1e4d7;
  text-decoration: none;
}

body.single-tam_seo_page,
body.tam-generated-page {
  background: #fff;
}

body.single-tam_seo_page .tam-platform-header,
body.tam-generated-page .tam-platform-header {
  margin-bottom: 0;
}

.tam-seo-page-single--gym {
  max-width: 1280px;
  padding-top: 32px;
  padding-bottom: 56px;
}

@media (max-width: 700px) {
  .tam-platform-header__inner {
    min-height: auto;
    padding: 18px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .tam-platform-header__brand {
    font-size: 26px;
  }

  .tam-platform-header__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.tam-seo-page-single--gym .tam-gym-page-header {
  margin-bottom: 28px;
}

.tam-seo-page-single--gym .back-link {
  border: 1px solid #eadfd3;
  background: rgba(255, 255, 255, 0.7);
}

.tam-seo-page-single--gym .back-link:hover {
  background: #fff;
}

.tam-seo-page-single--gym .tam-gym-page-header h1 {
  max-width: 980px;
  color: #1d1d1d;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tam-seo-page-single--gym .tam-gym-page-header h1 span {
  color: #e01c24;
}

.tam-gym-page-header__intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: #665545;
  font-size: 17px;
  line-height: 1.75;
}

.tam-gym-page-content {
  gap: 30px;
}

.tam-gym-page-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tam-gym-page-panel {
  min-width: 0;
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #eee2d4;
  border-radius: 12px;
  box-shadow: none;
}

.tam-gym-page-panel__header {
  margin-bottom: 14px;
}

.tam-gym-page-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  color: #54d400;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.tam-seo-page-single--gym .tam-location-schedule-section,
.tam-seo-page-single--gym .tam-location-booking-section {
  margin-top: 0;
}

.tam-seo-page-single--gym .tam-gym-info-section {
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.82fr);
  gap: 24px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tam-seo-page-single--gym .tam-gym-info-section__content {
  gap: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee2d4;
  border-radius: 12px;
  overflow: hidden;
}

.tam-seo-page-single--gym .tam-gym-info-section__brand {
  padding: 28px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tam-seo-page-single--gym .tam-gym-info-section__brand::after {
  display: none;
}

.tam-seo-page-single--gym .tam-gym-info-section__logo-wrap {
  min-height: 260px;
  padding: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.tam-seo-page-single--gym .tam-gym-info-section__logo-wrap img {
  max-width: min(100%, 380px);
  max-height: 260px;
}

.tam-seo-page-single--gym .tam-gym-info-section__logo-fallback {
  font-size: clamp(56px, 8vw, 92px);
  letter-spacing: 0.08em;
}

.tam-seo-page-single--gym .tam-gym-info-section__main {
  padding: 28px;
}

.tam-seo-page-single--gym .tam-gym-info-section__eyebrow {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #da6c2a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tam-seo-page-single--gym .tam-gym-info-section__main h2 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.tam-seo-page-single--gym .tam-gym-info-section__subline {
  color: #7a6656;
}

.tam-seo-page-single--gym .tam-gym-info-section__description {
  font-size: 16px;
  line-height: 1.8;
}

.tam-seo-page-single--gym .tam-gym-info-section__meta {
  margin-top: 20px;
}

.tam-seo-page-single--gym .tam-gym-info-section__meta li {
  background: #faf3ea;
  border-color: #efe0cf;
  border-radius: 10px;
}

.tam-seo-page-single--gym .tam-gym-info-section__cta {
  margin-top: 22px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #eadccf;
  border-radius: 10px;
  color: #3a3028;
  box-shadow: none;
}

.tam-seo-page-single--gym .tam-gym-info-section__cta:hover {
  background: #faf3ea;
  color: #3a3028;
  transform: none;
}

.tam-seo-page-single--gym .tam-gym-info-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee2d4;
  border-radius: 12px;
  box-shadow: none;
}

.tam-seo-page-single--gym .tam-gym-info-card__header {
  margin-bottom: 14px;
}

.tam-seo-page-single--gym .tam-gym-info-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.tam-seo-page-single--gym .tam-gym-info-card__item + .tam-gym-info-card__item {
  margin-top: 14px;
  padding-top: 14px;
}

.tam-seo-page-single--gym .tam-gym-info-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff3e8;
  color: #f08e36;
  box-shadow: none;
}

.tam-seo-page-single--gym .tam-gym-info-card__icon svg {
  width: 16px;
  height: 16px;
}

.tam-seo-page-single--gym .tam-gym-info-card__label {
  margin-bottom: 4px;
  color: #d96b29;
}

.tam-seo-page-single--gym .tam-gym-info-card__value {
  font-size: 15px;
  line-height: 1.65;
}

.tam-gym-info-card__map {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1e7dc;
}

.tam-gym-info-card__map iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 10px;
  background: #f6efe8;
}

.tam-gym-info-card__map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: #8b2d04;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tam-gym-info-card__map-link:hover {
  color: #661700;
  text-decoration: underline;
}

.tam-gym-faq-section {
  padding-top: 6px;
}

.tam-gym-faq-section__header {
  margin-bottom: 16px;
}

.tam-gym-faq-section__header h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.tam-gym-faq-list {
  display: grid;
  gap: 10px;
}

.tam-gym-faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #eee2d4;
  border-radius: 12px;
}

.tam-gym-faq-item__title {
  color: #30261f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.tam-gym-faq-item__icon {
  color: #1d1d1d;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tam-schedule-wrapper {
    padding: 10px;
  }

  .tam-filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .tam-day-header,
  .tam-lesson-header,
  .tam-area-title,
  .tam-type-title,
  .tam-trainer-title {
    font-size: 16px;
    padding: 10px 15px;
  }

  .tam-class-item {
    font-size: 14px;
    line-height: 1.8;
  }

  .tam-gym-info-section {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 22px;
  }

  .tam-gym-info-section__brand {
    padding: 18px;
  }

  .tam-gym-info-section__logo-wrap {
    min-height: 170px;
    padding: 18px;
  }

  .tam-gym-info-section__main h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .tam-gym-info-section__description {
    font-size: 16px;
  }

  .tam-gym-info-card {
    padding: 22px;
  }

  .tam-gym-info-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tam-seo-page-single--gym {
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .tam-seo-page-single--gym .tam-gym-page-header h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .tam-gym-page-top-grid {
    grid-template-columns: 1fr;
  }

  .tam-gym-page-panel,
  .tam-seo-page-single--gym .tam-gym-info-section__main,
  .tam-seo-page-single--gym .tam-gym-info-card {
    padding: 18px;
  }

  .tam-seo-page-single--gym .tam-gym-info-section__brand {
    padding: 18px;
  }

  .tam-seo-page-single--gym .tam-gym-info-section__logo-wrap {
    min-height: 180px;
    padding: 10px;
  }

  .tam-gym-page-header__intro {
    font-size: 16px;
  }

  .tam-gym-faq-item {
    padding: 14px 16px;
  }
}

/* ===========================
   Trial Forms — Shared Styles
   =========================== */

.tam-trial-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tam-form-row {
  display: flex;
  gap: 15px;
}

.tam-form-group {
  margin-bottom: 20px;
  flex: 1;
}

.tam-form-group-half {
  flex: 0 0 calc(50% - 7.5px);
}

.tam-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.tam-required {
  color: #8b0000;
  margin-left: 3px;
}

.tam-input,
.tam-select,
.tam-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.tam-input:focus,
.tam-select:focus,
.tam-textarea:focus {
  outline: none;
  border-color: #8b0000;
}

.tam-textarea {
  min-height: 100px;
  resize: vertical;
}

.tam-submit-btn {
  background: #8b0000;
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tam-submit-btn:hover {
  background: #660000;
}

/* Archive Pages */
.tam-trainers-archive,
.tam-locations-archive {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.archive-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.tam-filters {
  margin-bottom: 50px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.tam-search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tam-search-form input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.tam-search-form input[type="text"]:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.tam-search-form button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.tam-search-form button:hover {
  background: linear-gradient(135deg, #660000 0%, #8b0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.tam-search-form button:active {
  transform: translateY(0);
}

.tam-search-form a {
  color: #8b0000;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tam-search-form a:hover {
  background: #f8f9fa;
  text-decoration: underline;
}

/* Archive Grids */
.tam-trainers-grid,
.tam-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.tam-trainer-item,
.tam-location-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tam-trainer-item:hover,
.tam-location-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #8b0000;
}

.tam-trainer-item a,
.tam-location-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tam-trainer-thumbnail,
.tam-location-thumbnail {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  position: relative;
  flex-shrink: 0;
}

.tam-trainer-thumbnail::before,
.tam-location-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.tam-trainer-thumbnail img,
.tam-location-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tam-trainer-item:hover .tam-trainer-thumbnail img,
.tam-location-item:hover .tam-location-thumbnail img {
  transform: scale(1.05);
}

.tam-trainer-title,
.tam-location-title {
  padding: 20px 24px 12px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.tam-trainer-excerpt,
.tam-location-excerpt {
  padding: 0 24px 20px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.tam-location-city {
  padding: 0 24px 8px;
  color: #8b0000;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tam-location-city::before {
  content: '📍';
  font-size: 14px;
}

.tam-location-address {
  padding: 0 24px 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Pagination */
.tam-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e9ecef;
}

.tam-pagination .page-numbers {
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
  background: white;
}

.tam-pagination .page-numbers:hover {
  background: #f8f9fa;
  border-color: #8b0000;
  color: #8b0000;
  transform: translateY(-2px);
}

.tam-pagination .page-numbers.current {
  background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
  color: white;
  border-color: #8b0000;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.tam-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.tam-pagination .page-numbers.dots:hover {
  transform: none;
  background: transparent;
  border: none;
}

/* Single Post Pages */
.tam-trainer-single,
.tam-location-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.trainer-header,
.location-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.back-link:hover {
  color: #660000;
  background: #f8f9fa;
  text-decoration: none;
}

.back-link::before {
  content: '←';
  font-size: 18px;
}

.trainer-header h1,
.location-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.trainer-content,
.location-content {
  display: grid;
  gap: 40px;
}

.trainer-image,
.location-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.trainer-image img,
.location-image img {
  width: 100%;
  height: auto;
  display: block;
}

.trainer-description,
.location-description {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
}

.trainer-contact,
.location-contact {
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  margin-top: 30px;
}

.trainer-contact h2,
.location-contact h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #8b0000;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trainer-contact h2::before,
.location-contact h2::before {
  content: '📧';
  font-size: 24px;
}

.trainer-contact p,
.location-contact p {
  margin: 18px 0;
  line-height: 1.8;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #8b0000;
  transition: all 0.3s ease;
}

.trainer-contact p:hover,
.location-contact p:hover {
  background: #f8f9fa;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trainer-contact p strong,
.location-contact p strong {
  min-width: 100px;
  color: #333;
  font-weight: 600;
}

.trainer-contact a,
.location-contact a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trainer-contact a:hover,
.location-contact a:hover {
  color: #660000;
  text-decoration: underline;
}

.trainer-contact a::after,
.location-contact a[href^="mailto:"]::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.3s ease;
}

.trainer-contact a[href^="tel:"]::after {
  content: '📞';
  font-size: 14px;
}

.trainer-contact a[href^="mailto:"]::after {
  content: '✉️';
  font-size: 14px;
}

.trainer-contact a:hover::after,
.location-contact a:hover::after {
  transform: translateX(4px);
}

.trainer-cta,
.location-cta {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #e9ecef;
}

.trainer-cta .button,
.location-cta .button {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.trainer-cta .button:hover,
.location-cta .button:hover {
  background: linear-gradient(135deg, #660000 0%, #8b0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.trainer-cta .button:active,
.location-cta .button:active {
  transform: translateY(0);
}

.location-owner-contact {
  padding: 30px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #ffe0e0;
  margin-top: 30px;
}

.location-owner-contact h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #8b0000;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-owner-contact h2::before {
  content: '👤';
  font-size: 24px;
}

.location-owner-contact p {
  margin: 18px 0;
  line-height: 1.8;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #8b0000;
  transition: all 0.3s ease;
}

.location-owner-contact p:hover {
  background: #fff5f5;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-owner-contact p strong {
  min-width: 100px;
  color: #333;
  font-weight: 600;
}

.location-owner-contact a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.location-owner-contact a:hover {
  color: #660000;
  text-decoration: underline;
}

/* Empty State */
.tam-trainers-archive > p,
.tam-locations-archive > p {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 40px 0;
}

/* Distance Filter */
.tam-seo-distance-filter {
  margin: 0 0 32px;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 8px;
}

.tam-seo-distance-filter__form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tam-seo-distance-filter fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.tam-seo-distance-filter legend {
  margin: 0;
  margin-right: 8px;
  padding: 0;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}

.tam-seo-distance-filter__label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.tam-seo-distance-filter__label input[type="radio"] {
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.tam-seo-distance-filter__submit {
  padding: 8px 20px;
  background: #8b0000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 8px;
}

.tam-seo-distance-filter__submit:hover {
  background: #6b0000;
}

/* Distance Display in Cards */
.tam-seo-city-card__distance {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 8px 0;
  color: #8b0000;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid #eee;
}

.tam-seo-city-card__distance-icon {
  display: inline-block;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .tam-trainers-grid,
  .tam-locations-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .tam-seo-city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tam-seo-distance-filter fieldset {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .tam-trainers-archive,
  .tam-locations-archive {
    padding: 30px 15px;
  }

  .archive-header h1 {
    font-size: 32px;
  }

  .tam-filters {
    padding: 20px;
  }

  .tam-trainers-grid,
  .tam-locations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tam-search-form {
    flex-direction: column;
  }

  .tam-search-form input[type="text"],
  .tam-search-form button {
    width: 100%;
  }

  .tam-trainer-thumbnail,
  .tam-location-thumbnail {
    height: 200px;
  }

  .trainer-header h1,
  .location-header h1 {
    font-size: 28px;
  }

  .tam-pagination {
    flex-wrap: wrap;
  }

  .tam-pagination .page-numbers {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .archive-header h1 {
    font-size: 28px;
  }

  .tam-trainer-title,
  .tam-location-title {
    font-size: 20px;
    padding: 16px 20px 10px;
  }
}

.tam-homepage {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px 80px;
    color: #1a1a1a;
}

.tam-homepage-hero {
    min-height: 520px;
    margin: 0 calc(50% - 50vw) 64px;
    padding: 0 24px;
    background: linear-gradient(135deg, #151515 0%, #2d2d2d 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
}

.tam-homepage-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 26%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.tam-homepage-hero__overlay {
    width: min(1360px, 100%);
    margin: 0 auto;
    padding: 72px 48px;
    color: #fff;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.tam-homepage-hero__label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.82;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.tam-homepage-hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.tam-homepage-hero__text {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.92);
}

.tam-homepage-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tam-homepage-hero__count {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tam-homepage-section {
    margin-top: 72px;
}

.tam-homepage--section-page {
    padding-top: 32px;
}

.tam-homepage--section-page .tam-homepage-section:first-child {
    margin-top: 0;
}

.tam-homepage-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 28px;
}

.tam-homepage-section__head--about,
.tam-homepage-section__head--faq {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
}

.tam-homepage-section__copy p {
    margin: 14px 0 0;
    max-width: 720px;
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 16px;
}

.tam-homepage-section__eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #727272;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tam-homepage-section__title {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.tam-homepage-school-search {
    width: 100%;
}

.tam-homepage-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.tam-homepage-search-form--schools-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
}

.tam-homepage-search-form input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #111;
    font-size: 15px;
}

.tam-homepage-search-form input[type="text"]:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.tam-homepage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tam-homepage-button:hover {
    transform: translateY(-1px);
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: #fff;
}

.tam-homepage-button--light {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.tam-homepage-button--light:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.tam-homepage-button--ghost {
    background: transparent;
    color: #111;
}

.tam-homepage-button--ghost:hover {
    background: #111;
    color: #fff;
}

.tam-homepage-schools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.tam-homepage-school-card {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tam-homepage-school-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.tam-homepage-school-card__media {
    display: block;
    height: 210px;
    background: linear-gradient(135deg, #171717 0%, #3a3a3a 100%);
    overflow: hidden;
}

.tam-homepage-school-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tam-homepage-school-card:hover .tam-homepage-school-card__media img {
    transform: scale(1.04);
}

.tam-homepage-school-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.tam-homepage-school-card__body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tam-homepage-school-card__body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
}

.tam-homepage-school-card__meta,
.tam-homepage-school-card__excerpt {
    margin: 0;
    color: #4f4f4f;
    font-size: 14px;
    line-height: 1.55;
}

.tam-homepage-school-card__footer {
    padding: 0 16px 16px;
}

.tam-homepage-school-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.tam-homepage-school-card__link:hover {
    background: #2a2a2a;
    color: #fff;
}

.tam-homepage-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.tam-homepage-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d7d7d7;
    color: #111;
    text-decoration: none;
    font-size: 13px;
}

.tam-homepage-pagination__link.is-current,
.tam-homepage-pagination__link:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.tam-homepage-events__actions {
    display: flex;
    justify-content: flex-end;
}

.tam-homepage-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tam-homepage-event-card {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tam-homepage-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.tam-homepage-event-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    background: linear-gradient(135deg, #171717 0%, #3a3a3a 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.tam-homepage-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tam-homepage-event-card:hover .tam-homepage-event-card__media img {
    transform: scale(1.04);
}

.tam-homepage-event-card__date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 220px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.tam-homepage-event-card__body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tam-homepage-event-card__body h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.tam-homepage-event-card__meta,
.tam-homepage-event-card__excerpt {
    margin: 0;
    color: #4f4f4f;
    font-size: 14px;
    line-height: 1.55;
}

.tam-homepage-event-card__footer {
    padding: 0 16px 16px;
}

.tam-homepage-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tam-homepage-quick-links__item {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d6d6d6;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.tam-homepage-quick-links__item:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.tam-homepage-about {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
}

.tam-homepage-about__body {
    max-width: 780px;
}

.tam-homepage-about__lead {
    margin: 0 0 22px;
    color: #2c2c2c;
    font-size: 18px;
    line-height: 1.9;
}

.tam-homepage-about__block + .tam-homepage-about__block {
    margin-top: 22px;
}

.tam-homepage-about__block h3 {
    margin: 0 0 10px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tam-homepage-about__block p {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.9;
}

.tam-homepage-about__body .tam-homepage-button {
    margin-top: 28px;
}

.tam-homepage-faq {
    max-width: 1120px;
}

.tam-homepage-faq-item {
    border: 1px solid #e3e3e3;
    background: #fff;
    padding: 0 22px;
}

.tam-homepage-faq-item + .tam-homepage-faq-item {
    margin-top: 14px;
}

.tam-homepage-faq-item summary {
    position: relative;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 20px 42px 20px 0;
}

.tam-homepage-faq-item summary::-webkit-details-marker {
    display: none;
}

.tam-homepage-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #8a8a8a;
}

.tam-homepage-faq-item[open] summary::after {
    content: "−";
}

.tam-homepage-faq-item p {
    margin: 0;
    padding: 0 0 22px;
    color: #4a4a4a;
    line-height: 1.8;
}

.tam-homepage-simple-page {
    min-height: 320px;
}

.tam-homepage-cta {
    text-align: center;
    background: #1b1b1b;
    color: #fff;
    padding: 52px 24px;
}

.tam-homepage-cta h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.tam-homepage-empty {
    padding: 24px 0;
    color: #5e5e5e;
    font-size: 16px;
}

.tam-generated-footer {
    margin-top: 96px;
    background: #1f1f1f;
    color: #fff;
}

.tam-generated-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.tam-generated-footer__inner a {
    color: #fff;
    text-decoration: none;
}

.tam-generated-footer__inner a:hover {
    color: #fff;
    text-decoration: underline;
}

.tam-generated-footer__sep {
    opacity: 0.8;
}

@media (max-width: 1180px) {
    .tam-homepage-schools-grid,
    .tam-homepage-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tam-homepage-section__head,
    .tam-homepage-about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .tam-homepage {
        padding: 0 18px 64px;
    }

    .tam-homepage-hero {
        min-height: 440px;
        margin-bottom: 48px;
        padding: 0 18px;
    }

    .tam-homepage-hero__overlay {
        padding: 56px 18px;
    }

    .tam-homepage-hero h1,
    .tam-homepage-section__title {
        line-height: 1;
    }

    .tam-homepage-search-form {
        grid-template-columns: 1fr;
    }

    .tam-homepage-search-form--schools-page {
        grid-template-columns: 1fr;
    }

    .tam-homepage-schools-grid,
    .tam-homepage-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tam-homepage-hero {
        min-height: 380px;
    }

    .tam-homepage-hero__overlay {
        padding: 44px 0;
    }

    .tam-homepage-hero__actions,
    .tam-homepage-quick-links {
        align-items: stretch;
    }

    .tam-homepage-button,
    .tam-homepage-quick-links__item,
    .tam-homepage-hero__count {
        width: 100%;
    }

    .tam-generated-footer__inner {
        font-size: 14px;
        line-height: 1.6;
    }

    .tam-homepage-events__actions {
        justify-content: stretch;
    }

    .tam-homepage-events__actions .tam-homepage-button {
        width: 100%;
    }

    .tam-homepage-schools-grid,
    .tam-homepage-events-grid {
        grid-template-columns: 1fr;
    }
}

.tam-form-step {
  display: none;
}

.tam-step-active {
  display: block;
}

.tam-form-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.tam-form-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 20px;
}

.tam-next-btn,
.tam-back-btn {
  padding: 12px 30px;
  border: 2px solid #8b0000;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tam-next-btn {
  background: #8b0000;
  color: white;
}

.tam-next-btn:hover:not(:disabled) {
  background: #660000;
}

.tam-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tam-back-btn {
  background: white;
  color: #8b0000;
}

.tam-back-btn:hover {
  background: #8b0000;
  color: white;
}

.tam-selected-class-info {
  background: #f5f5f5;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 15px;
}

.tam-form-messages {
  margin-top: 15px;
}

.tam-success-message {
  padding: 15px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
}

.tam-error-message {
  padding: 15px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .tam-form-row {
    flex-direction: column;
    gap: 0;
  }

  .tam-form-group-half {
    flex: 1;
  }
}

/* ===========================
   Radio Variant (multi-step)
   =========================== */

.tam-trial-form-radio {
  max-width: 700px;
}

.tam-progress-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.tam-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
}

.tam-progress-step.tam-progress-active {
  opacity: 1;
}

.tam-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.tam-progress-active .tam-step-number {
  background: #8b0000;
  color: white;
}

.tam-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.tam-progress-active .tam-step-label {
  color: #8b0000;
}

.tam-intro-text {
  margin-bottom: 25px;
  line-height: 1.7;
  color: #555;
}

.tam-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tam-time-slot-btn {
  padding: 12px 18px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.tam-time-slot-btn:hover {
  border-color: #8b0000;
  background: #fff5f5;
}

.tam-time-slot-btn.tam-slot-selected {
  border-color: #8b0000;
  background: #8b0000;
  color: white;
}

.tam-slot-day {
  font-size: 13px;
  font-weight: 600;
}

.tam-slot-time {
  font-size: 15px;
  font-weight: bold;
}

.tam-confirmation-summary {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
}

.tam-summary-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

.tam-summary-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.tam-summary-list li:last-child {
  border-bottom: none;
}

/* ===========================
   Calendar Variant
   =========================== */

.tam-trial-form-calendar {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
}

.tam-calendar-layout {
  display: flex;
  min-height: 500px;
}

.tam-calendar-sidebar {
  width: 200px;
  background: #1a1a1a;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.tam-sidebar-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  cursor: default;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.tam-sidebar-step.tam-sidebar-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.tam-sidebar-icon {
  font-size: 20px;
}

.tam-sidebar-label {
  font-size: 14px;
  font-weight: 600;
}

.tam-sidebar-collapse {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.tam-calendar-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tam-calendar-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.tam-calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tam-calendar-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
}

.tam-calendar-nav {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tam-calendar-nav:hover {
  background: #8b0000;
  color: white;
  border-color: #8b0000;
}

.tam-calendar-grid {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.tam-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #8b0000;
}

.tam-calendar-day-name {
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.tam-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
}

.tam-calendar-day {
  background: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tam-calendar-day.tam-has-classes {
  cursor: pointer;
  font-weight: bold;
  color: #8b0000;
}

.tam-calendar-day.tam-has-classes:hover,
.tam-calendar-day.tam-day-selected {
  background: #8b0000;
  color: white;
}

.tam-calendar-day.tam-day-empty {
  background: #f9f9f9;
}

.tam-time-slots-list {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.tam-time-slots-list h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333;
}

.tam-calendar-continue {
  background: #8b0000;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tam-calendar-continue:hover:not(:disabled) {
  background: #660000;
}

.tam-calendar-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .tam-calendar-layout {
    flex-direction: column;
  }

  .tam-calendar-sidebar {
    width: auto;
    flex-direction: row;
    padding: 15px 20px;
    gap: 20px;
  }

  .tam-sidebar-collapse {
    margin-top: 0;
    margin-left: auto;
  }

  .tam-trial-form-radio,
  .tam-trial-form-calendar {
    max-width: 100%;
  }

  .tam-progress-bar {
    gap: 20px;
  }

  .tam-time-slot-btn {
    min-width: 100px;
    padding: 10px 12px;
  }
}
