:root {
            --primary-color: #005a9c;
            --secondary-color: #333;
            --background-color: #f0f2f5;
            --card-background: #ffffff;
            --text-color: #333;
            --header-height: 60px;
        }

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

        body {
            font-family: "Segoe UI", Tahoma, Arial, sans-serif;
            background: linear-gradient(180deg, #f7f9fb 0%, #e7edf5 100%);
            color: var(--text-color);
        }

        .top-bar {
            background: linear-gradient(180deg, #3a3a3a 0%, #262626 100%);
            color: white;
            padding: 0.45rem 0;
            text-align: center;
            font-size: 0.9em;
            border-bottom: 1px solid #1b1b1b;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
        }

        .top-bar .social-icons a, .top-bar .contact-info span {
            color: white;
            text-decoration: none;
            margin: 0 12px;
            transition: color 0.3s;
        }
        
        .top-bar .social-icons a:hover {
            color: var(--primary-color);
        }

        .top-bar i {
            margin-right: 5px;
        }

        .header {
            width: 100%;
            height: var(--header-height);
            background: linear-gradient(180deg, #ffffff 0%, #e8f0f9 100%);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            z-index: 1000;
            border-bottom: 1px solid #c9d6e6;
        }

        .header .logo {
            height: 120px;
        }

        .header nav a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            padding: 0.45rem 0.9rem;
            border-radius: 3px;
            margin-left: 0.5rem;
            border: 1px solid transparent;
            transition: background-color 0.2s, color 0.2s, border-color 0.2s;
        }

        .header nav a:hover, .header nav a.active {
            background: linear-gradient(180deg, #fefefe 0%, #dbe8f9 100%);
            color: var(--primary-color);
            border-color: #b9cde6;
            box-shadow: inset 0 1px 0 #ffffff;
        }

        .header .jobs-button {
            background: linear-gradient(180deg, #2a78c9 0%, #1c5fa4 100%);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            border: 1px solid #1a4d86;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
            transition: filter 0.2s;
        }

        .header .jobs-button:hover {
            filter: brightness(0.96);
        }

        /* Mobile Sidebar Styles */
        .menu-toggle {
            display: none;
            font-size: 1.5rem;
            color: var(--primary-color);
            cursor: pointer;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1001;
        }
        
        .sidebar-overlay.active {
            display: block;
        }

        .mobile-close-btn {
            display: none;
        }

        .mobile-only-nav-item {
            display: none;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding-top: 1rem;
        }

        /* Job Card Specific Styles */
        .job-card-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            padding: 20px;
            max-width: 1200px;
            margin: 20px auto;
        }

        .job-card {
            background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
            border-radius: 6px;
            border: 1px solid #cdd9e8;
            box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(0, 0, 0, 0.08);
            padding: 22px;
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .job-card h2 {
            color: var(--primary-color);
            font-size: 1.5em;
            margin-bottom: 10px;
        }

        .job-card h3 {
            color: var(--secondary-color);
            font-size: 1.1em;
            margin-bottom: 15px;
        }

        .job-card-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 20px;
            font-size: 0.95em;
            color: #555;
        }

        .job-card-detail-item {
            display: flex;
            align-items: center;
        }

        .job-card-detail-item i {
            margin-right: 8px;
            color: var(--primary-color);
        }

        .job-card .apply-button {
            display: inline-block;
            background: linear-gradient(180deg, #2a78c9 0%, #1c5fa4 100%);
            color: white;
            padding: 9px 18px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            align-self: flex-start; /* Align button to the start of the flex container */
            margin-top: auto; /* Pushes the button to the bottom */
            border: 1px solid #1a4d86;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
            transition: filter 0.2s;
        }

        .job-card .apply-button:hover {
            filter: brightness(0.96);
        }
        .job-card .apply-button.disabled {
            background: #f3f3f3;
            color: #a33;
            border-color: #e1c2c2;
            cursor: not-allowed;
            box-shadow: none;
            pointer-events: none;
        }
        .job-taken-badge {
            color: #c74340;
            font-weight: 700;
            margin-left: 6px;
            font-size: 0.95em;
        }

        /* Search and Display Options Styles */
        .search-and-display-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1200px;
            padding: 0 20px;
            margin-bottom: 20px;
            flex-wrap: wrap; /* Allow items to wrap on smaller screens */
            gap: 15px; /* Space between items when wrapped */
        }

        .search-bar {
            position: relative;
            flex-grow: 1; /* Allow search bar to take available space */
            max-width: 500px; /* Limit search bar width */
        }

        .search-bar input {
            width: 100%;
            padding: 10px 15px;
            padding-right: 40px; /* Make space for the icon */
            border: 1px solid #bfcfe3;
            border-radius: 3px;
            font-size: 1em;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
            background: #ffffff;
        }

        .search-bar i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
        }

        .display-options {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .display-options label {
            font-weight: 500;
            color: var(--secondary-color);
        }

        .display-options select {
            padding: 8px 12px;
            border: 1px solid #bfcfe3;
            border-radius: 3px;
            background: linear-gradient(180deg, #ffffff 0%, #edf3fb 100%);
            font-size: 1em;
            cursor: pointer;
        }

        /* Responsive adjustments for search and display options */
        @media (max-width: 768px) {
            .top-bar { display: none; }
            
            .header {
                height: 70px;
                padding: 0 20px;
                justify-content: space-between;
            }

            .header .logo {
                height: 50px;
            }

            .menu-toggle {
                display: block;
            }

            .header nav {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 0;
                left: -280px;
                width: 280px;
                height: 100vh;
                background-color: white;
                box-shadow: 2px 0 5px rgba(0,0,0,0.2);
                transition: left 0.3s ease;
                z-index: 1002;
                padding: 20px;
                justify-content: flex-start;
                flex-wrap: nowrap;
                align-items: flex-start;
            }

            .header nav.active {
                left: 0;
            }

            .header nav a {
                margin: 0;
                font-size: 1rem;
                padding: 15px 10px;
                background-color: transparent;
                border-radius: 0;
                border-bottom: 1px solid #f0f0f0;
                width: 100%;
                text-align: left;
            }

            .header .jobs-button {
                display: none;
            }

            .mobile-only-nav-item {
                display: block;
                color: var(--primary-color) !important;
                font-weight: bold;
            }

            .mobile-close-btn {
                display: block;
                align-self: flex-end;
                font-size: 1.5rem;
                margin-bottom: 10px;
                cursor: pointer;
                color: #666;
                padding: 5px;
            }

            .search-and-display-options {
                flex-direction: column;
                align-items: flex-start;
            }

            .search-bar {
                width: 100%;
                max-width: none; /* Remove max-width on smaller screens */
            }
        }

        /* List View Specific Styles */
        .job-card-container.list-view {
            grid-template-columns: 1fr; /* Single column for list view */
        }

        .job-card-container.list-view .job-card {
            flex-direction: row; /* Arrange items in a row */
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
        }

        .job-card-container.list-view .job-card h2 {
            margin-bottom: 0;
            font-size: 1.3em;
        }

        .job-card-container.list-view .job-card h3 {
            margin-bottom: 0;
            font-size: 1em;
            flex-basis: 20%; /* Give position some width */
        }

        .job-card-container.list-view .job-card-details {
            flex-direction: row; /* Details in a row */
            gap: 20px;
            margin-bottom: 0;
            flex-grow: 1; /* Allow details to take space */
            justify-content: flex-end; /* Push details to the right */
        }

        .job-card-container.list-view .job-card-detail-item {
            white-space: nowrap; /* Prevent wrapping for date/location */
        }

        .job-card-container.list-view .job-card .apply-button {
            margin-top: 0;
            align-self: center; /* Center button vertically */
        }

        @media (max-width: 600px) {
            .job-card-container.list-view .job-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .job-card-container.list-view .job-card-details {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            .job-card-container.list-view .job-card h3 {
                flex-basis: auto;
            }
        }

        /* Modal Styles */
        .modal {
            display: none; /* Hidden by default */
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background: linear-gradient(180deg, #ffffff 0%, #f0f5fb 100%);
            margin: 10% auto;
            padding: 30px;
            border: 1px solid #bfcfe3;
            width: 80%;
            max-width: 600px;
            border-radius: 6px;
            position: relative;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        .close-button {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            top: 10px;
            right: 20px;
            text-shadow: 0 1px 0 #ffffff;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .job-detail-title {
            font-size: 2em;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .job-detail-section {
            margin-bottom: 15px;
        }

        .job-detail-section h4 {
            font-size: 1.2em;
            color: var(--secondary-color);
            margin-bottom: 8px;
        }

        .job-detail-section p, .job-detail-section ul {
            font-size: 1em;
            line-height: 1.6;
        }

        .job-detail-section ul {
            list-style-position: inside;
        }

        .job-detail-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
        }

        .job-detail-info span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .job-detail-info i {
            color: var(--primary-color);
        }
