/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafafa;
}

/* Header styling */
.site-header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #111;
}

/* h1, h2, h3 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: 700;
    letter-spacing: -0.02em; /* Tightens large text slightly for a premium magazine look */
    color: #111111;
} */

p, li, a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem; /* Slightly larger text is easier to read */
    line-height: 1.7;    /* Adds breathing room between lines of text */
    color: #333333;     /* Off-black is softer on the eyes than pure black */
}

/* Container limits width on massive screens */
.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    margin-bottom: 0.5rem;
}

/* CSS Grid Magic */
.country-grid {
    display: grid;
    /* Automatically creates columns that are at least 300px wide */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

body {
    background-color: #FDFBF7; /* Warm, paper-like background */
    color: #2A2421;            /* Deep charcoal instead of harsh black */
}

a {
    color: #C87A53;            /* Terracotta links */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #A05632;            /* Darkens slightly when hovered */
}

/* Country Card Styling */
.country-card {
    display: flex;
    align-items: flex-end;
    height: 350px;
    border-radius: 8px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

/* Hover effect */
.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Text inside the card */
.card-content {
    padding: 2rem;
    color: white;
    width: 100%;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 3rem;
    color: #777;
    font-size: 0.9rem;
}