#hero {
    position: relative;
    padding: calc(132px + clamp(3rem, 10vh, 7rem)) 1rem clamp(4rem, 12vh, 8rem);
    z-index: 0;
    /* ensure it's behind any absolutely positioned children */
}

#hero::before {
    content: '';
    position: absolute;
    /* fixed from "display: absolute" */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* light overlay (or use black for darkening) */
    z-index: -1;
    pointer-events: none;
    /* optional: lets you click "through" the overlay */
}

#hero .button-solid {
    margin-top: var(--fontSize48);
}
#hero .mt-none {
    margin-top: var(--bodyFontSize);
}
.hero-contents {
    margin-bottom: var(--fontSize48)
}

#why-kanzen {
    position: relative;
}
#why-kanzen .title {
    margin-bottom: .5em;
}
.description {
    max-width: 65rem;
}
#why-kanzen .foreground-element {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(20%, 30%);
}
.instructors-ul {
    display: inline-flex;
    justify-content: center;
    /* or flex */
    flex-wrap: wrap;
    /* if multiple lines */
    gap: 10px;
}
.instructors-li {
    position: relative;
    list-style: none;
}
.instructors-li::before {
    content: "";
    border-radius: 32px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* let clicks pass through */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            /* fully transparent at top */
            rgba(0, 0, 0, 0) 70%,
            /* still transparent at 70% */
            rgba(0, 0, 0, 1) 100%
            /* full black at bottom */
        );
    z-index: 1;
    /* sits above the image but below text */
}
.instructors-li .optimized-image img{
    border-radius: 32px;
    object-fit: cover;
    max-width: 100%;
}
.instructors-li .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-align: left;
    padding: 2rem;
    /* spacing inside */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .75em;
    /* text aligned at bottom */
}
.instructors-li .feature-btn {
    align-self: flex-start;
}

/* features */
.feature-ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 100%;
}
.feature-li {
    list-style: none;
    max-width: 100%;
}
.feature-li img {
    margin-bottom: .5rem;
}

#sbs {
    background-color: #FAF9F6;
}
#sbs .container {
    display: flex;
    justify-content: center;
}
#sbs .sbs-image {
    padding: 0 auto;
    display: inline-block;
    max-width: 100%;
}
#sbs .sbs-wrap {
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
}
#sbs .sbs-image img {
    border-radius: 2rem;
    margin: 0 auto;
    max-width: 100%;
}
.checklist-ul {
    margin-bottom: 1em;
}
.checklist-li {
    list-style: none;
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: .5em;
    margin-top: .5em;
}
.checklist-li img,
.checklist-li svg {
    display: inline-block;
    flex-shrink: 0;

}


/* packages */
#packages .header {
    margin-bottom: 2rem;
}
.pricing-ul {

}
.pricing-li {
    list-style: none;
    border-radius: 1.5em;
    padding: 2.5em;
    border: 1px solid #A8A8A8;
    margin-bottom: 1em;
}
#packages .button-solid {
    font-size: 1em;
}
#packages .line {
    height: 1px;
    display: block;
    background-color: #A8A8A8;
    margin: 1.5rem 0;
}
#packages .end .text {
    margin-bottom: .5rem;
    max-width: 20rem;
}
#packages .end .group-box .title {
    margin-bottom: .5rem;
}
/* location */
#location {
    background-color: #F8F6EE;
}
#location .contents ul li {
    list-style-position: inside;
}
#location .google-map-embed {
    width: 100%;
}
/* testimony carousel */
/* .carousel {
  position: relative;
  height: 600px;
} */
 #testimonials {
    background-color: #F8F6EE;
 }
.carousel {
    position: relative;
    display: flex;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}
.carousel-track-container {
  position: relative;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  padding-bottom: 3rem;
}

.carousel-track {
    position: relative;
    list-style: none;
    transition: transform ease 500ms;
    display: flex;
}
.carousel-slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}
.carousel-slide:nth-child(1){
    margin-left: 0;
}
.testimony-box {
    background-color: #ffffff;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    padding: 1em;
}
.testimony-box img {
    width: 80%;
    margin: 0 auto;
    border-radius: 1000px;
}

.testimony-box .text-content {
    order: 2;
}
.carousel-button {
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.carousel-button-left {
  left: 0;
}
.carousel-button-right {
  right: 0px;
}
.carousel-button:disabled{
    opacity: 0.2;
}
@media (min-width: 64rem) {
    #hero {
        min-height: 80vh;
        padding: calc(132px + clamp(3rem, 10vh, 7rem)) 1rem clamp(4rem, 12vh, 8rem);
        position: relative;
    }

    #sbs .sbs-wrap {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    #sbs .sbs-image {
        width: 50%;
    }
    #sbs .sbs-image img {
        width: 100%;
    }
    .pricing-ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        align-items: start;
    }
    #packages .header {
        display: flex;
        justify-content: space-between;
    }
    #packages .header .subtitle-box {
        text-align: right;
    }
    #packages .end {
        display: flex;
        justify-content: space-between;
    }
    #packages .end .group-box {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    #location .container {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    #location .google-map-embed {
        width: 50%;
        height: 600px;
        flex-shrink: 0;
    }
    
    .testimony-box {
        flex-direction: row;
        align-items: center;
        padding: 3rem;
    }
    .testimony-box .text-content {
        order: 0;
        flex-shrink: 0;
    }
    .testimony-box .text-content blockquote {
        margin-bottom: .5em;
    }
    .testimony-box img {
        width: 40%;
    }
}

@media (min-width: 76rem) {
    .carousel-button {
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}