.ron-hero-section {
  background-color: var(--primary-text-white);
  overflow: hidden;
}

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

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

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

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

.ron-hero-title span::after {
  content: '';
  position: absolute;
  right: 35px;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: var(--primary-text-dark-disabled);
}
.ron-hero-title span::before {
  content: '';
  position: absolute;
  right: 35px;
  top: 4px;
  width: 100%;
  height: 1px;
  background-color: var(--primary-text-dark-disabled);
}
.ron-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: var(--primary-text-white);
  &::after {
    content: "Notaries * Notaries * Notaries * Notaries * Notaries * Notaries";
    margin-left: 50px;
  }
  animation: slideText 20s linear infinite;
}

.map-title {
  font-weight: 400 !important;
  font-size: 96px !important;
}
.map-description {
  font-size: 20px !important;
  font-weight: 400 !important;
  padding-top: 20px !important;
}
.map-container-wrapper {
  display: flex;
  justify-content: center;
  width: auto;
}
.map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hp-h1 {
  font-size: var(--h1-font-size) !important;
  font-weight: 400 !important;
}
.accordion-item {
  border-bottom: 1px solid var(--primary-text) !important;
  border-radius: 0px !important;
}



@keyframes slideText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .hp-h1 {
    font-size: var(--h4-font-size) !important;
    font-weight: 400 !important;
  }
  .ron-hero-title {
    font-size: 2.5rem;
  }

  .ron-hero-image-container {
    height: 70vh;
  }
  .ron-hero-image-container {
    height: 800px;
    overflow: hidden;
  }

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

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

  .ron-hero-title {
    font-size: 55px;
    text-align: left;
  }
  .map-title {
    font-size: 64px !important;
    text-align: justify !important;
    br {
      display: none !important;
    }
  }
  .map-description {
    width: 463px !important;
    font-size: 16px !important;
    text-align: justify !important;
    padding-top: 15px !important;
  }

  .map-container {
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .ron-hero-image-container {
    height: 600px;
  }

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

  .ron-hero-content {
    width: 85%;
    top: 70%;
  }
  .map-description {
    font-size: 14px !important;
    width: 100% !important;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* Add spacing between sections */
  .feature-section + .feature-section {
    margin-top: 40px;
  }
  .map-title {
    font-size: 47px !important;
    br {
      display: none !important;
    }
  }
}

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

.eclosing-header {
  height: 900px;
}

.hero-section {
  background-color: var(--brand-yellow);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main-heading {
  color: var(--primary-text);
}

.subtitle {
  color: var(--gray-70);
}

.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: var(--primary-text-white);
  border-radius: 88px;
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary-bg);
  white-space: nowrap;
  border: 1px solid var(--gray-90);
  transition: background-color 0.3s ease-in-out;
}

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

.tag:hover {
  background-color: var(--primary-bg);
  color: var(--primary-text-white);
  border: 1px solid var(--primary-bg);
}

.hero-section-image {
  position: relative;
}
.hero-section-image img {
  max-width: 100% !important;
  height: auto !important;
}

/* 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: var(--secondary-bg);
    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 var(--secondary-bg);
  }
}


@media (max-width:1024px) and (min-width:767px) {
  div#mapContainer{
    padding: 64px 0px;
  }
div#mapContainer svg {
    width: 100% !important;
    height: 100% !important;
}
.hp-h1 {
  font-size: var(--h4-font-size) !important;
  font-weight: 400 !important;
  letter-spacing: -1px;
}
.tag{
  font-size: 16px;
  padding: 8px 16px;
}
.hero-section-image.col-md-4.desktop-only {
  display: flex;
  align-items: center;
  opacity: 0.7;
}
.hero-section-image.col-md-4.desktop-only {
  display: flex;
  align-items: center;
  opacity: 0.7;
}

section#faq button.faq-accordion-button.accordion-button,section#faq .faq-accordion-body.accordion-body  {
  padding-left: 0px;
}

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

  .subtitle {
    font-size: 16px !important;
    color: var(--secondary-text-muted);
  }

  .tags-row {
    gap: 8px;
  }

  .tag {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    background-color: var(--primary-text-white);
    border: 1px solid var(--gray-90);
    transition: all 0.3s ease;
  }

  .tag:hover {
    background-color: var(--primary-bg) ;
    color: var(--primary-text-white);
    border-color: var(--primary-bg);
  }

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

  .col-lg-8 {
    width: 100%;
  }
}

@media (max-width:767px) {
  .mobile-only.feature-image{
    opacity: 1;
  }
section#testimonial .hp-h1 {
  font-size: 30px !important;
}
.hp-eclosing-stat .col-md-4 {
    width: 50% !important;
}

.hp-eclosing-stat .col-md-8 {
    width: 50%;
}

.hp-eclosing-stat .fs-5.eclosing-stats-text {
    font-size: 16px !important;
}
section#api-integration h2.hp-h1,.hp-h1{
  font-size: 3rem !important;
}
section#faq button.faq-accordion-button.accordion-button,section#faq .faq-accordion-body.accordion-body  {
  padding-left: 0px;
}
.faq-accordion-question,.faq-accordion-answer{
  font-size: 1rem !important;
  
}
div#mapContainer svg {
  width: 100% !important;
  height: 100% !important;
}
.tags-row{
  flex-wrap: wrap;
}
.map-title{
  text-align: left !important;
}
}

/* 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;
}
