/* styles.css */

/* Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600&display=swap');

/* Root Variables for Easy Theming */
:root {
    --primary-color: rgb(44, 62, 80); /* Dark Blue */
    --secondary-color: #ECF0F1; /* Light Gray */
    --accent-color: #E74C3C; /* Red Accent for Cybersecurity */
    --text-color: #333333;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
    flex: 1;
}

/* Styling the Logo Banner */
.site-header {
    background-color: var(--primary-color);
    padding: 20px 0;
}

.logo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-height: 180px; 
    margin-right: 15px;
}

/* Navigation Bar */
nav {
    background-color: var(--primary-color);
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    text-align: center;
    padding: 40px 0 20px 0;
}

header h1 {
    font-family: var(--header-font);
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.2em;
    color: var(--text-color);
    font-weight: 400;
}

/* Sections */
section {
    margin-bottom: 40px;
}

section h2 {
    font-family: var(--header-font);
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

section p, section ul, section table {
    margin-top: 10px;
}

.photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photos-container .photos {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.photos-container .photos:hover {
    transform: scale(1.05);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 700;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Lists */
ul {
    list-style-type: disc;
    margin-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* Forms */
form {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

form input, form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1em;
}

form input:focus, form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); /* Matching red accent */
}

form button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

form button:hover {
    background-color: #C0392B; /* Darker Red */
}

form button.reset {
    background-color: #95A5A6; /* Gray for Reset */
}

form button.reset:hover {
    background-color: #7F8C8D;
}

#awards-list li {
    cursor: pointer; 
}

/* Modal CSS */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.5em;
    }
}
