/* Why NIAPAY Section */
.why-niapay {
    padding: var(--space-3xl) 0;
    background: #fdfaf5;
    /* Slightly warmer/off-white background like Klarna's light theme or just distinct */
    color: #1a1a1a;
    /* Dark text for contrast against light bg */
}

.why-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.why-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: #000;
}

.why-header p {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.5;
}

.why-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Navigation List (Left) */
.why-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.why-nav-item {
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: #888;
    padding: var(--space-sm) 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.why-nav-item:hover {
    color: #000;
}

.why-nav-item.active {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Progress bar indicator for active state */
.nav-progress {
    height: 2px;
    background: #e0e0e0;
    width: 100%;
    margin-top: var(--space-xs);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.why-nav-item.active .nav-progress {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: #000;
    width: 0;
}

.why-nav-item.active .progress-bar {
    width: 100%;
    transition: width 0.3s ease-out;
    /* Simple fill for now, could be animated for auto-play */
}

/* Display Area (Right/Center) */
.why-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.why-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 32px;
    /* Large rounded corners */
    overflow: hidden;
    background: #e5e5e5;
    /* Next-page feel: add a subtle shadow or depth */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    /* Start slightly zoomed in */
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Crop bottom 45px to hide watermark */
    clip-path: inset(0 0 45px 0);
}

.why-image.active {
    opacity: 1;
    transform: scale(1);
    /* Zoom to normal */
    z-index: 1;
}

/* Text Content Area */
.why-text-content {
    position: relative;
    min-height: 200px;
    /* Ensure space for content */
}

.why-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.why-text-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    /* Take up flow space slightly or just keep absolute if height is fixed */
}

.why-text-item h3 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: #000;
    font-family: var(--font-display);
}

.why-text-item p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .why-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid #e5e5e5;
    }

    .why-nav-item {
        flex: 0 0 auto;
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }

    .nav-progress {
        display: none;
        /* Hide progress bars on mobile scroll nav */
    }

    .why-display {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}