/* font-family: "Montserrat", sans-serif; */
/* font-family: "Robecha-Daniera-Regular"; */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Hero Section */
.how-its-work-hero {
  padding: 80px 20px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;

  background-position: bottom;
}

.how-its-work-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;

  opacity: 0.9;
  z-index: 0;
}

.how-its-work-container {
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.how-its-work-hero-content {
  max-width: 50%;
  animation: how-its-work-fadeInUp 1s ease-out;
}

.how-its-work-hero h1 {
  font-family: "Robecha-Daniera-Regular";
  font-size: 54px;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.2;
}

.custom-button {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.how-its-work-hero-subtitle {
  font-size: 18px;
  color: #050405;
  letter-spacing: 0.5px;
  margin-bottom: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 350;
}

@media screen and (max-width: 767px) {
  .custom-button {
    max-width: auto;
    min-width: auto;
    height: auto !important;
    margin: auto;
  }

  .how-its-work-hero h1 {
    font-size: 40px;
  }

  .custom-button svg {
    width: 16px;
    height: 16px;
    transition: none !important;
  }
  .custom-button span {
    transition: none !important;
    font-size: 15px !important;
  }
  .custom-button:hover svg {
    transform: none !important;
    font-size: 16px !important;
  }

  .custom-button:hover span {
    transform: none !important;
  }
}

.custom-button:not(.now):hover svg {
  transform: translateX(370px);
}

.how-its-work-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.how-its-work-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #2c3e50;
  transition: left 0.3s ease;
  z-index: -1;
}

.how-its-work-cta-button:hover::before {
  left: 0;
}

.how-its-work-cta-button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.how-its-work-cta-button::after {
  content: "→";
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.how-its-work-cta-button:hover::after {
  transform: translateX(5px);
}

/* Technologies Section */
.how-its-work-technologies {
  padding: 100px 20px;
  background: #fff;
}

.how-its-work-tech-header {
  margin-bottom: 60px;
  animation: how-its-work-fadeInUp 1s ease-out 0.2s both;
}

.how-its-work-tech-subtitle {
  color: #a27d4f;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.how-its-work-tech-title {
  font-family: "Robecha-Daniera-Regular";

  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #050405;
  margin-bottom: 10px;
  font-weight: 200;
}

.how-its-work-tech-description {
  font-family: "Montserrat", sans-serif;
  max-width: 1009px;
  font-size: 17px;
  font-weight: 350;
  color: #050405;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
@media (max-width: 767px) {
  .how-its-work-tech-description {
    font-size: 14.3px;
  }
}
/* Swiper Styles */
.how-its-work-swiper {
  padding: 40px 0 20px;
  overflow: hidden;
}

.how-its-work-tech-card {
  width: 290px;
  background: #fafafa;
  border-radius: 16px;
  min-height: 420px;
  max-height: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

/* .how-its-work-tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 130, 42, 0.3);
} */

.how-its-work-card-number {
  font-family: "Playfair Display", serif;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: #404d3c;
  color: #d9b771;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 25px;
  z-index: 2;
}

.how-its-work-card-number span {
  position: absolute;
  top: -6px;
  right: 10px;
}
/* Image Area */
.card-image {
  min-height: 165px;
  height: 20vh; /* Use viewport height for responsiveness */
  position: relative; /* For positioning the badge */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio and cover the area */
  display: block; /* Remove any potential bottom margin */
}

/* Content Area */
.card-content {
  padding: 15px 12px;
}

.card-body {
  line-height: 1.5;
}

.how-its-work-card-title {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
  font-size: 17px;
  letter-spacing: 0.5px;
  width: 96%;
  font-weight: 550;
  color: #050405;
  margin-bottom: 16px;
  line-height: 21px;
  position: relative;
  z-index: 2;
}

.how-its-work-card-benefit {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: #050405;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.4px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.how-its-work-card-benefit strong {
  color: #050405;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.6;
}

/* Swiper Controls */
.how-its-work-swiper-controls {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .how-its-work-swiper-controls {
    justify-content: center;
  }
}
.swiper-button-next,
.swiper-button-prev {
  position: static !important;
  margin: 0 !important;
  color: white !important;
  background: #050405;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: 600;
}

/* Progress Bar */
.how-its-work-progress-container {
  flex: 1;
  max-width: 200px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.swiper-pagination-progressbar {
  background: #ddd !important;
  height: 100% !important;
  transition: width 0.3s ease !important;
}
.swiper-pagination-progressbar-fill {
  background-color: #d9b771 !important;
}

/* Steps Section */
.how-its-work-steps {
  padding: 100px 20px;
  background: #f8f9fa;
}

.how-its-work-steps-container {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
}

.how-its-work-timeline {
  position: relative;
  padding: 0px 0;
}

.how-its-work-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d9b771;
  transform: translateX(-50%);
  height: 87%;
  z-index: 0;
}

.how-its-work-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  justify-content: space-between;
}

.hide-on-767 {
  display: block;
}
.show-on-767 {
  display: none;
}
@media (max-width: 767px) {
  .hide-on-767 {
    display: none;
  }
  .show-on-767 {
    display: block;
  }
}

.how-its-work-step:nth-child(even) .how-its-work-step-content {
  padding-left: 45px;
}

@media (max-width: 767px) {
  .how-its-work-step:nth-child(even) .how-its-work-step-content {
    padding-left: 0;
  }
  .how-its-work-timeline::before {
    height: 75%;
  }
}
@media (max-width: 467px) {
  .how-its-work-timeline::before {
    height: 82%;
  }
}

@media (max-width: 437px) {
  .how-its-work-timeline::before {
    height: 78%;
  }
}

.how-its-work-step-number {
  font-family: "Playfair Display", serif;
  width: 60px;
  height: 60px;
  background: #d9b771;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(212, 130, 42, 0.3);
}

.number {
  position: absolute;
  left: 51%;
  transform: translateX(-50%);
  top: -9px;
  font-size: 40px;
  font-weight: 300;
}
.how-its-work-step-content {
  flex: 1;
  max-width: 46%;
}

.how-its-work-step-title {
  font-family: "Robecha-Daniera-Regular";
  font-size: 40px;
  color: #050405;
  margin-bottom: 10px;
  font-weight: 300;
}
@media (max-width: 767px) {
  .how-its-work-step-title {
    font-size: 34px;
  }
}

.how-its-work-step-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #050405;
  margin-bottom: 15px;
}
@media (max-width: 767px) {
  .how-its-work-step-subtitle {
    font-size: 16px;
  }
}

.third .how-its-work-step-list li:not(:last-child) {
  margin-bottom: 0;
}

.how-its-work-step-list {
  list-style: none;
  padding: 0;
}

.how-its-work-step-list li {
  font-family: "Montserrat", sans-serif;

  color: #050405;
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
  font-size: 17px;
}

.how-its-work-step-list li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #050405;
  font-weight: bold;
}

/* Result Section */
.how-its-work-result {
  /* background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%); */
  padding: 50px 20px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 200%;
  transform: translateX(-25%);
}
@media (max-width: 676px) {
  .how-its-work-result {
    width: 108%;
    transform: translateX(-4%);
  }
}

.result-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}
.result-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.2s ease-in;
}
@media (max-width: 767px) {
  .result-bg img {
    object-fit: cover;
  }
}

.how-its-work-result:hover img {
  transform: scale(1.02);
}
.how-its-work-result-icon {
  width: 65px;
  height: 65px;
  background: #d9b771;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.how-its-work-result-icon::after {
  content: "✓";
  color: #000;
  font-size: 2rem;
  font-weight: bold;
}

.how-its-work-result-title {
  font-family: "Robecha-Daniera-Regular";
  font-size: 40px;
  color: #050405;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.how-its-work-result-text {
  font-family: "Montserrat", sans-serif;
  max-width: 657px;
  margin: 0 auto;
  font-size: 17px;
  color: #050405;
  line-height: 1.4;
  position: relative;
  font-weight: 350;
  z-index: 2;
}

/* Quote Section */
.how-its-work-quote {
  background: #2c3c31;

  padding: 85px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.how-its-work-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-9tbkzck1RJIYT60ogEu5e6yycrtzN5.png")
    no-repeat center;
  background-size: cover; */
  opacity: 0.1;
  background: #2c3c31;
}

.how-its-work-quote-text {
  font-family: "Montserrat", sans-serif;
  max-width: 1045px;
  margin: 0 auto;
  letter-spacing: 0.5px;
  font-size: 28px;
  color: white;
  line-height: 1.5;
  font-weight: 450;
  position: relative;
  z-index: 2;
  animation: how-its-work-fadeInUp 1s ease-out;
}

@media (max-width: 991px) {
  .how-its-work-quote-text {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .how-its-work-quote-text {
    font-size: 22px;
  }
}

/* Animations */
@keyframes how-its-work-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .how-its-work-hero {
    padding: 60px 20px;
    text-align: center;
  }

  .how-its-work-hero {
    width: 100%;
    height: 100%;
    top: auto;
    bottom: 0;
    background-position: left !important;
  }

  .how-its-work-hero-content {
    max-width: 100%;
    position: relative;
    z-index: 3;
  }

  .how-its-work-technologies {
    padding: 60px 20px;
  }

  .how-its-work-tech-card {
    height: auto;
  }

  .how-its-work-swiper-controls {
    gap: 20px;
    margin-top: 30px;
    overflow: hidden;
  }

  .how-its-work-progress-container {
    max-width: 150px;
  }

  /* Steps responsive */
  .how-its-work-steps {
    padding: 60px 20px;
  }

  .how-its-work-timeline::before {
    left: 30px;
  }

  .how-its-work-step {
    flex-direction: column !important;
    padding-left: 80px;
    margin-bottom: 60px;
  }

  .how-its-work-step:nth-child(even) .how-its-work-step-content {
    text-align: left;
  }

  .how-its-work-step-number {
    left: 30px;
    transform: translateX(-50%);
  }

  .how-its-work-step-content {
    max-width: 100%;
    padding: 0;
  }

  .how-its-work-quote {
    padding: 60px 20px;
  }

  .how-its-work-result {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .how-its-work-hero {
    padding: 40px 15px;
  }

  .how-its-work-technologies {
    padding: 40px 15px;
  }

  .how-its-work-tech-card {
  }

  .how-its-work-steps {
    padding: 40px 15px;
  }

  .how-its-work-step {
    padding-left: 60px;
  }

  .how-its-work-timeline::before {
    left: 20px;
  }

  .how-its-work-step-number {
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .how-its-work-quote {
    padding: 40px 15px;
  }

  .how-its-work-result {
    padding: 40px 15px;
  }
}

/* Accessibility */
.how-its-work-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
.how-its-work-cta-button:focus,
.how-its-work-tech-card:focus {
  outline: 3px solid #d4822a;
  outline-offset: 2px;
}

/* Card Container */
.card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* subtle shadow */
  overflow: hidden; /* important for rounded corners on the image */
  position: relative; /* Needed for absolute positioning of the badge */
}

/* Responsive Card */
@media (max-width: 600px) {
  .card {
    width: 90%; /* Adjust width for smaller screens */
    max-width: 400px; /* Optional: Set a maximum width */
  }
}
