/* Basic Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333; /* Darker text for better readability */
    background-color: #f9f9f9; /* Light off-white background */
}
/* --- The Banner --- */
.banner {
    /* Your background and text styles */
    background-image: url('/images/tartan.png');
    background-repeat: repeat;
    width: 100%;
    padding: 20px 30px; /* Adjusted padding slightly for vertical alignment */
    color: white;

    /* The new layout rules for side-by-side alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* This div contains your H1 and tagline */
.banner-content {
    /* We remove the margin and max-width to let the flexbox handle it */
    /* This makes your title align to the center */
    text-align: center;
}

.banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.banner .tagline {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
/* This styles BOTH the logo container and the invisible spacer */
.affiliation-logo, .affiliation-logo-spacer {
    /* This width creates the space on both sides */
    width: 220px;
    flex-shrink: 0;
}
/* This rule controls the size of the LAA logo */
.affiliation-logo img {
    height: 90px; /* <-- You can adjust this height */
    width: auto;
    border-radius: 25px;
}

/* --- Main Navigation Menu --- */
.main-nav {
    background-color: #0a2c4c;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none; /* Removes the bullet points */
}

.main-nav li {
    display: inline-block; /* This makes the menu horizontal */
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #1a4c7c;
    color: #ffffff;
}

/* --- Main Content --- */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #0a2c4c;
    padding-top: 20px;
}

/* --- Intro Section (Left Text, Right Image) --- */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.intro-text {
    flex: 2;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    line-height: 1.7;
}

.intro-image {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.intro-image img {
    max-width: 100%; /* Makes image responsive */
    height: auto;
    /* No border, padding, or shadow for a clean look */
}

/* --- Footer Styles --- */
footer {

    text-align: center;
    padding: 15px;
    background-color: #0a2c4c;
    color: #ffffff;
    font-size: 0.9rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .content-wrapper {
     display: flex;
    justify-content: space-evenly;
width: 100%;
    margin: 0 auto 10px auto;
    padding: 0 20px;
}

.copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.content-wrapper section:not(:last-child) {
    margin-bottom: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column; /* Stacks text and image vertically */
        align-items: center; /* Centers items when stacked */
    }

    .intro-image {
        text-align: center; /* Centers image when stacked */
        margin-top: 20px;
    }
}
/* --- Form Styles --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.hidden {
    display: none;
}

/* Container for the gallery of cards */
        .gallery-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px; /* Space between cards */
            justify-content: center;
        }

        /* The main aircraft card styling */
        .aircraft-card {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden; /* Ensures the image corners are rounded */
            width: 350px; /* Set a fixed width for each card */
            transition: transform 0.2s ease-in-out;
        }

        .aircraft-card:hover {
            transform: translateY(-5px); /* Adds a subtle lift effect on hover */
        }

        /* Aircraft image styling */
        .aircraft-card img {
            width: 100%;
            height: 220px;
            object-fit: cover; /* Ensures image covers the area without distortion */
            display: block;
        }

        /* Content area inside the card */
        .card-content {
            padding: 20px;
        }

        /* Aircraft make and model (the title) */
        .card-content h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 1.4em;
            color: #0056b3; /* A nice blue for the title */
        }

        /* List for aircraft details */
        .card-details {
            list-style: none;
            padding: 0;
            margin: 0 0 20px 0;
            font-size: 0.95em;
        }

        .card-details li {
            margin-bottom: 8px;
        }

        .card-details strong {
            color: #555;
        }

        /* Styling for the owner's quote */
        .card-quote {
            margin: 0;
            padding-left: 15px;
            border-left: 3px solid #007bff;
            font-style: italic;
            color: #666;
            font-size: 0.9em;
        }
        .caption {
            display: flex;
            flex-direction: column;
            height: 10em;
        }
        figcaption {font-weight: bold; }

        .content-wrapper {
    flex: 1;
}

.site-footer {
    position: relative;

    color: #e0e0e0;
    padding: 2px;

    font-size: 14px;
    text-align: center;
    border-top: 1px solid #333;
}

.pi-container {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 20px);
}

.pi-symbol {
    color: #00ff41;
    font-size: 18px;

    text-shadow: 0 0 5px #00ff41;
    animation: flicker 2.5s infinite alternate;
}

.left-pi {
    order: -1;
}

.right-pi {
    order: 1;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    margin: 0;
    line-height: 1.4;
}

.footer-section a {
    color: #00ff41;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Optional: Add a flickering effect for extra 'hacker' vibe */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px #00ff41;
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}
