/* Custom styles for the vertical swiper */
.mySwiper {
  width: 100%;
  height: 100vh;
}

.mySwiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.mySwiper .slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.mySwiper .slide-content {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  text-align: right;
  color: white;
  width: 100%;
  padding: 0 2rem;
}

.mySwiper .slide-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: medium;
}

.green-line {
  width: 250px;
  height: 10px;
  background-color: var(--green-color);
  margin: 1rem;
}

/* Custom pagination styling */
.mySwiper .swiper-pagination-vertical {
  left: 2rem !important;
  right: unset !important;
}

.mySwiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  opacity: 1;
}

.mySwiper .swiper-pagination-bullet-active {
  height: 24px;
  background: white;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scroll-text {
  display: block;
  font-size: 0.875rem;
}

.scroll-icon {
  animation: bounce 2s infinite;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  margin-bottom: 0.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .slide-content {
    left: 50%;
  }
}

/* Hide default navigation buttons */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
  display: none;
}

/* about-us */
.yellow-line {
  width: 150px;
  height: 10px;
  background-color: var(--yellow-color);
  margin: 1rem 0;
}

.about-us-section h3 {
  color: var(--black-color);
  font-weight: 700;
}

.about-us-section .content-about-us {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.about-us-text {
  color: var(--grey-alt-color);
  line-height: 2;
  margin-bottom: 2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-us-section {
    padding: 2rem 0;
  }
  .about-us-section .about-us-img {
    max-width: 100%;
  }

  .about-us-section .about-us-img img {
    max-width: 100%;
  }

  .about-us-section .content-about-us {
    flex-direction: column;
  }

  div:has(.about-us-text) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .about-us-section .content-about-us {
    flex-direction: column;
  }
}
/* about-us */

/* contact-us */
.contact-us-section {
  background-image: linear-gradient(to right, #4d7a424d, #fbd9b9);
}

.contact-us-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.contact-us-content h3 {
  font-weight: 700;
  font-size: 2rem;
}

.contact-us-content p {
  color: var(--grey-color);
  line-height: 2;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 1.3rem;
}

.contact-us-img {
  display: flex;
  justify-content: end;
  align-items: center;
}

.contact-us-img img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) and (min-width: 769px) {
  .contact-us-content {
    align-items: center;
  }

  .contact-us-content h3,
  .contact-us-content p {
    text-align: center;
  }

  div:has(.contact-us-img) {
    margin-top: 2rem;
  }

  .contact-us-img {
    justify-content: center;
  }
}

/* contact-us */

/* features */
.features-section .features-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.features-section .features-content .features-text {
  color: var(--grey-alt-color);
  font-weight: 500;
  font-size: 1.3rem;
}

.features-section .feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 8px 10px 20px 1px #98989829;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #fff;
  color: var(--green-color);
  text-align: center;
  border: 1px solid #f6f6f6;
  min-height: 366px;
}

.features-section .feature:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  border-bottom: 4px solid var(--green-color);
}

.features-section .feature-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: white;
  margin: 0 auto;
  margin-bottom: 1rem;
  box-shadow: 5px 7px 16px 1px #86868629;
}

.features-section .feature-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.features-section .feature h4 {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--green-color);
}

.features-section .feature p {
  color: var(--grey-alt-color);
  font-weight: 400;
  font-size: 1.2rem;
}

.features-section .feature-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-color);
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.features-section .feature-link:hover {
  animation: move 2s infinite;
}

@keyframes move {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

@media (max-width: 768px) {
  .features-content .features-text {
    text-align: center;
  }
}
/* features */

/* services */
.services-section {
  background-image: url("../imgs/landing.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 100px 0;
}

.services-section .services-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  color: #fff;
}

.services-section .services-content h3 {
  font-weight: 500;
  font-size: 2rem;
}

.services-section .services-content p {
  color: #dddddd;
  font-weight: 400;
  font-size: 1.3rem;
}
/* services */

/* advertise */
.advertise-content {
  position: relative;
}

.advertise-content .feature-link {
  position: absolute;
  top: 0;
  left: 0;
}

.advertise {
  box-shadow: 0px 4px 26px 0px #42474c14;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 1rem;
}

.advertise .advertise-img {
  width: 100%;
  height: 225px;
  transition: all 0.3s ease;
  position: relative;
}

.advertise .advertise-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.ribbon {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.ribbon {
  --f: 0.5em;
  --r: 0.8em;
  --radius: 8px;

  position: absolute;
  top: 20px;
  left: calc(-1 * var(--f));
  padding: 0.25em 1em;
  line-height: 1.8;
  background: var(--red-color);
  border-bottom: var(--f) solid #0005;
  border-right: var(--r) solid #0000;
  clip-path: polygon(
    calc(100% - var(--r)) 0,
    var(--radius) 0,
    calc(var(--radius) * 0.2) calc(var(--radius) * 0.2),
    0 var(--radius),
    0 calc(100% - var(--f)),
    var(--f) 100%,
    var(--f) calc(100% - var(--f)),
    calc(100% - var(--r)) calc(100% - var(--f)),
    100% calc(50% - var(--f) / 2)
  );
}

.ribbon.sale {
  top: 70px;
  background: #6f42c1;
}

.advertise-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.advertise-container h4 {
  color: #1c1c1e;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.advertise-container .advertise-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.advertise-container .advertise-features .collect {
  display: flex;
  gap: 8px;
  align-items: center;
}

.advertise-container .advertise-features .collect img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.advertise-container .advertise-features .collect span {
  color: #3a3a3c;
  font-weight: 500;
  font-size: 1rem;
}

.advertise-container .advertise-features .location,
.advertise-container .advertise-features .calendar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.advertise-container .advertise-features .location .location-img,
.advertise-container .advertise-features .calendar .calendar-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--green-color);
  width: 32px;
  height: 32px;
}

.advertise-container .advertise-features .location img,
.advertise-container .advertise-features .calendar img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.advertise-container .advertise-features .location span,
.advertise-container .advertise-features .calendar span {
  color: #616161;
  font-weight: 400;
  font-size: 1rem;
}

.advertise-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.advertise-footer .price {
  color: var(--red-color);
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.advertise-footer .advertise-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.advertise-footer .advertise-btn .container-img {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eff6e6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.advertise-hr {
  border-color: #f1f1f1;
  border-width: 2px;
}

.real-estate-swiper {
  padding: 20px 40px 40px 40px;
  position: relative;
}

.real-estate-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.real-estate-swiper .swiper-slide > a {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.real-estate-swiper .swiper-pagination {
  bottom: -7px;
}

.real-estate-swiper .swiper-pagination-bullet {
  width: 50px;
  height: 4px;
  border-radius: 0;
}

.real-estate-swiper .swiper-pagination-bullet-active {
  background: var(--green-color);
  width: 50px;
  border-radius: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .real-estate-swiper .swiper-slide {
    width: 33.33%;
  }
}

@media (max-width: 767px) {
  .real-estate-swiper {
    padding: 20px 15px 40px 15px;
  }

  .real-estate-swiper .swiper-slide {
    width: 100%;
  }

  .advertise {
    min-height: 480px;
  }

  .mySwiper .slide-title {
    font-size: 1.5rem;
  }

  .green-line {
    width: 150px;
    height: 8px;
  }

  .scroll-indicator {
    bottom: 6rem;
  }
}

/* advertise */

/* app-section */

.app-section .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-section .app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.app-section .app-title {
  font-weight: 700;
  font-size: 32px;
  color: var(--black-color);
  line-height: 1.5;
}

.app-section .app-text {
  color: var(--grey-alt-color);
  font-weight: 400;
  font-size: 26px;
  line-height: 2;
  max-width: 600px;
}

.app-section .store {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-section .store img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  div:has(.app-content) {
    margin-top: 2rem;
  }
}

/* app-section */
