* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.calculator-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.calculator-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-weight: 700;
    color: #667eea;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.ads-container {
    margin: 30px 0;
    text-align: center;
}

.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

.tabs {
    display: flex;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab.active {
    background: #667eea;
    color: white;
    border-bottom-color: #764ba2;
}

.tab:hover:not(.active) {
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.comparison-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-card h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.difference {
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
}

.difference.negative {
    background: #dc3545;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .container {
        padding: 15px;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

.tax-breakdown, .ni-breakdown, .calculation-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.tax-breakdown h5, .ni-breakdown h5, .calculation-explanation h5 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.calculation-explanation p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Blog Section Styles */
.blog-section {
    background: white;
    margin-top: 50px;
    padding: 50px 0;
    border-top: 1px solid #e9ecef;
}

.blog-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-content {
    flex: 1;
    max-width: 800px;
    line-height: 1.8;
    color: #333;
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.blog-content h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.blog-content h3 {
    font-size: 1.8rem;
    color: #667eea;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.blog-content h4 {
    font-size: 1.4rem;
    color: #555;
    margin: 30px 0 15px 0;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.blog-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.meta-info {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1rem;
}

.meta-info span {
    margin: 0 15px;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
}

.intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    font-size: 1.2rem;
    text-align: center;
}

.intro p {
    margin: 0;
    font-weight: 500;
}

.cta-section {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin: 0;
}

/* SEO-friendly styling */
.blog-content strong {
    color: #667eea;
    font-weight: 600;
}

.blog-content em {
    color: #555;
    font-style: italic;
}

/* Blog Ad Container Styles */
.blog-ad-top {
    margin: 30px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.blog-ad-inline {
    margin: 40px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    max-width: 100%;
    overflow: hidden;
}

.blog-ad-bottom {
    margin: 30px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.sidebar-ad {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

/* Ad container responsive design */
.blog-ad-top .ad-banner,
.blog-ad-inline .ad-banner,
.blog-ad-bottom .ad-banner {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Responsive blog design */
@media (max-width: 768px) {
    .blog-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .blog-sidebar {
        width: 100%;
        order: -1;
    }
    
    .blog-content h2 {
        font-size: 2rem;
    }
    
    .blog-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-content h4 {
        font-size: 1.2rem;
    }
    
    .blog-content p {
        font-size: 1rem;
    }
    
    .blog-content li {
        font-size: 1rem;
    }
    
    .intro {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .meta-info span {
        display: block;
        margin: 5px 0;
    }
    
    /* Mobile ad adjustments */
    .blog-ad-top,
    .blog-ad-inline,
    .blog-ad-bottom {
        padding: 15px;
        margin: 25px 0;
    }
    
    .sidebar-ad {
        position: static;
        margin: 15px 0;
    }
} 