/* Job Portal Plugin CSS - Modern & Rich Design System */

:root {
    --jpp-primary: hsl(243, 75%, 59%); /* Premium Royal Violet */
    --jpp-primary-hover: hsl(243, 75%, 53%);
    --jpp-secondary: hsl(199, 89%, 48%); /* Soft Cyan */
    --jpp-accent-green: hsl(150, 60%, 40%); /* Rich Emerald */
    --jpp-accent-green-bg: hsl(150, 60%, 95%);
    --jpp-accent-orange: hsl(28, 90%, 50%); /* Amber Orange */
    --jpp-accent-orange-bg: hsl(28, 90%, 96%);
    
    /* Gradients */
    --jpp-grad-primary: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(199, 89%, 48%) 100%);
    --jpp-grad-hover: linear-gradient(135deg, hsl(243, 75%, 53%) 0%, hsl(199, 89%, 42%) 100%);
    
    /* Neutrals */
    --jpp-bg-card: hsl(0, 0%, 100%);
    --jpp-bg-main: hsl(210, 20%, 98%);
    --jpp-text-main: hsl(220, 20%, 20%);
    --jpp-text-muted: hsl(220, 10%, 50%);
    --jpp-border: hsl(220, 15%, 90%);
    
    /* Layout */
    --jpp-radius: 12px;
    --jpp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jpp-container {
    font-family: 'Outfit', sans-serif;
    color: var(--jpp-text-main);
    line-height: 1.6;
}

/* Live Filter Bar Styling */
.jpp-filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 800px;
}

.jpp-filter-col {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafd;
    border: 1px solid #e2ebf6;
    border-radius: 8px;
    flex: 1;
    min-width: 260px;
    transition: var(--jpp-transition);
}

.jpp-filter-col:focus-within {
    border-color: var(--jpp-primary);
    background: #fff;
}

.jpp-filter-col .dashicons {
    color: var(--jpp-primary);
    margin-left: 16px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.jpp-filter-col select,
.jpp-filter-col input {
    border: none !important;
    background: transparent !important;
    padding: 16px 16px 16px 10px !important;
    width: 100%;
    font-size: 14px;
    color: var(--jpp-text-main);
    outline: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    box-shadow: none !important;
}

.jpp-filter-col select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Grid Layout */
.jpp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

/* Job Card Styling */
.jpp-card {
    background: var(--jpp-bg-card);
    border: 1px solid #e2ebf6;
    border-radius: var(--jpp-radius);
    transition: var(--jpp-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 0; /* Allow image to go edge-to-edge */
}


/* Banner Image styling */
.jpp-card-banner {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f1f3f4;
    border-bottom: none;
    padding: 10px;
    box-sizing: border-box;
}

.jpp-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px !important;
    transition: var(--jpp-transition);
}



.jpp-banner-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

/* Job Card Body Content */
.jpp-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Badges / Category styling */
.jpp-badge-category {
    background: #e8effe;
    color: var(--jpp-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    align-self: flex-start;
    border: 1px solid #cce3fd;
    letter-spacing: 0.5px;
}

/* Title styling */
.jpp-card h3.jpp-title {
    margin: 4px 0 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.jpp-card h3.jpp-title a {
    color: var(--jpp-text-main);
    text-decoration: none;
    transition: var(--jpp-transition);
}

.jpp-card h3.jpp-title a:hover {
    color: var(--jpp-primary);
}

/* Excerpt Description styling */
.jpp-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--jpp-text-muted);
    margin: 4px 0 10px 0;
}

/* Details Link styling */
.jpp-more-details-link {
    color: var(--jpp-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--jpp-transition);
    margin-top: auto;
    align-self: flex-start;
}

.jpp-more-details-link:hover {
    color: var(--jpp-primary-hover);
}

.jpp-more-details-link:hover::after {
    transform: translateX(4px);
}
.jpp-btn-primary {
    background: #0861F2 !important;
    color: #fff !important;
    border: none !important;
}

.jpp-btn-primary:hover {
    background: var(--jpp-grad-hover);
}

/* 2-Column Single Page Layout */
.jpp-single-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin: 40px auto;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 768px) {
    .jpp-single-container {
        grid-template-columns: 1fr;
    }
}

.jpp-single-main {
    background: #fff;
    border: 1px solid var(--jpp-border);
    border-radius: var(--jpp-radius);
    padding: 32px;
}

.jpp-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jpp-sidebar-widget {
    background: #fff;
    border: 1px solid var(--jpp-border);
    border-radius: var(--jpp-radius);
    padding: 24px;
}

.jpp-sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 2px solid var(--jpp-border);
    padding-bottom: 8px;
}

.jpp-sidebar-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jpp-sidebar-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--jpp-border);
    padding-bottom: 8px;
}

.jpp-sidebar-meta-item span:first-child {
    font-weight: 500;
    color: var(--jpp-text-muted);
}

/* 2-Column Single Page Layout Override (To Single Column) */
.jpp-single-wrapper {
    max-width: 1300px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
}

.jpp-single-banner {
    width: 100%;
    height: 620px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e2ebf6;
}

.jpp-single-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jpp-single-banner-fallback {
    width: 100%;
    height: 220px;
    background: var(--jpp-grad-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
}

/* Single Header Box (Titles, Meta, Logo) */
.jpp-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    border-bottom: 1px solid #e2ebf6;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.jpp-single-header-left {
    flex: 1;
}

.jpp-single-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--jpp-text-main);
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.jpp-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.jpp-single-meta-item {
    font-size: 0.92rem;
    color: var(--jpp-text-muted);
}

.jpp-meta-lbl {
    font-weight: 500;
    margin-right: 4px;
}

.jpp-meta-val {
    font-weight: 700;
    color: var(--jpp-text-main);
}

/* Company Logo container */
.jpp-single-logo-box {
    width: 110px;
    height: 110px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.jpp-single-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .jpp-single-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Job Description content */
.jpp-single-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 50px;
}

.jpp-single-content h2,
.jpp-single-content h3,
.jpp-single-content h4 {
    font-weight: 700;
    color: var(--jpp-text-main);
    margin-top: 35px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.jpp-single-content p {
    margin-bottom: 20px;
}

.jpp-single-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.jpp-single-content li {
    margin-bottom: 8px;
}

/* Application Form Container (Light blue shaded box) */
.jpp-single-form-container {
    margin-top: 50px;
    margin-bottom: 60px;
}

.jpp-form-wrapper {
    background: #f8fafd; /* Light blue/gray shaded box matching mockup */
    border: 1px solid #e2ebf6;
    border-radius: 12px;
    padding: 35px 40px;
}

.jpp-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--jpp-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jpp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .jpp-form-grid {
        grid-template-columns: 1fr;
    }
    .jpp-form-wrapper {
        padding: 24px;
    }
}

.jpp-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jpp-form-field-full {
    grid-column: 1 / -1;
}

.jpp-form-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jpp-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jpp-form-field input[type="text"],
.jpp-form-field input[type="email"],
.jpp-form-field input[type="url"],
.jpp-form-field textarea {
    padding: 14px 16px;
    border: 1px solid #e2ebf6;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--jpp-transition);
    background: #fff;
}

.jpp-form-field input:focus,
.jpp-form-field textarea:focus {
    outline: none;
    border-color: var(--jpp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* Custom CV/Resume Upload styling */
.jpp-file-label-top {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jpp-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.jpp-custom-file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.jpp-choose-file-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #0861F2;
    border-radius: 6px;
    color: #0861F2;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--jpp-transition);
    text-transform: uppercase;
    box-sizing: border-box;
}

.jpp-choose-file-btn:hover {
    background: #0861F2;
    color: #fff;
}

.jpp-file-chosen-text {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.jpp-file-types-hint {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 6px;
    display: block;
}

/* Form Submit Button Alignment Override */
.jpp-form-submit .jpp-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 14px 28px !important;
    font-size: 14px;
    text-transform: uppercase;
}

.jpp-form-checkbox-field {
    margin-top: 4px;
}

.jpp-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    text-transform: none !important;
    color: var(--jpp-text-muted) !important;
}

.jpp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Related Jobs grid section styles */
.jpp-related-section {
    margin-top: 60px;
    border-top: 1px solid #e2ebf6;
    padding-top: 40px;
}

.jpp-related-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--jpp-text-main);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading & Status Alerts */
.jpp-alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
}

.jpp-alert-success {
    background: var(--jpp-accent-green-bg);
    color: var(--jpp-accent-green);
    border: 1px solid hsl(150, 60%, 85%);
}

.jpp-alert-error {
    background: hsl(0, 85%, 97%);
    color: hsl(0, 85%, 40%);
    border: 1px solid hsl(0, 85%, 90%);
}

/* Loader */
.jpp-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: jpp-spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes jpp-spin {
    to { transform: rotate(360deg); }
}

/* Honeypot field - must be strictly hidden */
.jpp-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Required Skills Tag Styles on Single Post Details */
.jpp-required-skills-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2ebf6;
    padding-bottom: 24px;
}

.jpp-skills-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--jpp-text-main);
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jpp-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jpp-skill-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: var(--jpp-transition);
}

.jpp-skill-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   2. Clean Sidebar Template Layout Styles
   ========================================================================== */
.jpp-single-sidebar-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.jpp-single-sidebar-main {
    flex: 2.1;
    min-width: 0;
}

.jpp-single-sidebar-side {
    flex: 0.9;
    position: sticky;
    top: 30px;
    z-index: 10;
}

.jpp-single-sidebar-card {
    background: #fff;
    border: 1px solid #e2ebf6;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
}

.jpp-sidebar-logo-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jpp-sidebar-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jpp-sidebar-company-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--jpp-text-main);
    text-align: center;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jpp-sidebar-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jpp-sidebar-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e2ebf6;
    padding-bottom: 12px;
    font-size: 0.9rem;
}

.jpp-sidebar-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jpp-sidebar-metric .lbl {
    font-weight: 500;
    color: var(--jpp-text-muted);
}

.jpp-sidebar-metric .val {
    font-weight: 700;
    color: var(--jpp-text-main);
    text-align: right;
}

/* ==========================================================================
   3. Corporate Split Header Template Layout Styles
   ========================================================================== */
.jpp-single-split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid #e2ebf6;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.jpp-split-header-left {
    flex: 1.3;
}

.jpp-split-header-right {
    flex: 0.7;
}

.jpp-split-company-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jpp-text-muted);
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.jpp-split-inline-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.jpp-split-banner-container {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2ebf6;
}

.jpp-split-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jpp-split-banner-container-fallback {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    background: var(--jpp-grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive collapse grids and columns */
@media (max-width: 768px) {
    .jpp-single-sidebar-layout {
        flex-direction: column;
    }
    .jpp-single-sidebar-side {
        position: static;
        width: 100%;
    }
    .jpp-single-split-header {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 30px;
    }
}

/* ==========================================================================
   4. Four Customizable Card Design Layouts
   ========================================================================== */

/* --- Card Style 1: Modern Vertical Card (Standard styling overrides if any) --- */
.jpp-card-style1 {
    display: flex;
    flex-direction: column;
}

/* --- Card Style 2: Horizontal Row Card --- */
.jpp-card-style2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 20px;
    box-sizing: border-box;
    min-height: 140px;
}

.jpp-card-style2 .jpp-card-banner {
    width: 150px;
    height: 110px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e2ebf6;
    margin: 0;
}

.jpp-card-style2 .jpp-card-body {
    flex: 1;
    padding: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.jpp-card-style2 .jpp-card-row-actions {
    flex-shrink: 0;
    padding-right: 15px;
}

.jpp-card-style2 .jpp-card-row-actions .jpp-more-details-link {
    display: inline-block;
    padding: 12px 24px !important;
    background: var(--jpp-primary);
    color: #fff !important;
    border-radius: var(--jpp-radius-btn);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--jpp-transition);
}

.jpp-card-style2 .jpp-card-row-actions .jpp-more-details-link:hover {
    background: #0c4cb0;
    transform: translateY(-1px);
}

/* Responsive row to column wrap on smaller screens */
@media (max-width: 768px) {
    .jpp-card-style2 {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .jpp-card-style2 .jpp-card-banner {
        width: 100%;
        height: 180px;
    }
    .jpp-card-style2 .jpp-card-row-actions {
        padding-right: 0;
        margin-top: 10px;
    }
}

/* --- Card Style 3: Minimalist Card (No banner image rendered by PHP) --- */
.jpp-card-style3 {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.jpp-card-style3 .jpp-card-body {
    padding: 30px;
}

.jpp-card-style3:hover {
    border-color: var(--jpp-primary);
    box-shadow: 0 4px 12px rgba(8, 97, 242, 0.05);
}

/* --- Card Style 4: Premium Dark Card --- */
.jpp-card-style4 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.jpp-card-style4:hover {
    border-color: var(--jpp-primary);
    box-shadow: 0 4px 24px rgba(8, 97, 242, 0.2);
}

.jpp-card-style4 .jpp-title a {
    color: #ffffff;
}

.jpp-card-style4 .jpp-card-desc {
    color: #94a3b8;
}

.jpp-card-style4 .jpp-badge-category {
    background: rgba(8, 97, 242, 0.15);
    border-color: rgba(8, 97, 242, 0.3);
    color: #60a5fa;
}

.jpp-card-style4 .jpp-more-details-link {
    color: #38bdf8;
}

.jpp-card-style4 .jpp-more-details-link:hover {
    color: #60a5fa;
}

/* --- Card Style 5: Overlay Category Badge --- */
.jpp-card-style5 {
    display: flex;
    flex-direction: column;
}

.jpp-card-style5 .jpp-card-banner {
    position: relative;
}

.jpp-badge-overlay {
    position: absolute !important;
    z-index: 10;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.jpp-badge-overlay-top-left {
    top: 15px;
    left: 15px;
    right: auto;
    bottom: auto;
}

.jpp-badge-overlay-top-right {
    top: 15px;
    right: 15px;
    left: auto;
    bottom: auto;
}

.jpp-badge-overlay-bottom-left {
    bottom: 15px;
    left: 15px;
    top: auto;
    right: auto;
}

.jpp-badge-overlay-bottom-right {
    bottom: 15px;
    right: 15px;
    top: auto;
    left: auto;
}

