/* Custom Hero Slider - Frontend Styles (v6) */
.chs-hero-slider {
    position: relative;
    width: 100%;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Top row: sidebar + image */
.chs-hero-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 88vh;
    min-height: 500px;
    overflow: hidden;
}

/* Sidebar — transparent column next to image */
.chs-sidebar {
    position: relative;
    flex-shrink: 0;
    width: 75px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: transparent;
}

/* Navigation button group — stacked at top */
.chs-nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 75px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.25s ease;
    padding: 0;
    margin: 0;
}

.chs-nav-btn:hover {
    opacity: 0.85;
}

.chs-nav-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: -4px;
}

/* Top button: solid black with white arrow */
.chs-nav-next {
    background: #111;
    color: #fff;
}

/* Bottom button: light grey with dark arrow */
.chs-nav-prev {
    background: #e9eaee;
    color: #111;
}

.chs-nav-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 1;
}

/* Scroll text — vertical, sits in sidebar below buttons */
.chs-scroll-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #111;
    margin: 36px auto 0;
    white-space: nowrap;
    align-self: center;
}

/* Slides wrapper — takes remaining space */
.chs-slides-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Slides */
.chs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.chs-slide.chs-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.chs-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.chs-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optional slide content overlay (kept available, hidden by default visually clean) */
.chs-slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    z-index: 3;
    pointer-events: none;
    display: none;
}

/* Transition: slide mode helpers */
.chs-slide.chs-slide-enter-right { transform: translateX(100%); opacity: 1; visibility: visible; }
.chs-slide.chs-slide-enter-left  { transform: translateX(-100%); opacity: 1; visibility: visible; }
.chs-slide.chs-slide-exit-right  { transform: translateX(100%); opacity: 1; visibility: visible; }
.chs-slide.chs-slide-exit-left   { transform: translateX(-100%); opacity: 1; visibility: visible; }

/* Lazy loading */
.chs-slide-img.chs-lazy { filter: blur(8px); transition: filter 0.4s ease; }
.chs-slide-img:not(.chs-lazy) { filter: blur(0); }

/* Numbered pagination — centered under image */
.chs-pagination {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    padding: 40px 24px 48px;
    background: #fff;
}

.chs-page-btn {
    background: transparent;
    border: none;
    padding: 0 0 14px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 2px;
    color: #b8b8b8;
    border-bottom: 1.5px solid #d8d8d8;
    min-width: 72px;
    text-align: center;
    transition: color 0.25s ease, border-color 0.25s ease, border-width 0.25s ease;
}

.chs-page-btn:hover { color: #555; }

.chs-page-btn.chs-page-active {
    color: #111;
    border-bottom: 3px solid #111;
    padding-bottom: 12.5px;
}

.chs-page-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 4px;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .chs-hero-row { height: 75vh; }
    .chs-sidebar { width: 75px; }
    .chs-nav-btn { height: 88px; }
    .chs-nav-btn svg { width: 30px; height: 30px; }
    .chs-pagination { gap: 40px; padding: 32px 20px 36px; }
    .chs-page-btn { min-width: 56px; font-size: 11px; }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    .chs-hero-row { height: 60vh; min-height: 360px; }
    .chs-sidebar { width: 60px; }
    .chs-nav-btn { height: 64px; }
    .chs-nav-btn svg { width: 22px; height: 22px; }
    .chs-scroll-text { display: none; }
    .chs-pagination { gap: 24px; padding: 24px 16px 28px; }
    .chs-page-btn { min-width: 44px; font-size: 10px; letter-spacing: 1.5px; padding-bottom: 10px; }
    .chs-page-btn.chs-page-active { padding-bottom: 8.5px; }
}
