/* --- Global Reset & Fonts --- */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary-blue: #0A1931;
    --accent-red: #B22234;
    --main-white: #FFFFFF;
    --text-color: #333333;
    --card-light-blue: #1A3461;
}

body {
    background-color: var(--main-white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Base Desktop Layout --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-title {
    color: var(--primary-blue);
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2.card-style { font-size: 2.5em; font-weight: 800; color: var(--primary-blue); }

.sub-title {
    color: var(--card-light-blue);
    margin-top: 15px; 
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- Header & Nav --- */
header {
    background-color: var(--primary-blue);
    background-image: url('../images/header-flag-bg.png'); 
    background-repeat: repeat; 
    background-position: center center; 
    color: var(--main-white);
    padding: 20px 0;
    border-bottom: 5px solid var(--accent-red);
    position: relative; 
    z-index: 100;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

header::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 49, 0.75); 
    z-index: -1;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a { 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #fff; 
    text-decoration: none;
}
nav ul li a.active { color: var(--accent-red); }

/* --- Grids --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* UPDATED: Increased minmax to 450px to ensure only 2 videos fit per row on desktop */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card, .video-container {
    background-color: #f4f4f4;
    padding: 25px; /* Increased padding for larger look */
    border-radius: 8px;
    border-bottom: 4px solid var(--primary-blue);
}

/* --- Video Specific Styling --- */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.placeholder-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-caption {
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 1em; /* Slightly larger for the bigger cards */
    margin: 0;
    text-align: center; /* Centered for a cleaner look on large cards */
}

/* --- General Elements --- */
.product-card img { width: 100%; height: 200px; object-fit: contain; }

.button {
    display: block;
    background: var(--accent-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-blue);
    background-image: url('../images/footer-stars-bg.png'); 
    background-repeat: repeat; 
    background-position: center center; 
    color: var(--main-white);
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 5px solid var(--accent-red);
    text-align: center;
    position: relative; 
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

footer::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 49, 0.75); 
    z-index: -1;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-slogan { font-size: 1.2em; font-weight: bold; color: var(--accent-red); margin-bottom: 30px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 15px; }
.info-item .icon { width: 25px; margin-right: 15px; color: var(--main-white); text-align: center; }
.text-link { color: var(--accent-red); text-decoration: underline; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    /* Ensure videos still look good on smaller laptops/tablets */
    .video-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
}

@media (max-width: 768px) {
    #mobile-menu-toggle { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--primary-blue);
        border-bottom: 5px solid var(--accent-red);
        z-index: 1000;
    }
    nav.nav-open { display: block; }
    nav ul { flex-direction: column; padding: 20px; }
    nav ul li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    nav ul li a { display: block; padding: 15px 0; }
    h2.card-style { font-size: 1.8em; }
    .video-grid, .product-grid { grid-template-columns: 1fr; }
    .footer-inner { text-align: center; }
    .info-item { flex-direction: column; align-items: center; }
    .info-item .icon { margin-right: 0; margin-bottom: 10px; }
}

/* --- ANIMATIONS --- */
.fly-in-left, .fly-in-right, .fade-in { opacity: 0; transition: all 0.8s ease-out; }
.fly-in-left { transform: translateX(-50px); }
.fly-in-right { transform: translateX(50px); }
.fade-in { transform: translateY(20px); }
.animate-visible { opacity: 1 !important; transform: translate(0) !important; }