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

/* =========================
   BODY
========================= */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f8fc;
    color: #1a2a3a;
    line-height: 1.7;
    font-size: 18px;
    text-align: center;
}

/* =========================
   HEADER / HERO
========================= */
header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    text-align: center;
    padding: 4rem 1rem 6rem 1rem; /* main title higher, subtitle lower */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 4rem;
    margin-bottom: 2rem; /* space between title and subtitle */
    line-height: 1.2;
}

header p {
    font-size: 1.8rem;
    margin-top: 0; /* subtitle starts immediately after the margin below h1 */
    line-height: 1.4;
}

/* =========================
   NAVIGATION
========================= */
nav {
    background-color: #1e40af;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0.5rem 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #2563eb;
}

/* =========================
   HOMEPAGE CITY GRID
========================= */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem auto;
}

.city-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.city-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.city-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.city-card:hover img {
    transform: scale(1.08);
}

.city-card h3 {
    margin: 1.2rem 0 0.6rem;
    font-size: 1.6rem;
    color: #1e40af;
}

.city-card p {
    padding: 0 1rem 1.5rem;
    font-size: 1.1rem;
}

.city-card a {
    display: block;
    background-color: #2563eb;
    color: white;
    padding: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    margin: 0 1rem 1.2rem;
    border-radius: 10px;
    transition: 0.3s;
}

.city-card a:hover {
    background-color: #1e3a8a;
}

/* =========================
   CITY PAGE SECTIONS
========================= */
.city-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 3rem auto;
}

.section-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
}

.section-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.section-card img {
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid #2563eb;
}

.section-card:hover img {
    transform: scale(1.08);
}

.section-card h3 {
    margin: 1.2rem 0 0.6rem;
    font-size: 1.6rem;
    color: #1e40af;
}

.section-card p {
    padding: 0 1rem 1.5rem;
    font-size: 1.1rem;
}

.section-card a {
    display: inline-block;
    margin-top: auto;
    background-color: #2563eb;
    color: white;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.section-card a:hover {
    background-color: #1e3a8a;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    header h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 1.4rem;
    }

    .city-card img,
    .section-card img {
        height: 220px;
    }

    .city-card h3,
    .section-card h3 {
        font-size: 1.4rem;
    }

    .city-card p,
    .section-card p {
        font-size: 1rem;
    }
}