.ondemand-hero-section {
  background-color: #f8f9fa;
  overflow: hidden;
}

.ondemand-hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ondemand-hero-image {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  object-fit: cover;
  object-position: center;
}
.ondemand-hero-title-container {
  background-color: white;
  padding: 14px;
}
.ondemand-hero-content {
  width: 490px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 2;
}

.ondemand-hero-title span {
  font-size: 50px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 600px;
}
.ondemand-hero-title::after {
  display: block !important;  /* Override any previous display: none */
}

/* Add underline effect for each line */
.ondemand-hero-title span {
  position: relative;
  display: inline-block;
}

.ondemand-hero-title span::after {
  content: '';
  position: absolute;
  right: 35px;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: var(--primary-text-dark-disabled);
}
.ondemand-hero-title span::before {
  content: '';
  position: absolute;
  right: 35px;
  top: 4px;
  width: 100%;
  height: 1px;
  background-color: var(--primary-text-dark-disabled);
}
.ondemand-text-loop {
  position: absolute;
  top: 50px;
  left: 0;
  width: fit-content;
  white-space: nowrap;
  overflow: hidden;
  font-size: 100px;
  font-weight: 500;
  z-index: 1;
  color: rgb(250, 248, 248);
  &::after {
    content: "Notaries * Notaries * Notaries * Notaries * Notaries * Notaries";
    margin-left: 50px;
  }
  animation: slideText 20s linear infinite;
}
.hp-h5 {
  font-size: var(--h2-font-size);
  color: var(--primary-text);
}
.eclosing-stats-text {
  color: var(--secondary-text-muted);
}
.accordion-item {
  border-bottom: 1px solid var(--primary-text) !important;
  border-radius: 0px !important;
  margin-bottom: 0px !important;
}

@keyframes slideText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .ondemand-hero-title {
    font-size: 2.5rem;
  }
  .hp-h5 {
    font-size: var(--t-h4-font-size);
  }

  .ondemand-hero-image-container {
    height: 70vh;
  }
  .hero-section-image {
    width: 700px;
    position: absolute;
    left: 20%;
  }
}
@media (max-width: 991px) {
  .ondemand-hero-image-container {
    height: 800px;
    overflow: hidden;
  }

  .ondemand-hero-image {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    object-fit: cover;
  }

  .ondemand-hero-content {
    width: 90%;
    max-width: 490px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
  }

  .ondemand-hero-title {
    font-size: 40px;
    text-align: left;
  }
}
@media (max-width: 576px) {
  .ondemand-hero-image-container {
    height: 600px;
  }

  .ondemand-hero-title {
    font-size: 32px;
  }

  .ondemand-hero-content {
    width: 85%;
  }
}

/* Top Documents Section */

/* Add these new styles */
.ondemand-features-container {
  height: 600px;
  position: relative;
  overflow: hidden;
}

.ondemand-features-wrapper {
  height: 400%;
  transition: transform 0.5s ease;
}

.ondemand-feature-section {
  border: 1px solid var(--gray-90);
  height: 25%;
  display: flex;
  position: relative;
}

.ondemand-feature-slider {
  width: 66.66%;
  height: 100%;
}

.ondemand-feature-slide {
  width: 100%;
  height: 100%;
}

.ondemand-feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ondemand-feature-content {
  width: 33.33%;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ondemand-feature-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ondemand-feature-text h3 {
  font-size: 40px !important;
  font-weight: 500 !important;
  margin-top: 0;
}

.ondemand-feature-text p {
  margin-bottom: 0;
  margin-top: auto;
}

/* Navigation dots */
.ondemand-slider-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.ondemand-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ondemand-slider-dot.active {
  background: #333;
  transform: scale(1.2);
}

/* Mobile Responsive for features section */
@media (max-width: 480px) {
  .ondemand-features-container {
    height: auto;
    margin: 0;
    overflow: visible;
  }

  .ondemand-features-wrapper {
    height: auto;
    transform: none !important; /* Disable slider transformation */
  }

  .ondemand-feature-section {
    flex-direction: column;
    height: auto;
    border: none;
  }

  .ondemand-feature-slider {
    width: 100%;
    height: auto;
  }

  .ondemand-feature-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .ondemand-feature-content {
    width: 100%;
    padding: 24px;
    height: auto;
  }

  .ondemand-feature-text h3 {
    font-size: 24px !important;
    margin-bottom: 16px;
  }

  .ondemand-feature-text p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Hide slider navigation on mobile */
  .ondemand-slider-nav {
    display: none;
  }

  /* Add spacing between sections */
  .ondemand-feature-section + .ondemand-feature-section {
    margin-top: 40px;
  }
  .hero-section-image {
    position: absolute;
    top: 0;
    right: 100px;
  }
}

.eclosing-stats-btn {
  display: none;
}

.eclosing-header {
  height: 900px;
}


/* #connect{
    background-image: url('assets/images/backgrounds/art1.jpg') !important;
    background-color: #3B40D5 !important;
} */

.hero-section {
  background-color: #f7f06d;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main-heading {
  font-size: 96px;
  color: #3a3939;
}

.subtitle {
  color: #5d5c63;
}

.industry-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tags-row {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.tag {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  border-radius: 88px;
  font-size: 18px;
  font-weight: 500;
  color: #3a3939;
  white-space: nowrap;
  border: 1px solid #2f2f33;
  transition: background-color 0.3s ease-in-out;
}

/* .tag.active {
  background-color: #3B40D5;
  color: #FFFFFF;
  border: 1px solid #E5E7EB;
} */

.tag:hover {
  background-color: #3b40d5;
  color: #ffffff;
  border: 1px solid #e5e7eb;
}

.hero-section-image {
  height: 697.95px;
  width: 755px;
  position: absolute;
  top: 0px;
  left: 61%;
}

/* Hide mobile view by default */
.mobile-tags {
  display: none;
}

@media (max-width: 431px) {
  .main-heading {
    font-weight: 500 !important;
    font-size: 48px;
  }

  .subtitle {
    font-size: 16px !important;
    color: #4a4a50;
    width: 100%;
  }

  /* Hide default view */
  .default-view {
    display: none;
  }

  /* Show mobile view */
  .mobile-tags {
    display: block !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .mobile-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mobile-tags .tag {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #3a3939;
  }
}

/* Tablet view styles (768px) */
@media (max-width: 768px) {
  /* ribbon yellow section */
  .main-heading {
    font-size: 48px;
  }

  .subtitle {
    font-size: 16px !important;
    color: #4a4a50;
  }

  .tags-row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    background-color: white;
    border: 1px solid #3a3939;
    transition: all 0.3s ease;
  }

  .tag:hover {
    background-color: #3b40d5;
    color: white;
    border-color: #3b40d5;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Ensure mobile tags are hidden at tablet size */
  .mobile-tags {
    display: none;
  }

  .col-lg-8 {
    width: 100%;
  }
  .hero-section-image {
    top: 30px;
    opacity: 0.9;
    left: 355px;
  }
  .hero-section-image img {
    width: 500px;
    height: 450px;
    object-fit: cover;
  }
  .ondemand-hero-content{
    top: 80%;
  }
  .ondemand-hero-title span{
    font-size: 40px;
  }
}

/* Add this to your existing CSS */
.blue-overlay-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg);
  opacity: 0.85;
  z-index: 1;
}
.underline::after {
  display: none;
}