.problems {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.problems-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.problems-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    mask-image: linear-gradient(to left, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 20%, transparent 100%);
}

.problems-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 20%, transparent 100%);
}

.container {
    position: relative;
    z-index: 1;
}

/* Hide on light theme if no light image exists */
[data-theme="light"] .problems-bg {
    display: none;
}

.problems-header {
    margin-bottom: var(--spacing-md);
    max-width: 800px;
}

.problems .section-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.problems .section-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Editorial Grid Layout */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    /* Main top border */
}

.problem-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Individual top borders */
    transition: all 0.3s ease;
}

/* Remove border from first row items if we want a cleaner look, 
   but keeping them gives a nice grid feel. 
   Actually, let's keep the main grid border and remove individual top borders 
   if they are in the first row? No, uniform is better. */

.problem-number {
    font-family: serif;
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.problem-item h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.2;
}

.problem-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.problem-item:hover h3 {
    color: var(--accent-color);
}

/* Footer */
.problems-footer {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-note {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 600px;
}

.confidentiality {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lock-icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .problems-bg {
        display: none;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .problems {
        padding: 4rem 0;
    }

    .problems .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .problems .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        /* Reduced from 2rem */
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 1rem;
        /* Tighter gap for 2 cols */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .problem-item {
        border-top: none;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        /* Stack vertically for 2 cols */
        gap: 0.5rem;
    }

    .problem-number {
        font-size: 1rem;
        margin-bottom: 0;
        color: var(--accent-color);
        opacity: 0.8;
    }

    .problem-content {
        gap: 0.3rem;
    }

    .problem-item h3 {
        font-size: 0.9rem;
        /* Reduced size */
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .problem-item p {
        font-size: 0.75rem;
        /* Reduced size */
        line-height: 1.3;
    }

    .problems-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: left;
    }

    .footer-note {
        text-align: left;
        font-size: 1rem;
    }

    .confidentiality {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
}