/* ─── Pain Points Section ─────────────────────────────────────── */

.pain-points {
    padding: 80px 0 60px;
    background: var(--bg-white);
    color: var(--text-dark);
}

.pain-points .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Header ──────────────────────────────────────────────────── */

.pain-points-header {
    text-align: center;
    margin-bottom: 60px;
}

.pain-points-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.pain-points-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Layout ──────────────────────────────────────────────────── */

.pain-points-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: flex-start;
}

.pain-points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── Left: Pain Point Cards ──────────────────────────────────── */

.pain-point-card {
    width: 100%;
    text-align: left;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    padding: 20px 22px;
    cursor: pointer;
    color: inherit;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.12s ease, background 0.2s ease;
}

.pain-point-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    background: #f9f6ff;
}

.pain-point-card.active {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(
        135deg,
        rgba(126, 87, 194, 0.06),
        rgba(233, 30, 99, 0.04)
    );
}

.pain-point-card .pain-point-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(126, 87, 194, 0.08);
    color: var(--primary-purple);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.pain-point-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    font-family: inherit;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ─── Right: Detail Panel ─────────────────────────────────────── */

.pain-points-detail {
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    padding: 28px 26px 24px;
    box-shadow: var(--shadow-md);
    min-height: 230px;
}

.pain-detail-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.pain-detail-card p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ─── Responsive: Tablet & Mobile (≤ 900px) ───────────────────── */

@media (max-width: 900px) {
    .pain-points {
        padding: 60px 0 40px;
    }

    .pain-points-layout {
        display: block;
    }

    .pain-points-detail {
        display: none;          /* hide side panel — inline cards take over */
    }

    .pain-detail-card {
        display: none;          /* hide all inline details by default */
        margin-top: 10px;
        border-radius: 14px;
        border: 1px solid var(--border-light);
        background: var(--bg-light);
        padding: 16px 14px;
        box-shadow: var(--shadow-sm);
    }

    .pain-point-card.active + .pain-detail-card {
        display: block;         /* show only the active card's detail */
    }
}

/* ─── Responsive: Mobile only (≤ 600px) ──────────────────────── */

@media (max-width: 600px) {
    .pain-points-header h2 {
        font-size: 2.2rem;
    }

    .pain-points-header p {
        font-size: 1rem;
    }

    .pain-points-detail {
        padding: 20px 18px 18px;
    }

    .pain-detail-card h3 {
        font-size: 1.05rem;
    }

    .pain-detail-card p {
        font-size: 0.98rem;
    }
}

/* ─── Desktop (≥ 901px) ───────────────────────────────────────── */

@media (min-width: 901px) {
    .pain-points-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
        gap: 32px;
        align-items: flex-start;
    }

    .pain-points-detail {
        display: block;
    }

    .pain-point-card + .pain-detail-card {
        display: none;          /* hide inline details on desktop */
    }
}