:root {
    --primary-color: #a02020;
    --secondary-color: #f4f4f4;
    --accent-color: #ff9900;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: #f9fafb;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.header-logo {
    height: 140px; 
    width: auto;
    object-fit: contain;
}

.header-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.header-title {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
}

.header-subtitle {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-container {
    background: #000;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Centering primary */
    flex-wrap: wrap;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-container a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-container a:hover {
    color: #ffcc00;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Info Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.card-header {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Post Table Layout */
.job-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.job-table th, .job-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.job-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.job-table-green th {
    background-color: #006600; /* Dark green from screenshot */
    color: white;
}

.job-table-links {
    background-color: #fffacd; /* Light golden/yellow background */
}
.job-table-links th {
    background-color: #fffacd;
    color: #800080; /* Purple text for 'Important Links' */
    text-align: center;
}
.job-table-links td {
    text-align: center;
    font-weight: bold;
    color: #a02020;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #800000;
    transform: translateY(-2px);
}

/* Rounded Pill Buttons for Links */
.btn-pill {
    display: inline-block;
    padding: 8px 25px;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-green { background-color: #2e7d32; }
.btn-green:hover { background-color: #1b5e20; }

.btn-purple { background-color: #800080; }
.btn-purple:hover { background-color: #4a004a; }

.btn-orange { background-color: #f57c00; }
.btn-orange:hover { background-color: #e65100; }


/* Responsive Layouts */
@media screen and (max-width: 768px) {
    .job-table {
        display: block;
        overflow-x: auto;
    }
    
    .main-header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    .header-logo {
        height: 90px;
        margin: 0 auto;
    }
    
    .header-text-container {
        flex: none;
        width: 100%;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    /* Admin Mobile Overrides */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .row {
        flex-direction: column !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .cat-list li {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    .admin-form .add-form {
        flex-direction: column;
    }
}

/* Admin Dashboard Elements */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form input, .admin-form textarea, .admin-form select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: var(--transition);
}

.admin-form input:focus, .admin-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(160, 32, 32, 0.3);
}

.admin-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.table-responsive {
    width: 100%;
    margin-bottom: 1rem;
    overflow-x: auto;
}

/* Search Form Styling */
.search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 3px 5px;
    border: 1px solid #ddd;
    margin-left: 20px; /* Space from links */
}

.search-input {
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 0.85rem !important;
    width: 180px;
    background: transparent !important;
    box-shadow: none !important;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.search-btn:hover {
    background: #000;
}

@media screen and (max-width: 768px) {
    .search-form {
        margin: 10px auto !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .search-input {
        width: 100% !important;
    }
}
