/* ═══════════════════════════════════════
   MOBILE PAGE — mobile.css
   ═══════════════════════════════════════ */

/* ── Page wrapper ── */
.content-outer {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* ══════════════════════════════
   iPad CSS Frame
══════════════════════════════ */
.ipad-frame {
  position: relative;
  background: #fff;
  border-radius: 28px;
  /* left bezel wider for camera, right bezel wider for home button */
  padding: 18px 52px 18px 28px;
  box-shadow: 0 0 0 2px #a2a49f, 0 8px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin: 40px auto 30px;
  box-sizing: border-box;
}

/* Camera dot — left side */
.ipad-camera {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #888, #444);
  box-shadow: 0 0 0 1px #666;
}

/* Home button — right side */
.ipad-home {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  border: 2px solid #999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Screen bezel */
.ipad-screen {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #888;
}

/* ══════════════════════════════
   Slider wrapper (green area)
══════════════════════════════ */
.andesoft-slider-wrap {
  background: #dde7a0;
  position: relative;
}

/* ══════════════════════════════
   Slider inner
══════════════════════════════ */
.andesoft-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ══════════════════════════════
   Slides
══════════════════════════════ */
.as-slide {
  display: none;
  flex-direction: row;
  align-items: stretch;
}

.as-slide.active {
  display: flex;
  animation: asFade 0.35s ease;
}

@keyframes asFade {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Image column */
.as-slide-img {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 12px 28px 28px;
}

.as-slide-img img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(2px 6px 14px rgba(0, 0, 0, 0.2));
}

/* Content column */
.as-slide-content {
  flex: 1;
  padding: 36px 32px 36px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Arial, sans-serif;
  overflow-y: auto;
}

.as-slide-content h2 {
  font-size: 1.75rem;
  font-weight: 400;
  color: #2a2a2a;
  margin: 0 0 14px;
}

.as-slide-content p {
  font-size: 0.85rem;
  color: #2a2a2a;
  line-height: 1.65;
  margin: 0 0 10px;
}

/* App slide inline image */
.app-slider-img {
  max-width: 55%;
  max-height: 420px;
  margin-top: 10px;
}

.as-slide-content ul {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
}

.as-slide-content ul li {
  font-size: 0.83rem;
  color: #2a2a2a;
  padding: 3px 0 3px 22px;
  position: relative;
  line-height: 1.5;
}

.as-slide-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #5b7fcb;
}

/* ══════════════════════════════
   Nav arrows
══════════════════════════════ */
.as-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5b7fcb;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}

.as-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7);
}

.as-nav.prev {
  left: 8px;
}
.as-nav.next {
  right: 8px;
}

/* ══════════════════════════════
   Dots
══════════════════════════════ */
.as-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 12px;
}

.as-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b0b0b0;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.as-dot.active {
  background: #444;
  transform: scale(1.2);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

/* Tablet: shrink bezel padding */
@media (max-width: 860px) {
  .ipad-frame {
    border-radius: 20px;
    padding: 14px 42px 14px 22px;
  }
  .ipad-camera {
    width: 7px;
    height: 7px;
    left: 8px;
  }
  .ipad-home {
    width: 22px;
    height: 22px;
    right: 9px;
  }

  .as-slide-img {
    padding: 20px 8px 20px 20px;
  }
  .as-slide-content {
    padding: 24px 20px 24px 10px;
  }
  .as-slide-content h2 {
    font-size: 1.4rem;
  }
  .as-slide-content p,
  .as-slide-content ul li {
    font-size: 0.8rem;
  }
}

/* Mobile: stack vertically, drop iPad frame styling */
@media (max-width: 600px) {
  .content-outer {
    padding: 0 12px;
  }

  .ipad-frame {
    border-radius: 14px;
    padding: 10px; /* equal padding, no camera/home on sides */
  }
  .ipad-camera,
  .ipad-home {
    display: none;
  } /* hide on mobile — frame too small */

  .as-slide.active {
    flex-direction: column;
  }

  .as-slide-img {
    flex: none;
    padding: 20px 20px 0;
    justify-content: center;
  }

  .as-slide-img img {
    max-height: 200px;
  }

  .as-slide-content {
    padding: 16px 20px 20px;
  }

  .as-slide-content h2 {
    font-size: 1.2rem;
  }
  .as-slide-content p,
  .as-slide-content ul li {
    font-size: 0.78rem;
  }

  /* Move nav arrows to beside the image */
  .as-nav {
    top: 110px;
    transform: none;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .ipad-frame {
    border-radius: 10px;
    padding: 8px;
  }
  .as-slide-content h2 {
    font-size: 1.05rem;
  }
  .as-slide-content p,
  .as-slide-content ul li {
    font-size: 0.73rem;
  }
  .as-slide-img img {
    max-height: 160px;
  }
}
