/* General Reset for Tab Section */
.tabs-container {
  width: 100%;
  max-width: 1000px; /* Adjusted max-width to fit more tabs */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  margin: 0 auto;
  margin-bottom: 30px; /* Add margin-bottom to give space from the next section */
}

.nav-tabs {
  display: flex;
  justify-content: space-around; /* Spread the tabs evenly */
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
  border-bottom: 2px solid #ddd;
}

.nav-tabs .tab-item {
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex: 1;
}

.nav-tabs .tab-item.active {
  background-color: #588157;
  color: #fff;
  border-bottom: 3px solid #fff;
}

.nav-tabs .tab-item:hover {
  background-color: #588157;
  color: #fff;
}

.tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-pane {
  display: none;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
  display: block;
}

.tab-pane h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #588157;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-pane h4 i {
  margin-right: 10px; /* Space between icon and text */
  font-size: 28px; /* Adjust icon size */
  color: #588157; /* Color of the icon */
}

.tab-pane p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* Fade-in animation for tab content */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-tabs {
    flex-direction: column; /* Stack tabs vertically on smaller screens */
  }

  .nav-tabs .tab-item {
    padding: 12px;
    font-size: 14px;
  }

  .tab-pane h4 {
    font-size: 20px;
  }

  .tab-pane p {
    font-size: 14px;
  }
}

/* Add more space after tab section */
.site-bg-gray.section-container {
  padding-top: 50px;
  padding-bottom: 50px;
}


/* Sub-Tab Navigation */
.sub-tab-navigation {
    margin-top: 20px;
}

.nav-sub-tabs {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.sub-tab-item {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.sub-tab-item.active {
    background-color: #588157;
    color: #fff;
    font-weight: bold;
}

/* Sub-Tab Content */
.sub-tab-content .sub-tab-pane {
    display: none;
    margin-top: 20px;
}

.sub-tab-content .sub-tab-pane.active {
    display: block;
}