/* basic reset for module */
.hp-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 12px;
}

.hp-panels {
    display: flex;
    gap: 24px;
    align-items: stretch;
    height: 520px;
    /* desktop height */
    transition: all .35s ease;
}

/* each panel default narrow */
.hp-panel {
    position: relative;
    flex: 0 0 13%;
    /* narrow panels */
    min-width: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: #333;
    color: #fff;
    transition: flex-basis .4s cubic-bezier(.2, .9, .3, 1), transform .35s ease;
    display: flex;
    align-items: stretch;
}

/* background image cover */
.hp-panel .hp-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: grayscale(0.05) brightness(0.6);
    transition: transform .6s ease, filter .35s ease;
    transform-origin: center center;
}

/* vertical label on left side of each narrow card */
.hp-panel .hp-side-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    z-index: 3;
    pointer-events: none;
}

.hp-side-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 18px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
}

/* big number bottom */
.hp-panel .hp-number {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 96px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    z-index: 2;
    font-weight: 700;
}

/* hidden main content (center) */
.hp-panel .hp-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 58%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
}

/* text styles for content */
.hp-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 1.2px;
}

.hp-title {
    font-size: 48px;
    margin: 0 0 18px 0;
    color: #fff;
}

.hp-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* button */
.hp-btn {
    display: inline-block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
}
a:hover{
    color: #fff !important;
}

/* active panel styling */
.hp-panel.active {
    flex: 1 1 58%;
    min-width: 320px;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hp-panel.active .hp-panel-bg {
    transform: scale(1.08);
    filter: brightness(0.4);
}

.hp-panel.active .hp-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* when not active: slightly dim */
.hp-panel:not(.active) .hp-content {
    opacity: 0;
    pointer-events: none;
}

/* hover preview (desktop) */
.hp-panel:hover {
    transform: translateY(-4px);
}

/* responsive: smaller screens stack vertically */
@media (max-width: 900px) {
    .hp-panels {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .hp-panel {
        flex: 1 1 100%;
        min-height: unset;
        height: auto;
        border-radius: 16px;
        overflow: hidden;
        flex-direction: column;
		background: #212e17;
    }

    /* gambar background full width dan proporsional */
    .hp-panel .hp-panel-bg {
        position: relative;
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        /*filter: brightness(0.6);*/
		filter: brightness(1);
        transform: none !important;
    }

    .hp-panel .hp-side-label {
        display: none;
    }

    .hp-panel .hp-number {
        position: relative;
        font-size: 36px;
        color: rgba(255, 255, 255, 0.3);
        margin: 12px 0 0 12px;
    }

    .hp-panel .hp-content {
        position: relative;
        padding: 16px;
        max-width: 100%;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.2);
    }

    .hp-title {
        font-size: 22px;
    }

    .hp-desc {
        font-size: 14px;
    }

    .hp-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        line-height: 44px;
    }

    .hp-panel.active {
        flex: 1 1 100%;
        transform: none;
        box-shadow: none;
    }
}
/* --- responsive: stacked panels that expand down (push content) --- */

