/* Container for the tab links */
.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .tab-container a {
    text-decoration: none;
    color: #aaa; /* Gray text for non-selected tabs */
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px; /* Space for the underline */
  }
  /* Underline effect using a pseudo-element */
  .tab-container a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    opacity: 0;
    transform: scaleX(1);
  }

  /* In active tab - hovering */
  .tab-container a:not(.active) {
    transition: transform 0.7s ease, letter-spacing 0.7s ease;
  }
  
  .tab-container a:not(.active):hover {
    transform: skew(-10deg);  /* Simulates an italic look */
    letter-spacing: 0.15em;    /* Slightly increased spacing for a dynamic effect */
  }

  /* Active tab styles */
  .tab-container a.active {
    color: #007bff;
    font-weight: bold;
  }
  /* Apply pulsating underline effect only on the active tab */
  .tab-container a.active::after {
    animation: pulse-underline 3s infinite ease-out;
    opacity: 1;
  }
  @keyframes pulse-underline {
    0%, 100% {
      transform: scaleX(1);
      opacity: 1;
    }
    50% {
      transform: scaleX(0.5);
      opacity: 0;
    }
  }
  /* Container for the tab panels. We use relative positioning so that panels can overlap. */
  .tab-panels {
    position: relative;
    /* Optionally set a min-height for a smoother experience */
    min-height: 80px;
    border: none;
    padding: 1rem;
  }
  /* Tab panel styles: using absolute positioning so we can fade between them */
  .tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease;
  }
  /* Active panel becomes visible and sits in the normal flow */
  .tab-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
  }