/* Modern Popular Calculators Section */
.calculators-section {
    padding: 4rem 0;
    background: #ffffff;
}

.calculators-section .section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.calculators-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.calculator-category {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #1f2937;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.calculator-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
    color: #1f2937;
}

.calculator-link i:first-child {
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.calculator-link span {
    flex: 1;
    font-weight: 500;
}

.calculator-link i:last-child {
    margin-left: 1rem;
    font-size: 0.875rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.calculator-link:hover i:last-child {
    opacity: 1;
    transform: translateX(3px);
}

/* Investment Calculators - Pink Theme */
.investment-calculators {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.investment-calculators .category-icon {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.investment-calculators .category-header h3 {
    color: #be185d;
}

.investment-calculators .calculator-link:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
}

/* Term Insurance Calculators - Light Blue Theme */
.insurance-calculators {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.insurance-calculators .category-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.insurance-calculators .category-header h3 {
    color: #0284c7;
}

.insurance-calculators .calculator-link:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Policy Premium Calculators - Light Purple Theme */
.premium-calculators {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.premium-calculators .category-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.premium-calculators .category-header h3 {
    color: #7c3aed;
}

.premium-calculators .calculator-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .calculators-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .calculators-section {
        padding: 3rem 0;
    }
    
    .calculators-section .section-description {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .calculator-category {
        padding: 1.5rem;
    }
    
    .category-header {
        margin-bottom: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.25rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .calculator-link {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .calculator-category {
        padding: 1.25rem;
    }
    
    .category-header h3 {
        font-size: 1.125rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .calculator-link {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* Animation for calculator categories */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-category {
    animation: slideInUp 0.6s ease-out;
}

.calculator-category:nth-child(1) {
    animation-delay: 0.1s;
}

.calculator-category:nth-child(2) {
    animation-delay: 0.2s;
}

.calculator-category:nth-child(3) {
    animation-delay: 0.3s;
}
