:root {
  --aiv-card-width: 312px;
  --aiv-radius-lg: 10px;
  --aiv-color-surface: #ffffff;
  --aiv-color-border: #e8e8e8;
  --aiv-color-title: #26272a;
  --aiv-color-text: #37393f;
  --aiv-color-accent: #0060ff;
  --color-primary: #0060ff;
  --aiv-shadow-hover: 0px 2px 27.7px rgba(89, 114, 179, 0.25);
  --primary-shadow: 0px 2px 27.7px rgba(89, 114, 179, 0.25);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.aiv-link {
  color: #0060ff !important;
  /* text-decoration: underline; */
  cursor: pointer;
}
.aiv-label-medium {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  color: #ffffff;
}
.flex-box {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}
.flex-box-item {
  flex: 1;
  box-sizing: border-box;
}
.aiv-card_link_icon{
  display: none;
}
.aiv-card__blog__link{
  color: #0060FF !important;
  text-decoration: none;
  position: absolute;
  bottom: 20px;
  left: 20px;
}
.aiv-card__blog__link::after {
  content: "\2192";
  position: absolute;
  top: 60%;
  right: -20px;
  transform: translateY(-52%);
  font-size: 14px;
  transition: transform 0.3s ease;
}
.aiv-card__blog__link:hover::after {
  transform: translateX(12px);
}
/* .aiv-card_link_icon::after {
  color: #939393;
  content: "\e640";
  font-family: iconfont_dg;
  display: inline-block;
  margin-left: 0.5em;
  font-size: 10px;
} */
.aiv-page__main {
  /* padding: 32px 16px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

.aiv-card {
  width: var(--aiv-card-width);
  border-radius: var(--aiv-radius-lg);
  background-color: var(--aiv-color-surface);
  border: 1px solid var(--aiv-color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* margin-bottom: 15px; */
}
.aiv-card:hover {
  box-shadow: var(--aiv-shadow-hover,0px 2px 27.7px rgba(89, 114, 179, 0.25));
  cursor: pointer;
}
.aiv-card:hover .aiv-card__image{
  transform: scale(1.05);
}
.aiv-card__media {
  margin: 0;
}

.aiv-card__image {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.aiv-card__content {
  padding: 22px 22px;
}

.aiv-card__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--aiv-color-title);
  letter-spacing: 0.01em;
}

.aiv-card__list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.aiv-card__item {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.43;
  color: var(--aiv-color-text);
}

.aiv-card__item + .aiv-card__item {
  margin-top: 10px;
}

.aiv-card__item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #9ca3af;
}

.aiv-card__actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.aiv-card__link {
  font-size: 14px;
  font-weight: 500;
  color: #939393;
  transition: color 0.2s ease, transform 0.2s ease;
}

.aiv-card__link--primary {
  color: var(--aiv-color-accent);
  position: relative;
  padding-right: 18px;
}

.aiv-card__link--primary::after {
  content: "\2192";
  position: absolute;
  top: 60%;
  right: 0;
  transform: translateY(-52%);
  font-size: 14px;
}

.aiv-card__link:hover {
  color: var(--aiv-color-accent);
  text-decoration: dashed;
}
.aiv-card__link--primary:hover {
  /* text-decoration: underline; */
}
.aiv-card:hover .aiv-card__title {
  color: var(--color-primary);
}
.aiv-header-quote h1 {
  padding-top: 163px;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 65px;
  line-height: 89px;
  color: #ffffff;
}
.aiv-header-quote p {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 80px;
  color: #ffffff;
}
.aiv-quote-content {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 10px;
}

/* Carousel Container */
.aiv-capability-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aiv-capability-carousel__wrapper {
  position: relative;
  width: 100%;
}

.aiv-capability-carousel__container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Width is auto-calculated based on number of slides */
}

.aiv-capability-carousel__slide {
  width: 100%; /* Full width of carousel wrapper */
  flex-shrink: 0;
}

.aiv-capability-carousel__slide:not(.aiv-capability-carousel__slide--active) {
  opacity: 0.7;
}

.aiv-capability {
  display: flex;
  justify-content: flex-start;
  gap: 36px;
  align-items: stretch;
}

/* Navigation Arrows */
.aiv-capability-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #242631;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.8;
}

.aiv-capability-carousel__nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1) translateX(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.aiv-capability-carousel__nav--prev {
  left: -24px;
  transform: translateY(-50%) translateX(-100%);
  animation: slideInLeft 0.5s ease-out forwards;
}

.aiv-capability-carousel__nav--next {
  right: -24px;
  transform: translateY(-50%) translateX(100%);
  animation: slideInRight 0.5s ease-out forwards;
}

.aiv-capability-carousel__nav--prev:hover {
  transform: translateY(-50%) translateX(-8px) scale(1.1);
}

.aiv-capability-carousel__nav--next:hover {
  transform: translateY(-50%) translateX(8px) scale(1.1);
}

/* Keyframe animations for navigation arrows */
@keyframes slideInLeft {
  from {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 0.8;
  }
}

@keyframes slideInRight {
  from {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 0.8;
  }
}

/* Show arrows on carousel hover */
.aiv-capability-carousel:hover .aiv-capability-carousel__nav {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Dots Indicator */
.aiv-capability-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.aiv-capability-carousel__dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(36, 38, 49, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.aiv-capability-carousel__dot--active {
  background: #242631;
  width: 40px;
}

.aiv-capability-carousel__dot:hover {
  background: rgba(36, 38, 49, 0.6);
  width: 36px;
}

/* Responsive Design for Carousel */
@media (max-width: 1024px) {
  .aiv-capability {
    gap: 24px;
  }
  
  .aiv-capability-carousel__nav {
    width: 40px;
    height: 40px;
  }
  
  .aiv-capability-carousel__nav--prev {
    left: -20px;
  }
  
  .aiv-capability-carousel__nav--next {
    right: -20px;
  }
}

@media (max-width: 768px) {
  .aiv-capability {
    flex-direction: column;
    gap: 20px;
  }
  
  .aiv-capability__card {
    max-width: 100%;
  }
  
  .aiv-capability-carousel__nav {
    width: 36px;
    height: 36px;
  }
  
  .aiv-capability-carousel__nav--prev {
    left: -18px;
  }
  
  .aiv-capability-carousel__nav--next {
    right: -18px;
  }
  
  .aiv-capability-carousel__dots {
    margin-top: 30px;
  }
}

.aiv-capability__card {
  width: 408px !important;
  height: 380px !important;
  flex-shrink: 0;
  position: relative;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.aiv-capability__media {
  margin: 0;
  border-radius: 0;
  width: 408px !important;
  height: 310px !important;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.aiv-capability__image {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  object-fit: cover;
  display: block;
}
.aiv-capability__card:hover .aiv-capability__image{
  transition: transform 0.3s ease;
  transform: scale(1.05);
}
.aiv-capability__overlay {
  position: relative;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  padding: 0 !important;
  height: 70px;
  background: #F7F7F7 !important;
  padding: 15px 50px !important;
}

.aiv-capability__headline {
  font-family: 'HarmonyOS Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #242631;
  letter-spacing: 0.02em;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aiv-capability__headline svg{
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.aiv-capability__headline:hover svg{
  transform: translateX(10px);
}
.aiv-capability__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  background: linear-gradient(180deg, #F7F7F7 35%, #F0F5FB 100%);
  box-shadow: 0 30px 60px -30px rgba(30, 64, 175, 0.45);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  justify-content: center;
  opacity: 1;
  transform: translateY(650px);
  pointer-events: none;
  transition: opacity 0.78s ease, transform 0.7s ease;
}

.aiv-capability__panel-title {
  margin: 0 0 12px;
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 600;
  color: #1f2937;
}

.aiv-capability__list {
  margin: 0 30px;
  padding-left: 18px;
  font-size: clamp(13px, 3vw, 15px);
  line-height: 1.52;
  color: #4b5563;
  list-style: none;
}
.aiv-capability__list li {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  list-style: none;
  position: relative;
  padding-left: 20px;
}
.aiv-capability__list li::before {
  content: '✓';
  position: absolute;
  left: 0px;
  color: #0060FF;
  font-weight: bold;
}
.aiv-capability__item {
  margin-bottom: 4px;
}

.aiv-capability__item:last-child {
  margin-bottom: 0;
}

.aiv-capability__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(14px, 3vw, 15px);
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-left: 60px;
  margin-top: 10px;
}

.aiv-capability__link::after {
  content: "→";
  font-size: 15px;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}
.aiv-capability__link:hover::after {
  transform: translateY(-1px) translateX(10px);
}
.aiv-capability__link:hover {
  color: #0060ff;
}

.aiv-capability__card:hover .aiv-capability__headline,
.aiv-capability__card:focus-within .aiv-capability__headline {
  /* opacity: 0; */
  transition-delay: 0s;
}

.aiv-capability__card:hover .aiv-capability__panel,
.aiv-capability__card:focus-within .aiv-capability__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .aiv-capability {
    padding: 32px 12px;
  }

  .aiv-capability__card {
    border-radius: 18px;
  }

  .aiv-capability__panel {
    border-radius: 18px;
  }
}

/* FAQ Section */

.faq-item {
  border-radius: 12px;

  margin-bottom: 20px;
  border: 1px solid #E5E5E5;

  overflow: hidden;

  /* transition: all 0.3s ease; */

  /*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/
}

.faq-item.active {
  /* border-color:#0060FF; */

  border: 1px solid #E5E5E5;
  box-shadow: 0px 2px 17.9px rgba(118, 141, 201, 0.25);
  /* border:2px solid #0060FF; */
}

.faq-item:hover {
  /* border-color:#0060FF; */
  /* border:2px solid #0060FF; */
  box-shadow: 0px 2px 17.9px rgba(118, 141, 201, 0.25);
  border: 1px solid #E5E5E5;

}

.faq-question {
  font-size: 18px;

  font-weight: 500;

  color: #000000;

  line-height: 1.4;

  padding: 25px 30px;

  margin: 0;

  cursor: pointer;

  background: white;

  border: none;

  width: 100%;

  text-align: left;

  position: relative;

  transition: all 0.3s ease;
}

.faq-question:hover {
  /* background: #f8fcfc; */

  color: #0060ff;
}

.faq-item.active .faq-question {
  /* background: #f8fcfc; */

  color: #0060ff;
}

.faq-question:after {
  content: "";

  background-image: url("/aivon/static/img/activity/invite/arrow_down.png");

  width: 24px;

  height: 24px;

  position: absolute;

  right: 30px;

  top: 50%;

  transform: translateY(-50%) rotate(0deg);

  font-size: 16px;

  color: #0060ff;

  transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  background: white;

  padding: 0 30px;
  font-size: 14px;
  max-height: 0;

  overflow: hidden;

  transition: max-height 0.4s ease, padding 0.4s ease;

  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 600px;

  padding: 25px 30px 30px;

  opacity: 1;

  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.2s ease 0.1s;
}

.faq-answer-content {
  color: #5a6c70;

  font-size: 16px;

  line-height: 1.6;

  margin: 0;
}

.faq-answer-content p {
  margin-bottom: 15px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-section {
  padding: 0px 0;

  background: #fff;
}

.faq-container {
  max-width: 1300px;

  margin: 0 auto;

}

.faq-title {
  text-align: center;

  font-size: 32px;

  font-weight: 700;

  margin-bottom: 40px;

  color: #2b2b2b;
}

.faq-item {
  border-radius: 6px;

  margin-bottom: 18px;

  overflow: hidden;
}

.faq-item-border {
  border: 1px solid #d9d9d9;
}

.faq-question {
  background: #fff;

  padding: 20px 30px;

  cursor: pointer;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 16px;

  color: #262c2d;

  transition: background 0.3s;
}

.faq-question:hover {
  /* background: #f8f9fa; */
}

.faq-arrow {
  width: 24px;

  height: 24px;

  transform: rotate(0deg);

  transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;

  max-height: 0;

  overflow: hidden;

  transition: max-height 0.3s, padding 0.3s;

  background: #f8f9fa;
}

.faq-item.active .faq-answer {
  font-size: 16px;
  padding: 20px 30px;
}

/* workflow */

.aiv-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2em;
}

.aiv-workflow__container {
  width: 100%;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 50px;
}

/* 左侧边栏 */
.aiv-workflow__sidebar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.aiv-workflow__divider {
  width: 2px;
  height: 280px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.8) 50%,
    rgba(37, 99, 235, 0) 100%
  );
}

.aiv-workflow__login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.aiv-workflow__login-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.aiv-workflow__login-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #0060ff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6%;
  transition: all 0.3s ease;
}

.aiv-workflow__login-btn:hover {
}

/* 内容区域 */
.aiv-workflow__content {
  flex: 1;
}

.aiv-workflow__steps {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  min-width: max-content;
}

.aiv-workflow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 110px;
}

.aiv-workflow__step-icon {
  width: 59px;
  height: 59px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.aiv-workflow__step:hover .aiv-workflow__step-icon {
  /* transform: scale(1); */
}

.aiv-workflow__step-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  height: 48px;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  /* or 171% */
  text-align: center;

  color: #37393f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aiv-workflow__arrow {
  font-size: 24px;
  flex-shrink: 0;
  text-align: end;
  height: 118px;
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0;
  font-weight: 500;
  color: #929292;
  display: flex; /* 启用 Flexbox */
  flex-direction: column;
  justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .aiv-workflow__container {
    padding: 40px 50px;
    gap: 40px;
  }

  .aiv-workflow__steps {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .aiv-workflow__container {
    flex-direction: column;
    padding: 40px 30px;
    gap: 40px;
  }

  .aiv-workflow__sidebar {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .aiv-workflow__divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(37, 99, 235, 0) 0%,
      rgba(37, 99, 235, 0.8) 50%,
      rgba(37, 99, 235, 0) 100%
    );
  }

  .aiv-workflow__login {
    flex-direction: row;
    gap: 20px;
  }

  .aiv-workflow__content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .aiv-workflow {
    padding: 40px 16px;
  }

  .aiv-workflow__container {
    padding: 30px 20px;
    gap: 30px;
  }

  .aiv-workflow__steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .aiv-workflow__arrow {
    display: none;
  }

  .aiv-workflow__step {
    width: calc(50% - 12px);
    min-width: 120px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .aiv-workflow__divider {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .aiv-workflow__container {
    padding: 24px 16px;
  }

  .aiv-workflow__step {
    width: 100%;
  }

  .aiv-workflow__login-btn {
    padding: 10px 24px;
    font-size: 15px;
  }

  .aiv-workflow__step-label {
    font-size: 13px;
  }
}

.aiv-curst__left {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px 22px 20px 38px;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  /* or 157% */

  color: #26272a;
}
.aiv-curst__left p {
  margin-bottom: 10px;
}
/* AIV Stats Section - 遵循 BEM 规范 */

.aiv-stats {
  padding: 48px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.aiv-stats__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.aiv-stats__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.aiv-stats__number {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 31px;
  /* or 103% */

  color: #0060ff;

  transform: rotate(-0.02deg);
}

.aiv-stats__label {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 31px;
  /* or 221% */

  color: #37393f;

  line-height: 1.4;
}

.aiv-stats__divider {
  flex: 1;
  text-align: center;
  height: 50px;
  color: #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aiv-stats__divider-line {
  width: 1px;
  height: 50px;
  background-color: #afafaf;
}
/* 响应式设计 */
@media (max-width: 992px) {
  .aiv-stats {
    padding: 40px 16px;
  }
  .aiv-stats__container {
    gap: 30px;
  }
  .aiv-stats__number {
    font-size: 28px;
  }
  .aiv-stats__label {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .aiv-stats {
    padding: 32px 16px;
  }

  .aiv-stats__container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .aiv-stats__item {
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
  }

  .aiv-stats__divider {
    display: none;
  }

  .aiv-stats__number {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .aiv-stats {
    padding: 28px 16px;
  }

  .aiv-stats__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .aiv-stats__item {
    width: 100%;
  }

  .aiv-stats__number {
    font-size: 24px;
  }

  .aiv-stats__label {
    font-size: 12px;
  }
}

/* aiv gallery - inline styles to allow copy/paste in a single file */
.aiv-gallery {
  padding-top: 58px;
  height: 480px;
  position: relative;
  overflow: hidden;
}

.aiv-gallery__container {
  width: 100%;
  /* height: 400px; */
  max-width: 700px; /* increased to accommodate 580px image width */
  margin: 0 auto;
  position: relative;
}

/* soft vignettes on both sides */
.aiv-gallery__container::before,
.aiv-gallery__container::after {
  content: none !important; /* hide edge vignettes */
}
.aiv-gallery__container::before {
  left: -140px;
  background: radial-gradient(
    240px 240px at left center,
    rgba(255, 255, 255, 0.06),
    rgba(15, 18, 22, 0)
  );
}
.aiv-gallery__container::after {
  right: -140px;
  background: radial-gradient(
    240px 240px at right center,
    rgba(255, 255, 255, 0.06),
    rgba(15, 18, 22, 0)
  );
}

/* Swiper base */
.aiv-gallery__swiper.swiper-container {
  max-width: 100%; /* accommodate 580px image width */
  margin: 0 auto;
}
.aiv-gallery__wrapper.swiper-wrapper {
  align-items: center;
}
.aiv-gallery__slide.swiper-slide {
  /* fixed size 580*460 */
  width: 580px;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent; /* no hard box background */
  box-shadow: none; /* base without visible border/shadow */
}
.aiv-gallery__wrapper .swiper-slide {
  z-index: 1;
  transition: box-shadow 320ms ease, transform 320ms ease, filter 320ms ease;
}
.aiv-gallery__wrapper .swiper-slide-prev,
.aiv-gallery__wrapper .swiper-slide-next {
  z-index: 2;
}
.aiv-gallery__wrapper .swiper-slide-active {
  z-index: 3;
}
.aiv-gallery__img {
  width: 580px;
  height: 460px;
  object-fit: none;
  display: block;
  transition: transform 320ms ease;
  transform-origin: center center;
}

/* video media with semi-transparent overlay */
.aiv-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aiv-gallery__slide--video {
  position: relative;
}
.aiv-gallery__slide--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28); /* semi-transparent mask */
  pointer-events: none;
  transition: background 240ms ease;
}
.swiper-slide-active.aiv-gallery__slide--video::after {
  /* background: rgba(0, 0, 0, 0.12);  */
}

/* make previous/next slides slightly smaller */
.swiper-slide-prev .aiv-gallery__img,
.swiper-slide-next .aiv-gallery__img {
  transform: scale(0.9);
  filter: brightness(0.92) saturate(0.95);
}
/* vertical stack effect: translate neighbors behind the active card - show small portion */
.swiper-slide-prev {
  transform: translateY(calc(80% - 15px)) translateZ(-50px);
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); */
}
.swiper-slide-next {
  transform: translateY(calc(-80% + 15px)) translateZ(-50px);
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); */
}
.swiper-slide-active {
  transform: translateZ(0);
  /* box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42); */
}

/* Custom arrows */
.aiv-gallery__nav.swiper-button-prev,
.aiv-gallery__nav.swiper-button-next {
  width: 12px;
  height: 12px;
  color: #0060ff;
  /* backdrop-filter: blur(1px); */
  background-color: rgba(32, 32, 32, 0.73);
  transition: all 0.3s ease;
  border-radius: 100%;
  padding: 22px;
  /* background: rgba(32, 32, 32, 0.73); */
  border: 1px solid rgba(120, 120, 120, 0.88);
}
.swiper-button-next, .swiper-button-prev{
  background-size: 22px 22px !important;
}
/* .aiv-gallery__nav:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
} */
.aiv-gallery__nav::after {
  font-size: 10px; /* larger arrow size */
  font-weight: 600;
}
.aiv-gallery__nav.swiper-button-prev {
  left: -36px;
  z-index: 900;
}
.aiv-gallery__nav.swiper-button-next {
  
  right: -36px;
}

/* pagination bullets (optional, hidden by default but kept for accessibility) */
.aiv-gallery__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.aiv-gallery__pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* removed mobile adjustments - desktop only */
