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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1a202c;
    line-height: 1.6;
}

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

/* Header with icon styling */
.header-container {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

h1 {
    color: #1a202c;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.header-subtitle {
    color: #4a5568;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
}

/* Overview section styling */
.overview-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.overview-section h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.overview-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    letter-spacing: 0.3px;
}

input[type="text"],
select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 18px;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.reset {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
}

.reset:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* Modern card styling for sections */
.state-links-section,
.blog-section,
.more-tools-section,
.map-section,
.faq-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Quick states grid */
.quick-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.state-quick-link {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.state-quick-link.high-pop {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.state-quick-link.no-tax {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
}

.state-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Featured States Grid */
.featured-states {
    margin: 30px 0;
}

.featured-states h4 {
    text-align: center;
    color: #1a202c;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.featured-state {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.featured-state:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.featured-state.no-tax {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf9 0%, #f0fdf9 100%);
}

.featured-state.high-pop {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.state-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.state-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Tax Reference Section */
.tax-reference {
    margin: 40px 0;
}

.tax-reference h4 {
    text-align: center;
    color: #1a202c;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
}

.tax-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tax-category {
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid;
}

.tax-category.no-tax-cat {
    background: #f0fdf9;
    border-left-color: #10b981;
}

.tax-category.low-tax-cat {
    background: #f0f9ff;
    border-left-color: #06b6d4;
}

.tax-category.high-tax-cat {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.tax-category h5 {
    color: #1a202c;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tax-category p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .tax-categories {
        grid-template-columns: 1fr;
    }
    
    .featured-state {
        padding: 15px;
    }
    
    .tax-category {
        padding: 20px;
    }
}

/* FAQ Section */
.faq-item {
    background: #f8f9fa;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.faq-item h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Blog Article Styles */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(26,32,44,0.2);
}

.blog-nav .nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-nav .nav-link:hover {
    color: #1a202c;
}

.publish-date {
    color: #718096;
    font-size: 14px;
}

.article-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 30px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.article-intro .lead {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.table-of-contents {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin: 30px 0;
}

.table-of-contents h3 {
    color: #333;
    margin-bottom: 15px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.article-content h2 {
    color: #333;
    font-size: 28px;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.article-content h3 {
    color: #444;
    font-size: 22px;
    margin: 30px 0 15px 0;
}

.article-content h4 {
    color: #555;
    font-size: 18px;
    margin: 25px 0 10px 0;
}

.article-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.example-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.example-box h4 {
    color: white;
    margin-bottom: 10px;
}

.tax-table {
    overflow-x: auto;
    margin: 20px 0;
}

.tax-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tax-table th,
.tax-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tax-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.tax-table tr:hover {
    background: #f5f5f5;
}

.state-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.state-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.state-group h4 {
    margin-bottom: 15px;
    color: #333;
}

.state-group ul {
    list-style: none;
    padding: 0;
}

.state-group li {
    margin: 8px 0;
}

.state-group a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.state-group a:hover {
    text-decoration: underline;
}

.fica-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fica-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.example-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

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

.state-example {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.state-example h5 {
    color: #333;
    margin-bottom: 10px;
}

.state-example ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.state-example li {
    margin: 5px 0;
    color: #666;
}

.strategy-list,
.mistake-list {
    margin: 20px 0;
}

.strategy-item,
.mistake-item {
    background: #f8f9fa;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.mistake-item {
    border-left-color: #dc3545;
}

.benefit {
    background: #e8f5e8;
    color: #155724;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button.primary {
    background: white;
    color: #4f46e5;
    border-color: white;
}

.cta-button:hover {
    background: white;
    color: #4f46e5;
    transform: translateY(-2px);
}

.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .article-content {
        padding: 30px 20px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .state-comparison {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.state-links-section h2,
.blog-section h3,
.more-tools-section h3 {
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
}

.state-links-section h2::after,
.blog-section h3::after,
.more-tools-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.state-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.state-link {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.state-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.blog-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ad containers */
.ad-container {
    margin: 30px 0;
    text-align: center;
}

.ad-banner {
    min-height: 120px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-rectangle {
    min-height: 280px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section icons */
.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Blog content styling */
.blog-content {
    line-height: 1.8;
    font-size: 16px;
}

.blog-content h2 {
    color: #333;
    margin: 30px 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 20px;
    color: #555;
}

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

.blog-content li {
    margin-bottom: 10px;
    color: #555;
}

.tax-breakdown {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid #667eea;
}

.monthly-breakdown {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}