/* ==========================================================================
   RPI HOMES - LUXURY CAREER & HIRING SHOWCASE STYLES
   Harmonized with RPI Homes Brand Identity
   ========================================================================== */

:root {
    --rpi-thm-primary: #eb6753;
    --rpi-thm-dark: #181a20;
    --rpi-thm-navy: #0f1923;
    --rpi-thm-gold: #c9a84c;
    --rpi-thm-gold-bright: #e5a93c;
    --rpi-thm-gray-bg: #f7f8fa;
    --rpi-thm-border: #ebebeb;
    --rpi-thm-radius: 16px;
}

/* Section Wrapper */
.career-showcase-section {
    background: #ffffff;
    padding: 70px 0 90px 0;
    position: relative;
}

/* Section Badge */
.career-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--rpi-thm-dark);
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Hiring Card */
.career-hiring-card {
    background: #ffffff;
    border-radius: var(--rpi-thm-radius);
    border: 1px solid var(--rpi-thm-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.career-hiring-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(235, 103, 83, 0.3);
}

/* Card Banner / Poster Container - Universal Smart Canvas */
.career-card-banner {
    position: relative;
    height: 270px;
    width: 100%;
    overflow: hidden;
    background: #0b1727;
    background: radial-gradient(circle at center, #162436 0%, #0b1727 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-banner-ambient {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.45);
    transform: scale(1.12);
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
}

.career-card-banner img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.career-hiring-card:hover .career-card-banner img {
    transform: scale(1.02);
}

/* Architectural Branded Fallback Banner */
.career-branded-banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
}

.career-branded-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 25, 35, 0.65) 0%, rgba(10, 20, 28, 0.85) 100%);
}

.career-branded-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(229, 169, 60, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--rpi-thm-gold-bright);
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
    z-index: 1;
}

.career-branded-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Floating Banner Badges */
.banner-badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.banner-badge-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.category-pill {
    background: rgba(15, 25, 35, 0.82);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.vacancy-pill {
    background: linear-gradient(135deg, #e5a93c 0%, #c9a84c 100%);
    color: #0f1923;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
}

/* Banner Overlay Button */
.banner-overlay-view {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    z-index: 3;
}

.career-hiring-card:hover .banner-overlay-view {
    background: var(--rpi-thm-primary);
    border-color: var(--rpi-thm-primary);
}

/* Card Body */
.career-card-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.career-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rpi-thm-dark);
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.career-hiring-card:hover .career-card-title {
    color: var(--rpi-thm-primary);
}

/* Chips / Meta Pills */
.career-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.career-chip {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    background: #f8fafc;
    padding: 4px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.career-chip i {
    font-size: 12px;
}

.career-card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Action Footer */
.career-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* General Application / Open Opportunity Card (Harmonized Light Card) */
.career-open-application-card {
    background: #ffffff;
    border-radius: var(--rpi-thm-radius);
    padding: 34px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    border: 2px dashed #cbd5e1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.career-open-application-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
    border-color: var(--rpi-thm-primary);
}

.open-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--rpi-thm-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.career-open-application-card h4 {
    color: var(--rpi-thm-dark);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.career-open-application-card p {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 280px;
}

/* ==========================================================================
   MODAL STYLES (JOB DETAILS & APPLICATION FORM)
   ========================================================================== */

.career-modal .modal-dialog {
    max-height: calc(100vh - 40px);
}

.career-modal .modal-content {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.career-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
}

.career-modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 24px;
    flex-shrink: 0;
}

.career-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rpi-thm-dark);
}

.career-modal .modal-body {
    padding: 22px 24px;
    overflow-y: auto !important;
    max-height: calc(85vh - 145px) !important;
    flex-grow: 1;
}

.career-modal .modal-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

/* Poster Showcase in Modal */
.modal-poster-preview {
    border-radius: 12px;
    overflow: hidden;
    background: #0f1923;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modal-poster-preview img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #0f1923;
    display: block;
    margin: 0 auto;
}

/* Modal Meta Spec Grid */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.modal-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(235, 103, 83, 0.1);
    color: var(--rpi-thm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    display: block;
}

.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--rpi-thm-dark);
    display: block;
    line-height: 1.3;
}

/* Rich Description Section */
.job-description-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.job-description-content h4, 
.job-description-content strong {
    color: var(--rpi-thm-dark);
}

.job-description-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.job-description-content li {
    margin-bottom: 6px;
}

/* Application Form in Modal */
.app-form-group {
    margin-bottom: 16px;
}

.app-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rpi-thm-dark);
    margin-bottom: 5px;
    display: block;
}

.app-form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-form-control:focus {
    border-color: var(--rpi-thm-primary);
    box-shadow: 0 0 0 3px rgba(235, 103, 83, 0.12);
    outline: none;
}

.gender-radio-pill {
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gender-radio-pill input[type="radio"] {
    accent-color: var(--rpi-thm-primary);
}

/* Resume Upload Dragzone */
.resume-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.resume-upload-box:hover {
    border-color: var(--rpi-thm-primary);
    background: rgba(235, 103, 83, 0.02);
}

.resume-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 28px;
    color: var(--rpi-thm-primary);
    margin-bottom: 6px;
}

.selected-file-indicator {
    display: none;
    margin-top: 8px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    color: #065f46;
    font-size: 12.5px;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .career-showcase-section {
        padding: 50px 0 70px 0;
    }

    .career-card-banner {
        height: 240px;
    }

    .career-card-body {
        padding: 16px 18px;
    }

    .career-modal .modal-body {
        padding: 16px;
    }

    .career-modal .modal-header,
    .career-modal .modal-footer {
        padding: 12px 16px;
    }

    .modal-specs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
