/* --- CSS STYLING --- */
:root {
    --bg-color: #0b1c2c;
    --highlight: #00a8e8;
    --text-color: #ecf0f1;
    --form-bg: #152a3d;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 10vh; /* Offset for fixed navbar */
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    background-color: rgba(11, 28, 44, 0.95);
    font-family: 'Montserrat', sans-serif;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--highlight);
}

.logo {
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
    list-style: none;
    margin: 0;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--highlight);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid var(--highlight);
        padding-top: 50px;
    }

    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Scroll To Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--highlight);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
}

#scrollTopBtn:hover {
    background-color: #007bb5;
}

/* Hero Section */
header {
    min-height: 80vh; /* Changed from height to min-height to prevent overflow */
    padding: 60px 0;  /* Added padding for spacing */
    background: linear-gradient(rgba(11, 28, 44, 0.8), rgba(11, 28, 44, 0.8)), url('uk_bg.jpg'); /* Add your image here */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 { font-size: 3.5rem; margin-bottom: 10px; }
h2 { color: var(--highlight); font-weight: 300; margin-bottom: 40px; }

/* News Feed Styles */
.news-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin-top: 5%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.news-box {
    background: rgba(21, 42, 61, 0.85);
    border: 1px solid var(--highlight);
    padding: 20px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.news-box:hover {
    transform: translateY(-5px);
    background: rgba(21, 42, 61, 0.95);
}

.news-box h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-box .date {
    color: var(--highlight);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.news-box a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

.news-box a:hover { text-decoration: underline; }

/* Content Container */
.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

/* The Footer Contact Form */
footer {
    background-color: var(--form-bg);
    padding: 50px 0;
    border-top: 3px solid var(--highlight);
    margin-top: 50px;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #081420;
    border: 1px solid #2c3e50;
    color: white;
    font-family: inherit;
}

button {
    background-color: var(--highlight);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

button:hover { background-color: #007bb5; }

/* Message Alerts */
#form-message {
    margin-top: 20px;
    font-weight: bold;
    display: none; /* Hidden by default */
}
.success { color: #2ecc71; }
.error { color: #e74c3c; }