/* blox - Tab Items */

.blox-ti-body,
.blox-ti-body *,
.blox-ti-body *::before,
.blox-ti-body *::after {
  box-sizing: border-box;
}

.blox-ti-container {
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.blox-ti-heading {
  margin-bottom: 48px;
}

/* Tab triggers */
.blox-ti-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blox-ti-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.blox-ti-trigger:hover {
  opacity: 0.8;
}

.blox-ti-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.blox-ti-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blox-ti-trigger-icon svg {
  width: 16px;
  height: 16px;
}

/* Content panel wrapper */
.blox-ti-panel-wrapper {
  margin-top: 32px;
  border-radius: 16px;
  padding: 40px;
}

/* Individual panel */
.blox-ti-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.blox-ti-panel[hidden] {
  display: none;
}

.blox-ti-panel--image-left .blox-ti-content-image {
  order: -1;
}

/* Content text area */
.blox-ti-content-badge {
  margin-bottom: 24px;
}

.blox-ti-content-title {
  margin: 0 0 20px 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.blox-ti-content-description {
  line-height: 1.6;
  margin-bottom: 24px;
}

.blox-ti-content-description p {
  margin: 0;
}

.blox-ti-button {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}

/* Content image */
.blox-ti-content-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Reduced motion - browser preference */
@media (prefers-reduced-motion: reduce) {
  .blox-ti-trigger {
    transition: none;
  }
}

/* Reduced motion - theme setting */
.blox-ti-no-motion .blox-ti-trigger {
  transition: none;
}

/* Desktop */
@media (min-width: 993px) {
  .blox-ti-content-title {
    font-size: 2.5rem;
  }

  .blox-ti-panel-wrapper {
    padding: 64px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .blox-ti-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blox-ti-panel--image-left .blox-ti-content-image {
    order: 0;
  }

  .blox-ti-heading {
    margin-bottom: 24px;
  }

  .blox-ti-tablist {
    gap: 4px;
  }

  .blox-ti-trigger {
    padding: 10px 16px;
    font-size: 0.8125rem;
  }

  .blox-ti-panel-wrapper {
    padding: 24px;
  }

  .blox-ti-content-title {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .blox-ti-tablist {
    flex-direction: column;
    align-items: stretch;
  }

  .blox-ti-trigger {
    justify-content: center;
  }
}

/* Section Dividers */
.blox-ti-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blox-ti-divider-top {
  bottom: 100%;
}

.blox-ti-divider-bottom {
  top: 100%;
}

.blox-ti-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
}
