/**
 * Jobs Page Styles
 * Design Denmark Theme
 */

/* CSS Variables for Jobs */
:root {
    --job-primary: #2F277E;
    --job-secondary: #786A5A;
    --job-accent: #FC817E;
    --job-text: #24232D;
    --job-text-light: #6B6B6B;
    --job-bg: #FFF9F5;
    --job-white: #ffffff;
    --job-border: #E5E5E5;
    --job-success: #22C55E;
    --job-warning: #F59E0B;
    --job-danger: #EF4444;
}

/* ================================================
   JOBS PAGE LAYOUT
   ================================================ */

.jobs-page-main {
    margin-bottom: 50px;
}

.jobs-page-container,
.single-job-container {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 60px 100px;
}

@media (max-width: 1200px) {
    .jobs-page-container,
    .single-job-container {
        padding: 60px 50px;
    }
}

@media (max-width: 768px) {
    .jobs-page-container,
    .single-job-container {
        padding: 60px 20px;
    }
}

.jobs-page-container {
    max-width: 1565px;
}

/* Page Header */
.jobs-page-header {
    margin-bottom: 50px;
}

.jobs-page-header .page-headline h1 {
    font-family: "Playfair Display", serif;
    font-size: 8vw
    font-weight: 700;
    color: var(--job-text);
    margin: 0 0 20px;
    line-height: 1.1;
}

.jobs-page-header .jobs-intro {
    
    font-size: 20px;
    color: var(--job-text-light);
    margin: 0;
}

/* ================================================
   FILTERS
   ================================================ */

.jobs-filters-section {
    /* background: var(--job-white); */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-row {
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--job-text-light);
    margin-bottom: 8px;
}

.job-search-input,
.job-filter-select {
    width: 100%;
    padding: 24px 18px!important;
    
    font-size: 16px;
    color: var(--job-text);
    background-color: var(--job-bg);
    border: 0px solid transparent!important;
    border-radius: 8px;
    transition: all 0.2s ease;
    appearance: none;
}

.job-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2324232D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.job-search-input:focus,
.job-filter-select:focus {
    outline: none;
    border-color: var(--job-primary);
    background-color: #E9E9E9;
}

.job-search-input::placeholder {
    color: var(--job-text-light);
    opacity: 0.7;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    min-width: auto;
    flex: 0 0 auto;
}

.filter-submit-btn,
.filter-clear-btn {
    padding: 14px 28px;
    
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-submit-btn {
    background-color: #000 !important;
    color: var(--job-white);
    border: 2px solid #000 !important;
}

.filter-submit-btn:hover {
    background-color: #241d66;
    border-color: #241d66;
}

.filter-clear-btn {
    background-color: transparent;
    color: var(--job-text-light);
    border: 2px solid var(--job-border);
}

.filter-clear-btn:hover {
    border-color: var(--job-text);
    color: var(--job-text);
}

/* Jobs Count */
.jobs-count {
    
    font-size: 15px;
    color: var(--job-text-light);
    margin-bottom: 20px;
}

/* ================================================
   JOBS LISTING - LOOP ITEM STYLE
   ================================================ */

.jobs-listing {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Loop Item - Calendar Style */
.loop-item.job-loop-item {
    margin-bottom: 20px
}

.loop-item.job-loop-item:last-child {
    border-bottom: none;
}

.loop-item-link {
    display: flex;
    gap: 30px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.loop-item-link:hover {
    opacity: 0.85;
    background-color: #E9E9E9;
}

/* Left Column - Image */
.loop-item-image {
    flex: 0 0 auto;
    width: 250px;
    height: 200px;
    overflow: hidden;
}

.loop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 600 / 438;
}

.loop-item-link:hover .loop-item-image img {
    transform: scale(1.05);
}

.loop-item-image .logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--job-primary) 0%, var(--job-secondary) 100%);
    opacity: 0.15;
}

/* Right Column - Content */
.loop-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 0;
}

/* Row 1 - Title & Excerpt */
.loop-item-row.loop-item-main {
    flex: 1;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 30px;
}

.loop-item-title {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loop-item-excerpt {
    
    font-size: 15px;
    line-height: 1.6;
    color: var(--job-text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Row 2 - Meta Tags */
.loop-item-row.loop-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Badge styles moved to single location below .meta-badge */

/* No Jobs Found */
.no-jobs-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--job-white);
    border-radius: 12px;
}

.no-jobs-found h3 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--job-text);
    margin: 0 0 12px;
}

.no-jobs-found p {
    
    font-size: 16px;
    color: var(--job-text-light);
    margin: 0 0 24px;
}

.clear-filters-link {
    
    font-size: 16px;
    font-weight: 600;
    color: var(--job-primary);
    text-decoration: none;
}

.clear-filters-link:hover {
    text-decoration: underline;
}

/* ================================================
   PAGINATION
   ================================================ */

.jobs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.jobs-pagination a,
.jobs-pagination span {
    
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jobs-pagination a {
    background-color: var(--job-white);
    color: var(--job-text);
}

.jobs-pagination a:hover {
    background-color: var(--job-primary);
    color: var(--job-white);
}

.jobs-pagination .current {
    background-color: var(--job-primary);
    color: var(--job-white);
}

.jobs-pagination .dots {
    background: none;
    padding: 10px 5px;
}

/* ================================================
   SINGLE JOB PAGE
   ================================================ */

.single-job-main {
    min-height: 100vh;
    padding: 0 0 80px;
}

/* Breadcrumbs */
.job-breadcrumbs {
    
    font-size: 14px;
    margin-bottom: 30px;
}

.job-breadcrumbs a {
    color: var(--job-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-breadcrumbs a:hover {
    color: var(--job-primary);
}

.job-breadcrumbs .separator {
    margin: 0 10px;
    color: var(--job-text-light);
}

.job-breadcrumbs .current {
    color: var(--job-text);
}

/* Expired Notice */
.job-expired-notice {
    background-color: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--job-danger);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.job-expired-notice strong {
    
    font-size: 18px;
    color: var(--job-danger);
    display: block;
    margin-bottom: 8px;
}

.job-expired-notice p {
    
    font-size: 15px;
    color: var(--job-text);
    margin: 0 0 16px;
}

.view-all-jobs-btn {
    
    font-size: 15px;
    font-weight: 600;
    color: var(--job-white);
    background-color: var(--job-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.view-all-jobs-btn:hover {
    background-color: #241d66;
}

/* Job Layout - CSS Grid with Named Areas */
.job-layout {
    display: grid;
    grid-template-columns: 30% 1fr;
    grid-template-areas:
        "image header"
        "sidebar content";
    gap: 40px;
    align-items: start;
}

/* Grid Area Assignments */
.job-featured-image {
    grid-area: image;
}

.job-header {
    grid-area: header;
}

.job-main-content {
    grid-area: content;
}

.job-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
}

/* Featured Image */
.job-featured-image {
    width: 100%;
    overflow: hidden;
    background-color: var(--job-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.job-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Job Header */
.job-header {
    align-self: start;
}

.job-header .job-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--job-text);
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Info Cards */
.info-card {
    background: var(--job-white);
    border-radius: 12px;
    padding: 28px;
}

.info-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--job-border);
}

/* Company Logo in Card */
.company-info-card .company-logo-wrapper {
    margin-bottom: 20px;
}

.company-info-card .company-logo {
    width: 100%;
    height: auto;
}

/* Info List */
.info-list {
    margin: 0;
}

.info-list .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--job-border);
}

.info-list .info-item:first-of-type {
    padding-top: 0;
}

.info-list .info-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list dt {
    
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--job-text-light);
}

.info-list dd {
    
    font-size: 15px;
    color: var(--job-text);
    margin: 0;
}

.info-list dd a {
    color: var(--job-primary);
    text-decoration: none;
}

.info-list dd a:hover {
    text-decoration: underline;
}

/* Company Description in Card */
.company-info-card .company-description {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--job-border);
    
    font-size: 14px;
    line-height: 1.6;
    color: var(--job-text-light);
}

.company-info-card .company-description p {
    margin: 0 0 12px;
}

.company-info-card .company-description p:last-child {
    margin-bottom: 0;
}

/* Apply Button */
.info-card .apply-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px 24px;
    
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    background-color: #000 !important;
    color: #fff !important;
    transition: all 0.2s ease;
}

.info-card .apply-btn:hover {
    background-color: #e66a67;
    transform: translateY(-2px);
}

.info-card .apply-expired-text {
    margin-top: 16px;
    
    font-size: 14px;
    color: var(--job-text-light);
    text-align: center;
}

/* Share Card */
.share-card .share-buttons {
    display: flex;
    gap: 12px;
}

.share-card .share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-card .share-btn.linkedin {
    background-color: #0077B5;
    color: var(--job-white);
}

.share-card .share-btn.linkedin:hover {
    background-color: #005f94;
}

.share-card .share-btn.twitter {
    background-color: #000000;
    color: var(--job-white);
}

.share-card .share-btn.twitter:hover {
    background-color: #333333;
}

.share-card .share-btn.email {
    background-color: var(--job-bg);
    color: var(--job-text);
}

.share-card .share-btn.email:hover {
    background-color: var(--job-border);
}

.share-card .share-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Content - Right Column */
.job-main-content {
    min-width: 0;
}

/* Job Meta Badges */
.job-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-badge {
    
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.meta-badge:hover {
    transform: translateY(-1px);
}

.job-type-badge {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.job-type-badge:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.job-category-badge {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.job-category-badge:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.job-geography-badge {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000;
}

.job-geography-badge:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* Job Description */
.job-description-section {
    background: var(--job-white);
    border-radius: 12px;
    padding: 40px;
}



.job-description p {
    margin: 0 0 16px;
}

.job-description p:last-child {
    margin-bottom: 0;
}

.job-description ul,
.job-description ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.job-description li {
    margin-bottom: 8px;
}

.job-description h2,
.job-description h3,
.job-description h4 {
    font-family: "Playfair Display", serif;
    margin: 32px 0 16px;
}

.job-description h2:first-child,
.job-description h3:first-child,
.job-description h4:first-child {
    margin-top: 0;
}

.job-description h2 {
    font-size: 24px;
}

.job-description h3 {
    font-size: 20px;
}

.job-description h4 {
    font-size: 18px;
}

/* Legacy support for old layout */
.job-header {
    background: var(--job-white);
    border-radius: 12px;
    padding: 40px;
}

.job-header-top {
    margin-bottom: 24px;
}

.job-header-company {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo-wrapper {
    max-width: 180px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-header .company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-header .company-name {
    
    font-size: 18px;
    font-weight: 600;
    color: var(--job-text);
}

.job-header .job-location {
    
    font-size: 15px;
    color: var(--job-text-light);
}

.job-header .job-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--job-text);
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Content Wrapper */
.job-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Main Content */
.job-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-description-section,
.company-description-section {
    background: var(--job-white);
    border-radius: 12px;
    padding: 40px;
}

.job-description-section h2,
.company-description-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--job-border);
}


.job-description p,
.company-description p {
    margin: 0 0 16px;
}

.job-description ul,
.job-description ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.job-description li {
    margin-bottom: 8px;
}

.job-description h3,
.job-description h4 {
    font-family: "Playfair Display", serif;
    margin: 32px 0 16px;
}

.job-description h3 {
    font-size: 20px;
}

.job-description h4 {
    font-size: 18px;
}

/* Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-apply-card,
.job-details-card,
.job-contact-card,
.job-share-card {
    background: var(--job-white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.job-apply-card h3,
.job-details-card h3,
.job-contact-card h3,
.job-share-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 20px;
}

/* Apply Card */
.apply-deadline {
    margin-bottom: 20px;
}

.apply-deadline strong {
    
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--job-text-light);
    display: block;
    margin-bottom: 6px;
}

.apply-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.apply-btn.primary-btn {
    background-color: var(--job-accent);
    color: var(--job-white);
}

.apply-btn.primary-btn:hover {
    background-color: #e66a67;
    transform: translateY(-2px);
}

.apply-expired-text {
    
    font-size: 14px;
    color: var(--job-text-light);
    margin: 0;
    text-align: center;
}

/* Details Card */
.job-details-list {
    margin: 0;
}

.job-details-list .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--job-border);
}

.job-details-list .detail-item:last-child {
    border-bottom: none;
}

.job-details-list dt {
    
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--job-text-light);
}

.job-details-list dd {
    
    font-size: 15px;
    color: var(--job-text);
    margin: 0;
}

.company-website-link {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--job-border);
    
    font-size: 14px;
    font-weight: 600;
    color: var(--job-primary);
    text-decoration: none;
}

.company-website-link:hover {
    text-decoration: underline;
}

/* Contact Card */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item .contact-name {
    
    font-size: 16px;
    color: var(--job-text);
}

.contact-item .contact-email,
.contact-item .contact-phone {
    
    font-size: 15px;
    color: var(--job-primary);
    text-decoration: none;
}

.contact-item .contact-email:hover,
.contact-item .contact-phone:hover {
    text-decoration: underline;
}

/* Share Card */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    padding: 12px 16px;
    
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.share-btn.linkedin {
    background-color: #0077B5;
    color: var(--job-white);
}

.share-btn.linkedin:hover {
    background-color: #005f94;
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: var(--job-white);
}

.share-btn.twitter:hover {
    background-color: #0d8ed9;
}

.share-btn.email {
    background-color: var(--job-bg);
    color: var(--job-text);
}

.share-btn.email:hover {
    background-color: var(--job-border);
}

/* Latest Jobs */
.latest-jobs-section {
    margin-top: 60px;
}

.latest-jobs-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 30px;
}

/* Back to Jobs */
.back-to-jobs {
    margin-top: 50px;
    text-align: center;
}

.back-link {
    
    font-size: 16px;
    font-weight: 600;
    color: var(--job-primary);
    text-decoration: none;
    display: inline-block;
    padding-bottom: 2px;
    background-image: linear-gradient(to right, var(--job-primary) 33%, transparent 33% 66%, var(--job-primary) 66%);
    background-position: right bottom;
    background-size: 300% 2px;
    background-repeat: no-repeat;
}

.back-link:hover {
    background-position: left bottom;
    transition: background-position 0.8s;
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */

/* Tablet & Below - Stack Layout */
@media only screen and (max-width: 1199px) {
    .job-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "header"
            "content"
            "sidebar";
        gap: 30px;
    }

    .job-sidebar {
        position: static;
    }

    /* Featured image full width on mobile */
    .job-featured-image {
        max-height: 400px;
    }

    .job-featured-image img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media only screen and (max-width: 768px) {
    .jobs-page-main,
    .single-job-main {
        padding: 30px 0 60px;
    }

    .jobs-page-header {
        margin-bottom: 30px;
    }

    .jobs-filters-section {
        padding: 20px;
    }

    .filter-dropdowns {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-submit-btn,
    .filter-clear-btn {
        width: 100%;
    }

    /* Loop Item Responsive */
    .loop-item-link {
        flex-direction: column;
        gap: 20px;
        padding: 24px 0;
    }

    .loop-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .loop-item-title {
        font-size: 20px;
    }

    .loop-item-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    /* Single Job Mobile */
    .job-featured-image {
        max-height: 280px;
    }

    .job-featured-image img {
        max-height: 280px;
    }

    .job-header .job-title {
        font-size: 28px;
    }

    .job-description-section {
        padding: 24px;
    }

    .info-card {
        padding: 20px;
    }

    .related-jobs-grid {
        grid-template-columns: 1fr;
    }

    .share-card .share-buttons {
        flex-wrap: wrap;
    }

    .share-card .share-btn {
        flex: 1 1 100%;
    }
}

@media only screen and (max-width: 480px) {
    .loop-item-image {
        height: 160px;
    }

    .loop-item-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .loop-item-excerpt {
        font-size: 13px;
    }

    .job-meta-badges,
    .loop-item-meta {
        flex-wrap: wrap;
    }

    .meta-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .job-featured-image {
        max-height: 220px;
    }

    .job-featured-image img {
        max-height: 220px;
    }

    .job-header .job-title {
        font-size: 24px;
    }
}

/* =============================================
   Jobs Grid Shortcode
   ============================================= */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.jobs-grid-item {
    background: var(--job-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jobs-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.jobs-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.jobs-grid-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--job-bg);
}

.jobs-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jobs-grid-item:hover .jobs-grid-image img {
    transform: scale(1.05);
}

.jobs-grid-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--job-bg) 0%, #e0ddd8 100%);
}

.jobs-grid-content {
    padding: 24px;
}

.jobs-grid-title {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--job-text);
    margin: 0 0 12px;
    line-height: 1.3;
}

.jobs-grid-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--job-text-light);
    margin: 0 0 16px;
}

.jobs-grid-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.jobs-grid-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jobs-grid-date {
    font-size: 13px;
    color: var(--job-text-light);
}

/* Jobs Grid Responsive */
@media only screen and (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media only screen and (max-width: 600px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jobs-grid-content {
        padding: 20px;
    }

    .jobs-grid-title {
        font-size: 18px;
    }

    .jobs-grid-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

