:root {
    --primary: #1e293b;
    --accent: #0ea5e9;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --border: #e2e8f0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span { color: var(--accent); }

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

p.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: #0284c7; }

.results-box {
    margin-top: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.result-item {
    padding: 12px;
    border-bottom: 1px solid #e0f2fe;
}

.result-item:last-child { border-bottom: none; }

.article-section {
    margin-top: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
/* Blog Card Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.blog-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-card h3 { color: #1e293b; margin-top: 0; }
.blog-link { color: #0ea5e9; font-weight: bold; text-decoration: none; }

/* This is the magic fix for mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    min-width: 600px; /* Ensures the table doesn't get squashed on tiny screens */
    border-collapse: collapse;
    background: white;
}

.comparison-table th, 
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}