:root {
    --primary-color: #2c3e50;
    /* Deep Blue-Grey - Professional & Atmospheric */
    --accent-color: #3498db;
    /* Calm Blue - Trustworthy */
    --accent-hover: #2980b9;
    --bg-color: #f8f9fa;
    /* Very Light Grey - Clean Background */
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 960px;
    /* Fixed width as requested */
    max-width: 95%;
    /* Responsive fallback */
    margin: 0 auto;
    position: relative;
    /* For Language Switcher positioning */
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 0.85rem;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
}

.language-switcher a:first-child {
    margin-left: 0;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 600px) {
    .language-switcher {
        position: static;
        display: block;
        margin-bottom: 15px;
        text-align: right;
        background: none;
        box-shadow: none;
        padding: 0;
    }
}

/* Header */
.site-header {
    background-color: var(--card-bg);
    padding: 60px 0 40px;
    text-align: left;
    /* Left align as requested */
    border-bottom: 1px solid #eaeaea;
}

.site-header h1,
.site-header .site-logo,
.site-header .page-title {
    /* Logo Style from User */
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    font-style: normal;
    height: 34px;
    line-height: 34px;
    background-color: black;
    padding: 0 8px;
    border-radius: 6px;
    margin: 0;
    margin-bottom: 16px;
    /* Keep some space for subtitle */
    letter-spacing: normal;
}

.site-header h1 a,
.site-header .site-logo a,
.site-header .page-title a {
    color: white;
    text-decoration: none;
}

.site-header h1 a:hover,
.site-header .site-logo a:hover,
.site-header .page-title a:hover {
    opacity: 0.8;
}

/* Utility for full width in grid */
.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Navigation */
.country-nav {
    background-color: #ffffff;
    /* Revert to white */
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    /* Software shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.country-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left align nav */
    gap: 8px 12px;
    padding: 0;
}

.country-nav a {
    text-decoration: none;
    background-color: var(--primary-color);
    /* Color the "font area" */
    color: white;
    /* Text color */
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 14px;
    /* Button sizing */
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.country-nav a:hover {
    /* Lighter blue on hover */
    transform: translateY(-1px);
}

.country-nav a.curr {
    background-color: var(--accent-color);
    font-weight: 700;
}

/* Main Grid */
main {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Sub-page Layout Override */
main.page-content {
    display: block;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* New Result List Styles */
.result-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.result-item {
    background: #f0f2f5;
    padding: 10px 15px;
    /* Reduced from 15px 20px */
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    /* Reduced from 1.5rem */
    color: #333;
    animation: fadeIn 0.3s ease-in-out;
    border: 1px solid #e1e4e8;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.country-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #e0e0e0;
}

.country-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.country-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 1px solid #eaeaea;
    margin-top: auto;
}

.site-footer .small {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .site-header h1 {
        font-size: 2.2rem;
    }

    .country-nav {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .country-nav ul {
        flex-wrap: nowrap;
        padding-left: 20px;
        /* Add padding for scroll feeling */
    }
}

/* Sub-page Specific Styles */
.small-header {
    padding: 30px 0;
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.tool-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    text-align: center;
}

.display-area {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 2rem;
    color: #333;
}

.large-btn {
    font-size: 1.2rem;
    padding: 16px 32px;
    max-width: 300px;
    margin: 0 auto;
    cursor: pointer;
    border: none;
}

.seo-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 16px;
}

.seo-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.seo-content li {
    margin-bottom: 8px;
}