bhtml, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  height: 50vh; /* Default height for desktop and tablet */
  background-image: url('/images/index_background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px 0;
  z-index: 1;
}

/* Overlay behind hero content */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Hero Content Container */
.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

/* Hero Text */
.hero-text {
  font-size: 2rem; /* Adjust font size */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Optional text shadow */
  margin-bottom: 15px;
  z-index: 2;
  max-width: 90%;
  display: inline-block;
  text-align: center;
  width: 100%;
  line-height: 1.3;
}

/* Desktop - Single Line */
@media (min-width: 769px) {
  .hero-text {
    font-size: 2rem;
    white-space: nowrap; /* Ensures text stays in one line on desktop */
    overflow: hidden;
    text-overflow: ellipsis; /* In case the text overflows */
  }
}

/* Mobile - Two Lines */
@media (max-width: 768px) {
  .hero-text {
    font-size: 1.6rem;
    white-space: normal; /* Allow line breaks on mobile */
    line-height: 1.5; /* Increase line height for better spacing */
  }

  .hero {
    height: 40vh; /* Further reduce height for mobile devices */
  }
}

/* Hero Button */
.hero button {
  padding: 10px 20px;
  background-color: #e67e22;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  z-index: 2;
  margin-top: 15px;
}

.hero button:hover {
  background-color: #f1c40f;
}

/* Section Styles */
.intro, .features, .testimonials {
  text-align: center;
}

/* "Welcome to Help & Grow" Section */
.help-grow {
  padding: 40px 20px; /* Increased padding for a more spacious look */
  margin: 20px auto;
  max-width: 90%; /* Limit the width */
  background: linear-gradient(135deg, #ff7f50, #e67e22); /* Gradient background */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s ease, background 0.3s ease; /* Smooth transition */
}

/* Hover Effects for "Help & Grow" Section */
.help-grow:hover {
  transform: scale(1.05); /* Slightly scale up the box on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Stronger shadow */
  background: linear-gradient(135deg, #e67e22, #ff7f50); /* Reverse the gradient on hover for effect */
}

/* Section Title */
.help-grow h2 {
  font-size: 2.2rem;
  color: yellow; /* Bright text color */
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase; /* Make title all uppercase for emphasis */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4); /* Subtle text shadow for better readability */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .help-grow {
    padding: 30px 10px; /* Adjust padding for smaller screens */
  }

  .help-grow h2 {
    font-size: 1.8rem; /* Slightly smaller font on mobile */
  }
}

@media (max-width: 480px) {
  .help-grow {
    padding: 20px 5%; /* Reduced padding for very small screens */
    width: 95%; /* Full width */
  }

  .help-grow h2 {
    font-size: 1.6rem; /* Even smaller title for smaller screens */
  }
}

/* Image Section (Full width, height adjusted for responsiveness) */
.image-section {
  position: relative;
  width: 100%;
  height: 50vh; /* Default height for desktop */
  overflow: hidden; /* Hide any overflow of the image */
}

/* Make Image Cover the Section */
.image-section img {
  width: 100%;
  height: 100%;
  object-fit: none; /* Ensures the image fully covers the section */
  object-position: center; /* Ensures the image stays centered */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .image-section {
    height: 40vh; /* Adjust height for smaller screens */
  }
}

/* Additional Fix: Ensure the image scales and remains centered */
@media (max-width: 480px) {
  .image-section {
    height: 35vh; /* Further adjust for very small screens */
  }
}

/* Key Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
}

.feature-box {
  padding: 20px;
  background-color: transparent;
  margin: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 30px);
  box-sizing: border-box;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s ease;
  border: 2px solid transparent; /* Default transparent border */
  background-clip: border-box; /* Ensures the border is clipped correctly */
}

/* Add Gradient Border */
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid;
  border-image: linear-gradient(45deg, #ff7f50, #e67e22) 1; /* Gradient border */
  border-radius: 8px;
  z-index: -1; /* Keeps the border behind the content */
  transition: border-color 0.3s ease;
}

/* Hover Effect for Feature Box */
.feature-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Feature Box Title with Border Line */
.feature-box h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  background: linear-gradient(45deg, #ff7f50, #e67e22); /* Gradient from coral to red */
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  padding: 0 10px;
  border-radius: 5px;
}

/* Add a Decorative Line Under the Title */
.feature-box h3::after {
  content: '';
  position: absolute;
  bottom: -8px; /* Position the line just below the title */
  left: 0;
  width: 100%;
  height: 3px; /* Thickness of the line */
  background: #ff7f50; /* Same color as the gradient */
  border-radius: 5px; /* Rounded edges */
  opacity: 0.5; /* Semi-transparent for a softer effect */
}

/* Hover effect for Feature Box Title */
.feature-box h3:hover {
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5); /* Enhance shadow on hover */
  transform: translateY(-5px);
  transition: transform 0.3s, text-shadow 0.3s ease;
}

.feature-box:hover::before {
  border-image: linear-gradient(45deg, #e67e22, #ff7f50) 1; /* Change border gradient on hover */
}

/* Feature Box Content */
.feature-box p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  max-height: 120px;
  overflow: hidden; /* Hide content overflow */
  text-overflow: ellipsis;
}

/* Read More Button */
.read-more-btn {
  background-color: #ff7f50;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  padding: 8px 16px;
  transition: background-color 0.3s;
}

.read-more-btn:hover {
  background-color: #e67e22;
}

/* Mobile Adjustments - Display One Feature at a Time */
@media (max-width: 768px) {
  .feature-box {
    flex: 1 1 100%; /* Stack features on mobile */
    margin-bottom: 20px;
  }

  .feature-box p {
    max-height: none; /* Allow full content to show on mobile */
  }

  /* For the Read More functionality, we need to ensure it's visible and expandable on mobile */
  .read-more-btn {
    display: inline-block;
    margin-top: 10px;
  }
}

/* For Tablets - Features should stack or show a couple in a row */
@media (max-width: 1024px) {
  .feature-box {
    flex: 1 1 calc(50% - 30px); /* Two features in a row on tablet */
  }
}

/* Testimonial Section Container */
.testimonials {
  position: relative;
  width: 100%;
  overflow: hidden; /* Hide the overflowed content */
  display: flex;
  justify-content: center;
}

/* Ensure the slider container has overflow hidden */
.testimonial-slider-container {
  overflow: hidden; /* Prevents the slider from showing overflow */
  width: 100%; /* Take up full width of the container */
}

/* Make sure the slider itself is displayed as a flex container */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease; /* Smooth transition for sliding */
  width: 100%; /* Ensure it spans the width of the parent container */
}

/* Each testimonial card */
.testimonial-card {
  box-sizing: border-box; /* Prevents padding/margins from affecting width */
  padding: 10px; /* Optional padding for inner space */
  flex-shrink: 0; /* Prevents shrinking of cards */
  transition: transform 0.3s ease; /* Smooth transform effect */
}

/* Testimonial card image (Circular Image) */
.testimonial-card img {
  width: 80px; /* Set width of the image */
  height: 80px; /* Set height of the image */
  border-radius: 50%; /* Make the image circular */
  object-fit: cover; /* Ensure the image doesn't distort */
  margin-bottom: 15px; /* Space between image and text */
}

/* Testimonial card text */
.testimonial-text {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  padding: 10px 0;
}

.testimonial-author {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Left and right navigation buttons */
.testimonial-nav-left,
.testimonial-nav-right {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.testimonial-nav-left {
  left: 10px;
}

.testimonial-nav-right {
  right: 10px;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* On large screens (desktop), show 3 testimonials at a time */
@media screen and (min-width: 1024px) {
  .testimonial-card {
    width: 33.33%; /* Each card takes up 1/3 of the container */
  }
}

/* On medium screens (tablets), show 2 testimonials at a time */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .testimonial-card {
    width: 50%; /* Each card takes up 1/2 of the container */
  }
}

/* On small screens (mobile), show 1 testimonial at a time */
@media screen and (max-width: 767px) {
  .testimonial-card {
    width: 100%; /* Each card takes up full width */
  }
}
