:root {
    --primary-blue: #001E60;
    --hover-blue: #001540;
    --bg-gray: #F4F4F4;
    --border-color: #D1D1D1;
    --white: #FFFFFF;
    --radius-card: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Finnair Sans', Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--primary-blue);
    padding-bottom: 100px;
}

@font-face {
    font-family: 'Finnair Sans';
    src: url('https://cdn.finnair.com/fcom-ui-styles/prod/fonts/FinnairSans/FinnairSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Bold (700) */
@font-face {
    font-family: 'Finnair Sans';
    src: url('https://cdn.finnair.com/fcom-ui-styles/prod/fonts/FinnairSans/FinnairSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Header --- */
/* --- Header --- */
.navbar {
    background: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: left; /* This centers the logo horizontally */
    padding: 0 20px;
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.05); Optional: adds subtle depth */
}

.nav-logo {
    height: 30px; /* Adjusts logo height to fit the bar nicely */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}

/* NEW: Blue Subheader Bar */
.subheader {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-size: 1.25rem; /* Clean, readable size */
    font-weight: 400;   /* Regular weight looks elegant */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Shadow moved here */
    position: relative;
    z-index: 20; /* Ensure it stays above the hero image */
}

/* --- Hero Section --- */
.hero {
    /* Replace url with your image */
    background-image: url('../images/hero-bg-plane.webp');
    /* background-image: linear-gradient(to bottom, #E0F7FA, #FFFFFF);  */
    height: 400px; /* Slightly shorter since there is no widget */
    display: flex;
    justify-content: center;
    align-items: normal;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
}

/* --- Content Grid --- */
.content-section {
    max-width: 1100px;
    
    /* 1. Center the container */
    margin: 0 auto; 
    
    /* 2. Move it UP to overlap the hero */
    margin-top: -300px; 
    
    /* 3. Visual Styling: White background, rounded corners, shadow */
    background-color: var(--white);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* 4. Internal spacing so text doesn't touch edges */
    padding: 40px;
    
    /* 5. Ensure it sits ON TOP of the hero image */
    position: relative;
    z-index: 10;
}

.content-section h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-top: 0;      /* Remove top margin to align nicely */
    margin-bottom: 30px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}


.card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;

    display: block;          /* Behave like a box, not a text span */
    text-decoration: none;   /* Remove blue underline */
    color: inherit;          /* Keep the existing text colors */
    cursor: pointer;         /* Show hand icon on hover */

    /* NEW: Flex Layout */
    display: flex; 
    flex-direction: column;
    height: 100%; /* Forces card to be as tall as its neighbor */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    width: 100%;
    background-color: #ddd; /* Fallback color */
    
    /* NEW: Ensures images cover the area without stretching */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card-content {
    padding: 20px;

    /* NEW: Flex settings to push tags down */
    flex: 1;            /* Grows to fill available space */
    display: flex;      /* Nested flexbox */
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-weight: 400;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* --- New Styles for the 8-Agent Grid --- */

/* Divider spacing */
.section-divider {
    font-weight: 300;
    font-size: 2rem;
    margin-top: 60px; /* Adds space between the top grid and this title */
    margin-bottom: 30px;
    border-top: 1px solid #eee; /* Optional: adds a subtle line separator */
    padding-top: 40px;
}

/* A tighter grid for the 8 agents */
.grid-dense {
    display: grid;
    /* This automatically fits as many as possible, but min 200px allows 4 to fit in 1100px width */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
}

/* Optional: Make the text slightly smaller for the dense grid cards */
.grid-dense .card-content h3 {
    font-size: 1.1rem;
}
.grid-dense .card-content p {
    font-size: 0.85rem;
}

/* --- Intro Text Styles --- */

.hub-intro {
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.hub-title {
    font-size: 2.2rem;
    font-weight: 700; /* Light Nordic weight */
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.hub-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

.hub-list {
    padding-left: 20px;
    margin-bottom: 3        
}

/* --- Filter Section --- */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center; /* Center the filters */
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--white);
    color: var(--primary-blue);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    background-color: #f0f7ff;
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* --- Card Tags --- */
.card-tags {
    /* NEW: The 'auto' margin pushes this element to the bottom */
    margin-top: auto;   
    padding-top: 15px;  /* Add a little breathing room from the text */

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.75rem;
    background-color: #EBF4FC; /* Light Blue background */
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}