/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Controls Section */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.controls input,
.controls select,
.controls button {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.controls input:focus,
.controls select:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 5px rgba(0, 119, 255, 0.3);
}

button {
    background: linear-gradient(135deg, #0077ff, #005fcc);
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: linear-gradient(135deg, #005fcc, #0077ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

/* Error Message */
.error {
    text-align: center;
    color: #d93025;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Results Grid */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* Country Card */
.country-card {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.country-card img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

.country-card h3 {
    margin: 10px 0 6px;
    font-size: 1.3rem;
    color: #111;
}

.country-card p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.country-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #0077ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.country-card a:hover {
    background-color: #005fcc;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }

    .controls input,
    .controls select,
    .controls button {
        width: 100%;
    }
}
.country-card p {
    margin: 4px 0;
    font-size: 13px; /* slightly smaller for extra info */
    line-height: 1.4;
}

.tagline {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}
