/* Added styles for clickable card links */
.career-section .card-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-section .card-link:hover .career-card {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.career-section .career-card {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  gap: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.career-section .card-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5);
}

.career-section .card-body {
  display: flex;
  flex-direction: column;
  align-items: unset;
}

.career-section .card-stats {
  margin-top: auto;
  border-top: 1px solid var(--gray-300);
  padding-top: 16px;
}

.career-section .stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: var(--text-sm);
  color: var(--gray-700);
}

.career-section .stat-item:last-child {
  margin-bottom: 0;
}

.career-section .stat-icon {
  font-size: var(--text-base);
  line-height: var(--leading-tight);
  margin-right: 8px;
  width: 20px;
  display: inline-block;
}

.career-section .stat-label {
  font-weight: 600;
}

.career-section .stat-value {
  font-weight: 500;
  margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .inner-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .tabs-wrapper {
    padding: 6px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .scroll-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767px) {

  .main-tab-btn {
    min-width: 100%;
    width: 100%;
  }

  .inner-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .inner-tab {
    font-size: 12px;
    padding: 6px 12px;
    flex: 0 0 auto;
  }

  .tabs-wrapper {
    gap: 8px;
    padding: 6px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .scroll-btn {
    width: 30px;
    height: 30px;
  }

  .scroll-btn svg {
    width: 16px;
    height: 16px;
  }

  .tab-divider {
    height: 20px;
  }
}

@media (max-width: 576px) {
  .inner-tab {
    font-size: 11px;
    padding: 6px 10px;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .tabs-wrapper {
    gap: 6px;
    padding: 4px;
  }

  .career-section .career-card {
    padding: 10px;
  }
}

.main-tab-btn {
  min-width: 180px;
  font-weight: 500;
  padding: 10px 20px;
  white-space: nowrap;
}

.inner-tabs {
  flex: 1;
  justify-content: flex-end;
}

.inner-tab {
  font-size: 14px;
  padding: 8px 16px;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.inner-tab.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.inner-tab:hover {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* Added styles for horizontal scrollable navigation */
.tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tabs-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tabs-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min-content;
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.tab-btn.active {
  background: #6366f1;
  color: white;
}

.tab-divider {
  width: 1px;
  height: 24px;
  background: #e0e0e0;
  flex-shrink: 0;
  margin: 0 4px;
}

.scroll-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white);
  padding: 0;
}

/* Tab content visibility */
.main-tab-content {
  display: none;
}

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

.inner-tab-content {
  display: none;
}

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

/* Updated navigation styles to match reference design */
.btn.main-dropdown-btn {
  min-width: 160px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--gray-700);
  background: var(--white);
  border-color: var(--gray-300);
}

.btn.main-dropdown-btn:hover,
.btn.main-dropdown-btn:active,
.btn.main-dropdown-btn:focus,
.btn.main-dropdown-btn:focus-visible {
  background: var(--white);
  border-color: var(--gray-400);
}

.navigation-section .dropdown-menu {
  right: unset;
  left: 0 !important;
}

.dropdown-item.main-tab-item.active {
  background-color: var(--tertiary-color);
  color: var(--white);
}

.inner-tabs-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-left: 1px solid;
}

.inner-tabs-container {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.inner-tabs-container::-webkit-scrollbar {
  display: none;
}

/* Desktop: wrap inner tabs */
@media (min-width: 768px) {
  .inner-tabs-container {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Mobile: scrollable inner tabs with arrows */
@media (max-width: 767px) {
  .inner-tabs-wrapper {
    border-left: 0;
    border-top: 1px solid;
    width: 100%;
    justify-content: center;
  }

  .inner-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .inner-tabs-container button {
    text-wrap: nowrap;
  }
}