html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Global Shell ===== */
html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cn-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cn-main {
    flex: 1;
}

/* =========================================================
   Global Hero Carousel
   FULL WIDTH – NATURAL HEIGHT – NO CROPPING
   ========================================================= */
.cn-hero-carousel {
    width: 100%;
}

.cn-hero-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slides stacked, inactive removed from layout */
.cn-hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

    /* Active slide defines height */
    .cn-hero-carousel__slide.is-active {
        position: relative;
        opacity: 1;
        pointer-events: auto;
    }

    /* Natural image sizing */
    .cn-hero-carousel__slide img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Arrows overlay */
.cn-hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    user-select: none;
    z-index: 5;
}

    .cn-hero-carousel__arrow:hover {
        background: rgba(0,0,0,.5);
    }

.cn-hero-carousel__arrow--left {
    left: 16px;
}

.cn-hero-carousel__arrow--right {
    right: 16px;
}
