.keyfeature-header-text {
  color: #030116;
  font-family: "Clash Display";
  font-weight: 400;
  font-size: 42px;
}

.keyfeature-main-container {
  width: 100%;
  margin-top: 50px;
  position: relative; /* Add this */
  margin-bottom: 50px;
}

.keyfeature-image-wrapper {
  position: relative; /* Add this */
  display: block;
}

.keyfeature-image-layout {
  width: 100%;
  display: block;
}
/* F0r Odd count left side text container */
.keyfeature-image-text {
  position: absolute;
  top: 20%;
  left: 40px; /* Adjust this value to move text left/right */
  transform: translateY(-50%);
  color: #030116; /* Change color as needed for visibility */
  font-family: "Clash Display";
  font-weight: 400;
  font-size: 40px; /* Adjust size as needed */
}
.keyfeature-image-subtext {
  position: absolute;
  top: 42%;
  left: 40px; /* Adjust this value to move text left/right */
  transform: translateY(-50%);
  color: #030116; /* Change color as needed for visibility */
  font-family: "Mazzard";
  font-weight: 400;
  font-size: 20px; /* Adjust size as needed */
  width: 50%;
}
/* For Even count right side text container */
.keyfeature-imageeven-text {
  position: absolute;
  top: 20%;
  left: 50%; /* Adjust this value to move text left/right */
  transform: translateY(-50%);
  color: #030116; /* Change color as needed for visibility */
  font-family: "Clash Display";
  font-weight: 400;
  font-size: 40px; /* Adjust size as needed */
}
.keyfeature-imageeven-subtext {
  position: absolute;
  top: 40%;
  right: 0px; /* Adjust this value to move text left/right */
  transform: translateY(-50%);
  color: #030116; /* Change color as needed for visibility */
  font-family: "Mazzard";
  font-weight: 400;
  font-size: 20px; /* Adjust size as needed */
  width: 50%;
}

/* Mobile View CSS with Horizontal Scroll - One Card Visible */
.keyfeatures-mobile-scroll-container {
  display: none;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  padding: 20px 0;
  margin-top: 20px;
}

.keyfeatures-mobile-scroll-container::-webkit-scrollbar {
  display: none;
}
.keyfeature-mobileheader-text {
  color: #030116;
  font-family: "Clash Display";
  font-weight: 400;
  font-size: 36px;
  display: none;
}
.keyfeature-mobile-container {
  display: inline-block;
  width: 90vw; /* 90% of viewport width - almost full screen */
  max-width: 350px;
  margin: 0 5vw; /* Center the card with 5% margin on each side */
  scroll-snap-align: center; /* Snap to center for better UX */
  position: relative;
  vertical-align: top;
  white-space: normal;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0; /* Prevent shrinking */
}

.keyfeature-mobileimage-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.keyfeature-mobileimage-layout {
  width: 100%;
  object-fit: cover; /* Ensure image covers the area properly */
  display: block;
  height: 100%;
}

/* Text container for mobile - Improved positioning */
.keyfeature-mobileimage-text {
  position: absolute;
  top: 50%; /* Higher position */
  left: 20px;
  transform: translateY(-50%);
  color: #030116;
  font-family: "Clash Display";
  font-weight: 600; /* Increased weight for better readability */
  font-size: 24px; /* Slightly larger */
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.2;
  word-wrap: break-word;
  white-space: normal;
}

.keyfeature-mobileimage-subtext {
  position: absolute;
  top: 60%; /* Lower position to avoid overlap */
  left: 20px;
  transform: translateY(-50%);
  color: #030116;
  font-family: "Mazzard";
  font-weight: 400;
  font-size: 15px;
  padding: 15px 18px;
  border-radius: 12px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: normal;
  max-height: 120px; /* Limit height */
  overflow: hidden;
  margin-top: 30px;
}

/* Show mobile scroll container only on mobile */
@media (max-width: 912px) {
  .keyfeatures-mobile-scroll-container {
    display: flex;
  }

  .keyfeature-main-container {
    display: none;
  }
  .keyfeature-header-text {
    display: none;
  }
  .keyfeature-mobileheader-text {
    display: block;
  }
}

/* Tablet and larger mobile */
@media (max-width: 1024px) and (min-width: 768px) {
  .keyfeature-mobile-container {
    width: 85vw;
    max-width: 400px;
    margin: 0 7.5vw;
  }

  /* F0r Odd count left side text container */
  .keyfeature-image-text {
    position: absolute;
    top: 20%;
    left: 40px; /* Adjust this value to move text left/right */
    transform: translateY(-50%);
    color: #030116; /* Change color as needed for visibility */
    font-family: "Clash Display";
    font-weight: 400;
    font-size: 34px; /* Adjust size as needed */
  }
  .keyfeature-image-subtext {
    position: absolute;
    top: 42%;
    left: 40px; /* Adjust this value to move text left/right */
    transform: translateY(-50%);
    color: #030116; /* Change color as needed for visibility */
    font-family: "Mazzard";
    font-weight: 400;
    font-size: 16px; /* Adjust size as needed */
    width: 40%;
  }
  /* For Even count right side text container */
  .keyfeature-imageeven-text {
    position: absolute;
    top: 20%;
    left: 50%; /* Adjust this value to move text left/right */
    transform: translateY(-50%);
    color: #030116; /* Change color as needed for visibility */
    font-family: "Clash Display";
    font-weight: 400;
    font-size: 34px; /* Adjust size as needed */
  }
  .keyfeature-imageeven-subtext {
    position: absolute;
    top: 40%;
    right: 0px; /* Adjust this value to move text left/right */
    transform: translateY(-50%);
    color: #030116; /* Change color as needed for visibility */
    font-family: "Mazzard";
    font-weight: 400;
    font-size: 16px; /* Adjust size as needed */
    width: 50%;
  }
}

/* Tablet and larger mobile */
@media (max-width: 768px) and (min-width: 481px) {
  .keyfeature-mobile-container {
    width: 85vw;
    max-width: 400px;
    margin: 0 7.5vw;
  }
}

/* Standard mobile */
@media (max-width: 480px) and (min-width: 376px) {
  .keyfeature-mobile-container {
    width: 88vw;
    max-width: 320px;
    margin: 0 6vw;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .keyfeature-mobile-container {
    width: 90vw;
    max-width: 300px;
    margin: 0 5vw;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .keyfeature-mobile-container {
    width: 92vw;
    max-width: 280px;
    margin: 0 4vw;
  }

  .keyfeature-mobileimage-layout {
    height: 180px;
  }

  .keyfeature-mobileimage-text {
    font-size: 18px;
    padding: 6px 10px;
  }

  .keyfeature-mobileimage-subtext {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Scroll indicators */
.keyfeatures-scroll-indicators {
  display: none;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 0 20px;
}

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

.keyfeatures-scroll-dot.active {
  background: #deaf1c;
  transform: scale(1.2);
}

@media (max-width: 912px) {
  .keyfeatures-scroll-indicators {
    display: flex;
  }
}

/* Instruction text for users */
.keyfeatures-scroll-hint {
  display: none;
  text-align: center;
  color: #d9d9d9;
  font-family: "Mazzard";
  font-size: 14px;
  margin-top: 10px;
  padding: 0 20px;
}

@media (max-width: 912px) {
  .keyfeatures-scroll-hint {
    display: block;
  }
}
