/* Core CSS Variables for IALA Jobs Board */
:root {
    --iala-primary: #4f46e5;
    --iala-primary-hover: #4338ca;
    --iala-secondary: #0f172a;
    --iala-secondary-hover: #1e293b;
    --iala-bg-card: #ffffff;
    --iala-bg-board: #f8fafc;
    --iala-text-main: #1e293b;
    --iala-text-muted: #64748b;
    --iala-border-color: #e2e8f0;
    --iala-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --iala-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --iala-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --iala-radius-sm: 8px;
    --iala-radius-md: 12px;
    --iala-radius-lg: 16px;
    --iala-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container Wrapper */
.iala-jobs-container {
    font-family: var(--iala-font-family);
    color: var(--iala-text-main);
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Filter and Search Panel */
.iala-jobs-filter-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: var(--iala-radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--iala-border-color);
    box-shadow: var(--iala-shadow-sm);
}

.iala-search-wrapper {
    position: relative;
    flex-grow: 1;
}

.iala-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    color: var(--iala-text-muted);
}

#iala-jobs-search {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: 0.95rem;
    color: var(--iala-text-main);
    background-color: #ffffff;
    border: 1px solid var(--iala-border-color);
    border-radius: var(--iala-radius-sm);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#iala-jobs-search:focus {
    border-color: var(--iala-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.iala-filters-group {
    display: flex;
    gap: 1rem;
}

.iala-filter-dropdown-wrapper {
    position: relative;
}

.iala-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.85rem 2.5rem 0.85rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--iala-text-main);
    background-color: #ffffff;
    border: 1px solid var(--iala-border-color);
    border-radius: var(--iala-radius-sm);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    min-width: 180px;
}

.iala-filter-select:focus {
    border-color: var(--iala-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Jobs List Grid */
.iala-jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Job Cards styling */
.iala-job-card {
    background-color: #ffffff;
    color: #000000;
    border-radius: 20px;
    border: none;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
    box-sizing: border-box;
    word-wrap: break-word;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1266px;
    /* Ensure responsiveness and constraint */
    height: 308px;
    /* Exact height specified by user */
}

.iala-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 18px 24px -6px rgba(34, 56, 101, 0.08);
}

/* Logo Section */
.iala-job-logo-section {
    width: 417px;
    /* 3:2 ratio width for 278px height */
    height: 278px;
    /* Fills the vertical space inside the 308px card */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
}

.iala-job-logo-section a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.iala-job-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.iala-job-logo-section a:hover .iala-job-card-logo {
    transform: scale(1.05);
}

.iala-job-card-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 3.5rem;
    text-transform: uppercase;
}

/* Content Section */
.iala-job-content-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.iala-job-category-badge {
    background-color: rgba(255, 71, 58, 0.1);
    color: #FF473A;
    padding: 4px 8px 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.iala-job-category-badge:hover {
    background-color: #FF473A;
    color: #ffffff !important;
}

.iala-job-title-new {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Symbol";
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 33px;
}

.iala-job-title-new a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.iala-job-title-new a:hover {
    color: #FF3301;
}

.iala-job-meta-new {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.82rem;
    color: var(--iala-text-muted);
    font-weight: 500;
}

.iala-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.iala-meta-icon {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Buttons style */
.iala-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--iala-radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.iala-btn-primary {
    background-color: var(--iala-primary);
    color: #ffffff !important;
    border: 1px solid var(--iala-primary);
}

.iala-btn-primary:hover {
    background-color: var(--iala-primary-hover);
    border-color: var(--iala-primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.iala-btn-secondary {
    background-color: #ffffff;
    color: var(--iala-secondary) !important;
    border: 1px solid var(--iala-border-color);
}

.iala-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--iala-text-muted);
}

/* No Jobs styling */
.iala-no-jobs {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border-radius: var(--iala-radius-md);
    border: 1px dashed var(--iala-border-color);
    color: var(--iala-text-muted);
    font-size: 1.1rem;
}

/* Branding footer */
.iala-jobs-footer-branding {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--iala-text-muted);
    border-top: 1px solid var(--iala-border-color);
    padding-top: 1.5rem;
}

.iala-jobs-footer-branding a {
    color: var(--iala-primary);
    text-decoration: none;
    font-weight: 600;
}

.iala-jobs-footer-branding a:hover {
    text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .iala-jobs-container {
        padding: 1.25rem;
    }

    .iala-jobs-filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .iala-filters-group {
        flex-direction: column;
    }

    .iala-filter-select {
        width: 100%;
    }

    .iala-job-card {
        height: auto !important;
        /* Allow variable height on mobile screens */
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .iala-job-logo-section {
        width: 100% !important;
        height: 200px !important;
    }

    .iala-job-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .iala-job-actions {
        width: 100%;
        flex-direction: column;
    }

    .iala-job-actions .iala-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Premium Single Job Template Styles
   ========================================================================== */
.iala-single-job-wrapper-new {
    font-family: var(--iala-font-family);
    color: var(--iala-text-main);
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 3rem 8%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .iala-single-job-wrapper-new {
        padding: 2rem 1.5rem;
    }
}

.iala-single-job-container-new {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--iala-border-color);
    padding: 3.5rem;
    box-shadow: 0 10px 25px -5px rgba(34, 56, 101, 0.03), 0 8px 16px -6px rgba(34, 56, 101, 0.03);
    box-sizing: border-box;
}

/* Breadcrumbs */
.iala-single-breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #64748b;
    background-color: #ffe5e0;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
}

.iala-breadcrumb-home {
    color: #FF3301;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.iala-breadcrumb-home:hover {
    color: #e02d00;
}

.iala-breadcrumb-link {
    color: #FF3301;
    text-decoration: none;
    transition: color 0.2s;
}

.iala-breadcrumb-link:hover {
    color: #e02d00;
    text-decoration: underline;
}

.iala-breadcrumb-separator {
    color: rgba(255, 51, 1, 0.4);
    font-size: 1.1rem;
    line-height: 1;
}

.iala-breadcrumb-current {
    color: #FF3301;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Title */
.iala-single-title-new {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
}

/* Category Badge */
.iala-single-cat-badge-container {
    margin-bottom: 1.25rem;
}

.iala-single-cat-badge {
    background-color: #ffe5e0;
    color: #FF3301;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Meta Bar */
.iala-single-meta-bar-new {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.iala-single-meta-item {
    display: inline-flex;
    align-items: center;
}

.iala-single-meta-separator {
    color: #cbd5e1;
}

/* Image Card */
.iala-single-image-card {
    border: 1px solid var(--iala-border-color);
    border-radius: 12px;
    padding: 15px;
    display: inline-block;
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 2.5rem;
    box-sizing: border-box;
}

.iala-single-image-el {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Share Section */
.iala-share-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1.75rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.iala-share-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iala-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.iala-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.iala-share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.iala-share-whatsapp { background-color: #48bb78; }
.iala-share-linkedin { background-color: #0077b5; }
.iala-share-facebook { background-color: #3b5998; }
.iala-share-x { background-color: #000000; }
.iala-share-threads { background-color: #1c1c1e; }
.iala-share-telegram { background-color: #0088cc; }

/* Summary Meta Card */
.iala-single-summary-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--iala-border-color);
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.iala-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.iala-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.iala-summary-val {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.iala-summary-val a {
    color: #FF3301;
    text-decoration: none;
}

.iala-summary-val a:hover {
    text-decoration: underline;
}

/* Main Content */
.iala-single-content-new {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 3rem;
}

.iala-single-content-new h2,
.iala-single-content-new h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.iala-single-content-new h2:first-child,
.iala-single-content-new h3:first-child {
    margin-top: 0;
}

.iala-single-content-new ul,
.iala-single-content-new ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.iala-single-content-new li {
    margin-bottom: 0.6rem;
}

/* Apply Now Footer */
.iala-single-apply-wrapper {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
}

.iala-single-apply-btn-big {
    background-color: #FF3301;
    color: #ffffff;
    padding: 1rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(255, 51, 1, 0.2), 0 4px 6px -2px rgba(255, 51, 1, 0.1);
    border: none;
    cursor: pointer;
}

.iala-single-apply-btn-big:hover {
    background-color: #e02d00;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(255, 51, 1, 0.3), 0 5px 8px -2px rgba(255, 51, 1, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iala-single-job-wrapper-new {
        padding: 1.5rem 0.75rem;
    }
    
    .iala-single-job-container-new {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .iala-single-title-new {
        font-size: 1.75rem;
    }
    
    .iala-single-meta-bar-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .iala-single-meta-separator {
        display: none;
    }
}

/* Custom Elementor Template Card Resets */
.iala-job-card-elementor-type {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100%;
}

.iala-job-card-elementor-type::before {
    display: none !important;
}

.iala-elementor-single-job-wrapper {
    width: 100%;
}

/* Pagination Styling (Screenshot style) */
.iala-pagination-wrapper {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--iala-border-color, #e2e8f0);
    width: 100%;
    gap: 0.5rem;
}

.iala-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4f566b;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.iala-pagination-wrapper .page-numbers:hover:not(.current):not(.dots) {
    color: #FF3301;
    background-color: #ffe5e0;
}

.iala-pagination-wrapper .page-numbers.current {
    background-color: #ffe5e0;
    /* Brand orange-red tint matching specifications */
    color: #FF3301;
}

.iala-pagination-wrapper .page-numbers.dots {
    color: #a3aed0;
    cursor: default;
}

.iala-pagination-wrapper .page-numbers.prev,
.iala-pagination-wrapper .page-numbers.next {
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 1.25rem;
    height: 40px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.iala-pagination-wrapper .page-numbers.prev:hover,
.iala-pagination-wrapper .page-numbers.next:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.iala-pagination-wrapper .page-numbers.next {
    margin-left: auto;
    /* Push Next button to the far right! */
}

/* Fix: Make theme content wrappers use #F7FAFF on Job-related pages so the empty background is colored correctly */
body.single-job_listing #page,
body.single-job_listing #content,
body.single-job_listing .site-content,
body.single-job_listing .site-main,
body.post-type-archive-job_listing #page,
body.post-type-archive-job_listing #content,
body.post-type-archive-job_listing .site-content,
body.post-type-archive-job_listing .site-main,
body.tax-job_category #page,
body.tax-job_category #content,
body.tax-job_category .site-content,
body.tax-job_category .site-main,
body.tax-job_type #page,
body.tax-job_type #content,
body.tax-job_type .site-content,
body.tax-job_type .site-main,
body:has(.iala-jobs-container) #page,
body:has(.iala-jobs-container) #content,
body:has(.iala-jobs-container) .site-content,
body:has(.iala-jobs-container) .site-main,
body:has(.iala-jobs-archive-wrapper) #page,
body:has(.iala-jobs-archive-wrapper) #content,
body:has(.iala-jobs-archive-wrapper) .site-content,
body:has(.iala-jobs-archive-wrapper) .site-main {
    background-color: #F7FAFF !important;
}