.ath-mtabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.ath-mtabs__main-title {
  text-align: center;
  color: var(--ath-text, currentColor);
  font-family: var(--ath-font-heading, serif);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 400;
  margin: 0 0 48px 0;
  line-height: 1.1;
}

.ath-mtabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
}

.ath-mtabs__nav-btn {
  position: relative;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 0.4rem 0 !important;
  margin: 0 !important;
  cursor: pointer;
  font-family: var(--ath-font-body, sans-serif);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ath-text, currentColor);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
  width: auto !important;
  -webkit-appearance: none;
  appearance: none;
}

.ath-mtabs__nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.2, 1);
}

.ath-mtabs__nav-btn:hover {
  opacity: 1;
}

.ath-mtabs__nav-btn:hover::after {
  transform: scaleX(1);
}

.ath-mtabs__nav-btn.is-active {
  opacity: 1;
}

.ath-mtabs__nav-btn.is-active::after {
  transform: scaleX(1);
}

.ath-mtabs__box {
  border: 1px solid rgba(127, 127, 127, 0.25);
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(2.5rem, 5vw, 5rem);
}

.ath-mtabs__panes {
  display: grid;
  grid-template-columns: 100%;
}

.ath-mtabs__pane {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: grid;
  grid-template-columns: minmax(0, 511fr) minmax(0, 598fr);
  gap: clamp(3rem, 8vw, 11rem);
  align-items: center;
}

.ath-mtabs__pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.ath-mtabs__text {
  display: flex;
  flex-direction: column;
}

.ath-mtabs__title {
  font-family: var(--ath-font-heading, serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  color: var(--arsc-primary, var(--ath-gold, #D4AF37));
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.ath-mtabs__desc {
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  line-height: 1.7;
  color: var(--ath-text, currentColor);
  opacity: 0.85;
}

.ath-mtabs__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 0 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.ath-mtabs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.elementor-widget-atheria_menu_tabs.elementor-invisible {
  visibility: visible !important;
}

@media (max-width: 991px) {
  .ath-mtabs__pane {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ath-mtabs__text {
    order: 2;
  }
  .ath-mtabs__media {
    order: 1;
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .ath-mtabs__box {
    padding: 2.5rem 1.5rem;
  }
  .ath-mtabs__nav {
    gap: 1.4rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ath-mtabs__nav::-webkit-scrollbar { display: none; }
  .ath-mtabs__nav-btn {
    flex-shrink: 0;
  }
}
