/* === Full-width Blue Section === */
.tool-preview-outer {
  width: 100vw;
  background-color: #e8f2fc;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
}

/* === Inner Section with Centered Container === */
.tool-preview-section {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Video Container === */
.tool-preview-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* === Video Styling === */
.tool-video-wrapper {
  width: 100%;
  height: auto;
  position: relative;
}

.tool-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: 100%;
  display: block;
  border-radius: 0;
  padding-left: 16px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 35px;
}

/* === Text Overlay Inside Video === */
.tool-text-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
  max-width: 500px;
  color: #081F5C;
}

.tool-text-overlay h2 {
  font-size: 1rem;
  font-weight: 700;
}

.tool-text-overlay p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 5px;
}

/* === Play Button === */
.play-pause-btn {
  position: absolute;
  bottom: 2.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #0c3b56;
  opacity: 15%;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-pause-btn:hover {
  background: rgba(3, 39, 81, 0.35);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .tool-text-overlay {
    top: 1rem;
    left: 1rem;
    max-width: 90%;
  }

  .tool-text-overlay h2 {
    font-size: 1.5rem;
  }

  .tool-text-overlay p {
    font-size: 0.95rem;
  }

  .tool-video-wrapper video {
    height: 380px;
  }
}

/* === Start Exploring Button Style === */
.start-exploring-btn {
  color: #081F5C;
  font-weight: 700;
  font-size: 15px;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.start-exploring-btn:hover {
  transform: translateY(-1px);
  color: white;
}



/* Styling the animated underline
.underline-animate {
  position: relative;
  color: #0c3b56;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  font-style: italic;
  border: none;
  color: #0c3b56;
  display: inline-block;
  transition: color 0.3s ease;
} */

.underline-animate {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  font-style: italic;
  color: #081F5C;
  border: none;
  transition: color 0.5s ease;
}

/* Underline animation from center */
.underline-animate::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #0c3b56;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

/* On hover: scale from center out */
.underline-animate:hover::after {
  transform: translateX(-50%) scaleX(1);
  left: 50%;
}



/* The animated underline itself */
.underline-animate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background-color: #0c3b56;
  transition: width 0.3s ease;
}

/* When hovered, animate the underline in */
.underline-animate:hover::after {
  width: 100%;
}
