/* ===== MAIN CONTAINER ===== */
#main {
  width: 100vw;
  overflow-x: hidden;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--color-heading);
  position: relative;
}

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

/* ===== SWIPER STYLING ===== */
.swiper {
  width: 100%;
  height: fit-content;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--color-bg);
  color: var(--color-bg);
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: var(--color-text);
  font-size: 18px;
}

/* ===== HERO SECTION ===== */
.home-hero {
  height: calc(65vh);
  position: relative;
  margin: 0;
}

.hero-video {
  width: 100%;
  height: fit-content;
  position: absolute;
  top: 0;
  z-index: -1;
  padding: 20px 20px;
  background-color: #FFFCF7;
  border-radius: 0;
}

.video {
  width: inherit;
  height: 65vh;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 40px 40px;
}

.hero-content {
  height: 65vh;
  padding: 100px 30px 40px;
}

/* Search bar styling */
.search {
  width: 95%;
  display: block;
  margin: 0 auto;
  position: relative;
}

.search input {
  width: 100%;
  border: 0;
  padding: 17px;
  background-color: var(--color-bg);
}

.search button {
  position: absolute;
  right: 7px;
  top: 5px;
  height: 45px;
  width: 45px;
}

.trust-text {
  position: absolute;
  bottom: 40px;
}

.patners-section {
  position: relative;
  top: 20px;
  padding: 20px;
  background-color: #FFFCF7;
}

/* ===== SECTION 1: BREEDS ===== */
#section-1 {
  width: 100%;
  overflow-x: hidden;
  padding-left: 5px;
}

.breed-container {
  position: relative;
  overflow-x: hidden;
  padding-left: 20px;
  /* Fade effect on right side */
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
}

.breed-card {
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Blob shape image wrapper */
.breed-card .image-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  
}

.breed-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 55% 45% 45% / 60% 50% 50% 50%;
}

.breed-card h3 {
  width: fit-content;
  font-size: 2.0rem;
  font-weight: 600;
  margin-bottom: 0;
  position: relative;
  left: 20px;
  padding-left: 8px;
  text-align: center;
  color: var(--color-text);
  border-bottom: 2px solid #777777;
}

.breed-card .underline {
  width: 120px;
  height: 1px;
  background: #333;
  margin: 0 auto;
}

.breed-swiper .swiper-button-next,
.breed-swiper .swiper-button-prev {
  background-color: #fff;
  width: 45px;
  height: 45px;
}

.breed-swiper .swiper-button-next::after,
.breed-swiper .swiper-button-prev::after {
  color: var(--color-text);
  font-size: 2.6rem !important;
  font-weight: 800;
}

.breeds-page-link a {
  color: #000;
  text-decoration: none;
}

/* ===== SECTION 2: BADGES ===== */
#section-2 {
  padding: 0 20px;
  overflow-x: hidden;
}

.badge-swiper {
  height: 230px;
}

#section-2 .swiper-pagination-bullet-active {
  background-color: #000 !important;
}

/* ===== SECTION 3: TESTIMONIALS ===== */
#section-3 {
  height: fit-content;
  padding-left: 20px;
  overflow-x: hidden;
  position: relative;
}

#section-3 .review-box {
  position: relative;
  z-index: -1;
  left: -40px;
  width: 380px;
  height: 400px;
  padding: 100px 50px 100px 30px;
  background-image: url('https://www.puppyspot.com/preact/img/trusted-by-community-bg-circle.svg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

#section-3 .testimonials {
  width: 350px;
  position: relative;
  top: -100px;
  background-color: transparent;
}

.testimonials-swiper {
  width: 99vw;
  height: fit-content;
  padding: 10px 0;
}

.swiper-button-next.testimonial-button-next,
.swiper-button-prev.testimonial-button-prev {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.4);
}

.swiper-button-prev.testimonial-button-prev {
  left: 10px;
}

.swiper-button-next.testimonial-button-next {
  right: 30px;
}

.swiper-button-next.testimonial-button-next::after,
.swiper-button-prev.testimonial-button-prev::after {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

/* Testimonial card styling */
#section-3 .testimonial-card {
  width: 350px;
  position: relative;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #f1f1f1;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

#section-3 .testimonial-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

#section-3 .testimonial-content {
  padding: 20px;
}

#section-3 .testimonial-stars {
  color: #f4b400;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

#section-3 .testimonial-text {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 18px;
}

#section-3 .testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 12px;
}

#section-3 .testimonial-link {
  font-size: 14px;
  color: #333;
  text-decoration: underline;
}

#section-3 .testimonial-link:hover {
  color: #000;
}

/* ===== "HOW IT WORKS" SECTION ===== */
.how-it-works {
  font-family: 'Nunito', sans-serif;
  background: #FFFCF7;
  text-align: center;
  padding: 0;
}

.how-it-works .wave-top svg,
.how-it-works .wave-bottom svg {
  width: 100%;
  height: 90px;
  display: block;
  fill: #ffffff;
}

.how-it-works .how-container {
  width: fit-content;
  padding: 20px 80px;
  margin: 0 auto;
}

/* Mobile: Vertical steps layout */
.how-it-works .steps {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Vertical dashed line for mobile */
.how-it-works .steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  bottom: 15px;
  border-left: 5px dashed #cfcfcf;
}

.how-it-works .step {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.how-it-works .circle {
  width: 50px;
  height: 50px;
  background: #9ad4b0;
  border-radius: 50% 60% 50% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.how-it-works .step p {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
}

.how-it-works .cta {
  margin-top: 50px;
}

.how-it-works .cta button {
  padding: 20px;
  border-radius: 40px;
  border: 2px solid var(--color-text);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

/* ===== QUIZ SECTION ===== */
.quiz-section {
  background: #E6FFFD;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.quiz-wrapper {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid var(--color-secondary);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 50px;
}

.quiz-dog img {
  width: 180px;
  transform: scaleX(-1);
  height: auto;
  display: block;
  margin: 0 auto;
}

.quiz-button a {
  color: #ffffff;
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  transition: 0.3s ease;
}

.quiz-button a:hover {
  color: var(--color-primary);
  background: var(--color-bg) !important;
}

/* ===== PUPPY SPOTLIGHT SECTION ===== */
.puppys {
  width: 100%;
  overflow-x: hidden;
}

.puppys .puppy-container {
  position: relative;
  padding-left: 20px;
  margin: auto;
  overflow-x: hidden;
  /* Fade effect on right side */
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
}

.puppys .card-container {
  width: 300px;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 2px;
}

.puppys .puppy-card,
.puppys .card-wrapper {
  width: 100%;
  height: fit-content;
}

.puppys .card-image .img {
  width: 100%;
  height: 270px;
  border-radius: 10px 10px 6px 6px;
  object-fit: cover;
  object-position: center center;
}

.puppys .card-devider {
  width: 100%;
  margin: 2px 0 15px;
  border-top: 2px solid transparent;
  border-image: repeating-linear-gradient(
    to right,
    #f1f1f1 0 5px,
    transparent 5px 10px
  ) 1;
}

.puppys .card-details {
  width: 95%;
  margin: 0 auto 20px;
  position: relative;
}

/* Wishlist button */
.puppys .wishlist {
  position: absolute;
  bottom: 10px;
  right: 5px;
  width: fit-content;
  height: fit-content;
}

.puppys .wishlist .wishlist-btn {
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  background-color: transparent;
}

.puppys .wishlist .wishlist-btn svg {
  fill: none;
  stroke-width: 2px;
  stroke: var(--color-primary);
}

.puppys .wishlist .wishlist-btn.active svg {
  fill: var(--color-primary);
  stroke-width: 2px;
  stroke: var(--color-primary);
}

.puppys .wishlist .wishlist-btn svg:hover {
  fill: var(--color-primary);
  stroke-width: 2px;
  stroke: var(--color-primary);
}

.swiper-button-next.puppy-btn-next,
.swiper-button-prev.puppy-btn-prev {
  background-color: var(--color-bg);
  color: var(--color-bg);
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.swiper-button-prev.puppy-btn-prev {
  left: 10px;
}

.swiper-button-next.puppy-btn-next {
  right: 30px;
}

.swiper-button-next.puppy-btn-next::after,
.swiper-button-prev.puppy-btn-prev::after {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
}

/* ===== PUPPY CHARACTERS SECTION ===== */
.puppy-characters {
  padding: 20px;
  background-color: #FFFCF7;
}

.puppy-characters .character-card {
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Blob shape image wrapper */
.puppy-characters .image-wrapper {
  width: 280px;
  height: 280px;
  margin: 0 auto 50px auto;
  overflow: hidden;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
}

.puppy-characters .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puppy-characters .character-card h3 {
  width: fit-content;
  font-size: 2.0rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 10px;
  text-align: center;
  color: var(--color-text);
  border-bottom: 2px solid #777777;
}

.puppy-characters .underline {
  width: 120px;
  height: 1px;
  background: #333;
  margin: 0 auto;
}

.swiper-button-next.character-btn-next,
.swiper-button-prev.character-btn-prev {
  background-color: #ffffff;
  color: #777777;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.swiper-button-next.character-btn-next::after,
.swiper-button-prev.character-btn-prev::after {
  color: #000;
  font-size: 2.2rem;
  font-weight: 700;
}

/* ===== LAPTOP/DESKTOP VERSION (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  .hero-video {
    padding: 30px 30px;
  }

  .hero-content {
    padding: 150px 100px 40px;
  }

  .search {
    width: 40%;
    margin: 0 0;
  }

  .trust-text {
    position: relative;
    top: -30%;
    padding: 0 100px 0;
  }

  .patners-section {
    top: 30px;
  }

  #section-1 {
    padding: 0 150px;
  }

  .breed-card {
    width: 300px;
    height: fit-content;
  }

  #section-1 .head h3 {
    font-size: 2.8rem !important;
  }

  
  #section-2 {
    padding: 0 20px;
  }

  #section-2 .badge-swiper {
    height: 300px;
  }

  #section-2 .bagde-card {
    width: 100%;
  }

  #section-3 {
    height: fit-content;
    margin-bottom: 50px;
  }

  #section-3 .review-box {
    position: relative;
    z-index: 1;
    left: -1%;
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    padding: 100px 50px 100px 30px;
    background-image: url('https://www.puppyspot.com/preact/img/trusted-by-community-bg-circle.svg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
  }

  #section-3 .review-box .review-content p {
    width: 70%;
  }

  #section-3 .testimonials {
    width: 68%;
    top: 0;
    left: -1.5%;
    overflow-x: hidden;
    /* Fade effect on right side */
    -webkit-mask-image: linear-gradient(
      to right,
      black 0%,
      rgba(0, 0, 0, 0.8) 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      black 0%,
      rgba(0, 0, 0, 0.8) 95%,
      transparent 100%
    );
  }

  #section-3 .testimonials .testimonial-image img {
    height: 300px;
  }

  .testimonials-swiper {
    width: 100%;
    height: fit-content;
    padding: 10px 0;
  }

  .how-it-works .how-container {
    padding: 80px 0;
  }

  .how-it-works .title {
    font-size: 3.4rem;
  }

  /* Desktop: Horizontal steps layout */
  .how-it-works .steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
  }

  .how-it-works .steps .circle {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .how-it-works .steps p {
    font-size: 1.9rem;
  }

  /* Horizontal dashed line for desktop */
  .how-it-works .steps::before {
    left: 8%;
    right: 8%;
    top: 25px;
    bottom: auto;
    border-left: none;
    border-top: 6px dashed #cfcfcf;
  }

  .how-it-works .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .how-it-works .step p {
    margin-top: 15px;
    text-align: center;
  }

  .quiz-section .quiz-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 35px 50px;
    gap: 10px;
  }

  .quiz-section .quiz-dog img {
    width: 100px;
  }

  .quiz-section .quiz-text {
    flex: 1;
    text-align: center;
    font-size: 1.5rem !important;
  }

  .quiz-section .quiz-text p {
    font-size: 1.7rem !important;
  }

  .quiz-section .quiz-dog {
    flex-shrink: 0;
  }

  .quiz-section .quiz-button {
    flex-shrink: 0;
  }

  /* Puppy spotlight section */
  .puppy-container {
    width: 80%;
    margin: 0 auto;
  }
}
