/*
Theme Name: Career Search
Description: A WordPress theme that replicates Stanford's career search functionality with Elementor compatibility. Features advanced job search filters, responsive design, and custom post types for job listings.
Version: 1.0.0
Author: Career Search Team
Text Domain: careersearch
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme is designed to work seamlessly with Elementor page builder.
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.page-subtitle p {
    margin: 0;
}

.archive-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Site Header */
.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e1e5e9;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
    position: relative;
    /* Ensure enough space for centered logo */
    min-height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-start;
}

/* Move site branding out of header-left and center it */
.site-branding {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 60px; /* Prevent logo from expanding header beyond reasonable limits */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Ensure navigation and user menu don't overlap with centered logo */
.header-left {
    min-width: 0;
    overflow: visible;
    /* Ensure enough space for centered logo */
    max-width: calc(50% - 150px); /* Reserve space for logo */
}

.user-menu {
    min-width: 0;
    overflow: visible;
    /* Ensure enough space for centered logo */
    max-width: calc(50% - 150px); /* Reserve space for logo */
}

/* Adjust navigation for centered logo layout */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #8c1515;
    text-decoration: none;
    max-height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: #7a1210;
    text-decoration: none;
}

/* Logo image responsive styling */
.site-logo img,
.custom-logo-link img {
    max-height: 50px; /* Maximum logo height */
    max-width: 100%; /* Prevent logo from exceeding container width */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Maintain aspect ratio while fitting within bounds */
    transition: all 0.2s ease;
    /* Additional safety measures for very large images */
    display: block;
    vertical-align: middle;
}

/* Handle SVG logos specifically */
.site-logo svg,
.custom-logo-link svg {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
    display: block;
    /* Ensure SVG fills the container properly */
    object-fit: contain;
    transition: all 0.2s ease;
}

/* SVG logo specific enhancements */
.custom-logo-link svg,
.site-logo svg {
    fill: currentColor; /* Allow SVG to inherit color if needed */
}

/* Ensure SVG logos scale properly in all contexts */
.custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
}

/* Handle WordPress custom logo specifically for SVG */
.custom-logo svg {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* Additional SVG safety and compatibility */
.site-branding svg,
.site-branding img {
    /* Prevent SVG/images from breaking out of container */
    max-width: 100%;
    height: auto;
}

/* Ensure SVG logos render properly in all browsers */
svg.custom-logo {
    max-height: inherit;
    width: auto;
    height: auto;
}

/* WordPress generates img tags for custom logos, ensure SVG works */
img.custom-logo[src$=".svg"] {
    /* Special handling for SVG files served as img tags */
    object-fit: contain;
    max-height: 50px;
    width: auto;
    height: auto;
}

/* Custom logo link styling */
.custom-logo-link {
    display: flex;
    align-items: center;
    max-height: 100%;
    transition: opacity 0.2s ease;
    /* Prevent logo from breaking layout */
    overflow: hidden;
    line-height: 0; /* Remove line-height that might affect image positioning */
}

.custom-logo-link:hover {
    opacity: 0.9;
}

/* Logo container safety measures */
.site-branding .custom-logo-link,
.site-branding .site-logo {
    /* Prevent logos from expanding beyond container */
    flex-shrink: 1;
    min-width: 0;
    max-width: 300px; /* Reasonable maximum width */
}

/* Ensure very wide logos don't break the header layout */
@media (max-width: 768px) {
    .site-branding .custom-logo-link,
    .site-branding .site-logo {
        max-width: 200px; /* Smaller max width on mobile */
    }
}

@media (max-width: 480px) {
    .site-branding .custom-logo-link,
    .site-branding .site-logo {
        max-width: 150px; /* Even smaller on very small screens */
    }
}

/* Ensure header maintains consistent height */
.header-content {
    /* Remove duplicate - already defined above */
}

.main-navigation {
    display: flex;
    align-items: center;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.user-menu-item:hover {
    background: #f8f9fa;
    color: #8c1515;
    text-decoration: none;
    border-color: #e1e5e9;
}

.user-menu-item i {
    font-size: 1rem;
    color: #8c1515;
}

.user-menu-item span {
    white-space: nowrap;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e1e5e9;
    transition: border-color 0.2s ease;
}

.user-menu-item:hover .user-avatar {
    border-color: #8c1515;
}

/* Profile Menu Dropdown */
.user-profile-menu {
    position: relative;
}

.profile-toggle {
    position: relative;
}

.profile-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.profile-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Ensure dropdown is hidden by default */
.profile-dropdown {
    display: none;
}

.profile-dropdown.show {
    display: block;
}

/* ==== My Submissions Page Styles ==== */

/* Top Navigation Interface */
.top-nav-header {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.left-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.separator {
    color: #666;
    margin: 0 0.5rem;
}

.meta-link a {
    color: #8c1515;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-link a:hover {
    text-decoration: underline;
}

.right-panel .meta-panel a {
    color: #8c1515;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.right-panel .meta-panel a:hover {
    text-decoration: underline;
}

/* Main Navigation Tabs */
.main-nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.nav-tab {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-right: 1px solid #e1e5e9;
    transition: background-color 0.3s ease;
}

.nav-tab:hover {
    background: #f8f9fa;
}

.nav-tab.selected {
    background: #8c1515;
    color: white;
}

.nav-tab.selected span {
    color: white;
    font-weight: 600;
}

.nav-tab a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab a:hover {
    color: #8c1515;
    text-decoration: none;
}

.magnifier-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') center/contain no-repeat;
    margin-right: 0.5rem;
}

/* Sub Navigation Tabs */
.sub-nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    align-items: center;
}

.sub-tab {
    padding: 0.75rem 1rem;
}

.sub-tab.selected {
    font-weight: 600;
    color: #8c1515;
}

.sub-tab a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.sub-tab a:hover {
    color: #8c1515;
    text-decoration: underline;
}

.sub-tab-separator {
    color: #ccc;
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

/* Active navigation link styling */
.nav-link.active {
    background: #8c1515 !important;
    color: white !important;
}

.nav-link.active i {
    color: white;
}

/* Submissions Content Styles */
.submissions-content h1 {
    color: #8c1515;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #8c1515;
    padding-bottom: 0.5rem;
}

.submissions-listings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.submission-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #8c1515;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.submission-title {
    margin: 0;
    font-size: 1.25rem;
}

.submission-title a {
    color: #8c1515;
    text-decoration: none;
    font-weight: 600;
}

.submission-title a:hover {
    text-decoration: underline;
}

.submission-meta {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

.submission-id {
    display: block;
    font-weight: 500;
}

.submission-date {
    display: block;
    margin-top: 0.25rem;
}

.submission-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.submission-info {
    flex: 1;
}

.info-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    margin-right: 0.5rem;
}

.info-value {
    color: #666;
}

.submission-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-application-received {
    background: #e3f2fd;
    color: #1565c0;
}

.status-under-review {
    background: #fff3e0;
    color: #ef6c00;
}

.status-interview-scheduled {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.submission-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #8c1515;
    color: #8c1515;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline:hover {
    background: #8c1515;
    color: white;
    text-decoration: none;
}

.withdraw-btn:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    color: white;
}

/* Empty State */
.no-submissions-found {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: #8c1515;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #7a1210;
    text-decoration: none;
    color: white;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e1e5e9;
}

.profile-dropdown::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e1e5e9;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-details strong {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.profile-details span {
    color: #666;
    font-size: 0.85rem;
}

.profile-actions {
    padding: 0.5rem 0;
}

.profile-actions a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.profile-actions a:hover {
    background: #f8f9fa;
    color: #8c1515;
    text-decoration: none;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: #f1f1f1;
    color: #333;
}

.auth-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.auth-modal-header h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.auth-modal-header p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.auth-modal-body {
    padding: 1.5rem 2rem 2rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: #8c1515;
    border-bottom-color: #8c1515;
}

.auth-tab:hover:not(.active) {
    background: #f8f9fa;
    color: #333;
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8c1515;
    box-shadow: 0 0 0 2px rgba(140, 21, 21, 0.2);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #8c1515;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit-btn:hover {
    background: #7a1210;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #8c1515;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.auth-message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Checkbox styling for auth modal */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333333;
    cursor: pointer;
    position: relative;
    padding-left: 24px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 3px;
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label a {
    color: #8c1515;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.required {
    color: #dc3545;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .auth-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .auth-tab {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Stanford-style Job Search Layout */

/* Main Search Bar */
.main-search-bar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
    padding: 1.5rem;
}

.main-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    border: 2px solid #8c1515;
    border-radius: 4px;
    overflow: hidden;
}

.main-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.main-search-input::placeholder {
    color: #999;
}

.main-search-btn {
    background: #8c1515;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.main-search-btn:hover {
    background: #7a1210;
}

.main-search-btn i {
    font-size: 1rem;
}

/* Stanford-style Layout Grid */
.jobs-layout {
    display: grid;
    grid-template-columns: 24% 74%;
    gap: 2%;
    margin: 2rem 0;
    align-items: start;
}

/* Sidebar Styles */
.jobs-sidebar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e1e5e9;
}

/* Filter Groups in Sidebar */
.job-filters-form .filter-group {
    margin-bottom: 1.5rem;
}

.job-filters-form .filter-group:last-of-type {
    margin-bottom: 1rem;
}

.job-filters-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    display: flex;
}

/* Sidebar Navigation Links */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    border-color: #e1e5e9;
    color: #8c1515;
    text-decoration: none;
}

.nav-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Stanford-style Checkbox Lists */
.checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 0;
    margin: 0;
}

.checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 14px;
    width: 14px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    position: relative;
    transition: all 0.15s ease;
    display: inline-block;
    margin-right: 0.6rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkmark {
    background-color: #2e7d2e;
    border-color: #2e7d2e;
}

.checkbox-item input[type="checkbox"]:focus ~ .checkmark {
    border-color: #8c1515;
    box-shadow: 0 0 0 2px rgba(140, 21, 21, 0.1);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 3px;
    top: 0px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    line-height: 1.4;
    color: #333;
    word-break: break-word;
    /* Text will now properly align when wrapping */
    flex: 1;
}

/* Handle text that's directly inside the label (like "All Regions") */
.checkbox-item:not(:has(.checkbox-text)) *:not(.checkmark):not(input) {
    flex: 1;
    line-height: 1.4;
    color: #333;
}

/* Hierarchy levels styling */
.checkbox-item.level-1 {
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-item.level-2 {
    padding-left: 1.2rem;
    font-weight: 400;
    color: #444;
}

.checkbox-item.level-3 {
    padding-left: 1.8rem;
    color: #555;
}

.checkbox-item.level-4 {
    padding-left: 2.4rem;
    color: #666;
    font-weight: 400;
}

/*
.checkbox-item.level-5 {
    padding-left: 3rem;
    color: #777;
    font-size: 0.8rem;
}
*/

/* "All" options styling */
.checkbox-item:first-child {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
}

.checkbox-item:first-child .checkmark {
    border-color: #adb5bd;
}

.checkbox-item:first-child input[type="checkbox"]:checked ~ .checkmark {
    background-color: #2e7d2e;
    border-color: #2e7d2e;
}

.job-filters-form select,
.job-filters-form input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-filters-form select:focus,
.job-filters-form input[type="text"]:focus {
    outline: none;
    border-color: #8c1515;
    box-shadow: 0 0 0 2px rgba(140, 21, 21, 0.1);
}

/* Filter Actions */
.filter-actions {
    border-top: 1px solid #e1e5e9;
    padding-top: 1rem;
}

.filter-actions .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-actions .btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Main Content Area */
.jobs-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

/* Content Header */
.content-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    background: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s ease;
    border-right: 1px solid #ddd;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn.active {
    background: #8c1515;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
}

.view-btn i {
    margin-right: 0.25rem;
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.sort-options select {
    padding: 0.4rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}

/* Job Listings Area */
.job-listings {
    padding: 1.5rem;
}

/* No Jobs Found */
.no-jobs-found {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-jobs-found h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-jobs-found p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Pagination */
.pagination-container {
    padding: 1.5rem;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Loading Indicator */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8c1515;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Layout */
@media (max-width: 992px) {
    .jobs-layout {
        grid-template-columns: 30% 70%;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jobs-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .jobs-content {
        order: 1;
    }
    
    .results-info {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .results-actions {
        justify-content: space-between;
    }
    
    .main-search-form {
        max-width: none;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .main-search-btn {
        border-radius: 0;
    }
    
    /* Checkbox lists on mobile */
    .checkbox-list {
        max-height: 200px; /* Smaller height on mobile */
    }
    
    .checkbox-item {
        padding: 0.6rem 0.75rem; /* Larger touch targets */
    }
    
    .checkmark {
        height: 16px;
        width: 16px;
        margin-right: 0.75rem;
        margin-top: 0.1rem;
    }
    
    .checkmark:after {
        left: 4px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-search-bar,
    .sidebar-content,
    .content-header,
    .job-listings,
    .pagination-container {
        padding: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .view-toggle,
    .sort-options {
        justify-content: center;
    }
}

/* Job Search Styles - Stanford-inspired */
/* Legacy job search container - replaced with Stanford layout */
.job-search-container {
    display: none; /* Hidden as we now use Stanford-style layout */
}

.filter-group,
.search-field,
.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-group label,
.search-field label,
.filter-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input,
.search-field select,
.search-field input,
.filter-field select,
.filter-field input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus,
.search-field select:focus,
.search-field input:focus,
.filter-field select:focus,
.filter-field input:focus {
    outline: none;
    border-color: #8c1515;
    box-shadow: 0 0 0 2px rgba(140, 21, 21, 0.1);
}

/* Job Results - Stanford Style */
.job-results {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.results-count {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.results-sorting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-sorting label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.results-sorting select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    background: #fff;
}

.job-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-left: 4px solid transparent;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.job-item:hover {
    border-left-color: #8c1515;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #8c1515;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1.3;
}

.job-title:hover {
    text-decoration: underline;
    color: #7a1210;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.job-location,
.job-category,
.job-type,
.work-arrangement {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-location i,
.job-category i,
.job-type i,
.work-arrangement i {
    color: #8c1515;
    font-size: 0.8rem;
}

.job-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-tag {
    background: #f5f5f5;
    color: #333;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-tag.new {
    background: #28a745;
    color: white;
}

.job-tag.hot {
    background: #dc3545;
    color: white;
}

.job-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.job-posted-date {
    margin-top: 0.75rem;
    color: #888;
    font-size: 0.8rem;
}

.no-jobs-found {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.no-jobs-found h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5e9;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8c1515;
    color: white;
    border-color: #8c1515;
}

.pagination .current {
    background: #8c1515;
    color: white;
    border-color: #8c1515;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
        max-height: none; /* Remove height restriction on mobile */
        padding: 0.75rem 0;
        position: static; /* Reset position for mobile */
    }
    
    .header-left {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        align-items: center;
        justify-content: center;
        order: 2; /* Put navigation after logo on mobile */
        max-width: 100%; /* Reset max-width on mobile */
    }
    
    .site-branding {
        max-height: 50px; /* Smaller max height on mobile */
        position: static; /* Reset positioning on mobile */
        transform: none; /* Reset transform on mobile */
        order: 1; /* Put logo first on mobile */
        margin-bottom: 0.5rem;
    }
    
    .user-menu {
        order: 3; /* Put user menu last on mobile */
        justify-content: center;
        width: 100%;
        max-width: 100%; /* Reset max-width on mobile */
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .site-logo img,
    .custom-logo-link img {
        max-height: 40px; /* Smaller logo on mobile */
    }
    
    /* SVG logos on mobile */
    .site-logo svg,
    .custom-logo-link svg,
    .custom-logo svg {
        max-height: 40px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .site-branding {
        max-height: 40px;
    }
    
    .site-logo img,
    .custom-logo-link img {
        max-height: 35px; /* Even smaller on very small screens */
    }
    
    /* SVG logos on small screens */
    .site-logo svg,
    .custom-logo-link svg,
    .custom-logo svg {
        max-height: 35px;
    }
}

/* Large screens - allow slightly larger logos */
@media (min-width: 1200px) {
    .site-logo img,
    .custom-logo-link img {
        max-height: 60px; /* Larger logo on desktop */
    }
    
    /* SVG logos on large screens */
    .site-logo svg,
    .custom-logo-link svg,
    .custom-logo svg {
        max-height: 60px;
    }
    
    .site-branding {
        max-height: 70px;
    }
    
    .header-content {
        max-height: 90px; /* Allow taller header on large screens */
    }
}

/* Continue with existing responsive styles */
@media (max-width: 768px) {
    .user-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-menu-item span {
        display: none;
    }
    
    .user-menu-item {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
    
    .user-menu-item i {
        font-size: 1.1rem;
    }
    
    .profile-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 250px;
    }
    
    .profile-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .profile-dropdown::before,
    .profile-dropdown::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .auth-modal-header,
    .auth-modal-body {
        padding: 1rem;
    }
    
    .search-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-filters,
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-toggle {
        align-self: center;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .job-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .user-menu {
        gap: 0.5rem;
    }
    
    .user-menu-item {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
    
    .user-menu-item i {
        font-size: 1rem;
    }
    
    .auth-modal-content {
        max-height: 95vh;
    }
    
    .profile-dropdown {
        min-width: 220px;
    }
}

/* Elementor Compatibility */
.elementor-widget-container {
    max-width: 100%;
}

.elementor-job-search-widget {
    width: 100%;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8c1515;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8c1515;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1;
}

.btn:hover {
    background: #7a1210;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-primary {
    background: #8c1515;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Filter Actions - Stanford Style */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
    margin-top: 1rem;
}

.view-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s ease;
    border-right: 1px solid #ccc;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn.active,
.view-btn:hover {
    background: #8c1515;
    color: white;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.reset-filters {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Stanford-specific Filter Styling */
.job-search-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-row {
    margin-bottom: 1.5rem;
}

.keyword-field,
.location-field,
.submit-field {
    flex: 1;
}

.keyword-field {
    min-width: 250px;
}

.location-field {
    min-width: 200px;
}

.submit-field {
    min-width: 150px;
    display: flex;
    align-items: flex-end;
}

.search-field {
    margin-right: 1rem;
}

.search-field:last-child {
    margin-right: 0;
}

/* Enhanced Filter Buttons */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.filter-tag.active {
    background: #8c1515;
    border-color: #8c1515;
    color: white;
}

.filter-tag .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.filter-tag .remove:hover {
    opacity: 1;
}

/* Search Loading State */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    margin: 2rem 0;
    color: #666;
}

/* Stanford University specific branding */
.stanford-branding {
    color: #8c1515;
    font-weight: 600;
}

.school-unit i {
    color: #8c1515;
    font-size: 0.8rem;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e1e5e9;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #8c1515;
    color: white;
    border-color: #8c1515;
    text-decoration: none;
}

.pagination .current {
    background: #8c1515;
    color: white;
    border-color: #8c1515;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Enhanced error states */
.search-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.search-error i {
    margin-right: 0.5rem;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* Additional Stanford-inspired enhancements */
.job-listings {
    min-height: 400px;
}

.hovered {
    background: #fafafa !important;
}

/* Location Hierarchy Styles */
.location-hierarchy {
    line-height: 1.4;
}

.location-hierarchy a {
    color: #8c1515;
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-hierarchy a:hover {
    color: #7a1210;
    text-decoration: underline;
}

.hierarchy-separator {
    color: #666;
    margin: 0 0.5rem;
    font-weight: normal;
}

.location-description {
    margin-top: 0.25rem;
    color: #666;
    font-style: italic;
}

/* Location Filter Enhancements */
.filter-field select optgroup {
    font-weight: 600;
    color: #8c1515;
    background: #f8f9fa;
}

.filter-field select option {
    padding: 0.25rem 0.5rem;
}

/* Job Meta Location Display */
.job-location .hierarchy-indicator {
    color: #8c1515;
    font-weight: 500;
}

/* Admin Location Tree Styles */
.location-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 1.5rem;
}

.location-tree li {
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-left: 2px solid #e1e5e9;
    padding-left: 1rem;
}

.location-tree li:hover {
    border-left-color: #8c1515;
    background: #fafafa;
}

/* Location Meta Box Styles */
#taxonomy-job_location .categorychecklist {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 0.5rem;
    background: #fff;
}

#taxonomy-job_location .children {
    margin-left: 1rem;
    border-left: 1px solid #e1e5e9;
    padding-left: 0.5rem;
}

#taxonomy-job_location label {
    display: block;
    padding: 0.2rem 0;
    cursor: pointer;
}

#taxonomy-job_location label:hover {
    background: #f0f0f0;
}

/* Focus improvements for accessibility */
.job-item:focus-within {
    border-left-color: #8c1515;
    box-shadow: 0 2px 8px rgba(140, 21, 21, 0.15);
}

/* Print-friendly styles */
@media print {
    .job-search-container,
    .filter-actions,
    .pagination,
    .job-actions {
        display: none !important;
    }
    
    .job-item {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        break-inside: avoid;
    }
}