/* Finance Hub Styles */
.finance-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.finance-hero {
    text-align: center;
    padding: 60px 0;
}

.finance-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.finance-hero p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.finance-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.finance-stats .stat {
    text-align: center;
}

.finance-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
}

.finance-stats .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Calculator */
.quick-calculator {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #d1fae5;
}

.quick-calculator h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #065f46;
    text-align: center;
}

.calculator-widget {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #059669;
}

.calculation-result {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #d1fae5;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: #065f46;
    font-size: 1.1rem;
}

/* Finance Tools Grid */
.finance-tools {
    margin: 60px 0;
}

.finance-tools h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.finance-tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.finance-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #059669;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #059669;
}

.finance-tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.finance-tool-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.finance-tool-card h3 a:hover {
    color: #059669;
}

.finance-tool-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.tool-features li {
    padding: 5px 0;
    color: #374151;
}

.tool-link {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #047857;
}

/* Financial Education */
.financial-education {
    margin: 60px 0;
}

.financial-education h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.edu-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #059669;
}

.edu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.edu-card p {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.edu-card a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.edu-card a:hover {
    color: #047857;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .finance-hero h1 {
        font-size: 2.2rem;
    }
    
    .finance-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-calculator {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .finance-container {
        padding: 0 15px;
    }
    
    .calculator-widget {
        max-width: 100%;
    }
}