/* ==========================================================================
   Industries Showcase Section — Enhanced Premium UI
   Theme: #3478ed (primary), #d9e5f7 (border), #273437 (text), #eef5ff (soft bg)
   ========================================================================== */

.industries-section {
  padding: 90px 0;
  background-color: #f8faff;
  position: relative;
  overflow: hidden;
}

/* Soft decorative glow behind the section */
.industries-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background-color: #f8faff;
  pointer-events: none;
  z-index: 0;
}

.industries-section > .container {
  position: relative;
  z-index: 1;
}

/* Header description — expand width so it fits on one line */
#industries .core-capabilities-header p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Animated heading highlight
   ========================================================================== */

.industry-heading-highlight-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.25;
  padding-bottom: 2px;
}

#industryHeadingHighlight {
  display: inline-block;
  color: #3478ed;
  position: relative;
  will-change: transform, opacity;
}

#industryHeadingHighlight.industry-name-anim-out {
  animation: industryNameSlideOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#industryHeadingHighlight.industry-name-anim-in {
  animation: industryNameSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes industryNameSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-24px);
    opacity: 0;
  }
}

@keyframes industryNameSlideIn {
  0% {
    transform: translateY(24px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Sidebar navigation
   ========================================================================== */

.industries-nav-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d9e5f7;
  border-radius: 20px;
  padding: 14px;
  box-shadow:
    0 8px 26px rgba(42, 82, 140, 0.06),
    0 2px 6px rgba(42, 82, 140, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.industries-nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.industry-nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    padding-left 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  white-space: nowrap;
  position: relative;
}

/* Small arrow indicator that appears on hover/active */
.industry-nav-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  margin-left: 8px;
}

.industry-nav-item:hover {
  background: #f1f6ff;
  color: #3478ed;
  padding-left: 18px;
}

.industry-nav-item:hover::after {
  opacity: 1;
  transform: rotate(-45deg) translateX(2px);
}

.industry-nav-item.active {
  background: linear-gradient(135deg, #eef5ff 0%, #e3efff 100%);
  border-color: #cfe1ff;
  color: #3478ed;
  font-weight: 600;
  padding-left: 18px;
  box-shadow: 0 4px 14px rgba(52, 120, 237, 0.12);
}

.industry-nav-item.active::after {
  opacity: 1;
  transform: rotate(-45deg) translateX(2px);
}

.industry-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #3478ed;
}

.industry-nav-item:focus-visible {
  outline: 2px solid #3478ed;
  outline-offset: 2px;
}

/* ==========================================================================
   Detail Card
   ========================================================================== */

.industries-content-card {
  background: #ffffff;
  border: 1px solid #d9e5f7;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow:
    0 16px 40px rgba(42, 82, 140, 0.08),
    0 4px 12px rgba(42, 82, 140, 0.04);
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Soft decorative corner glow inside the card */
.industries-content-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 260px;
  height: 260px;
  background-color: #f8faff;
  pointer-events: none;
  z-index: 0;
}

.industries-content-card > .row {
  height: 100%;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Headline
   ========================================================================== */

.industry-headline {
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 700;
  color: #273437;
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: opacity 0.2s ease;
  position: relative;
  padding-left: 16px;
}

/* Accent bar on the left of headline */
.industry-headline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3478ed, #6ea4ff);
}

/* ==========================================================================
   Bullet points list
   ========================================================================== */

.industry-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.industry-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding: 8px 12px;
  font-size: 15px;
  color: #52637a;
  line-height: 1.6;
  font-weight: 400;
  border-radius: 10px;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.industry-points-list li:hover {
  background: #f5f9ff;
  transform: translateX(4px);
  color: #273437;
}

.industry-bullet-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef5ff 0%, #e0ecff 100%);
  border: 1px solid #cfe1ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(52, 120, 237, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.industry-points-list li:hover .industry-bullet-dot {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(52, 120, 237, 0.22);
}

.industry-bullet-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3478ed, #4f8bff);
}

/* ==========================================================================
   Image container
   ========================================================================== */

.industry-media-box {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 460px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e5f7;
  padding: 8px;
  box-shadow:
    0 10px 30px rgba(42, 82, 140, 0.08),
    0 2px 6px rgba(42, 82, 140, 0.04);
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.industry-media-box:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(42, 82, 140, 0.12),
    0 4px 10px rgba(42, 82, 140, 0.06);
}

/* Decorative corner accents on media box */
.industry-media-box::before,
.industry-media-box::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #3478ed;
  border-style: solid;
  border-width: 0;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.industry-media-box::before {
  top: 12px;
  left: 12px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 6px;
}

.industry-media-box::after {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 6px;
}

.industry-media-box:hover::before,
.industry-media-box:hover::after {
  opacity: 0.9;
}

.industry-active-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-media-box:hover .industry-active-img {
  transform: scale(1.02);
}

.industry-fade-out {
  opacity: 0;
  transform: translateY(4px);
}

/* ==========================================================================
   Desktop Panel Width Distribution
   ========================================================================== */

@media (min-width: 992px) {
  .industries-sidebar-col {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
  }

  .industries-detail-col {
    flex: 1 1 calc(100% - 260px) !important;
    max-width: calc(100% - 260px) !important;
    width: calc(100% - 260px) !important;
  }

  .industries-info-col {
    flex: 1 1 calc(100% - 400px) !important;
    max-width: calc(100% - 400px) !important;
    width: calc(100% - 400px) !important;
  }

  .industries-image-col {
    flex: 0 0 400px !important;
    max-width: 400px !important;
    width: 400px !important;
    display: flex;
    align-items: stretch;
  }

  .industry-headline {
    font-size: clamp(20px, 1.5vw, 24px);
  }
}

/* ==========================================================================
   Tablet & Mobile Responsiveness
   ========================================================================== */

@media (max-width: 991.98px) {
  .industries-section {
    padding: 65px 0;
  }

  .industries-section::before {
    width: 480px;
    height: 480px;
    top: -80px;
  }

  .industries-nav-box {
    margin-bottom: 20px;
    padding: 12px;
    justify-content: flex-start;
    align-items: stretch;
  }

  .industries-nav-box::before {
    left: 12px;
    right: 12px;
  }

  .industries-nav-list {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .industries-nav-list::-webkit-scrollbar {
    height: 6px;
  }

  .industries-nav-list::-webkit-scrollbar-thumb {
    background: #cfe1ff;
    border-radius: 6px;
  }

  .industries-nav-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .industry-nav-item {
    width: auto;
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 13.5px;
  }

  .industry-nav-item:hover,
  .industry-nav-item.active {
    padding-left: 16px;
  }

  .industry-nav-item.active::before {
    display: none;
  }

  .industry-nav-item::after {
    display: none;
  }

  .industries-content-card {
    padding: 28px 24px;
    border-radius: 18px;
    min-height: unset;
  }

  .industry-headline {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .industry-media-box {
    min-height: 300px;
    margin-top: 16px;
  }
}

/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 575.98px) {
  .industries-section {
    padding: 55px 0;
  }

  .industries-content-card {
    padding: 24px 20px;
  }

  .industry-headline {
    font-size: 18px;
    padding-left: 14px;
    margin-bottom: 16px;
  }

  .industry-points-list li {
    font-size: 14px;
    padding: 6px 8px;
    gap: 12px;
  }

  .industry-bullet-dot {
    width: 20px;
    height: 20px;
  }

  .industry-media-box {
    min-height: 260px;
    padding: 6px;
  }

  .industry-media-box::before,
  .industry-media-box::after {
    width: 18px;
    height: 18px;
  }
}
