/* jobs.css - Dedicated styling for careers portal */

/* Footer Fix: Push footer to bottom */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

.general-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.general-content .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#social-wrapper {
    margin-top: auto !important;
}

#footer {
    flex-shrink: 0;
    margin-top: auto;
}

.social-wrapper {
    flex-shrink: 0;
}

.main-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    background: #f8f9fa;
    padding-top: 40px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Job Cards / Lists */
.job-card {
    padding: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    text-align: right;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(201, 147, 57, 0.1);
    margin-bottom: 30px;
    opacity: 0;
    /* JS triggers fadeInUp */
    position: relative;
    overflow: hidden;
}

/* Subtle accent line on top of card */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c99339, #e6b865);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(201, 147, 57, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(201, 147, 57, 0.4);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-title {
    color: #c99339;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.job-card:hover .job-card-title {
    color: #111;
}

.job-meta {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdfbf7;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(201, 147, 57, 0.15);
    font-weight: 500;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.job-card:hover .job-meta span {
    background: #c99339;
    color: #fff;
    border-color: #c99339;
}

.job-meta i {
    color: #c99339;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.job-card:hover .job-meta i {
    color: #fff;
}

.job-desc-excerpt {
    font-size: 1.8rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Details Page specific */
.single-job-details {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 5rem;
    text-align: right;
    border: 1px solid rgba(201, 147, 57, 0.15);
    position: relative;
    overflow: hidden;
}

/* Accent line */
.single-job-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #c99339, #e6b865, #c99339);
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    to {
        background-position: 200% center;
    }
}

.single-job-desc {
    font-size: 1.8rem;
    /* Increased size for better readability */
    line-height: 2.2;
    /* Increased line-height for matching scale */
    color: #333;
}

.single-job-desc p {
    font-size: 1.8rem;
    line-height: 2.2;
    margin-bottom: 20px;
}

.single-job-desc span {
    font-size: 1.8rem;
    line-height: 2.2;
}

.single-job-desc h1,
.single-job-desc h2,
.single-job-desc h3,
.single-job-desc h4,
.single-job-desc h5,
.single-job-desc h6,
.single-job-desc span.bold,
.single-job-desc span[style*="font-weight: bold"],
.single-job-desc span[style*="font-weight:bold"] {
    color: #c99339 !important;
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed rgba(201, 147, 57, 0.2);
    padding-bottom: 15px;
    width: 100%;
}

.single-job-desc strong,
.single-job-desc b {
    color: #c99339;
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* Inline custom icon styling injected dynamically by JS */
.heading-icon {
    font-size: 2rem;
    color: #e6b865;
    background: rgba(201, 147, 57, 0.1);
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-inline-end: 12px;
}

.single-job-desc strong .heading-icon,
.single-job-desc b .heading-icon {
    font-size: 1.6rem;
    height: 30px;
    min-width: 30px;
}

/* Floating Language Switcher */
.jobs-lang-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.jobs-lang-switcher.align-right {
    left: auto;
    right: 30px;
}

.switcher-btn {
    background: #ffffff;
    border: 2px solid #c99339;
    color: #c99339;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switcher-btn:hover {
    background: #c99339;
    color: #ffffff;
}

.single-job-desc ul,
.single-job-desc ol {
    padding-right: 30px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    line-height: 2.2;
}

.single-job-desc li {
    margin-bottom: 12px;
}

/* Button UI */
.btn-apply,
.btn-details {
    padding: 13px 40px;
    font-size: 1.8rem;
    background-color: #c99339;
    color: #ffffff !important;
    border: 2px solid #c99339;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-apply:hover,
.btn-details:hover {
    background-color: #343333;
    border-color: #343333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jobs-loader {
    text-align: center;
    padding: 60px 20px;
    color: #c99339;
}

.jobs-loader p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 15px;
}

.jobs-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.4rem;
    color: #555;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .job-card {
        padding: 2rem;
    }

    .job-card-title {
        font-size: 1.8rem;
    }

    .single-job-details {
        padding: 2.5rem;
    }

    .job-meta {
        font-size: 1.2rem;
    }

    .btn-apply,
    .btn-details {
        width: 100%;
        padding: 15px 20px;
    }
}