/* --- NZSL Registry Global Styles --- */

:root {
    --primary-blue: #003366;    /* Professional, Trustworthy */
    --accent-teal: #008080;     /* NZ Government/Health vibe */
    --light-gray: #f4f4f9;
    --text-dark: #333333;
    --white: #ffffff;
    --error-red: #d9534f;
    --pico-primary: #008080; /* Your NZSL Teal */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* --- Layout Containers --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background: var(--primary-blue);
    color: var(--white);
    padding-top: 30px;
    min-height: 70px;
    border-bottom: var(--accent-teal) 3px solid;
}

header a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

/* --- Hero Section (The Landing Page "Hook") --- */
#showcase {
    min-height: 300px;
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('https://via.placeholder.com/1200x400');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#showcase h1 {
    font-size: 45px;
    margin-bottom: 10px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    font-size: 18px;
    color: var(--white);
    background: var(--accent-teal);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--primary-blue);
}

/* Header & Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Adds space between the logo and the text */
    text-decoration: none;
}

.logo-img {
    height: 190px;
    width: auto; /* Ensures aspect ratio is kept */
    display: block; /* Removes the tiny gap at the bottom of inline elements */
}

.logo-text {
    font-weight: bold;
    color: #333; /* Or your preferred brand color */
}

/* Flash Card Styling */
.grid > div {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px; /* Curved corners */
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 5px solid var(--pico-primary); /* The color pop */
}

.grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.grid h3 {
    color: var(--pico-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

footer { 
    margin-top: 2rem; 
    padding: 2rem 0; 
    border-top: 1px solid #e5e5e5; 
}

/* Ensure the nav stays as a single, centered row */
nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Space between the two menu items on the right */
nav ul:last-child li {
    padding-left: 15px;
}

/* Make the 'Advanced Search' look like a subtle link, not a button */
nav ul li a.secondary {
    font-size: 0.9rem;
    color: var(--pico-color);
    text-decoration: none;
}

/* Hero Section Spacing */
.hero-section {
    padding: 3rem 0;
    background-color: #f9fbfd;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--pico-primary);
}

/* Stats Styling */
.stats-container article {
    text-align: center;
    border: none;
    background: transparent;
    padding: 1rem;
}

.stats-container h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

/* Clean up the grid for mobile */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 1.5rem;
    }
}

/* Styling for Highlight Cards */
.highlight-card {
    border-radius: 20px; /* This creates the rounded edges */
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e6ed;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add a pop of color to the top of the cards */
.highlight-card h3 {
    color: var(--pico-primary);
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 0.5rem;
}

/* Hover effect: Card lifts slightly */
.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--pico-primary);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Col 1: Logo width, Col 2: Flex width, Col 3: Button width */
    align-items: center;
    height: 120px; /* Match height from Method 1 */
}

.header-headings {
    text-align: center;
    grid-column: 2; /* Explicitly place in the center column */
}

/* Custom small button style */
.btn-sm {
    padding: 0.25rem 0.75rem; /* Shrinks the height and width */
    font-size: 0.8rem;        /* Smaller text */
    margin-bottom: 0;         /* Removes Pico's bottom margin */
    width: auto;              /* Prevents it from stretching */
    display: inline-block;
    
    /* Light Blue Theme */
    background-color: #e3f2fd; /* Very light blue */
    border-color: #90caf9;     /* Soft blue border */
    color: #1976d2;            /* Darker blue text for readability */
}

.btn-sm:hover {
    background-color: #bbdefb; /* Slightly darker blue on hover */
    border-color: #64b5f6;
    color: #0d47a1;
}