body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f4f8;
            color: #333;
        }
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
        }
        .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: #3498db;
            text-decoration: none;
            transition: color 0.3s;
        }
        .back-link:hover {
            color: #2980b9;
        }
        .tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #ecf0f1;
            flex-wrap: wrap;
        }
        .tab {
            padding: 12px 20px;
            background-color: #ecf0f1;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
            border-radius: 6px 6px 0 0;
            margin: 0 2px;
            font-size: 14px;
        }
        .tab.active {
            background-color: #3498db;
            color: white;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .calculator-section {
            background-color: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 2px solid #e9ecef;
        }
        .input-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        .input-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .input-group label {
            font-weight: bold;
            color: #2c3e50;
        }
        .input-field {
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
        }
        .input-field:focus {
            border-color: #3498db;
            outline: none;
        }
        .calculate-btn {
            padding: 15px 30px;
            font-size: 16px;
            background-color: #2ecc71;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin: 20px auto;
            display: block;
        }
        .calculate-btn:hover {
            background-color: #27ae60;
        }
        .comparison-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        .scenario-card {
            background-color: #ffffff;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .scenario-card.with-extra {
            border-color: #27ae60;
            background-color: #f8fff8;
        }
        .scenario-card h3 {
            margin-top: 0;
            color: #2c3e50;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid #ecf0f1;
        }
        .scenario-card.with-extra h3 {
            color: #27ae60;
            border-bottom-color: #27ae60;
        }
        .result-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .result-item:last-child {
            border-bottom: none;
        }
        .result-label {
            font-weight: bold;
        }
        .result-value {
            color: #2c3e50;
        }
        .savings-highlight {
            background-color: #d4edda;
            padding: 15px;
            border-radius: 6px;
            margin: 20px 0;
            border-left: 4px solid #28a745;
        }
        .savings-highlight h4 {
            margin-top: 0;
            color: #155724;
        }
        .amortization-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background-color: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .amortization-table th {
            background-color: #3498db;
            color: white;
            padding: 12px;
            text-align: center;
            font-size: 14px;
        }
        .amortization-table td {
            padding: 8px;
            text-align: center;
            border-bottom: 1px solid #eee;
            font-size: 13px;
        }
        .amortization-table tr:nth-child(even) {
            background-color: #f8f9fa;
        }
        .strategy-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        .strategy-card {
            background-color: #fff3cd;
            padding: 15px;
            border-radius: 6px;
            border-left: 4px solid #ffc107;
        }
        .strategy-card h5 {
            margin-top: 0;
            color: #856404;
        }
        .chart-container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Cross-linking styles */
        .cross-links-section {
            max-width: 1000px;
            margin: 40px auto 20px;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        
        .cross-links-section h2 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 1.8em;
            border-bottom: 3px solid #3498db;
            padding-bottom: 15px;
        }
        
        .cross-link-category {
            margin-bottom: 30px;
        }
        
        .cross-link-category h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.3em;
            padding-left: 10px;
            border-left: 4px solid #3498db;
        }
        
        .cross-link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
        }
        
        .cross-link-card {
            display: block;
            text-decoration: none;
            color: #34495e;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .cross-link-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
            border-color: #3498db;
            background: #e3f2fd;
            color: #2c3e50;
        }
        
        .cross-link-card span {
            font-weight: 500;
            display: block;
            line-height: 1.4;
        }
        
        .cross-link-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #3498db;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }
        
        .cross-link-card:hover::before {
            transform: scaleY(1);
        }
        
        @media (max-width: 768px) {
            .cross-links-section {
                margin: 20px;
                padding: 20px;
            }
            
            .cross-link-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .cross-link-card {
                padding: 12px;
            }
        }
