.faq-section {
  background-color: #162a51;
  clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 93%);
  padding: 200px 120px;
  padding-top: 150px;
  margin-bottom: -150px;
}

.faq-list {
  width: 100%;
  margin-top: 130px;
}

.faq-box {
  background: #ffffff;
  box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.08);
  border-radius: 25px;
  width: 100%;
  padding: 20px 30px;
  margin-bottom: 26px;
}

.faq-box:hover {
  cursor: pointer;
}

.faq-question {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.faq-question p {
  font-weight: 400;
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  color: #162a51;
  margin: 0;
}

.faq-answer {
  display: none;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.56px;
  color: #162a51;
  margin-top: 40px;
}

.faq-answer a {
  color: #c84c09;
}

.faq-videos-section {
  display: block;
  padding: 200px 120px;
}

.faq-video-box {
  border-radius: 23px;
  width: 100%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  background-position: center center;
  background-size: cover;
  height: 695px;
}

.video-box-mobile {
  height: 200px;
}

.faq-video-placeholder {
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
  position: absolute;
  width: 100%;
  height: auto;
  z-index: -1;
  top: 0;
  left: 0;
  border-radius: 23px;
  transition: all 200ms ease;
}

.faq-video-heading {
  font-weight: 500;
  font-size: 70px;
  line-height: 84px;
  color: #162a51;
  margin-bottom: 35px;
}

.faq-videos-content {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

#faq-splide {
  padding-bottom: 50px;
}

.faq-video-embed {
  display: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  position: absolute;
  bottom: 130px;
  left: 0;
}

#faq-splide .splide__slide {
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all 200ms ease;
}

.faq-video-play-button {
  opacity: 1;
  transition: all 200ms ease;
}

#faq-splide.splide:not(.is-overflow) .splide__pagination {
  display: flex !important;
}

#faq-splide .splide__slide:hover {
  cursor: pointer;
}

#faq-splide .splide__slide:hover .faq-video-play-button {
  filter: brightness(100%);
}

#faq-splide .splide__slide:hover .faq-video-placeholder {
  filter: brightness(50%);
}

.faq-video-button {
  position: absolute;
  top: 200px;
  right: 0;
  background-color: transparent;
  width: 122px;
  opacity: 1;
  border: none;
}

.blog-section {
  padding-top: 40px;
  padding-bottom: 500px;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 93%);
}

.blog-top-section {
  margin-top: 50px;
  margin-bottom: -1px;
  height: 150px;
  background-color: #f8f6e8;
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.blog-header-section {
  padding-top: 50px;
}

.blog-block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: 70px;
  margin-bottom: 50px;
  padding: 40px;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: start;
  border-radius: 25px;
  background-color: #fff;
  box-shadow: 4px 0 50px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-height: 518px;
  max-width: 1200px;
  position: relative;
  margin-top: -415px;
  margin-left: auto;
  margin-right: auto;
}

.blog-container {
  padding-left: 120px;
  padding-right: 120px;
}

.blog-image {
  border-radius: 25px;
  width: 521px;
  height: 424px;
  background-size: cover;
}

.blog-post-section {
  padding: 100px 120px 130px 120px;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 150px;
  row-gap: 100px;
  width: 100%;
}

.blog-featured-title {
  margin-bottom: 30px;
  color: #162a51;
  font-size: 36px;
  line-height: 50px;
  font-weight: 500;
  margin-top: 0px;
}

.blog-featured-info {
  width: 50%;
  height: 424px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  margin-left: 60px;
}

.blog-post-title {
  font-weight: 500;
  font-size: 36px;
  line-height: 50px;
  color: #162a51;
  margin-top: 35px;
  margin-bottom: 20px;
}

.blog-page-layout {
  display: flex;
  align-items: start;
  width: 100%;
  gap: 100px;
}

.blog-left-section {
  width: 20%;
}

.blog-right-section {
  width: 60%;
}

.blog-single-title {
  margin-top: 0;
  font-weight: 500;
  font-size: 36px;
  line-height: 46px;
  color: #162a51;
  margin-bottom: 45px;
}

.blog-single-body {
  font-size: 18px;
  line-height: 33px;
  color: #162a51;
}

.blog-single-body a {
  color: #c84c09;
}

.blog-single-img {
  border-radius: 25px;
  width: 100%;
  margin-bottom: 70px;
}

.blog-meta {
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: #162a51;
  margin-bottom: 0;
}

.blog-back {
  margin-bottom: 70px;
}

.nav-links {
  display: flex;
  justify-content: end;
}

.blog-footer-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.author-section {
  margin-top: 90px;
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 33px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #162a51;
}

.author-section img {
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

.author-bio {
  margin-top: 25px;
  margin-bottom: 50px;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 26px;
  letter-spacing: 0.035em;
  color: #162a51;
}

.nav-next a {
  text-decoration: none;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  grid-column: 1 / span 2;
}

.portfolio-section {
  background-color: #f8f6e8;
  padding: 200px 120px 130px 120px;
  padding-right: 20px;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 290px);
  grid-template-rows: auto;
  column-gap: 20px;
  row-gap: 20px;
  width: 100%;
  margin-top: 75px;
  max-width: 1460px;
}

.portfolio-item {
  position: relative;
}

.portfolio-item:hover {
  cursor: pointer;
}

.acquired-text {
  font-family: Montserrat, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 33px;
  color: #162a51;
  margin: 0;
  margin-left: 24px;
}

.portfolio-header {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  column-gap: 36px;
  width: 100%;
}

.map-wrapper {
  position: relative;
}

.map-pin {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #c84c09;
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 99;
}

.map-box {
  position: relative;
  width: 50vw;
}

.map-background {
  width: 100%;
  z-index: 1;
  max-width: unset;
}

.map-pin:hover {
  cursor: pointer;
}

.pin-details {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 999;
}

.pin-details:hover {
  background-color: #fff;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  /* transform: translateZ(99px); */
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  padding: 60px;
  background-color: #fff;
  border-radius: 24px;
  height: 290px;
  width: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the back side */
.flip-card-back {
  padding: 44px 34px;
  background-color: #162a51;
  color: white;
  border-radius: 24px;
  height: 290px;
  width: 290px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  transform: rotateY(180deg);
}

.portfolio-cn {
  font-weight: 700;
  font-size: 12.0258px;
  line-height: 11px;
  letter-spacing: 1.54832px;
  text-transform: uppercase;
}

.portfolio-desc {
  font-family: Montserrat, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 28px;
  letter-spacing: 0.420901px;
  color: #ffffff;
  text-align: start;
}

.faq-videos-section-mobile {
  display: none;
}

.acquired-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
}

.close-detail {
  position: absolute;
  top: 20px;
  right: 20px;
}

.flip-card-mobile {
  display: none;
}

.mobile-blog-back {
  display: none;
}

.mobile-date {
  display: none;
}

.portfolio-detail-mobile,
.mobile-acquired-indicator {
  display: none;
}

@media screen and (max-width: 991px) {
  .faq-video-box {
    margin-top: 25px;
    margin-bottom: 50px;
  }

  .blog-post-title {
    font-size: 24px;
    line-height: 30px;
  }
  .blog-header-section {
    padding-top: 125px;
  }

  .mobile-blog-back {
    display: block;
    padding-left: 30px;
    display: flex;
    justify-content: start;
  }

  .mobile-date {
    display: block;
    margin-bottom: 38px;
  }

  .mobile-blog-back .blog-back {
    margin-bottom: 30px;
  }

  .blog-post-section {
    padding: 30px;
  }

  .blog-left-section {
    display: none;
  }

  .blog-right-section {
    width: 100%;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .featured-blog-image {
    width: 100%;
    height: 200px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .blog-block {
    flex-direction: column;
    margin-top: -100px;
    gap: 28px;
    padding: 0;
    min-height: unset;
  }

  .blog-featured-info {
    height: auto;
    padding: 0px 40px 40px 40px;
    width: 100%;
    margin: 0;
  }

  .blog-featured-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
  }

  .blog-single-title {
    margin-bottom: 25px;
  }

  .blog-single-img {
    margin-bottom: 33px;
  }

  .next-post-div {
    width: auto;
  }

  .flip-card-mobile {
    display: flex;
    padding: 35px;
    background-color: #fff;
    border-radius: 24px;
    height: 160px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-acquired-indicator {
    display: block;
  }

  .acquired-indicator {
    width: 25px;
  }

  .portfolio-detail-mobile {
    display: none;
    padding: 44px 34px;
    background-color: #162a51;
    color: white;
    border-radius: 24px;
    height: 290px;
    width: 290px;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    position: fixed;
    top: 30%;
    left: 50%;
    margin-left: -145px;
    margin-right: -145px;
    z-index: 999;
  }

  .flip-card {
    display: none;
  }

  .portfolio-section {
    padding: 110px 30px;
  }

  .map-wrapper {
    display: none;
  }

  .portfolio-controls {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .portfolio-header {
    min-height: unset;
    grid-template-columns: 1fr;
  }

  .faq-videos-section {
    display: none;
  }

  .faq-videos-section-mobile {
    display: block;
    padding: 180px 30px;
    padding-bottom: 50px;
  }

  .faq-section {
    clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    padding: 100px 30px;
  }

  .blog-section {
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 99%);
    padding: 80px 30px 200px 30px;
  }

  .blog-top-section {
    margin-top: 0;
    height: 50px;
  }

  .faq-list {
    margin-top: 58px;
  }

  .faq-video-heading {
    font-weight: 500;
    font-size: 36px;
    line-height: 46px;
    margin-bottom: 13px;
  }

  .faq-desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
  }
}

@media screen and (max-width: 767px) {
  .flip-card-front {
    width: 160px;
    height: 160px;
  }
  .flip-card {
    width: 160px;
    height: 160px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, 160px);
    column-gap: 10px;
    row-gap: 10px;
  }

  .faq-box {
    padding: 19px 16px;
    margin-bottom: 10px;
  }

  .faq-question p {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .faq-answer {
    margin-top: 10px;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
  }
}
