/* ==========================================================
   CAHS Hero Component
   ========================================================== */

.cahs-hero {
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    padding: 80px 5vw;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.90),
            rgba(0,0,0,.65),
            rgba(0,0,0,.30)
        ),
        url("https://castellalun.com/wp-content/uploads/2024/07/Images-Campus-Main-Entrance.webp");
    background-size: cover;
    background-position: center;
}

.cahs-hero-inner {
    width: 100%;
    max-width: 1700px;
    margin: auto;
}

/* Typography */

.cahs-kicker {
    color: #e4b429;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-weight: 700;
    margin-bottom: 20px;
}

.cahs-hero h1 {
    margin: 0;
    line-height: .95;
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 800;
}

.cahs-hero .cahs-title-white {
    color: #ffffff !important;
}

.cahs-hero .cahs-title-gold {
    color: #e4b429 !important;
}

.cahs-intro {
    max-width: 600px;
    margin: 28px 0 50px;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Slider */

.cahs-slider-wrap {
    position: relative;
}

.cahs-card-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.cahs-card-track::-webkit-scrollbar {
    display: none;
}

/* Cards */

.cahs-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    min-height: 330px;
    padding: 30px;
    border-radius: 18px;
    box-sizing: border-box;
    background: rgba(18,18,18,.92);
    backdrop-filter: blur(12px);
    border-top: 8px solid #e4b429;
    transition: .3s;
}

.cahs-card:hover {
    transform: translateY(-8px);
    background: #181818;
}

.cahs-card h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.8rem;
}

.cahs-card p {
    line-height: 1.6;
    opacity: .9;
}

.cahs-card a {
    display: inline-block;
    margin-top: 30px;
    color: #e4b429;
    text-decoration: none;
    font-weight: bold;
}

/* Arrows */

.cahs-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 20;
    transition: .25s;
}

.cahs-slider-btn:hover {
    background: #e4b429;
    color: #000000;
}

.cahs-slider-btn-prev {
    left: -28px;
}

.cahs-slider-btn-next {
    right: -28px;
}

/* Mobile */

@media (max-width: 768px) {
    .cahs-hero {
        padding: 50px 20px;
    }

    .cahs-hero h1 {
        font-size: 3rem;
    }

    .cahs-card {
        flex: 0 0 88vw;
        min-height: 420px;
    }

    .cahs-slider-btn {
        bottom: -15px;
        top: auto;
        transform: none;
    }

    .cahs-slider-btn-prev {
        left: 10px;
    }

    .cahs-slider-btn-next {
        right: 10px;
    }
}