/* Industry Solutions Page Styles */

.hero {
  height: 520px;
  background: url("../images/industry-banner1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: left;
}
/* Customer Pain Points Section */
.customer-pain-points {
  padding: 80px 0;
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
}

.customer-pain-points h2 {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: #061b1f;
  margin-bottom: 80px;
}

.pain-points-grid {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 24px; /* Increased gap slightly */
}

.pain-point-item {
  flex: 1;
  background: #fff;
  padding: 30px 20px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1); /* Cyan glow shadow */
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  /* Default position (top) */
  margin-bottom: 60px;
  overflow: hidden; /* For the gradient overlay */
}

/* Add cyan gradient glow at the top */
.pain-point-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Adjust height of the glow */
  background: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Staggered layout: even items are pushed down */
.pain-point-item:nth-child(even) {
  margin-top: 60px;
  margin-bottom: 0;
}

/* Highlight style for the "Human Bottleneck" item as shown in design */
.pain-point-item.highlight {
  border: none;
  /* border-bottom removed, using ::after instead */
  box-shadow: 0 15px 40px rgba(24, 24, 245, 0.15); /* Stronger blue shadow */
}

/* Highlight item title is blue */
.pain-point-item.highlight h3 {
  color: #1818f5;
}

/* Hover effects for all items */
.pain-point-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(24, 24, 245, 0.15);
}

.pain-point-item:hover h3 {
  color: #1818f5;
}

/* Blue bar expanding from center */
.pain-point-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #1818f5;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.pain-point-item:hover::after {
  transform: scaleX(1);
}

.pain-point-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  white-space: nowrap; /* Prevent title wrapping */
  position: relative;
  z-index: 1;
}

.pain-point-item .separator {
  width: 40px;
  height: 4px;
  background-color: #1818f5;
  margin: 0 auto 20px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.pain-point-item p {
  font-size: 14px;
  line-height: 1.8; /* Increased line height for better readability */
  color: #666;
  text-align: left;
  position: relative;
  z-index: 1;
}

/* Wave Background Line */
.wave-bg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 200px; /* Increased height container */
  transform: translateY(-20%);
  z-index: 1;
  pointer-events: none;
}

.wave-bg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); /* Glowing effect */
}

.wave-bg path {
  stroke: #00d4ff;
  stroke-width: 6; /* Thicker line */
  fill: none;
  stroke-linecap: round;
}

/* Solutions Tabs Module */
.solutions-tabs-module {
  padding: 80px 0;
  background-color: #f9fafb;
}

.solutions-header {
  text-align: center;
  margin-bottom: 50px;
}

.solutions-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #061b1f;
  margin-bottom: 20px;
}

.solutions-header p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.solutions-container {
  display: flex;
  gap: 40px;
  height: 444px;
  align-items: stretch;
}

/* Left Tabs */
.solutions-tabs {
  width: 320px;
  background: linear-gradient(180deg, #eff8ff 0%, #f5f9ff 100%);
  border-radius: 16px;
  padding: 30px 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 444px;
}

.solutions-tabs .tab-item {
  padding: 18px 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 0;
  text-align: center;
  white-space: nowrap;
}

.solutions-tabs .tab-item:hover {
  color: #333;
  background: rgba(255, 255, 255, 0.5);
}

.solutions-tabs .tab-item.active {
  background: #fff;
  color: #333;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.solutions-tabs .tab-item .en-text {
  color: #1818f5;
  margin-left: 10px;
  font-weight: normal;
}

/* Right Content Area */
.solutions-content-wrapper {
  flex: 1;
  position: relative;
  height: 440px; /* Fixed height to prevent jumping */
  background: url("/images/industry-bg.png") no-repeat center center;
  background-size: cover;
  border-radius: 16px;
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
}

.tab-content {
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: block; /* Changed from flex to block for absolute positioning of image */
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* Content Layout */
.content-main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-right: 320px; /* Space for the image */
  box-sizing: border-box;
}

.content-header h3 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  white-space: nowrap;
}

.content-header .highlight {
  color: #1818f5;
}

.content-info-row {
  display: flex;
  gap: 80px;
  margin-bottom: 40px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-group .label {
  font-size: 12px;
  color: #999;
}

.info-group .value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.info-group .value.links a {
  color: #1818f5;
  text-decoration: none;
  margin-right: 15px;
  font-size: 14px;
}

.content-cards {
  display: flex;
  gap: 20px;
  margin-top: auto; /* Push to bottom */
  width: calc(100% + 320px); /* Extend to full width including image area */
}

.solution-card {
  flex: 1;
  background: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: none; /* Default no shadow as per UI clean look */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* Important for the expanding bar */
  cursor: default;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent; /* Prepare for border transition */
}

.solution-card h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.solution-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* Hover Effect: Blue bar expands from center */
.solution-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #1818f5;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.solution-card:hover::after {
  transform: scaleX(1);
}

.solution-card:hover {
  box-shadow: 0 10px 30px rgba(24, 24, 245, 0.08);
  transform: translateY(-5px);
  background: #fff; /* Ensure bg is white */
}

.solution-card:hover h4 {
  color: #1818f5;
}

/* Image Area */
.content-image {
  width: 160px;
  height: 160px;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mock decoration if no image */
.image-placeholder.no-img::before {
  content: "";
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(24, 24, 245, 0.1) 0%,
    rgba(24, 24, 245, 0) 70%
  );
  border-radius: 50%;
}

/* Solution Value Section */
.solution-value {
  padding: 80px 0;
  background-color: #fff;
}

.solution-value h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #061b1f;
  margin-bottom: 60px;
}

.value-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* Left List */
.value-list {
  flex: 1;
  max-width: 450px;
}

.value-list-item {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.value-list-item:first-child {
  border-top: 1px solid #eee;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-header .icon {
  font-size: 16px;
  color: #1818f5;
  font-weight: bold;
}

.item-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}

.value-list-item:hover .item-header h3 {
  color: #1818f5;
}

.value-list-item.active .item-header h3 {
  color: #1818f5;
  font-size: 20px;
}

.item-body {
  margin-top: 16px;
  padding-left: 28px; /* Align with text */
  display: none;
}

/* Removed .value-list-item.active .item-body { display: block; } to allow jQuery slide animation */

.item-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Right Grid */
.value-grid-container {
  flex: 1;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.value-grid {
  display: flex;
  gap: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.grid-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-card {
  border-radius: 8px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
  height: 140px; /* Default height */
}

.grid-card:hover {
  transform: translateY(-5px);
}

.grid-card.white {
  background: #f9fafb;
  color: #333;
}

.grid-card.white h4 {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.grid-card.white .number {
  font-size: 24px;
  font-weight: bold;
  color: #1818f5;
}

.grid-card.blue {
  background: linear-gradient(135deg, #1818f5 0%, #00d4ff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(24, 24, 245, 0.2);
  height: 180px; /* Blue cards are generally taller */
}

.grid-card.blue.large {
  height: 220px;
}

.grid-card.blue h4 {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.grid-card.blue .number {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}

/* Staggered Column Layout */
.grid-column:nth-child(1) {
  margin-top: 0;
}

.grid-column:nth-child(2) {
  margin-top: 60px;
}

.grid-column:nth-child(3) {
  margin-top: 30px;
}
