/* HERO w/ tall tablet and mobile images */
@media only screen and (max-width: 1083px) {
    .home-hero .m-hero-item[class*=f-x][class*=f-y]>div>div {
        left: 0;
        margin: 0 auto;
        max-width: 100%;
        position: relative;
        top: 75% !important;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}
@media only screen and (max-width: 767px) {
    .home-hero .m-hero-item[class*=f-x][class*=f-y]>div>div.high-contrast {
        top: 50% !important;
    }
    .home-hero .m-hero-item>div {
        height: 400px;
    }
}
@media only screen and (max-width: 400px) {
    .home-hero .m-hero-item[class*=f-x][class*=f-y]>div>div.high-contrast {
        top: 40% !important;
    }
}
@media (min-width: 768px) and (max-width: 1083px) {
     .home-hero section {
      height: 110vw;
     }
     .home-hero .m-hero-item>div {
      overflow: visible;
     }
     
     .home-hero .m-hero-item.f-x-center.f-y-top>div>div {
      top: 20% !important;
     }
     .home-hero .m-hero-item>div>div {
      max-width: 1083px;
      width: 101%;
      text-align: center;
      left: 0;
      right: 0;
     }
}
    @media screen and (max-width: 350px) {
     .home-hero .m-hero-item>div>div {
      top: 30vw !important;
     }
     .home-hero .m-hero-item>div>div>div {
      padding-top: 0px;
     }
     .home-hero .m-hero-item>div>div>div>a {
      margin-top: 0px;
     }
    }
    @media screen and (min-width: 1084px) {
     .home-hero .image {
      display: none;
     }
    }

/* Video hero */
@media screen and (min-width: 1084px) {
   .videoHero .m-hero-item.f-x-left.f-y-center .m-ambient-video video {
      width: 100% !important;}

   .videoHero .m-hero-item picture {
      display: none;}
}
@media screen and (max-width: 1083px) {
.videoHero .m-ambient-video {
   display: none;}
}



/* Gaming copilot page hero */
.m-ambient-video.pp-button div button {
    bottom: -26vw;
    margin-left: -98vw;
}
@media screen and (min-width: 1920px) {
.m-ambient-video.pp-button div button {
    bottom: -500px;
    margin-left: -1900px;
}
}
.home-hero.theme-dark {       
  background-color: white;
}
@media screen and (min-width: 1084px) {
.home-hero .m-hero-item {
  aspect-ratio: 16/9;
}
.home-hero .m-hero-item .m-ambient-video video {
  width: 100vw;
  max-width: 1920px;
}
}
@media screen and (max-width: 500px) {
  .home-hero .high-contrast .c-heading-1 {
    font-size: 34px !important;
    line-height: 36px !important;
    padding-top: 12px;
  }
  .home-hero .high-contrast .c-subheading-1 {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}





/* ======== 3up content placement ======== */
.copilot-3up-content-placement .m-content-placement-item .c-heading-3 {
  padding: 0;
  font-weight: 700 !important;
}


/* ======== Card Grid ======== */
.cardFlip {
  width: 100%;
  overflow: hidden;
  padding: 0;
}

/* Card flip styles */
.cardFlip .card {
  perspective: 5000px;
  cursor: pointer;
}

/* Screen reader and keyboard navigation */
.cardFlip .card span.card-flip-focus {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cardFlip .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.165, 0.840, 0.440, 1.000);
  transform-style: preserve-3d;
  /* Safari fix */
  -webkit-transform-style: preserve-3d;
}

@media (min-width: 769px) {
  /* Card flip effect only for screens wider than 768px */
  .cardFlip .card:hover .card-inner,
  .cardFlip .card:has(.card-flip-focus:focus) .card-inner,
  .cardFlip .card:has(.c-call-to-action:focus) .card-inner {
    transform: rotateY(180deg);
  }

  /* Disable pointer events on the front when the card is flipped */
  .cardFlip .card:hover .card-front,
  .cardFlip .card:has(.card-flip-focus:focus) .card-front,
  .cardFlip .card:has(.c-call-to-action:focus) .card-front {
    pointer-events: none;
  }

  /* VFI */
  .cardFlip .card:has(.card-flip-focus:focus) .card-inner {
    border: 2px dashed #000;
    outline: 2px dashed #fff;
  }
}

/* On mobile only show card back */
@media (max-width: 768px) {
  .cardFlip .card-inner {
    transform: rotateY(180deg) !important;
  }

  .cardFlip .card-front {
    display: none !important;
  }

  .cardFlip .card-back {
    display: block !important;
  }

  .cardFlip .card-flip-focus {
    display: none !important;
  }
}

.cardFlip .card-front,
.cardFlip .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 2;
  background: #111;
  /* Force stacking context for Safari */
  will-change: transform;
}

.cardFlip .card-back {
  transform: rotateY(180deg);
  z-index: 3;
}

/* Remove flip-specific styles for the static card */
.cardFlip .card-static .card-inner,
.cardFlip .card-static .card-front,
.cardFlip .card-static .card-back {
  all: unset;
}

.cardFlip .card-static .card-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.cardFlip .m-content-placement-item.f-size-large {
  width: 100%;
  aspect-ratio: 693 / 800;
  position: relative;
  margin: 0;
}

.cardFlip .m-content-placement-item.f-size-large img.c-image {
  width: 100%;
  object-fit: cover;
}

.cardFlip .m-content-placement-item .slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  z-index: 100;
  padding: 32px 27px 30px 30px;
  white-space: normal;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 32px, rgba(0, 0, 0, 0.75) 72px, rgba(0, 0, 0, 1) 100%); */
}

.cardFlip .m-content-placement-item .slide-content h3 {
  font-weight: 700 !important;
}

@media screen and (max-width: 767px) {
  .cardFlip .m-content-placement-item .slide-content {
    padding: 32px 12px 12px 16px;
  }
}

.cardFlip .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 25px;
}

/* @media (max-width: 1084px) {
  .cardFlip .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} */
/* editing to have cards stack at tablet */
@media (max-width: 1084px) {
  .cardFlip .card-grid {
    grid-template-columns: 1fr;
  }
}

.cardFlip .card {
  margin: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.cardFlip .m-content-placement-item.f-size-large.card.card-hero {
  grid-column: 1/-1;
  aspect-ratio: 693 / 800;
}

@media screen and (min-width: 768px) {
  .cardFlip .m-content-placement-item.f-size-large.card.card-hero {
    aspect-ratio: 1083 / 609;
  }

  .cardFlip .m-content-placement-item.f-size-large.card.card-hero .slide-content {
    width: 100%;
    height: fit-content;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
  }

  .cardFlip .m-content-placement-item.f-size-large.card.card-hero .slide-content .c-heading-3 {
    font-size: 46px;
    line-height: 56px;
  }
}

@media screen and (min-width: 1084px) {
  .cardFlip .m-content-placement-item.f-size-large.card.card-hero {
    aspect-ratio: 1920 / 720;
  }

  .cardFlip .m-content-placement-item.f-size-large.card.card-hero .slide-content .c-subheading-4 {
    font-size: 24px;
    line-height: 28px;
    padding: 4px 0 2.3632px;
  }
}

.cardFlip .m-content-placement-item.f-size-large.card.card-hero img {
  max-width: 100%;
}

/* Card flip CSS additions for gaming co-pilot page */
.cardFlip .m-content-placement-item .storeButtons a.c-call-to-action.f-image {
  height: 70px;
  margin-top: 0px;
}
@media screen and (max-width: 1300px) {
  .cardFlip .m-content-placement-item .storeButtons a.c-call-to-action.f-image {
    height: 50px;
  }
}
/* edits for having cards stack at tablet */
@media screen and (min-width: 1084px) and (max-width: 1400px) {
  .cardFlip .m-content-placement-item.f-size-large.card .card-inner .card-back .slide-content {
    padding: 16px 14px 14px 14px;
  }
  .cardFlip .m-content-placement-item.f-size-large.card .card-inner .card-back .slide-content.high-contrast .c-call-to-action.f-lightweight.c-glyph.sfLink{
    padding: 4px 0 0 0;
  }
}
@media screen and (min-width: 768px) and (max-width: 1084px) {
  .cardFlip .m-content-placement-item.f-size-large.card {
    max-height: 60vw;
    max-width: 60vw;
    margin: 0 auto;
  }
  .cardFlip .m-content-placement-item.f-size-large.card .card-inner .card-back .slide-content {
    padding: 32px 27px 16px 30px;
  }
}
@media screen and (max-width: 425px) {
  .cardFlip .m-content-placement-item.f-size-large.card .card-inner .card-back .slide-content {
    padding: 16px 14px 14px 14px;
  }
  .cardFlip .m-content-placement-item.f-size-large.card .card-inner .card-back .slide-content.high-contrast .c-call-to-action.f-lightweight.c-glyph.sfLink{
    padding: 4px 0 0 0;
  }
}

/* Add open button to card-front */
.cardFlip .m-content-placement-item .slide-content h3 {
  position: relative;
  display: block;              /* override previous display:flex */
  width: 100%;
  padding-right: calc(1em + 24px); /* icon width + 24px min gap */
}

.cardFlip .m-content-placement-item .slide-content img.openBtn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;    /* match the heading’s font size; adjust as needed */
  height: auto;
}

/* Sneak slider adjustments for co-pilot page */
@media screen and (max-width: 768px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 750px;
  }
}
@media screen and (max-width: 700px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 700px;
  }
}
@media screen and (max-width: 650px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 650px;
  }
}
@media screen and (max-width: 600px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 610px;
  }
}
@media screen and (max-width: 550px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 580px;
  }
}
@media screen and (max-width: 500px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 560px;
  }
}
@media screen and (max-width: 450px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 540px;
  }
  .stealth-carousel .stealth-sub-carousel .storeButtons a.c-call-to-action.f-image {
    height: 40px;
  }
}
@media screen and (max-width: 400px) {
  .stealth-carousel .stealth-sub-carousel {
    min-height: 530px;
  }
  .stealth-carousel .stealth-sub-carousel .storeButtons a.c-call-to-action.f-image {
    height: 30px;
  }
}

.stealth-carousel .stealth-sub-carousel .storeButtons {
  padding-top: 12px;
}


/* ======== FAQ for co-pilot gaming page ======== */
.faq-mwf .c-list .c-paragraph-2 {
  padding-left: 0;
}
.faq-mwf .c-drawer .c-list {
  margin-left: 48px;
}