.services-tabs-section {
  padding: 80px 20px;
  overflow: hidden;
}

.tabs-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.tab-title {
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tab-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out-cubic);
  z-index: -1;
}

.tab-title:last-child {
  border-right: none;
}

.tab-title:hover,
.tab-title.active {
  color: #fff;
}

.tab-title:hover::before,
.tab-title.active::before {
  transform: translateY(0);
}

.tabs-content {
  padding: 50px 30px 30px;
  position: relative;
}

.tab-panel {
  display: none;
  animation: content-enter 0.6s var(--ease-out-cubic) forwards;
}

.tab-panel.active {
  display: block;
}

.tab-panel.exiting {
  animation: content-exit 0.4s var(--ease-out-cubic) forwards;
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.service-content-grid:has(.service-video--dual) {
  align-items: stretch;
}

.service-content-grid:has(.service-video--dual) .service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 15px;
}

.service-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.service-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-video--dual {
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 600px;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.service-content-grid:has(.service-video--dual) .service-video--dual {
  height: auto;
  min-height: 0;
}

@media (max-width: 767px) {
  .service-content-grid:has(.service-video--dual) .service-video--dual {
    min-height: 0;
  }
  .service-video--dual {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-video--dual .vertical-video {
    min-height: 380px;
  }
}

#tab-3 .service-content-grid {
  margin-bottom: 12px;
  gap: 24px;
}
#tab-3 .service-text {
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  #tab-3.tab-panel {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

#tab-1 .service-features-grid .feature-box {
  align-items: flex-start;
  text-align: left;
}
#tab-1 .service-features-grid .feature-box h3,
#tab-1 .service-features-grid .feature-box p {
  text-align: left;
}

.service-video--dual .vertical-video {
  position: relative;
  height: 100%;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
}

.service-video--dual .vertical-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform var(--transition-fast) var(--ease-out-cubic),
    box-shadow var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-box picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.feature-box img {
  border-radius: var(--radius);
  margin-bottom: 15px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.feature-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.post-tabs-cta {
  text-align: center;
  padding: 0 20px 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.post-tabs-cta p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.post-tabs-cta h3 {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--text-color);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-color);
  transition: left 0.35s var(--ease-out-cubic);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg-color);
  transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
  left: 0;
}

.inside-tab-cta {
  padding: 0 20px 20px;
  margin-top: -60px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .service-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tabs-nav {
    flex-direction: column;
  }

  .tab-title {
    border-bottom: 1px solid var(--border-color);
  }

  .service-content-grid {
    grid-template-columns: 1fr;
  }

  .service-video {
    grid-row: 1;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }
}

.accordion-header {
  display: none;
}

@media (max-width: 767px) {
  .tabs-wrapper {
    border: none;
  }

  .tabs-nav {
    display: none;
  }

  .tabs-content {
    padding: 0;
  }

  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
  }

  .accordion-header .accordion-arrow {
    transition: transform 0.3s ease-out;
  }

  .accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
  }

  .tab-panel {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0;
    padding-bottom: 0;
    animation: none !important;
    transition:
      max-height 0.4s var(--ease-out-cubic),
      opacity 0.4s ease,
      padding 0.4s ease;
  }

  .tab-panel.active {
    opacity: 1;
    max-height: 2000px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
