/*--------------------------------------------------------------
# Problem We Solve Section — Premium Bento Grid Layout
--------------------------------------------------------------*/

.problem-section {
    display: none; /* Hidden from homepage — code preserved, remove this line to re-enable */
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.prob-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Header ── */
.prob-header-area {
    max-width: 900px;
    margin-bottom: 80px;
}

.prob-headline {
    font-family: var(--font-primary);
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 24px 0;
}

.prob-gradient {
    background: linear-gradient(135deg, #7627d8, #FF4D9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prob-body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 700px;
}

/* ═══ BENTO GRID (Mosaic Style) ═══ */
.prob-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px; /* Reduced for tighter look */
}

/* Row 1: Staggered */
.prob-card:nth-child(1) {
    grid-column: span 4;
    height: 500px;
}

.prob-card:nth-child(2) {
    grid-column: span 2;
    height: 500px;
}

/* Row 2: Three columns */
.prob-card:nth-child(3),
.prob-card:nth-child(4),
.prob-card:nth-child(5) {
    grid-column: span 2;
    height: 340px;
}

/* Row 3: Full width special */
.prob-card:nth-child(6) {
    grid-column: span 6;
    height: 300px;
}

/* ── Card Base ── */
.prob-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.prob-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px -16px rgba(118, 39, 216, 0.25);
}

/* ── Large Cards (Top Row) ── */
.prob-card--lg {
    height: 520px; /* Slightly taller for more presence */
    display: flex;
    flex-direction: column;
}

/* ── Small Cards (Bottom Row) ── */
.prob-card--sm {
    height: 380px;
    display: flex;
    flex-direction: column;
}

/* ── Media / Image ── */
.prob-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.prob-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.prob-card:hover .prob-card__media img {
    transform: scale(1.06);
}

.prob-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(1, 63, 140, 0.95) 0%,
        rgba(1, 63, 140, 0.75) 35%,
        rgba(1, 63, 140, 0.4) 60%,
        rgba(1, 63, 140, 0.2) 100%
    );
    z-index: 1;
}

/* ── Body / Content ── */
.prob-card__body {
    position: relative;
    z-index: 2;
    padding: 24px; /* Reduced from 32px for 'proper' look */
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Badge ── */
.prob-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    width: fit-content;
    transition: all 0.4s ease;
}

.prob-card:hover .prob-card__badge {
    background: rgba(118, 39, 216, 0.3);
    border-color: rgba(118, 39, 216, 0.5);
    color: #d4b4ff;
}

.prob-card__badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* ── Title ── */
.prob-card__title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

.prob-card--sm .prob-card__title {
    font-size: 18px;
}

/* ── Description ── */
.prob-card__text {
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

.prob-card--sm .prob-card__text {
    font-size: 14px;
}

/* ── Stat Callout (Large cards only) ── */
.prob-card__stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.prob-card__stat-val {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.prob-card__stat-label {
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.4;
}

/* ── Closing Banner ── */
.prob-closing-banner {
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.prob-closing-banner__line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.prob-closing-banner__text {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--ink-soft);
}

.prob-gradient-strong {
    font-weight: 800;
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .prob-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .prob-card:nth-child(1),
    .prob-card:nth-child(2),
    .prob-card:nth-child(6) {
        grid-column: span 2;
        height: 400px;
    }
    .prob-card:nth-child(3),
    .prob-card:nth-child(4),
    .prob-card:nth-child(5) {
        grid-column: span 1;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .problem-section { padding: 80px 0; }
    .prob-container { padding: 0 20px; }
    .prob-header-area { margin-bottom: 48px; }
    .prob-headline { font-size: clamp(26px, 6vw, 36px); }
    .prob-body { font-size: 16px; }
    .prob-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .prob-card:nth-child(1),
    .prob-card:nth-child(2),
    .prob-card:nth-child(3),
    .prob-card:nth-child(4),
    .prob-card:nth-child(5),
    .prob-card:nth-child(6) {
        grid-column: span 1;
        height: auto;
        min-height: 280px;
    }
    .prob-card--lg,
    .prob-card--sm {
        grid-column: span 1;
        height: auto;
        min-height: 280px;
    }
    .prob-card__title {
        font-size: 20px;
    }
    .prob-card__stat-val {
        font-size: 24px;
    }
    .prob-closing-banner {
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
    }
    .prob-closing-banner__line {
        width: 60px;
        flex: none;
    }
}
