/* ========================================
   RISK MITIGATION SECTION - PREMIUM REDESIGN
   Modern Fintech Card Grid with Icons
   ======================================== */

.risk-mitigation-box {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    border-radius: 32px;
    padding: 4rem 3.5rem;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
    border: 2px solid #B8860B;
    box-shadow: 0 24px 64px rgba(184, 134, 11, 0.15);
}

.risk-mitigation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(184, 134, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.risk-mitigation-box > h4 {
    position: relative;
    z-index: 1;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 3rem 0;
    letter-spacing: -0.02em;
}

.risk-mitigation-box > h4 i {
    color: #B8860B;
    margin-right: 1rem;
    font-size: 2rem;
    vertical-align: middle;
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Risk Categories Grid */
.risk-categories {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Individual Risk Category Cards */
.risk-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(184, 134, 11, 0.2);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.risk-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-category:hover::before {
    transform: scaleX(1);
}

.risk-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 134, 11, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2);
}

/* Category Header */
.risk-category > strong {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #B8860B;
    letter-spacing: -0.01em;
    background: rgba(184, 134, 11, 0.08);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.risk-category > strong::before {
    content: '';
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Add icons to each category */
.risk-category:nth-child(1) > strong::before {
    content: '⚙️';
    font-size: 1.75rem;
}

.risk-category:nth-child(2) > strong::before {
    content: '⭐';
    font-size: 1.75rem;
}

.risk-category:nth-child(3) > strong::before {
    content: '🛡️';
    font-size: 1.75rem;
}

/* Risk Items List */
.risk-category ul {
    list-style: none;
    padding: 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.risk-category li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 10px;
}

.risk-category li:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
    color: #FFFFFF;
}

.risk-category li::before {
    content: '✓';
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #FFFFFF;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .risk-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .risk-mitigation-box {
        padding: 3rem 2rem;
    }
    
    .risk-mitigation-box > h4 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .risk-mitigation-box {
        padding: 2.5rem 1.5rem;
        margin: 3rem 0;
    }
    
    .risk-mitigation-box > h4 {
        font-size: 1.5rem;
    }
    
    .risk-category > strong {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .risk-category ul {
        padding: 1.5rem;
    }
    
    .risk-category li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .risk-categories {
        gap: 1rem;
    }
    
    .risk-mitigation-box > h4 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .risk-category > strong::before {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* Add subtle animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.risk-category {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.risk-category:nth-child(1) {
    animation-delay: 0.1s;
}

.risk-category:nth-child(2) {
    animation-delay: 0.2s;
}

.risk-category:nth-child(3) {
    animation-delay: 0.3s;
}
