/* --- 1. Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f0f4f2; /* Light Green-Grey Background */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 40px;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent; 
}

header.sticky {
    background: rgba(44, 95, 88, 0.95); /* Deep Green-Grey */
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header ul {
    display: flex;
    list-style: none;
}

header ul li {
    margin: 0 15px;
}

header ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

header ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}
header ul li a.active { opacity: 1; }
header ul li a.active  { font-weight: 600; }

/* --- 3. Page Header --- */

main {
    /* Removed padding-top so it starts at the very top */
    flex: 1;
    padding-bottom: 60px;
}

.page-header {
    text-align: center;
    /* Removed margin-bottom to touch the cards */
    margin-bottom: 0; 
    padding: 40px 20px; /* Keep padding inside */
    
    /* Background and Style */
    background-color: #e8f0ed; /* Light Greenish-Grey */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    
    /* Positioning to sit behind navbar */
    position: relative;
    z-index: -1; /* Puts it behind the navbar */
    
    /* Push it down so text isn't hidden by the fixed navbar */
    /* This value should be roughly the height of your navbar (approx 80-100px) */
    margin-top: 80px; 
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #2c5f58; /* Deep Forest Green */
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
}

/* --- 4. Grid Container --- */
.container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 60px; /* Increased gap for spacing */
    justify-content: center;
    max-width: 1400px; /* Wider container to fill screen */
    margin: 0 auto;
    padding: 0 40px; /* Added side padding */
}

/* --- 5. Link Wrapper (Clickable Card) --- */
.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* --- 6. Card Styles --- */
.container .card {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    background: #ffffff; /* White background for contrast */
}

/* Hover Effect: Lift and Shadow */
.container .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 95, 88, 0.25); /* Green-tinted shadow */
}

.container .card .imgBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container .card .imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Subtle Zoom on Image Hover */
.container .card:hover .imgBx img {
    transform: scale(1.1);
}

.container .card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 95, 88, 0.95) 0%, rgba(44, 95, 88, 0.6) 50%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Show content on hover */
.container .card:hover .content {
    opacity: 1;
}

.container .card .content h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.container .card .content p {
    color: #e8f5e9; /* Very light green/white for country */
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. Footer --- */
footer {
    background-color: #2c5f58; /* Deep Forest Green */
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
}

footer p {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* --- 8. Responsive Adjustments --- */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 300px); /* 2 columns on tablets */
        gap: 50px;
        padding: 0 30px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 400px;
        gap: 40px;
        padding: 0 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    header {
        justify-content: center;
    }
    
    header ul {
        flex-direction: column;
        align-items: center;
    }
    
    header ul li {
        margin: 5px 0;
    }
}