/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
    color: #004a99; /* A professional blue */
}

h1 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
}

ul, ol {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #2c3e50; /* Dark blue/gray */
    color: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 0 0 20px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #004a99;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
}

.site-footer p {
    margin: 5px 0;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #3498db; /* Social media blue */
}

/* --- Home Page Specifics --- */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5em;
    border: none;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #555;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.video-gallery video {
    width: 100%;
    max-width: 48%; /* Two videos per row */
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.section-grid > div {
    background-color: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* --- Form Styles (Contact & Upload) --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding to work well */
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: #0056b3; /* Darker blue */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #004a99;
}

/* --- Contact Page Specifics --- */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.contact-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-details h2 {
    margin-top: 0;
}

/* --- Upload Page Specifics --- */
.upload-box {
    border: 3px dashed #004a99;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background-color: #f4faff;
    transition: background-color 0.3s ease;
}

.upload-box:hover {
    background-color: #e6f0ff;
}

.upload-box span {
    font-size: 1.2em;
    font-weight: bold;
    color: #004a99;
}

/* Hide the default file input */
#file-upload {
    display: none;
}

#file-list-container {
    margin-top: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    display: none; /* Hidden until files are selected */
}

#file-list li {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95em;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#file-list li.error {
    color: #D8000C; /* Red */
    background-color: #FFD2D2;
    border-color: #D8000C;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .main-nav a {
        display: block;
    }

    .video-gallery video {
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}
