body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
}

header {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 42px;
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 18px;
    background: white;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: bold;
}

main {
    padding-bottom: 40px;
}

.clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 30px;
}

.clock-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.clock-card:hover {
    transform: translateY(-4px);
}

.icon {
    font-size: 42px;
}

.clock-card h2 {
    margin: 12px 0;
    font-size: 24px;
}

.time {
    font-size: 30px;
    font-weight: bold;
    margin-top: 10px;
}

.weather {
    margin-top: 16px;
    font-size: 18px;
}

.history {
    margin-top: 10px;
    font-size: 15px;
    color: #666;
}

.ad-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.ad-placeholder {
    width: 90%;
    max-width: 728px;
    height: 90px;
    background: #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: bold;
}

.seo-content {
    background: white;
    margin: 30px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.seo-content h2 {
    margin-top: 0;
}

footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 600px) {

    header h1 {
        font-size: 32px;
    }

    .time {
        font-size: 24px;
    }

    .clock-card h2 {
        font-size: 20px;
    }

}

.flag {
    display: inline-block;
    background: #1f2937;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
    vertical-align: middle;
}