@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&family=UnifrakturMaguntia&display=swap');

:root {
    --base-color: #002868;
    --text-color: #FFFFFF;
    --primary-color: #ffd700;
    --secondary-color: #BF0A30;
    --tertiary-color: #1A1A1A;
    --color-1: #1E90FF;
    --color-2: #6a0dad;
    --color-3: #F5F5F5;
    --discord-color: #5865F2;
    --fivem-color: #FF8C00;
    --insta-color: #E1306C;
    --tt-color: #25F4EE;
    --fb-color: #1877F2;
    --yt-color: #FF0000;
    --content-max-width: 95%; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

body {
    padding: 0;
    background-color: var(--base-color);
}

/* --- Navigation & Header --- */
nav {
    margin: 1em auto 3em auto; 
    width: min(var(--content-max-width), 100%); 
    padding: 0 1em; 
}

nav ul {
    display: flex;
    align-items: Center;
    list-style-type: none;
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
}

nav a {
    text-decoration: none;
    font-family: rajdhani, sans-serif;
    color: var(--text-color);
    transition: 100ms ease;
}

nav a:hover {
    color: var(--primary-color);
}

header{
    background-color: var(--tertiary-color);
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: #1A1A1A solid 0.10em;
    z-index: 1000; 
}

/* --- Generic Section Styling --- */
section {
    margin: 2em auto; 
    width: min(var(--content-max-width), 100%);
    padding: 2em 1em; 
}

/* --- Hero Section --- */
section#hero {
    background-image: url('images/NCRP thumbnail background.png');
    background-position: center; 
    background-size: cover; 
    background-repeat: no-repeat; 
    padding: 3em 1em; 
    border-radius: 1em;
}

.flex-container-hero {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.hero {
    color: var(--primary-color);
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
}

header img{
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

.text-container-hero {
    flex: 0 1 34em; 
}

h1 {
    font-size: 2.5rem;
}

.text-container {
    margin: .75em 0 1em 0;
    font-size: 1.25rem
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--discord-color);
    padding: .75em 1.5em;
    border-radius: .5em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0.25em; 
}

.secondary {
    background-color: var(--fivem-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tertiary {
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.secondary:hover {
    background-color: #e67300;
}

.tertiary:hover {
    background-color: #a00620;
}

/* --- About Section --- */
section#about {
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
}

section p {
    margin-top: 1em;
    font-size: 1.125rem;
    color: var(--text-color);
}

section img{
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

section#social-media {
    text-align: center;
}

.grid-container-social {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    padding: 0 1em; 
}

.insta {
    background-color: var(--insta-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tt {
    background-color: var(--tt-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: black;
}

.fb {
    background-color: var(--fb-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.yt {
    background-color: var(--yt-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.insta:hover {
    background-color: #c13584;
}

.tt:hover {
    background-color: #1ca7b3;
}

.fb:hover {
    background-color: #145dbf;
}

.yt:hover {
    background-color: #cc0000;
}

/* --- Departments Section Fixes --- */
section#departments {
    text-align: center;
}

.grid-container {
    margin-top: 3em;
    margin-bottom: 3em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1em; 
    padding: 0 1em;
}

.department-card {
    background-color: var(--secondary-color);
    border-radius: 1em;
    padding: 1.5em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 280px; 
}

section#media {
    text-align: center;
}

.grid-container-media {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(5, auto); 
    grid-template-areas:
    "trailer img-1"
    "img-2 img-3"
    "img-4 img-5"
    "img-6 img-7"
    "img-8 img-9";
    gap: 1em;
}

.grid-container-media video {
    width: 100%; 
    height: auto;
    max-width: 100%;
    border-radius: .5em; 
}

.grid-container-media img {
    width: 100%;
    height: 100%;
    border-radius: .5em;
    object-fit: cover; 
    transition: 100ms ease;
}

/* --- Footer --- */
footer {
    background-color: var(--tertiary-color);
    text-align: center;
    padding: 1em 1em 1.5em 1em; 
    font-size: 0.875rem;
    color: var(--text-color);
    margin-top: 2em;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-columns {
    display: flex;
    justify-content: center;
    gap: 4em;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 1em;
}

.footer-col h3 {
    margin-bottom: 0.5em;
    font-size: 1.1em;
    color: var(--text-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5em;
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    font-size: 0.9em;
    margin-top: 1em;
    color: var(--text-color);
}

/* ---------------------------------------------------------------------- */
/* --- RESPONSIVENESS (Mobile & Tablet) --- */
/* ---------------------------------------------------------------------- */

/* Tablet Layout (Screens up to 1024px) */
@media (max-width: 1024px) {
    .grid-container-media {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
        "trailer trailer"
        "img-1 img-2"
        "img-3 img-4"
        "img-5 img-6"
        "img-7 img-8"
        "img-9 ."; 
    }
}

/* Mobile Layout (Screens up to 600px) */
@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75em;
    }
    
    nav li:first-child {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .flex-container-hero,
    .flex-container {
        justify-content: center;
        text-align: center;
    }

    .grid-container-social {
        grid-template-columns: 1fr;
        gap: 0.5em;
    }
    
    .cta-button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .grid-container-media {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
        "trailer"
        "img-1"
        "img-2"
        "img-3"
        "img-4"
        "img-5"
        "img-6"
        "img-7"
        "img-8"
        "img-9";
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }
    .footer-col {
        text-align: center;
    }
}