/* --- GLOBAL STYLES & RESETS --- */
:root {
    --color-primary: #CC3333; /* A strong, Marine red for accents */
    --color-secondary: #AAAAAA;
    --color-background: #111111; /* Dark background */
    --color-text: #FFFFFF; /* White text */
    --color-dark-bg: #1B1B1B;
    --font-heading: 'Arial Black', sans-serif;
    --font-body: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

.section {
    padding: 60px 5%;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

/* --- BUTTON STYLES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #A02828;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* --- HEADER & NAVBAR --- */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px; /* Adjust size as needed */
    margin-right: 15px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--color-text);
    text-transform: uppercase;
}

.v3maw {
    color: var(--color-primary);
    font-weight: normal;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--color-text);
    text-transform: uppercase;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    /* SETTING THE RETRIEVED DCS BACKGROUND IMAGE HERE */
    background: url('c130CoverImage.png') no-repeat center center/cover;
    height: 80vh; /* 80% of the viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
}

.hero p {
    font-size: 1.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* --- ABOUT US SECTION --- */
.about-us {
    background-color: var(--color-dark-bg);
    text-align: left;
}

.about-us h2 {
    text-align: center;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    margin-bottom: 15px;
}

/* --- SQUADRONS SECTION --- */
.squadrons {
    background-color: var(--color-background);
}

.section-subtitle {
    font-style: italic;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

.squadron-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.squadron-card {
    background-color: var(--color-dark-bg);
    padding: 0 0 30px 0; /* Adjusted padding to account for image */
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded */
    width: 300px;
    text-align: left;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.squadron-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* New CSS for the Squadron Images */
.squadron-card img {
    width: 100%;
    height: 180px; /* Fixed height for consistent look */
    object-fit: cover;
    margin-bottom: 15px;
    /* Optional: Add a subtle border or effect to the bottom of the image */
    border-bottom: 4px solid var(--color-primary);
}

.squadron-card h3 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin: 0 20px 10px 20px;
}

.squadron-card p {
    padding: 0 20px;
}

.squadron-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 0 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- RECRUITMENT CTA --- */
.recruitment-cta {
    background-color: #222222;
    padding: 80px 5%;
    border-top: 1px solid var(--color-dark-bg);
    border-bottom: 1px solid var(--color-dark-bg);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.recruitment-cta h2 {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark-bg);
    padding: 40px 5%;
    text-align: center;
    font-size: 0.9em;
    border-top: 3px solid var(--color-primary);
}

.footer-links a {
    color: var(--color-secondary);
    margin: 0 15px;
    font-weight: bold;
}

.social-media {
    margin: 20px 0;
}

.social-media i {
    font-size: 1.8em;
    margin: 0 10px;
    color: var(--color-secondary);
    transition: color 0.3s;
}

.social-media i:hover {
    color: var(--color-primary);
}

.copyright, .disclaimer {
    color: var(--color-secondary);
    margin-top: 10px;
}

/* --- RESPONSIVENESS (Basic Mobile Adaptation) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .site-title {
        font-size: 1em;
    }
}