body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #0056b3;
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.ad-slot {
    background-color: #fff;
    border: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    color: #999;
    font-style: italic;
    border-radius: 8px;
}

.calculator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.calculator-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.calculator-card:hover {
    transform: translateY(-5px);
}

.calculator-card h2 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    flex: 1;
    min-width: 80px;
}

.input-group span {
    font-weight: 600;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f7ef;
    border-radius: 6px;
    color: #155724;
    font-weight: 700;
    text-align: center;
    font-size: 1.3rem;
}

.seo-content, .content-card {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.seo-content h2, .content-card h2 {
    color: #0056b3;
    margin-top: 0;
}

.seo-content h3 {
    color: #333;
    margin-top: 25px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #0056b3;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    color: #777;
    font-size: 0.9rem;
}

/* Static Page Specifics */
.static-page {
    max-width: 800px;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
}
