.sub-header {
  display: flex;
  justify-content: space-between;
  .logo-main {
    width: 86px;
    height: auto;
  }
}

.nissing .values-title {
  display: none;
}
.main-nissing-title-different {
  text-align: center;
  font-weight: 100;
  background-color: #efefef;
  width: 78vw;
  font-size: 2.57vw;
  
}
.mobile .main-nissing-title-different {
  text-align: center;
  font-weight: 100;
  background-color: #efefef;
  width: 100vw;
  font-size: 9.57vw;
  line-height: 1;
  margin: 0 0 4vw;
}
.title-container{
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1vw;

}
.mobile .title-container {
  gap: 7vw;
  padding: 6vw 0;
  background-color: #fff;
}
.circles-container {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 1vw 0vw;
}
.mobile .circles-container {
 
  gap: 3vw;
 
}
.circle-item {
  width: 13.8px;
height: 13.8px;
background-color: #EFEFEF;
border-radius: 50%;
}
.circle-item.active {
  background-color: #C4002F;
}
.model-carousel-button-top.prev {
  position: absolute;
  top: 43vw;
  right: 18vw;
}
.nissing .wrapper {
  position: relative;
}
.mobile .model-carousel-button-top.prev {
  position: absolute;
  top: -33vw;
  right: 3vw;
  width: 15vw;
  height: auto;
}
.model-carousel-button-top.next {
  position: absolute;
  top: -6.5vw;
  left: 18vw;
  transform: rotate(180deg);
}
 .model-carousel-button-top.prev {
  position: absolute;
  top: -6.5vw;
  left: 18vw;

}
.mobile .model-carousel-button-top.next {
  position: absolute;
  top: 43vw;
  left: 22vw;
  transform: rotate(180deg);
}
.mobile .model-carousel-button-top.next {
  position: absolute;
  top: -33vw;
  left: 3vw;
  transform: rotate(180deg);
  width: 15vw;
  height: auto;
}
.model-title-different {
  font-size: 2.4vw;
  line-height: 2.4vw;
}
.mobile .model-title-different {
  font-size: 9.4vw;
  line-height: 9.4vw;
}
.model-subtitle-different {
  font-size: 1.8vw;
  line-height: 1.8vw;
  font-weight: 100;
}
.mobile .model-subtitle-different {
  font-size: 9.4vw;
  line-height: 9.4vw;
  font-weight: 100;
}
.back-home-url {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  cursor: pointer;
  .text {
    color: var(--red-color);
    font-size: var(--font-size-20px);
    font-weight: 400;
  }
}

.main-container:has(.inner-page) {
  padding-bottom: 5vh;
  .video-element {
    aspect-ratio: 16 / 9;
  }
}
.freesbe-sale-banner {
  background-color: #000;
  display: none;
  .img {
    image-rendering: crisp-edges;
    object-fit: contain;
  }
}
.sentra .model-container .title .he {
  color: #c4002f;
}
.model-container {
  margin-bottom: var(--margin-20px);
  .inner {
    padding-inline: var(--space-inline);
  }
  .title {
    padding: unset;
    font-size: var(--font-size-35px);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 1px;


  }
}
.model-subtitle {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.7vw;
}
.description {
  padding-inline: var(--space-inline);
  line-height: 1.1;
  font-size: var(--font-size-22px);
  font-weight: 400;
  ul {
    list-style-type: disc;
    margin-inline-start: 0.8vw;
  }
}
.values-container {
  margin-top: var(--margin-20px);
  padding-bottom: 6vw;
  .title {
    font-size: var(--font-size-35px);
    line-height: 1.3;
  }
}
.value-list {
  margin-top: var(--margin-20px);
}
.value-item {
  margin-bottom: var(--margin-20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: var(--margin-20px);
  label {
    cursor: pointer;
  }
  .accordion-trigger:not(:checked) {
    ~ label {
      &:hover {
        .text-title {
          font-weight: 700;
        }
        .plus-minus {
          background-color: #000;
        }
      }
    }
  }
  .inner {
    display: flex;
    gap: 15px;
    align-items: center;
    * {
      flex-shrink: 0;
    }
    .icon {
      width: 54px;
      object-fit: cover;
    }
    .text {
      line-height: 1.2;
      font-weight: 400;
      font-size: var(--font-size-24px);
      max-width: 300px;
      width: 100%;
    }
  }
  .separator-red {
    width: 4px;
    height: 30px;
    background-color: var(--red-color);
  }
  .accordion-content {
    color: #1e1e1e;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    max-height: 0;
    transition: 0.25s ease-in-out;
    padding-inline: calc(var(--space-inline) + 10px);
  }
  .value-inner-item {
    text-wrap: pretty;
    font-size: var(--font-size-24px);
    line-height: 1.2;
    padding-top: 0.5vw;
    &:not(:last-child) {
      margin-bottom: var(--space-small);
    }
  }
  .accordion-trigger {
    display: none;
    &:checked {
      & ~ .accordion-content {
        margin-top: calc(var(--margin-20px) + 10px);
      }
      & + label {
        .plus-icon {
          display: none;
        }
        .minus-icon {
          display: block;
        }
      }
    }
  }
  .value-inner-list {
    list-style-type: disc;
  }
}
.first-red {
  color: #c4002f;
  font-weight: 700;
}
.xtrail .title .he,
.qashqai .title .he,
.juke .title .he {
  color: #c4002f;
}

.ranks-container.inner-page {
  display: flex;
  width: 100%;
  .ranks {
    gap: 7px;
  }
  .text {
    white-space: nowrap;
  }
}
.inner-page .dialog {
  box-shadow: 10px 7px 23px 0 rgba(0, 0, 0, 0.34);
}
body.juke {
  .model-container .title .he {
    /* color: #C4002F; */
  }
}

.footer {
  .text {
    a {
      color: black;
      text-decoration: underline;
      text-decoration-skip-ink: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    min-height: 105vh;
    overflow: auto;
    height: auto;
  }
  .inner-page {
    background-color: var(--light-gray-bg);
    padding-top: 1vw;
    position: relative;
    .logo-main {
      width: 11.836vw;
    }
    .sub-header {
      align-items: end;
      .back-icon {
        margin-top: -0.483vw;
      }
    }
    .values-container {
      background-color: #fff;
      padding-top: 6vw;
    }
    .reasons-container {
      margin-top: 0;
      padding-top: 0;
    }
  }
  .sub-header {
    margin-top: 14vw;
    padding-inline: var(--space-inline);
  }
  .nissing .title-container {
    padding: 8vw 0;

  }
  .nissing .model-carousel {
   
    background: #fff;
  }
  .model-carousel {
    margin-bottom: 20vw;
    background-color: var(--light-gray-bg);
    margin-inline: 4vw;
  }
  .values-container {
    padding-inline: 5%;
    .values-title {
      display: flex;
      flex-direction: column;
      font-weight: 400;
      line-height: 1;
      margin-bottom: 3vw;
      font-size: var(--font-size-35px);
      .en {
        font-family: "nissanFontEng regular", sans-serif;
      }
    }
  }
  .mobile.nissing .values-title {
    display: none;
  }
  .freesbe-sale-banner {
    height: 20.253vw;
    position: absolute;
    top: 0;
    inset-inline: 0;
    .img {
      width: 70vw;
      margin-inline: auto;
      padding-block: 5%;
    }
  }
  .model-container {
    display: grid;
    grid-template-areas:
      "first"
      "second"
      "third";
    background-color: var(--light-gray-bg);
    .title {
      .en {
        line-height: 1.2;
      }
      .he {
        line-height: 1;
        span {
              font-family: "fbpractica-eng", "Arial", "Helvetica", sans-serif;

        }
      }
    }
    .inner {
      grid-area: first;
      margin-bottom: var(--margin-20px);
    }
    .video-container {
      grid-area: second;
    }
    .description-wrap {
      .inner-wrap {
        display: flex;
        gap: 7px;
        align-items: baseline;
        transition: margin-top 0.3s ease-in-out;
        position: absolute;
        inset-inline-end: 3vw;
        margin-top: -13.7vw;
      }
    }
    .description {
      grid-area: third;
      margin-block: var(--margin-20px);
      overflow: hidden; /*position: relative; transition: max-height 0.3s ease-in-out;*/ /*Temporary*/
      --overlay-opacity: 1;
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background-color: var(--light-gray-bg);
        pointer-events: none;
        opacity: var(--overlay-opacity);
        transition: opacity 0.3s ease-in-out;
      }
      &.expanded {
        transition: max-height 0.3s ease-in-out;
      }
      ul {
        margin-inline-start: 3.8vw;
        margin-top: 1vh;
        font-size: var();
      }
    }
    .read-more {
      width: 100%;
      font-weight: 400;
      font-size: var(--font-size-20px);
      background: transparent;
      color: var(--red-color);

      display: none; /*Temporary*/
    }
    .arrow-read-more {
      transition: rotate 0.3s ease-in-out;

      display: none; /*Temporary*/
    }
    .description.expanded ~ .inner-wrap .arrow-read-more {
      rotate: 180deg;
    }
  }
  .juke .model-container {
    .description {
      color: #c4002f;
      font-weight: 900;
    }
  }
  .nissing .wrapper {
    background: #ffff;
    margin-top: -6vw;
  }
  .ranks-container.inner-page {
    gap: 2.521vw;
    padding-block: var(--margin-20px);
    padding-inline: 2%;
    border-bottom: 1px solid #efefef;
    background-color: #fff;
    flex-direction: column;
    &.desktop-only {
      display: none;
    }
    .text {
      display: block;
      padding-inline: 1.5vw;
      padding-top: 0.8vw;
    }
  }
  .accordion-content {
    font-size: var(--font-size-16px);
  }
  .accordion-trigger:checked {
    & ~ .accordion-content {
      max-height: 120vw;
      width: 95vw;
    }
  }
  .value-item .inner {
    width: 70%;
  }
  .model-container .model-subtitle {
    font-size: 6.076vw;
    max-width: 90vw;
    /*  position: absolute; top: 71.5vh;*/ /*Temporary*/
    /*top: 128.5vw;*/
    br {
      display: block;
    }
  }
  .value-list {
    width: 90%;
  }
  .inner-page .footer {
    background-color: #fff;
    padding-inline: 2%;
    padding-top: var(--margin-20px);
  }
}
@media screen and (min-width: 769px) {
  .main-container:has(.inner-page) {
    .model-container,
    .sub-header {
      width: 108%;
      padding-inline: 6.927vw;
    }
  }
  .sub-header {
    background-color: #efefef;
    padding-top: var(--margin-20px);
    padding-inline-start: var(--space-inline);
    padding-inline-end: 2vw;
  }
  .freesbe-sale-banner {
    height: 7.604vw;
    padding-inline: 6.927vw;
    width: 78vw;
    .img {
      padding-block: 3%;
      margin-inline-start: 1.4vw;
    }
  }
  .model-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
      "first side"
      "second side"
      "third side";
    background-color: #efefef;
    margin-top: unset;
    margin-bottom: 0;
    padding-bottom: 2vw;
    padding-inline-end: 2vw;
    padding-top: var(--margin-20px);
    .inner {
      grid-area: first;
    }
    .title .en {
      line-height: 1.6;
    }
    .description {
      grid-area: second;
      width: 90%;
      ul {
        font-size: var(--font-size-24px);
      }
    }
    .video-container {
      grid-area: side;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .juke .model-container {
    .description {
      color: #c4002f;
      font-weight: 900;
    }
  }
  .ranks-container.inner-page {
    grid-area: third;
    margin-top: auto;
    padding-inline: var(--space-inline);
    padding-right: 7%;
    &.mobile-only {
      display: none;
    }
    .text {
      padding: 0.5vw;
    }
  }
  .wrapper {
    display: flex;
    justify-content: space-between;
    margin-inline: 6.927vw;
    .model-carousel {
      margin-top: 3.2vw;
    }
  }
  .inner-page {
    position: relative;
    .dialog {
      top: unset;
      bottom: 9vw;
    }
    .dialog-content .close-x {
      top: -5vw;
      inset-inline-start: -0.6vw;
    }
    .reasons-container {
      padding: 2% 7%;
      width: 108%;
      .icons {
        width: 80%;
        margin-inline: auto;
      }
    }
  }
  .accordion-content {
    font-size: var(--font-size-24px);
  }
  .accordion-trigger:checked {
    & ~ .accordion-content {
      max-height: 40vw;
    }
  }
  .value-inner-item {
    width: 100%;
  }
  .values-container {
    width: 50%;
  }
  .values-title {
    display: flex;
    gap: 10px;
    align-items: baseline;
    width: fit-content;
    font-size: var(--font-size-50px);
    font-weight: 400;
    margin-inline-start: 16vw;
    .en {
      font-family: "nissanFontEng regular", sans-serif;
    }
    &.mobile-only {
      display: none;
    }
  }

  .secondarySubtitle {
    margin-inline-start: 28vw;
  }
  .value-list {
    margin-inline-start: 2vw;
    width: 100%;
  }

}
@media screen and (min-width: 769px) and (max-width: 1599px) {
  .main-container:has(.inner-page) {
    width: calc(100vw - 430px);
    .wrapper {
      width: 90%;
    }
  }
  .value-item .inner {
    width: 70%;
  }
  .model-container .video-container {
    .video-element {
      height: 17.7vw;
    }
  }
}
@media screen and (min-width: 1600px) {
  .main-container:has(.inner-page) {
    width: calc(100vw - 28vw);
  }
  .value-item .inner {
    width: 120%;
  }
  .model-container .video-container {
    .video-element {
      height: 19.6vw;
    }
  }
}

@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */
}
 .nissing h2.title .en{font-family: "fbpractica", sans-serif;font-size: 2.75rem;}
 .nissing .description{width: 100%;}

/* Nissing Main Swiper Styles */
.nissing-main-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper-slides {
  display: flex;
  position: relative;
}

.swiper-slide {
  display: none;
  opacity: 0;
  width: 100%;
  transition: opacity 0.3s ease;

  &.active {
    display: block;
    opacity: 1;
  }
}

.slide-content {
  width: 100%;
  padding: 2vw;
}

.model-title {
  margin-bottom: 1.5vw;
  font-size: 2.5vw;
  font-weight: 700;
  display: flex;
  gap: 1vw;

  span {
    display: inline;
  }

  .en {
    font-family: "nissanFontEng regular", sans-serif;
  }
}

.model-description {
  margin-bottom: 2vw;
  font-size: 1.2vw;
  line-height: 1.6;
  color: #333;
}

/* Sub-carousel styles */
.sub-carousel {
  position: relative;
  margin-bottom: 2vw;

  .model-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
  }

  .car-list {
    flex: 1;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 400px;
    overflow: hidden;
  }

  .car-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;

    &.active {
      position: relative;
      opacity: 1;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .indicator-list {
    display: flex;
    gap: 0.5vw;
    list-style: none;
    padding: 0;
    margin: 1vw 0;
    justify-content: center;
  }
 

  .indicator-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &.active {
      background-color: var(--red-color);
    }

    &:hover {
      background-color: #999;
    }
  }

  .model-carousel-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 30px;
      height: 30px;
    }
  }
}

/* Main swiper controls */
.main-swiper-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;

  &.prev {
    right: 2vw;
  }

  &.next {
    left: 2vw;
  }

  img {
    width: 40px;
    height: 40px;
  }
}

.main-swiper-indicators {
  display: flex;
  gap: 0.8vw;
  list-style: none;
  padding: 0;
  margin-top: 2vw;
  justify-content: center;
}

.main-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;

  &.active {
    background-color: var(--red-color);
  }

  &:hover {
    background-color: #999;
  }
}