/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    top: 0;
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    color: white;
    border-bottom: solid 1px;
    border-color: #1b2e8d40;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px;
}

nav {
    flex-grow: 1;
    text-align: right;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    text-decoration: none;
    color: #1b2e8d;
    font-weight: bold;
    padding: 8px 8px;
    font-size:13px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links li a:hover {
    color: white;
    background-color: #1b2e8d;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
        background-color:#1b2e8d;
    }

    .nav-active {
        height: calc(100vh - 380px);
    }
}

/* General Container */
.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Titles */
h2 {
    text-align: center;
    margin: 20px 0;
    color: #333;
}

/* Forms */
form {
    width: 100%;
    color: white;
    max-width: 500px;
    margin: 20px auto;
    background-color: #1b2e8d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: solid 1px #1b2e8d;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"], .button {
    width: 100%;
    background-color: #7ed957;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

input[type="submit"]:hover, .button:hover {
    background-color: #45a049;
}

.button {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
}

/* Table Styles */
table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

table thead {
    background-color: #1b2e8d;
    color: #fff;
}

table thead th {
    padding: 10px;
    text-align: left;
    font-weight: normal;
}

table tbody tr {
    border-bottom: 1px solid #ddd;
}

table tbody tr:nth-of-type(even) {
    background-color: #f4f4f4;
}

table tbody td {
    padding: 10px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions a {
    text-decoration: none;
    padding: 5px 10px;
    background-color: #1b2e8d;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.table-actions a:hover {
    background-color: #45a049;
}

/* Specific Sections */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    margin: 0;
}

.dashboard-header a {
    color: white;
    text-decoration: none;
}

.dashboard-header a:hover {
    text-decoration: underline;
}

.post-list, .candidate-list, .job-list {
    margin: 20px 0;
}

.post, .candidate, .job {
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-bottom: solid 5px #1b2e8d;
    margin: auto;
    margin-top: 9px;
}

.post h3, .candidate h3, .job h3 {
    display: flex;
    margin-bottom: 15px;
    color: #333;
    align-content: center;
    align-items: center;
}

/* Additional styles for the homepage */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 140px 0;
    text-align: center;
}

.features {
    background-color: #fff;
    padding: 40px 0;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.feature-item {
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    width: 45%;
}

.feature-item h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.cta {
    background-color: #4CAF50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.cta .button {
    background-color: white;
    color: #4CAF50;
    margin-top: 20px;
}

.cta .button:hover {
    background-color: #f4f4f4;
}

/* Footer */
footer {
    background-color: #1b2e8d;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.like-btn, .share-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.like-btn:hover, .share-btn:hover {
    background-color: #45a049;
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.dashboard-nav li {
    margin: 0;
}

.dashboard-nav a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1b2e8d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dashboard-nav a.button
{
background-color: #45a049;
}

/* Styles for success messages */
.success-message {
background-color: #4CAF50;
color: white;
padding: 10px;
margin: 20px 0;
border-radius: 5px;
text-align: center;
}

.profile-pic {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}