/* SECTION 2: PAIN FORGE */
.pain-forge {
    position: relative;
    padding: 140px 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

.magic-pattern-overlay { 
    position: absolute; /* Changed from relative to cover the whole section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50%;
    background-position: center center;
    background-repeat: repeat-y;
    background-color: #FFFFFF;
    background-image: url('../assets/cube-patterns.png');  
    z-index: 1; /* Sits behind the container but above the section background */
    opacity: 0.4; /* Optional: adjust this to make it more or less subtle */
    pointer-events: none; /* Ensures users can still click cards/text through the overlay */
    /* Fixed Attachment added here */
    background-attachment: fixed;
}


/* Typography Correction */
.eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent); /* #A095EE */
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.pain-header .section-head {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 32px; 
    line-height: 1.2;
    color: var(--primary); /* #40387A */
    text-transform: uppercase;
    margin: 0;
}

.text-accent-alt {
    color: var(--accent);
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #64748B;
    max-width: 800px;
    margin: 25px auto 0;
}

.card-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text); /* #1E293B */
}

/* Layout Containers */
.pain-forge .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    /* Slightly increased opacity to ensure readability over the pattern */
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border: 1px solid var(--slate);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(64, 56, 122, 0.1); /* Slightly deeper shadow */
}

.icon-wrapper {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
}