/* Horizontal tabs styling */
.nav-tabs-horizontal {  
  flex-direction: row;
  border-bottom: 2px solid var(--gray-300);
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
    gap: 8px;
}

.nav-tabs-horizontal::-webkit-scrollbar {
  display: none;
}

.sector-expertise-nav-item {
  flex-shrink: 0;
  border-bottom: none;
}

.sector-expertise-nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--gray-700) !important;
  padding: var(--space-3) var(--space-4) !important;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-radius: 0;
  min-width: fit-content;
}

.sector-expertise-nav-link:hover {
  background-color: #1795d1;
  color: #fff !important;   
 
}

.sector-expertise-nav-link.active {
  background-color: #1795d1;
  color: #fff !important;
  text-shadow: 0 0 1px #fff;  
  
}

.sector-expertise-tab-text {
  display: block;
}

/* Content styling */
.sector-expertise-tab-content {
  padding: 2rem 0;
}

.sector-expertise-tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sector-expertise-content-row {
  transition: all 0.3s ease;
}

.sector-expertise-features-list {
  list-style: none;
  padding-left: 0;
}

.sector-expertise-feature-item {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.sector-expertise-content-image {
  transition: transform 0.3s ease;
}

.sector-expertise-content-image:hover {
  transform: scale(1.02);
}

.sector-expertise-intro-text,
.sector-expertise-description-text,
.sector-expertise-rely-text {
  line-height: 1.7;
  color: var(--gray-700);
}

.sector-expertise-intro-text strong,
.sector-expertise-rely-text strong {
  color: var(--gray-900);
}

.sector-expertise-cta-button {
  background-color: #6c757d;
  border-color: #6c757d;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sector-expertise-cta-button:hover {
  background-color: #5a6268;
  border-color: #545b62;
  transform: translateY(-2px);
}

/* Transition styles */
.sector-expertise-content-container {
  transition: all 0.3s ease;
}

/* Accordion styles for mobile */
.sector-expertise-mobile-accordion {
  margin-bottom: 2rem;
}

.sector-expertise-mobile-accordion .accordion-item {
  color: var(--gray-900);
  background-color: var(--white);
  border-color: var(--gray-300);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.sector-expertise-mobile-accordion .accordion-button {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  background-color: var(--gray-50);
  color: var(--gray-700);
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.sector-expertise-mobile-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--white);
  box-shadow: none;
  border-bottom: 1px solid var(--gray-300);
}

.sector-expertise-mobile-accordion .accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
}

.sector-expertise-mobile-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23495057'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.sector-expertise-mobile-accordion .accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
}

/* Desktop layout adjustments */
@media (min-width: 992px) {
  .sector-expertise-desktop-tabs-container {
    display: block;
  }

  .sector-expertise-horizontal-tabs-nav {
    margin-bottom: 2rem;
  }
}

@media (max-width: 1199px) {
  .sector-expertise-content-image {
    width: 100%;
    height: auto;
  }
}

/* Mobile responsive styles - Updated to show accordion on mobile */
@media (max-width: 767.98px) {
  .sector-expertise-desktop-tabs-container {
    display: none !important;
  }

  .sector-expertise-mobile-accordion {
    display: block !important;
  }

  .sector-expertise-main-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .sector-expertise-desktop-tabs-container {
    display: block !important;
  }

  .sector-expertise-mobile-accordion {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sector-expertise-nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
  }

  .sector-expertise-tab-content {
    padding: 1rem 0;
  }
}

@media (max-width: 576px) {
  .sector-expertise-nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem;
  }

  .sector-expertise-main-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .sector-expertise-header {
    margin-bottom: 2rem;
  }
}

/* Smooth transitions */
.sector-expertise-image-column {
  transition: transform 0.3s ease;
}

.sector-expertise-text-column {
  transition: all 0.3s ease;
}

/* Custom scrollbar for horizontal tabs */
@media (max-width: 991px) {
  .nav-tabs-horizontal {
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-50);
  }

  .nav-tabs-horizontal::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .nav-tabs-horizontal::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: 2px;
  }

  .nav-tabs-horizontal::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
  }
}