* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    background: #172554;
    padding: 18px 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    text-decoration: underline;
}

.login-btn {
    background: white;
    color: #172554 !important;
    padding: 9px 18px;
    border-radius: 5px;
}


/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 70px 20px;
    background: #e0e7ff;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    color: #172554;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    justify-content: center;
    max-width: 650px;
    margin: auto;
}

.search-box input {
    width: 75%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box button {
    width: 25%;
    border: none;
    background: #172554;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}


/* =========================
   JOB SECTION
========================= */

.jobs-section {
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    color: #172554;
}

.section-title a {
    color: #172554;
    text-decoration: none;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.job-card h3 {
    margin: 12px 0;
    color: #172554;
}

.job-card p {
    margin: 8px 0;
    font-size: 14px;
}

.category {
    display: inline-block;
    background: #e0e7ff;
    color: #172554;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.details-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #172554;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    margin-bottom: 60px;
}

.categories h2 {
    margin-bottom: 25px;
    color: #172554;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-grid a {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #172554;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #172554;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   PAGE HEADER
========================= */

.page-header {
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 30px;
    background: #e0e7ff;
    border-radius: 10px;
}

.page-header h1 {
    color: #172554;
    font-size: 35px;
    margin-bottom: 10px;
}

.page-header p {
    color: #555;
}

.no-jobs {
    width: 100%;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 10px;
}
/* =========================
   JOB DETAILS
========================= */

.job-details {
    max-width: 900px;
    margin: 40px auto;
}

.job-details-header {
    background: white;
    padding: 35px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.job-details-header h1 {
    color: #172554;
    margin: 15px 0 10px;
}

.company-name {
    font-size: 18px;
    color: #555;
}


/* Job information */

.job-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.info-box strong {
    display: block;
    color: #555;
    margin-bottom: 8px;
}

.info-box span {
    color: #172554;
    font-weight: bold;
}


/* Description */

.job-description {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.job-description h2 {
    color: #172554;
    margin-bottom: 15px;
}

.job-description p {
    line-height: 1.7;
    color: #444;
}


/* Apply */

.apply-section {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.apply-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #172554;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.apply-btn:hover {
    opacity: 0.9;
}


/* Mobile */

@media (max-width: 768px) {

    .job-info {
        grid-template-columns: 1fr;
    }

    .job-details-header h1 {
        font-size: 27px;
    }

}
/* =========================
   IMPORTANT LINKS
========================= */

.important-links {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.important-links h2 {
    color: #172554;
    margin-bottom: 20px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-grid a {
    display: inline-block;
    padding: 12px 20px;
    background: #172554;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.links-grid a:hover {
    opacity: 0.9;
}

/* =========================
   ADMIN LOGIN
========================= */

.admin-login {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fb;
}

.admin-login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-login-box h1 {
    text-align: center;
    color: #172554;
    margin-bottom: 25px;
}

.admin-login-box label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.admin-login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.admin-login-box button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #172554;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* =========================
   ADMIN DASHBOARD
========================= */

.admin-dashboard {
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-header {
    background: #172554;
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: white;
    margin-left: 20px;
}

.admin-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card h2 {
    font-size: 40px;
    color: #172554;
}

.dashboard-card p {
    margin-top: 10px;
    color: #555;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.admin-actions a {
    padding: 12px 20px;
    background: #172554;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

@media (max-width: 768px) {

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
    }

    .admin-actions {
        flex-direction: column;
    }

}

/* =========================
   ADMIN JOB FORM
========================= */

.job-form {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.job-form h2 {
    color: #172554;
    margin-top: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.job-form h2:first-child {
    margin-top: 0;
}

.job-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
    margin-top: 15px;
}

.job-form input,
.job-form select,
.job-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.job-form textarea {
    resize: vertical;
}

.submit-job-btn {
    width: 100%;
    margin-top: 30px;
    padding: 14px;
    background: #172554;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.submit-job-btn:hover {
    opacity: 0.9;
}

.success-message {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 15px;
    background: #dcfce7;
    color: #166534;
    border-radius: 5px;
}

.admin-container .error-message {
    max-width: 900px;
    margin: 0 auto 20px;
}

/* =========================
   MANAGE JOBS
========================= */

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.manage-header h2 {
    color: #172554;
}

.add-job-button {
    display: inline-block;
    padding: 10px 18px;
    background: #172554;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


/* TABLE */

.jobs-table-container {
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.jobs-table th {
    background: #172554;
    color: white;
    padding: 15px;
    text-align: left;
}

.jobs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.jobs-table tr:hover {
    background: #f8fafc;
}


/* STATUS */

.status-active {
    background: #dcfce7;
    color: #166534;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
}


/* ACTIONS */

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-buttons a {
    padding: 7px 11px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.view-button {
    background: #475569;
}

.edit-button {
    background: #2563eb;
}

.delete-button {
    background: #dc2626;
}


@media (max-width: 768px) {

    .manage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

}
/* =========================
   PUBLIC JOBS PAGE
========================= */

.site-header {
    background: #172554;
    color: white;
    padding: 18px 0;
}

.site-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    font-size: 24px;
}

.site-header nav {
    display: flex;
    gap: 20px;
}

.site-header nav a {
    color: white;
    text-decoration: none;
}


/* PAGE */

.jobs-page {
    padding: 40px 0;
    background: #f5f7fb;
    min-height: 100vh;
}

.jobs-page h2 {
    color: #172554;
    margin-bottom: 25px;
}


/* SEARCH */

.job-search {
    display: flex;
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-search input,
.job-search select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.job-search button {
    padding: 12px 25px;
    background: #172554;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


/* JOB CARD */

.jobs-list {
    display: grid;
    gap: 20px;
}

.job-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.job-card h3 {
    color: #172554;
    margin-bottom: 8px;
}

.job-company {
    color: #555;
    margin-bottom: 20px;
}

.job-category {
    height: fit-content;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.job-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #444;
}

.view-job-button {
    display: inline-block;
    background: #172554;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
}


/* MOBILE */

@media (max-width: 768px) {

    .site-header .site-container {
        flex-direction: column;
        gap: 15px;
    }

    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .job-search {
        flex-direction: column;
    }

    .job-card-header {
        flex-direction: column;
    }

}

/* =========================
   JOB DETAILS
========================= */

.job-details-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 40px 0;
}


/* HEADER */

.job-details-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.job-details-header h1 {
    margin: 15px 0 10px;
    color: #172554;
    font-size: 32px;
}

.job-details-header .job-company {
    font-size: 18px;
}


/* IMPORTANT INFORMATION */

.important-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.important-box h2 {
    color: #172554;
    margin-bottom: 25px;
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.important-grid div {
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 6px;
}

.important-grid strong {
    display: block;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.important-grid span {
    color: #172554;
    font-weight: bold;
}


/* SECTIONS */

.job-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.job-section h2 {
    color: #172554;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.job-content {
    color: #444;
    line-height: 1.8;
    white-space: normal;
}


/* IMPORTANT LINKS */

.important-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.important-links a {
    background: #172554;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.important-links .apply-button {
    background: #15803d;
    font-weight: bold;
}


/* BACK */

.back-jobs {
    margin-top: 20px;
}

.back-jobs a {
    color: #172554;
    text-decoration: none;
    font-weight: bold;
}


/* MOBILE */

@media (max-width: 900px) {

    .important-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .important-grid {
        grid-template-columns: 1fr;
    }

    .job-details-header h1 {
        font-size: 24px;
    }

    .job-section,
    .important-box,
    .job-details-header {
        padding: 20px;
    }

}
/* =========================
   HOMEPAGE
========================= */

.logo a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}


/* HERO */

.hero-section {
    background: #172554;
    color: white;
    padding: 70px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.home-search {
    max-width: 750px;
    margin: auto;
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 7px;
}

.home-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px;
    font-size: 15px;
}

.home-search button {
    background: #15803d;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
}


/* CATEGORY */

.category-section {
    padding: 40px 0;
    background: #f5f7fb;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: #172554;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card p {
    color: #666;
}


/* HOME JOBS */

.home-jobs-section {
    padding: 50px 0;
    background: #f5f7fb;
}

.government-section {
    background: white;
}

.private-section {
    background: #f5f7fb;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-heading h2 {
    color: #172554;
}

.section-heading a {
    color: #172554;
    text-decoration: none;
    font-weight: bold;
}

.home-job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-job-card {
    background: white;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.home-job-card h3 {
    color: #172554;
    margin: 15px 0 8px;
}

.home-job-top {
    display: flex;
    justify-content: space-between;
}

.home-job-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    color: #555;
}


/* QUICK LINKS */

.quick-links-section {
    padding: 45px 0;
    background: white;
}

.quick-links-section h2 {
    color: #172554;
    margin-bottom: 20px;
}

.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-links a {
    background: #172554;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
}


/* FOOTER */

.site-footer {
    background: #172554;
    color: white;
    padding: 25px 0;
    text-align: center;
}


/* MOBILE */

@media (max-width: 900px) {

    .home-job-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .hero-section {
        padding: 50px 15px;
    }

    .hero-section h1 {
        font-size: 30px;
    }

    .home-search {
        flex-direction: column;
        gap: 5px;
    }

    .home-search button {
        padding: 12px;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .home-job-grid {
        grid-template-columns: 1fr;
    }

    .site-header .site-container {
        padding: 0 10px;
    }

}
/* JOB STATUS */

.job-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0;
}

.job-status.active {
    background: #dcfce7;
    color: #166534;
}

.job-status.closing {
    background: #fef3c7;
    color: #92400e;
}

.job-status.expired {
    background: #fee2e2;
    color: #991b1b;
}