.travel-smarter-section {
  padding: 4rem 1rem 0.5rem 1rem;
  text-align: center;
  background-color: var(--white);
}

.travel-smarter-section .heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
  font-family: "Urbanist", sans-serif;
}

.travel-smarter-section .description {
  color: var(--text);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-family: "Urbanist", sans-serif;
  line-height: 1.6;
}

.travel-smarter-section .image-wrapper {
  display: flex;
  justify-content: center;
}

.travel-smarter-section .img-fluid {
  max-width: 100%;
  width: 500px;
  height: auto;
  object-fit: cover;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .travel-smarter-section .heading {
    font-size: 2.5rem;
  }

  .travel-smarter-section .description {
    font-size: 1.1rem;
  }
}
.find-ride-section {
  padding: 4rem 0rem;
  background-color: var(--light-gray);
  font-family: "Urbanist", sans-serif;
}

/* .container {
  max-width: 1200px;
  margin: auto;
} */

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.image-side {
  position: relative;
  text-align: center;
}

.image-side img {
  max-width: 300px;
}
.image-side-for-driver img {
  margin-left: -115px;
}

.image-side .note {
  position: absolute;
  right: 0rem;
  bottom: -6rem;
  font-family: "Square Peg", cursive;
  font-size: 1.3rem;
}

.image-side .left-arrow {
  position: absolute;
  scale: -1;
  right: 7rem;
  bottom: -7rem;
  width: 50px;
}

.text-side h2 {
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 2.5rem;
}
.text-side {
  margin: 0 auto;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .find-ride-section {
    padding: 4rem 1rem;
  }
  .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .text-side {
    flex: 1;
    padding-left: 2rem;
  }
  .image-side .note {
    position: absolute;
    right: 4rem;
    top: -200px;
    font-family: "Square Peg", cursive;
    font-size: 2rem;
  }

  .image-side .left-arrow {
    position: absolute;
    right: -30px;
    top: -200px;
  }
  .text-side h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .image-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .image-side img {
    max-width: 500px;
  }
  .image-side-for-driver img {
    margin-left: -150px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .image-side .note {
    position: absolute;
    right: 4rem;
    top: -250px;
    font-family: "Square Peg", cursive;
    font-size: 2rem;
  }

  .image-side .left-arrow {
    position: absolute;
    right: -30px;
    top: -250px;
  }
}

.ride-smart-section {
  padding: 3rem 1rem 0rem 1rem;
  background-color: var(--white);
}

.ride-smart-section .container {
  max-width: 1440px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 8.5rem;
  position: relative;
}

.section-title img {
  display: block;
  margin: 0.5rem auto;
  max-width: 80px;
}
.h2-wrapper {
  position: relative; /* NEW: reference point for absolute children */
  display: inline-block; /* optional: helps match size to content */
}

.passenger-tagline {
  position: absolute;
  left: -150px;
  top: 70px;
  font-family: "Square Peg", cursive;
  font-size: 1.3rem;
  color: var(--text);
  rotate: -30deg;
}

.arrow2 {
  position: absolute;
  left: -70px;
  top: 10px;
  max-width: 80px;
}

.section-title .taglineForPassenger {
  position: absolute;
  left: -150px;
  top: 70px;
}

.section-title .arrowForPassenger {
  left: -80px;
  top: 15px;
}

.section-title h2 {
  color: var(--green);
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section-title .desc {
  color: var(--text);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-box {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 2.5rem;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.feature-box.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1 1 300px;
  max-width: 500px; /* Add a max-width to keep consistent size */
}

.feature-text h3 {
  color: var(--green);
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.feature-text ul {
  list-style: none;
  padding: 0;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 32px;
}

.feature-text ul li {
  position: relative;
  margin-bottom: 0.6rem;
}

.qoute-marks-passengers img {
  padding-right: 1rem;
}

.feature-image {
  flex: 1 1 250px;
  text-align: center;
  max-width: 400px; /* Add a max-width to keep consistent size */
}

.feature-image img {
  max-width: 100%;
  width: 300px;
  height: auto;
}

@media (min-width: 768px) and (max-width: 1200px) {
  .arrow2 {
    position: absolute;
    left: 50px;
    top: 40px;
    max-width: 80px;
  }
  .passenger-tagline {
    position: absolute;
    left: 30px;
    top: 80px;
    font-family: "Square Peg", cursive;
    font-size: 1.3rem;
    color: var(--text);
    rotate: 0deg;
  }
  .section-title .taglineForPassenger {
    position: absolute;
    left: 40px;
    top: 90px;
  }

  .section-title .arrowForPassenger {
    left: 50px;
    top: 50px;
  }
}

@media (max-width: 768px) {
  .feature-box,
  .feature-box.reverse {
    flex-direction: column-reverse;
    text-align: center;
  }

  .feature-text {
    text-align: left;
    max-width: 100%; /* Full width on mobile */
  }

  .feature-image {
    max-width: 100%; /* Full width on mobile */
  }

  .ride-smart-section .container {
    margin: 0 0rem;
    padding-top: 5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title .desc {
    font-size: 1rem;
    line-height: 1.4;
  }

  .feature-text {
    flex: 1 1 100%; /* Take full width on mobile */
  }

  .feature-text h3 {
    font-size: 1.5rem;
  }

  .feature-text ul {
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
  }

  .feature-text ul li {
    padding-left: 0rem;
  }

  .feature-image {
    flex: 1 1 100%; /* Take full width on mobile */
  }

  .section-title .passenger-tagline {
    left: 6rem;
    top: -5rem;
    rotate: -10deg;
    width: 100px;
  }

  .section-title .arrow2 {
    left: 110px;
    top: -3rem;
    rotate: -210deg;
    width: 40px;
    margin: 0 0;
  }

  .section-title .taglineForPassenger {
    left: 6rem;
    top: -5rem;
    rotate: -10deg;
    width: 100px;
  }

  .section-title .arrowForPassenger {
    left: 110px;
    top: -3rem;
    rotate: -210deg;
    width: 40px;
    margin: 0 0;
  }
}

.cta-section {
  background-color: var(--white);
  padding: 4rem 4rem 0rem 4rem;
}

.cta-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 6rem;
  /* padding-left: 4rem; */
  /* border-bottom: 3px solid var(--text); */
}

.cta-text {
  flex: 1 1 300px;
}

.cta-text h2 {
  color: var(--green);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-text p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2.2rem;
  line-height: 1.4;
}

.cta-button {
  background-color: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.3s;
  border: 0;
}
.ctaButtonForDriver {
  background-color: var(--orange);
}

.cta-image {
  flex: 1 1 300px;
  text-align: center;
}

.cta-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .cta-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0rem 2rem 2rem 2rem;
  }
  .cta-section {
    padding: 2rem 0rem;
  }

  .cta-text h2 {
    font-size: 1.5rem;
  }
  .cta-text p {
    font-size: 1rem;
  }
  .cta-text,
  .cta-image {
    flex: 1 1 0px;
  }
}

.step-box {
  position: relative;
  background-color: #fff;
  padding: 20px 20px 20px 24px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  height: 100px;
  overflow: hidden;
  max-height: 200px;
  border-radius: 5px;
}

.step-box-border-for-driver {
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.step-content {
  z-index: 2;
  flex: 1 1 auto;
  padding-right: 15%;
}

.step-title {
  color: var(--green); /* green */
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.step-box p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 25px;
}

.step-box:nth-child(3) {
  margin-left: 25%;
}

.step-number {
  font-size: 9.3rem;
  font-weight: 700;
  color: var(--blue);
  position: absolute;
  right: -0.8rem;
  bottom: -2.3rem;
  z-index: 1;
  opacity: 0.2;
}
.step-number-for-driver {
  color: var(--orange);
}

@media (min-width: 480px) {
  .step-box:nth-child(3) {
    margin-left: 0%;
    height: 100%;
  }
}

@media (min-width: 992px) {
  .step-box:nth-child(3) {
    margin-left: 25%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .step-box {
    padding: 16px;
    width: 75%;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .step-box:nth-child(3) {
    margin-left: 25%;
    height: 100%;
  }
  .step-box:nth-child(4) {
    height: 100%;
  }
  .step-title {
    font-size: 0.95rem;
  }
  .step-box p {
    font-size: 0.85rem;
  }

  .step-box p {
    font-size: 0.85rem;
  }
}

.travel-smarter-heading,
.travel-smarter-description,
.travel-smarter-image-wrapper,
.decorative-item {
  opacity: 0;
  animation: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.travel-smarter-heading {
  animation-name: passenger-hero-title;
}
.travel-smarter-description {
  animation-name: passenger-hero-text;
}
.travel-smarter-image-wrapper {
  animation-name: passenger-hero-image;
}
.decorative-item {
  animation-name: passenger-hero-decorations;
}

@keyframes passenger-hero-title {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes passenger-hero-text {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes passenger-hero-image {
  from {
    opacity: 0;
    transform: translateX(-200px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes passenger-hero-decorations {
  0% {
    opacity: 0;
    scale: 0;
  }
  50% {
    opacity: 0.6;
    scale: 1;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.image-side,
.text-side,
.feature-box,
.section-title,
.cta-section,
.left-arrow,
.note,
.arrow2,
.taglineForPassenger,
.arrowForPassenger {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.feature-box,
.section-title,
.cta-section {
  transform: translateY(200px);
}

.animate {
  opacity: 1;
  transform: translateY(0);
}

.travel-smarter-section {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}

.decorative-item {
  position: absolute;
  width: 30px;
  z-index: 1;
}

/* Individual positions */
.decorative-item-1 {
  top: 5%;
  left: 10%;
}

.decorative-item-2 {
  top: 10%;
  right: 10%;
}

.decorative-item-3 {
  top: 50%;
  left: 5%;
}

.decorative-item-4 {
  top: 50%;
  right: 30%;
}

.decorative-item-5 {
  bottom: 5%;
  left: 15%;
}

.decorative-item-6 {
  top: 35%;
  right: 5%;
}

.decorative-item-7 {
  top: 40%;
  left: 20%;
}

.decorative-item-8 {
  bottom: 5%;
  right: 8%;
}

@media (max-width: 768px) {
  .decorative-item {
    width: 20px;
    height: 20px;
  }
  .decorative-item-5 {
    bottom: 5%;
    left: 5%;
  }
  .decorative-item-8 {
    bottom: 5%;
    right: 2%;
  }
  .decorative-item-4 {
    top: 60%;
    right: 20%;
  }
  .decorative-item-3 {
    top: 60%;
    left: 10%;
  }
  .decorative-item-2 {
    top: 5%;
    right: 10%;
  }
  .decorative-item-6 {
    top: 20%;
    right: 5%;
  }
  .decorative-item-7 {
    top: 25%;
    left: 10%;
  }
}
