/* ===== BASE RESET ===== */
.wide-fisf-career-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wide-fisf-career-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ===== HEADER ===== */
.wide-fisf-career-header {
    margin-bottom: 40px;
}

.wide-fisf-career-header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wide-fisf-career-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.wide-fisf-career-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    line-height: 1.5;
}

/* ===== SECTION ===== */
.wide-fisf-career-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.wide-fisf-career-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.wide-fisf-career-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.wide-fisf-career-section-hint {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===== CAREERS GRID ===== */
.wide-fisf-careers-grid {
    display: grid;
    gap: 20px;
    transition: all 0.3s ease;
}

.wide-fisf-careers-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.wide-fisf-careers-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.wide-fisf-careers-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.wide-fisf-careers-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== CAREER CARD ===== */
.wide-fisf-career-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wide-fisf-career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.wide-fisf-career-card:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
}

.wide-fisf-career-card-image {
    width: 100%;
    height: 160px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wide-fisf-career-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wide-fisf-career-card:hover .wide-fisf-career-card-image img {
    transform: scale(1.05);
}

.wide-fisf-career-card-placeholder {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}

.wide-fisf-career-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wide-fisf-career-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wide-fisf-career-card-shortnote {
    color: #000000;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
}

.wide-fisf-career-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.wide-fisf-career-card-tag {
    background-color: #35B63A;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.wide-fisf-career-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.wide-fisf-career-card-location {
    font-size: 12px;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wide-fisf-career-card-cta {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wide-fisf-career-card-cta:hover {
    color: #4338ca;
}

/* ===== LOADER ===== */
.wide-fisf-career-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.wide-fisf-career-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: wide-fisf-career-spin 1s linear infinite;
}

@keyframes wide-fisf-career-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== LOAD MORE ===== */
.wide-fisf-career-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.wide-fisf-career-load-more-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wide-fisf-career-load-more-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.wide-fisf-career-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== DETAIL OVERLAY (Modal) ===== */
.wide-fisf-career-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wide-fisf-career-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wide-fisf-career-detail-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: wide-fisf-career-modal-appear 0.3s ease;
}

@keyframes wide-fisf-career-modal-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wide-fisf-career-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.wide-fisf-career-detail-close:hover {
    background: white;
    border-color: #4f46e5;
    color: #4f46e5;
}

.wide-fisf-career-detail-close-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ===== DETAIL HEADER ===== */
.wide-fisf-career-detail-header {
    position: relative;
}

.wide-fisf-career-detail-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.wide-fisf-career-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-fisf-career-detail-placeholder {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.wide-fisf-career-detail-placeholder-bg {
    fill: rgba(255, 255, 255, 0.2);
}

.wide-fisf-career-detail-placeholder-stroke {
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}

.wide-fisf-career-detail-title-wrap {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.wide-fisf-career-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.wide-fisf-career-detail-shortnote {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.wide-fisf-career-detail-req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wide-fisf-career-detail-req-tag {
    background-color: #35B63A;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
}

/* ===== DETAIL BODY ===== */
.wide-fisf-career-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.wide-fisf-career-detail-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wide-fisf-career-detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wide-fisf-career-detail-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.wide-fisf-career-detail-requirements {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wide-fisf-career-detail-requirements li {
    font-size: 0.875rem;
    color: #374151;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.wide-fisf-career-detail-requirements li:before {
    content: "•";
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.wide-fisf-career-detail-description {
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
    white-space: pre-line;
}

/* ===== DETAIL RIGHT COLUMN ===== */
.wide-fisf-career-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wide-fisf-career-detail-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.wide-fisf-career-detail-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.wide-fisf-career-detail-contact-info,
.wide-fisf-career-detail-meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wide-fisf-career-detail-contact-item,
.wide-fisf-career-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wide-fisf-career-detail-contact-label,
.wide-fisf-career-detail-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.wide-fisf-career-detail-contact-value,
.wide-fisf-career-detail-meta-value {
    font-size: 14px;
    color: #111827;
    word-break: break-all;
}

/* ===== APPLICATION FORM ===== */
.wide-fisf-career-application-card {
    background: white;
    border-color: #e0e7ff;
}

.wide-fisf-career-application-hint {
    font-size: 12px;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wide-fisf-career-application-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wide-fisf-career-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wide-fisf-career-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
}

.wide-fisf-career-form-input,
.wide-fisf-career-form-textarea,
.wide-fisf-career-form-file {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.wide-fisf-career-form-input:focus,
.wide-fisf-career-form-textarea:focus,
.wide-fisf-career-form-file:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wide-fisf-career-form-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
}

.wide-fisf-career-form-file {
    padding: 8px;
    background: white;
}

.wide-fisf-career-file-hint {
    font-size: 0.75rem;
    color: #000000;
    margin-top: 4px;
}

.wide-fisf-career-app-status {
    font-size: 0.75rem;
    min-height: 1.2rem;
    padding: 4px 0;
}

.wide-fisf-career-app-status.success {
    color: #059669;
}

.wide-fisf-career-app-status.error {
    color: #dc2626;
}

.wide-fisf-career-app-submit {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    padding: 10px 25px 10px 25px;
    color: #FFFFFF;
    background-color: #35B63A;
}

.wide-fisf-career-app-submit:hover {
    color: var(--e-global-color-primary);
    background-color: #FFFFFF;
    border-color: #1a1a1a;
    border-style: solid;
    border-width: .5px;
}

.wide-fisf-career-app-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.wide-fisf-career-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.wide-fisf-career-footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* ===== EMPTY STATE ===== */
.wide-fisf-career-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.wide-fisf-career-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wide-fisf-career-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.wide-fisf-career-empty-text {
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wide-fisf-career-detail-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wide-fisf-career-detail-image {
        height: 200px;
    }

    .wide-fisf-career-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 768px) {
    .wide-fisf-career-container {
        padding: 15px 0;
    }

    .wide-fisf-career-header {
        margin-bottom: 30px;
    }

    .wide-fisf-career-title {
        font-size: 1.5rem;
    }

    .wide-fisf-career-subtitle {
        font-size: 1rem;
    }

    .wide-fisf-career-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wide-fisf-career-section-title {
        font-size: 1.25rem;
    }

    .wide-fisf-careers-grid[data-columns="2"],
    .wide-fisf-careers-grid[data-columns="3"],
    .wide-fisf-careers-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }

    .wide-fisf-career-detail-overlay {
        padding: 10px;
    }

    .wide-fisf-career-detail-content {
        max-height: 95vh;
        border-radius: 16px;
    }

    .wide-fisf-career-detail-title-wrap {
        padding: 20px;
    }

    .wide-fisf-career-detail-title {
        font-size: 1.5rem;
    }

    .wide-fisf-career-detail-shortnote {
        font-size: 1rem;
    }

    .wide-fisf-career-detail-body {
        padding: 20px;
        gap: 30px;
    }

    .wide-fisf-career-detail-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .wide-fisf-career-detail-image {
        height: 160px;
    }

    .wide-fisf-career-detail-title {
        font-size: 1.25rem;
    }

    .wide-fisf-career-detail-section-title {
        font-size: 1.125rem;
    }

    .wide-fisf-career-app-submit {
        padding: 10px 16px;
    }
}

/* ===== BODY SCROLL LOCK ===== */
body.wide-fisf-career-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}