.ins-video-banner__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ins-video-banner__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding-top: clamp(2.511rem, -0.399rem + 12.416vw, 14.5rem);
}

.ins-video-banner__header {
  text-align: center;
  max-width: 65rem;
  margin-bottom:clamp(2.511rem, 1.451rem + 4.52vw, 6.875rem);
}
@media screen and (max-width: 768px) {
  .ins-video-banner__header {
      padding: 0 20px;
  }
}
.ins-video-banner__section .ins-video-banner__subheading {
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(180deg, #E68FFF -61.68%, #683DF5 131.37%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.ins-video-banner__section .ins-video-banner__heading {
  font-size: clamp(2.009rem, 1.477rem + 2.269vw, 4.2rem);
  color: #333;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 130%;
}

.ins-video-banner__paragraph {
  font-size: clamp(0.603rem, 0.457rem + 0.619vw, 1.2rem);
  line-height: 130%;
}

.ins-video-banner__section .ins-video-banner__header p {
  color: #000000;
  margin-bottom: 0;
}

.ins-video-banner__section .ins-video-banner__header strong {
  font-weight: 600;
  color: #000000;
}

.ins-video-banner__content {
  width: 100%;
}

.ins-video-banner__content--full-bleed {
  margin-left: -15px;
  padding-left: 15px;
  margin-right: -15px;
  padding-right: 15px;
  width: calc(100% + 30px);
}

.ins-video-banner__content--full-bleed .ins-video-banner__video-wrapper {
  border-radius: 0;
}

.ins-video-banner__content--full-bleed img,
.ins-video-banner__content--full-bleed video {
  border-radius: 0;
}

.ins-video-banner__content img,
.ins-video-banner__content video {
  width: 100%;
  border-radius: 20px;
}

/* Full-bleed overrides placed after generic rules to ensure precedence */
.ins-video-banner__content.ins-video-banner__content--full-bleed img,
.ins-video-banner__content.ins-video-banner__content--full-bleed video {
  border-radius: 0;
}

.ins-video-banner__video.desktop {
  display: block;
}

.ins-video-banner__video.mobile {
  display: none;
}

.ins-video-banner__button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.ins-video-banner__button {
  padding: 1.5rem;
  background-color: #3D3D3D;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  min-width: 33rem;
  text-align: center;
  border-radius: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ins-video-banner__button:hover {
  background-color: #3D3D3DCC;
}

.ins-video-banner__button-wrapper img {
  margin-left: 1rem;
}

.ins-video-banner__button.hidden,
.ins-video-banner__items.hidden {
  display: none !important;
}

.ins-video-banner__items {
  width: 100vw !important;
  background: #000;
  padding: 58px 0px;
  margin-top: 58px;
  margin-left: -15px;
  padding-left: 15px;
  margin-right: -15px;
  padding-right: 15px;
  width: calc(100% + 30px);
}

.ins-video-banner__item-container {
  margin-left: -15px;
  padding-left: 15px;
  margin-right: -15px;
  padding-right: 15px;
  scroll-padding-inline-start: 15px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ins-video-banner__items .ins-video-banner__items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.ins-video-banner__items .ins-video-banner__items-header span {
  cursor: pointer;
}

.ins-video-banner__items-header .nav-icon {
  display: flex;
  gap: 40px;
}

.ins-video-banner__item-container .ins-video-banner__item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: calc(50% - 10px);
  gap: 40px;
  scroll-snap-align: start;
}

.ins-video-banner__item .ins-video-banner__item-paragraph {
  color: #FFF;
  font-size: 21px;
  line-height: 180%;
  letter-spacing: -0.21px;
}

.ins-video-banner__item .ins-video-banner__item-paragraph strong {
  font-weight: 700;
}

.ins-video-banner__item-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  padding-bottom: var(--aspect-ratio, 56.25%);
}

.ins-video-banner__item-wrapper .ins-video-banner__item-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  background-image: var(--background-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.ins-video-banner__item-video video {
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  object-fit: cover;
}

.ins-video-banner__item-video.desktop {
  display: block;
}

.ins-video-banner__item-video.mobile {
  display: none;
}

.nav-icon-item.disabled {
  cursor: unset;
}

.nav-icon-item.disabled svg {
  opacity: 0.5;
}

/* Fade animations */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-out-down {
  animation: fadeOutDown 0.3s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Responsive styles */
@media screen and (max-width: 1400px) {
  .ins-video-banner__section .ins-video-banner__subheading {
    font-size: 1rem;
  }
  

  
  .ins-video-banner__button {
    min-width: 25rem;
  }
  
  .ins-video-banner__items,
  .ins-video-banner__item-container,
  .ins-video-banner__content--full-bleed {
    margin-left: calc(-1*(100vw - 1300px) / 2);
    padding-left: calc((100vw - 1300px) / 2);
    margin-right: calc(-1*(100vw - 1300px) / 2);
    padding-right: calc((100vw - 1300px) / 2);
  }
  
  .ins-video-banner__item-container {
    scroll-padding-inline-start: calc((100vw - 1300px) / 2);
  }
}

@media screen and (max-width: 1200px) {
  .ins-video-banner__items,
  .ins-video-banner__item-container,
  .ins-video-banner__content--full-bleed {
    margin-left: -50px;
    padding-left: 50px;
    margin-right: -50px;
    padding-right: 50px;
  }
  
  .ins-video-banner__item-container {
    scroll-padding-inline-start: 50px;
  }
}

@media screen and (max-width: 1150px) {
  .ins-video-banner__section .ins-video-banner__subheading {
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 1024px) {
  .ins-video-banner__section .ins-video-banner__subheading {
    font-size: 0.875rem;
  }
  
  .ins-video-banner__button {
    min-width: 25rem;
    width: 100%;
    font-size: 0.875rem;
    padding: 1.25rem;
  }
  
  .ins-video-banner__items,
  .ins-video-banner__item-container,
  .ins-video-banner__content--full-bleed {
    margin-left: -40px;
    padding-left: 40px;
    margin-right: -40px;
    padding-right: 40px;
  }
  
  .ins-video-banner__item-container {
    scroll-padding-inline-start: 40px;
  }
}

@media (max-width: 768px) {
  .ins-video-banner__video.desktop {
    display: none;
  }
  
  .ins-video-banner__video.mobile {
    display: block;
  }
  
  .ins-video-banner__button-wrapper {
    min-width: 288px;
  }
  
  .ins-video-banner__button img {
    width: 0.625rem;
    height: 0.625rem;
  }
  
  .ins-video-banner__button {
    min-width: 0;
    width: 100%;
  }
  
  .ins-video-banner__item-video.desktop {
    display: none;
  }
  
  .ins-video-banner__item-video.mobile {
    display: block;
  }
  
  .ins-video-banner__item-wrapper {
    padding-bottom: var(--mobile-aspect-ratio, 177%);
  }
  
  .ins-video-banner__item-wrapper .ins-video-banner__item-video {
    background-image: var(--mobile-background-image);
  }
  
  .ins-video-banner__items {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 40px;
  }
  
  .ins-video-banner__items .ins-video-banner__items-header {
    margin-bottom: 40px;
  }
  
  .ins-video-banner__item-container {
    gap: 12px;
  }
  
  .ins-video-banner__item-container .ins-video-banner__item {
    gap: 20px;
    min-width: 80%;
  }
}

@media (min-width: 600px) {
  .ins-video-banner__items,
  .ins-video-banner__item-container,
  .ins-video-banner__content--full-bleed {
    margin-left: -20px;
    padding-left: 20px;
    margin-right: -20px;
    padding-right: 20px;
  }
  
  .ins-video-banner__item-container {
    scroll-padding-inline-start: 20px;
  }
}

/* Video Play Control Styles */
.ins-video-banner__video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

/* Ensure wrapper corners are removed when full-bleed is enabled */
.ins-video-banner__content.ins-video-banner__content--full-bleed .ins-video-banner__video-wrapper {
  border-radius: 0;
}

.ins-video-banner__play-control {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #333;
}

.ins-video-banner__play-control:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.ins-video-banner__play-control--playing .ins-video-banner__pause-icon {
  display: block;
}

.ins-video-banner__play-control--playing .ins-video-banner__play-icon {
  display: none;
}

.ins-video-banner__play-control--paused .ins-video-banner__play-icon {
  display: block;
}

.ins-video-banner__play-control--paused .ins-video-banner__pause-icon {
  display: none;
}

.ins-video-banner__play-icon,
.ins-video-banner__pause-icon {
  width: 32px;
  height: 32px;
  display: none;
}

.ins-video-banner__play-control[data-style="minimal"] {
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.ins-video-banner__play-control[data-style="minimal"]:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive play control styles */
@media (max-width: 768px) {
  .ins-video-banner__play-control {
    width: 60px;
    height: 60px;
  }
  
  .ins-video-banner__play-icon,
  .ins-video-banner__pause-icon {
    width: 24px;
    height: 24px;
  }
}

/* --- Final full-bleed override: force real 100vw regardless of parent gutters/max-width --- */
.ins-video-banner__section--full-bleed { 
  padding-left: 0 !important; 
  padding-right: 0 !important; 
  overflow-x: clip; /* prevent horizontal scroll caused by viewport units */
}

.ins-video-banner__section--full-bleed .ins-video-banner__container {
  width: 100%;
  /* 恢复为居中，让 Header 等非 full-bleed 内容保持居中显示 */
  align-items: center;
}

.ins-video-banner__section--full-bleed .ins-video-banner__content {
  position: relative;
  left: auto;
  transform: none;
  /* 100vw 全宽 + 视口水平居中（与其他 full-bleed 区域一致） */
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ins-video-banner__heading + .ins-video-banner__paragraph {
  margin-top: clamp(0.625rem, 0.291rem + 1.424vw, 2rem);
}

/* Helpers: scope-only mobile/desktop visibility for this section */
@media (max-width: 768px) {
  .ins-video-banner__section .only-desktop { display: none !important; }
}
@media (min-width: 769px) {
  .ins-video-banner__section .only-mobile { display: none !important; }
}

/* Mobile: header below content when toggled */
@media (max-width: 768px) {
  .ins-video-banner__container--mobile-below {
    display: flex; /* already flex, keep explicit for safety */
    flex-direction: column;
    padding-top: 0;
  }

  .ins-video-banner__container--mobile-below .ins-video-banner__content {
    order: 1;
  }

  .ins-video-banner__container--mobile-below .ins-video-banner__header {
    order: 2;
    /* when moved below, remove original bottom margin and add top spacing */
    margin-top: 30px;
    margin-bottom: 30px!important;
  }
}