
:root {
    /* Light Theme Variables */
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: #8c1515;
    --nav-bg: #333;
    --card-bg: #fff;
    --card-border: #ddd;
    --link-color: #0056b3;
    --link-hover-color: #d9534f;
}

body.dark-mode {
    /* Dark Theme Variables */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1e1e1e;
    --nav-bg: #2c2c2c;
    --card-bg: #1e1e1e;
    --card-border: #444;
    --link-color: #8ab4f8;
    --link-hover-color: #d9534f;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--link-hover-color);
}

header {
    background-color: var(--header-bg);
    color: white;
    padding: 10px 0;
    text-align: center;
    border-bottom: 2px solid var(--link-hover-color);
    transition: background-color 0.3s;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    margin: 0;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
}

.logo .victory-symbol {
    height: 40px;
    margin-right: 15px;
}

.logo p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

nav {
    background-color: var(--nav-bg);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: var(--link-hover-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.search-container {
    display: flex;
}

.search-container input {
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    background-color: #555;
    color: white;
    outline: none;
    width: 150px;
    transition: width 0.3s ease-in-out;
}

.search-container input:focus {
    width: 200px;
}

.search-container input::placeholder {
    color: #ccc;
}

.search-container button {
    padding: 8px 12px;
    border: none;
    background-color: #d9534f;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

#darkModeToggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

main {
    padding: 20px;
}

.intro {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: background-color 0.3s, border-color 0.3s;
}

.intro h2 {
    margin: 0;
    color: #8c1515;
}

body.dark-mode .intro h2 {
    color: #d9534f;
}
/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    color: #333;
}

#main-container {
    max-width: 1000px;
    margin: 10px auto;
    background-color: #fff;
    border: 1px solid #ddd;
}

/* Header Styles */
header {
    background-color: #00008b; /* Dark Blue */
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    border-bottom: 5px solid #ff0000;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

header .subtitle {
    margin: 5px 0 0;
    font-size: 1.2em;
}

/* Navigation Bar Styles */
nav {
    background-color: #333;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

nav a:hover {
    background-color: #555;
}

/* Main Content Styles */
main {
    padding: 15px;
}

.post-title {
    text-align: center;
    background-color: #f7f7f7;
    border: 1px dashed #aaa;
    padding: 10px;
    margin-bottom: 20px;
}

.post-title h2 {
    color: #cc0000;
    margin: 0;
    font-size: 1.8em;
}

.post-title .post-date {
    margin: 5px 0 0;
    color: #555;
}

/* Info Box General Styles */
.info-box {
    border-style: solid;
    border-width: 4px;
    margin-bottom: 25px;
}

.info-box .box-title {
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 10px;
    font-size: 1.4em;
}

.info-box .box-subtitle {
    text-align: center;
    font-size: 1.1em;
    margin: 10px 0;
    padding: 0 10px;
}

.info-box ul {
    list-style-type: '✔ ';
    padding-left: 25px;
    margin: 10px 0;
}

.info-box li {
    padding-bottom: 8px;
    line-height: 1.5;
}

.info-box .content {
    padding: 15px;
}

.info-box .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
}

/* Specific Box Colors */
.green-box { border-color: #008000; }
.green-box .box-title { background-color: #008000; }

.blue-box { border-color: #0000cd; }
.blue-box .box-title { background-color: #0000cd; }

.purple-box { border-color: #800080; }
.purple-box .box-title { background-color: #800080; }

.pink-box { border-color: #ff1493; }
.pink-box .box-title { background-color: #ff1493; }

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

thead {
    background-color: #e9e9e9;
}

/* Vacancy Table Specifics */
.vacancy-table .eligibility ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
    list-style-type: '- ';
}
.vacancy-table .eligibility li {
    padding-bottom: 5px;
}

/* Links Table Specifics */
.links-table td:first-child {
    font-weight: 700;
    font-size: 1.2em;
    width: 60%;
    text-align: left;
}

.links-table td:last-child {
    font-weight: 700;
    font-size: 1.2em;
}

.links-table a {
    text-decoration: none;
    color: #0000ff;
}

.links-table a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    nav {
        flex-direction: column;
    }
    .info-box .content-grid {
        grid-template-columns: 1fr;
    }
    .post-title h2 {
        font-size: 1.5em;
    }
    .info-box .box-title {
        font-size: 1.2em;
    }
}