.tsm-why-us {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  width: 100%;
  max-width: var(--tsm-container);
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
  margin-bottom: 80px;
  min-height: 500px;
}

.tsm-why-us-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9fafb;
  border-radius: 20px 0 0 20px;
  height: 100%;
  min-height: 500px;
}

.tsm-tab {
  padding: 20px 24px;
  border-radius: 10px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
}

.tsm-tab-arrow-active {
  display: none;
}

.tsm-tab-arrow-inactive {
  display: block;
}

.tsm-tab.is-active .tsm-tab-arrow-active {
  display: block;
}

.tsm-tab.is-active .tsm-tab-arrow-inactive {
  display: none;
}

.tsm-why-us-content {
  height: 100%;
  min-height: 500px;
}

.tsm-tab.is-active {
  background: #ef233c;
  color: #fff;
}

.tsm-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  height: 100%;
  min-height: 500px;
}

.tsm-panel.is-active {
  display: grid;
}

.tsm-panel-image {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.tsm-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 24px 24px 0;
  display: block;
}

.tsm-why-us,
.tsm-why-us * {
  box-sizing: border-box;
}

.tsm-panel-text {
  padding: 56px 48px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
}

/* Base typography for panel text */
.tsm-panel-text p,
.tsm-panel-text span,
.tsm-panel-text li,
.tsm-panel-text ul {
  font-size: 14px;
  line-height: 1.7;
  color: #191919b3;
  margin-top: 0;
  font-weight: 500 !important;
}

.tsm-panel-text ul {
  color: #191919b3;
}

.tsm-panel-text li {
  margin-bottom: 12px;
}

.tsm-panel-text li:last-child {
  margin-bottom: 0;
}

.tsm-panel-text h1,
.tsm-panel-text h2,
.tsm-panel-text h3,
.tsm-panel-text h4,
.tsm-panel-text h5,
.tsm-panel-text h6 {
  color: #191919;
}

.tsm-panel-text strong, b {
  font-size: 14px;
}

.tsm-panel-text h1,
.tsm-panel-text h2,
.tsm-panel-text h3 {
  font-weight: 700 !important;
}

.tsm-panel-text > h3:first-child {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #191919;
}

:where(.wp-site-blocks *:focus) {
  outline: none;
  outline-width: 0 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
  .tsm-why-us {
    grid-template-columns: 1fr;
    height: auto;
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .tsm-why-us-tabs {
    border-radius: 25px 25px 0 0;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
  }

  .tsm-tab {
    padding: 16px 20px;
    font-size: 15px;
    white-space: nowrap;
    min-width: fit-content;
  }

  .tsm-why-us-content {
    height: auto;
    min-height: 400px;
  }

  .tsm-panel {
    grid-template-columns: 1fr;
    height: auto;
  }

  .tsm-panel-image {
    height: 250px;
    order: 2;
  }

  .tsm-panel-image img {
    border-radius: 0 0 24px 24px;
  }

  .tsm-panel-text {
    padding: 32px 24px;
    order: 1;
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 600px) {
  .tsm-why-us {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .tsm-why-us-tabs {
    border-radius: 20px 20px 0 0;
  }

  .tsm-tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .tsm-panel-image {
    height: 200px;
  }

  .tsm-panel-image img {
    border-radius: 0 0 20px 20px;
  }

  .tsm-panel-text {
    padding: 24px 16px;
  }

  .tsm-why-us-content {
    min-height: 350px;
  }
}
