:root {
  --primary-color: #007bff;
  --highlight-color: #ffcc00;
  --secondary-color: #ccc;
}

.tabs-nav {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 1200px; /* Optional max width for centering */
  margin: 0 auto; /* Center the nav on desktop */
}

.tabs {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-evenly; /* Even distribution */
}

.tab {
  flex: 1;
  padding: 15px 20px;
  background-color: #fff;
  white-space: nowrap;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  position: relative;
  min-width: 120px;
}

.tab:hover {
  background-color: #f1f1f1;
}

.tab.active {
  color: #fff;
  background-color: var(--primary-color);
  font-weight: bold;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--highlight-color);
}

/* Tab content section */
.tabs-content {
  padding: 20px;
  border-top: 1px solid var(--secondary-color);
  background-color: #f9f9f9;
}

.tab-content {
  display: none;
}

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

/* Layout rows and columns */
.fusion-builder-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.fusion-layout-column {
  flex: 1;
  min-width: 280px;
  max-width: 33.33%;
  padding: 10px;
}

/* Headings */
h3,
h4,
h5 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* List styling */
ul.fa-ul {
  list-style-type: none;
  padding-left: 0;
}

.fa-ul li {
  margin: 5px 0;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .tab {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
    margin-right: 10px;
  }

  .fusion-builder-row {
    flex-direction: column;
  }

  .fusion-layout-column {
    min-width: 100%;
    max-width: 100%;
  }

  .tabs-content {
    padding: 15px;
  }
}

/* ANIMATION (optional AOS or animate.css) */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos='fade-up'] {
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
