@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

/* ── Wrapper ───────────────────────────────────── */
.pn-wrapper {
    display: flex;
    width: 100%;
    height: 620px;
    overflow: hidden;
    position: relative;
}

/* ── Panels ────────────────────────────────────── */
.pn-panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 36px 36px;
    text-decoration: none;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: flex 0.75s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
    outline: none;
}

.pn-panel:not(.pn-empty):hover {
    flex: 1 1 58%;
}

.pn-panel.pn-empty {
    cursor: default;
    opacity: 0.5;
}

/* ── Overlay ───────────────────────────────────── */
.pn-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ── Label ─────────────────────────────────────── */
.pn-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    opacity: 0.65;
    transition: opacity 0.3s ease;
    display: block;
}

.pn-label-right {
    text-align: right;
}

.pn-panel:hover .pn-label {
    opacity: 1;
}

/* ── Bottom ────────────────────────────────────── */
.pn-bottom {
    position: relative;
    z-index: 2;
}

/* ── Title Box ─────────────────────────────────── */
.pn-title-box {
    display: inline-block;
    padding: 14px 20px 12px;
    max-width: 320px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.35);
    transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.45s ease;
}

.pn-panel:not(.pn-empty):hover .pn-title-box {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

/* ── Title Text ────────────────────────────────── */
.pn-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.7;
    display: block;
}

/* ── Arrows ────────────────────────────────────── */
.pn-arrow {
    position: absolute;
    z-index: 3;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    bottom: 38px;
}

.pn-arrow-left {
    left: 36px;
    transform: translateX(-10px);
}

.pn-arrow-right {
    right: 36px;
    transform: translateX(10px);
}

.pn-panel:not(.pn-empty):hover .pn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .pn-wrapper {
        flex-direction: column;
        height: auto;
    }
    .pn-panel {
        flex: 0 0 300px !important;
        height: 300px;
    }
    .pn-arrow {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}
