/* Apple Style Slider – assets/css/slider.css */

.apple-slider-wrap {
    margin: 0;
    padding: 56px 0 48px;
    background: #f5f5f7;
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

/* Header */
.apple-slider-header {
    padding: 0 40px 32px;
}
.apple-slider-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #6e6e73;
    margin: 0 0 4px;
}
.apple-slider-headline {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.028em;
    color: #1d1d1f;
    margin: 0 0 10px;
}
.apple-slider-subline {
    font-size: 17px;
    line-height: 1.52;
    color: #6e6e73;
    margin: 0;
    max-width: 560px;
}

/* Track */
.apple-slider-stage {
    overflow: hidden;
}
.apple-slider-track {
    display: flex;
    gap: 16px;
    padding: 0 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: flex-start;
}
.apple-slider-track::-webkit-scrollbar { display: none; }

/* Each slide: image on top, text below — NO card box */
.apple-slider-slide {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

/* Image area — rounded box, no bottom text inside */
.apple-slider-img {
    width: 100%;
    aspect-ratio: 3 / 2.2;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e5ea;
    flex-shrink: 0;
    margin-bottom: 14px;
}
.apple-slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text outside the image */
.apple-slider-text {
    padding: 0 2px;
}
.apple-slider-text p {
    font-size: 15px;
    line-height: 1.45;
    color: #1d1d1f;
    margin: 0;
}
.apple-slider-text strong {
    font-weight: 700;
}
.apple-slider-label {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 8px;
    display: block;
}

/* Controls — only shown when scrollable via JS */
.apple-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 40px 0;
    visibility: hidden;
}
.apple-slider-controls.is-visible {
    visibility: visible;
}

.apple-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #c7c7cc;
    background: #fff;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.apple-slider-btn:hover { background: #e8e8ed; }
.apple-slider-btn:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.apple-slider-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.apple-slider-btn svg { width: 14px; height: 14px; display: block; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .apple-slider-wrap     { background: #000; }
    .apple-slider-headline { color: #f5f5f7; }
    .apple-slider-eyebrow,
    .apple-slider-subline  { color: #a1a1a6; }
    .apple-slider-img      { background: #2c2c2e; }
    .apple-slider-text p   { color: #f5f5f7; }
    .apple-slider-label    { color: #a1a1a6; }
    .apple-slider-btn      { background: #1c1c1e; border-color: #3a3a3c; color: #f5f5f7; }
    .apple-slider-btn:hover{ background: #2c2c2e; }
}

/* Responsive */
@media (max-width: 900px) {
    .apple-slider-slide { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 600px) {
    .apple-slider-wrap   { padding: 40px 0 36px; }
    .apple-slider-header { padding: 0 20px 24px; }
    .apple-slider-track  { padding: 0 20px; gap: 12px; }
    .apple-slider-controls { padding: 16px 20px 0; }
    .apple-slider-slide  { flex: 0 0 80vw; }
}

@media (prefers-reduced-motion: reduce) {
    .apple-slider-btn { transition: none; }
}

.apple-slider-empty {
    padding: 32px 40px;
    font-size: 15px;
    color: #6e6e73;
}
