/* --- General Theme Overrides --- */
.entry-meta, .post-meta, .byline, .posted-on { display: none !important; }

/* --- Main Job Listing Container --- */
.aaje-job-listing {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 2rem auto;
    max-width: 1100px;
    display: flex;
    gap: 2.5rem; /* Space between content and sidebar */
    align-items: flex-start;
}

/* --- Job Header --- */
.aaje-job-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}
.aaje-job-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left; /* Explicitly set to left */
}
.aaje-job-header.no-title {
    padding-bottom: 0;
    border-bottom: none;
}
 .aaje-job-header.no-title .aaje-job-meta {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}


/* --- Meta Info Tags --- */
.aaje-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #374151;
}
.aaje-meta-item {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Styles for clickable meta items */
a.aaje-meta-item {
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
a.aaje-meta-item:hover {
    background-color: #d1d5db;
    color: #111827;
}

/* --- Job Content Body --- */
.aaje-job-content {
    color: #374151;
}
.aaje-job-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.aaje-job-content ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}
.aaje-job-content li {
    margin-bottom: 0.5rem;
}

/* --- Apply Now Button --- */
.aaje-apply-button-wrapper {
  margin-top: 2rem;
}
.aaje-apply-button {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}
.aaje-apply-button:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}






/* --- Related Jobs Section --- */
.aaje-related-jobs-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.aaje-related-jobs-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.aaje-related-jobs-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column for mobile */
    gap: 1rem;
}

/* --- Related Job Card (UPDATED) --- */
.aaje-related-job-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important; /* Force no underline */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aaje-related-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
}

.aaje-related-job-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827; /* This is the default color */
    transition: color 0.2s ease-in-out; /* Smooth transition for the color change */
}

/* This is the NEW part that changes the title color */
.aaje-related-job-card:hover h4,
.aaje-related-job-card:focus h4 {
    color: #0073e6; /* This is the new color on hover/click */
}

.aaje-related-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.aaje-related-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Responsive Grid for larger screens --- */
@media (min-width: 640px) {
    .aaje-related-jobs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets and up */
    }
}





/* --- Main Content & Sidebar Layout --- */
.aaje-main-content {
    flex: 1; /* Allows the main content to grow and fill available space */
    min-width: 0; /* Prevents content overflow issues in flexbox */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.aaje-sidebar {
    width: 300px; /* Fixed width for the sidebar */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
}

/* --- Sidebar Widget Styling --- */
.aaje-sidebar .widget {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.aaje-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.aaje-sidebar .widget ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.aaje-sidebar .widget ul li {
    margin-bottom: 0.75rem;
}

.aaje-sidebar .widget a {
    text-decoration: none;
    color: #1d4ed8;
}
 .aaje-sidebar .widget a:hover {
    text-decoration: underline;
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 900px) {
    .aaje-job-listing {
        flex-direction: column; /* Stack content and sidebar vertically */
        gap: 2rem;
    }

    .aaje-sidebar {
        width: 100%; /* Make sidebar full-width on mobile */
    }
}

