  /* --- Layout base --- */
  .lang-carousel {
    --i: 0;
  }

  /*language tabs*/
  .lang-tabs {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background-color: #eb4300;
    width: fit-content;
    padding: 5px;
    border-radius: 30px;
    transition: all 0.5s ease;
    margin: auto;
    margin-right: 0;
    position: relative;
  }

  .lang-tabs::after {
    position: absolute;
    z-index: 99;
    content: '';
    border-radius: 99px; 
    transition: all 0.5s ease;
    bottom: 11%;
    background-color: white;
    left: var(--index-left, 0px);
    width: var(--index-width, 0px);
    height: 79%;
    z-index: 1;
  }

  .lang-tab {
    position: relative;
    background: none;
    border: none;
    padding: 4px 0;
    font: inherit;
    cursor: pointer;
    color: white;
    padding: 10px;
    z-index: 2;
    border-radius: 99px; 
    align-items: center;
    display: inline-flex;
    background-color: transparent;
    gap: .5rem;
    line-height: 1;    
    transition: all .2s ease;
    font-weight: bold;
    z-index: 2;
  }

  /*language tab hover*/
  .lang-tab:hover {
    background-color: white;
    color: #eb4300;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  }

  /*language tab if active*/
  .lang-tab.is-active,
  .lang-tab.is-active:active {
    background-color: white;
    color: #eb4300;
  }

  /*viewport*/
  .lang-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: all .35s ease;
  }

  /*language containers*/
  .lang-track {
    display: flex;
    width: 100%;
    transition: all .5s ease;
    transform: translateX(calc(var(--i) * -100%));
  }

  /*panel*/
  .lang-panel {
    width: 100%;
    flex: 0 0 100%;
    padding: 1rem;
    box-sizing: border-box;
    font-family: "Outfit", Sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: black;
  }

  .lang-panel .content {
    white-space: pre-line;
  }  
  
  .dark .lang-panel .content {
    color: white;
  }

  @media (max-width: 768px) {
    .lang-tabs {
      margin-right: auto;
    }
  }
