/* Tabs container */
.navitas-tab-container {
  max-width: 1308px;
  margin-left: auto;
  margin-right: auto;
}

.tabs-section {
  padding: 50px 64px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.tabs-inline {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  height: 260px;
}

.tabs-title {
  font-size: 42px;
  font-family: proxima-nova;
  line-height: 46.2px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
}

.tabs-intro {
  font-size: 20px;
  font-family: myriad-pro;
  line-height: 26px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
}

/* Each tab item */
.tab-item {
  display: flex;
  align-items: stretch;
  gap: 0px;
  min-width: 0;
  overflow: hidden;
}

/* Tab button */
.tab-btn {
  display: inline-grid;
  place-items: center;
  width: 192px;
  height: 260px;
  border: none;
  background: #0097DA;
  cursor: pointer;
  font-weight: 900;
  font-size: 128px;
  font-family: proxima-nova;
  transition: background 360ms, transform 360ms;
  flex-shrink: 0;
}

.tab-btn[aria-selected="true"] {
  background: #0097DA;
  color: #fff;
  transform: translateY(-2px);
}

.tab-btn:hover {
  background: #6CBE45;
  color: #fff;
}

/* Tab panel */
.tab-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  max-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #E5F5FB;
  border: none;
  padding: 0;
  height: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    padding 300ms ease;
}

.tab-panel h3 {
  margin-bottom: 0px;
}

.tab-panel p {
  text-align: center;
}

.tab-item.active .tab-panel {
  width: 350px;
  max-width: 350px;
  padding: 16px;
  height: auto;
  opacity: 1;
  transform: translateX(0);
}


/* CTA links below tabs */
.cta-links {
  margin-top: 50px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-links a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #0097da;
  border: 0;
  font-size: 20px;
  line-height: 1;
  font-family: myriad-pro;
  font-weight: 600;
  padding: 16px 20px;
  transition: background 0.3s;
}

.cta-links a:hover {
  background: #6CBE45;
  color: #fff;
}

/* For Tablet & Mobile */
@media (max-width: 1024px) {
  .tabs-section {
    padding: 40px 32px;
  }

  .tabs-title {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 24px;
  }

  .tabs-inline {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 16px;
    overflow: visible;
  }

  .tab-item {
    flex-direction: column;
    align-items: center;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    height: auto;
  }

  .tab-btn {
    width: 100%;
    height: 120px;
    font-size: 72px;
    border-radius: 12px;
  }

  /* Hide inactive panels fully */
  .tab-panel {
    width: 100%;
    max-width: 100% !important;
    opacity: 0;
    visibility: hidden;
    transform: none;
    height: 0;
    padding: 0;
    background: #E5F5FB;
    overflow: hidden;
    box-shadow: none;
    transition:
      opacity 360ms ease,
      visibility 360ms ease,
      height 360ms ease,
      padding 360ms ease;
    text-align: center;
  }

  /* Active panel expands cleanly */
  .tab-item.active .tab-panel {
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 20px;
  }

  .cta-links {
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* For Mobile */
@media (max-width: 480px) {
  .tabs-section {
    padding: 32px 20px;
  }

  .tabs-title {
    font-size: 26px;
    line-height: 30px;
    margin-bottom: 20px;
  }

  .tab-btn {
    font-size: 56px;
    height: 100px;
  }

  .tab-panel {
    padding: 12px;
  }
}

