.career-card-container {
    position: relative;
    display: block !important;
    visibility: visible !important;
    margin: 0 auto;
    max-width: 1200px;
    padding: 1.8rem 2rem 5rem 2rem;
}

.career-card {
    position: relative;
    border-radius: 0.75rem;
    background-color: #3d3c3d;
    padding: 2px;
    transition: transform 0.3s ease;
    min-height: 16rem;
    display: block !important;
}

.career-card:hover {
    transform: translateY(-5px);
}

.career-card.inactive {
    opacity: 0.75;
    pointer-events: none;
}

.card-details {
    background-color: #323132;
    padding: 2rem;
    border-radius: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header-part {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.job-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.career-card.inactive .job-title {
    color: #9ca3af;
}

.job-type-badge {
    background-color: #1e40af;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    max-height: 40px;
}

.career-card.inactive .job-type-badge {
    background-color: #4b5563;
    color: #9ca3af;
}

.job-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.career-card.inactive .job-description {
    color: #6b7280;
}

.apply-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-jd-link {
    color: #60a5fa;
    text-decoration: none;
}

.career-card.inactive .view-jd-link {
    color: #6b7280;
    pointer-events: none;
    cursor: not-allowed;
}

.no-jd-available {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

/* Form container styles */
.container {
    --form-width: 410px;
    --aspect-ratio: 1.65;
    --login-box-color: #272727;
    --input-color: #3a3a3a;
    --button-color: #373737;
    --footer-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--login-box-color);
    border-radius: 24px;
    width: calc(var(--form-width) + 1px);
    height: calc(var(--form-width) * var(--aspect-ratio) + 1px);
    z-index: 10000;
}

.container::before {
    content: "";
    position: absolute;
    inset: -50px;
    z-index: -2;
    background: conic-gradient(from 45deg, transparent 75%, #fff, transparent 100%);
    animation: spin 4s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.login-box {
    background: var(--login-box-color);
    border-radius: 24px;
    padding: 28px;
    width: var(--form-width);
    height: calc(var(--form-width) * var(--aspect-ratio));
    position: absolute;
    z-index: 10;
    backdrop-filter: blur(15px);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    padding-bottom: 10px;
}

.input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: var(--input-color);
    color: white;
    font-size: 14px;
}

.button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    background: var(--button-color);
    color: white;
    transition: 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

/* Updated Career Apply Button Styles */
.career-apply-btn {
    position: relative !important;
    width: 120px !important;
    height: 45px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    background: #1d4ed8 !important;
    color: white !important;
    transition: background 0.4s ease !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    font-family: "Manrope", sans-serif !important;
    letter-spacing: 2px !important;
    overflow: hidden !important;
}

.career-apply-btn:hover {
    background: #222429 !important;
}

.career-apply-btn .btn-text-one {
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.5s !important;
}

.career-apply-btn .btn-text-two {
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: 150% !important;
    transform: translateY(-50%) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.5s !important;
}

.career-apply-btn:hover .btn-text-one {
    top: -50% !important;
}

.career-apply-btn:hover .btn-text-two {
    top: 50% !important;
}

/* Disabled state styling */
.career-apply-btn:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.career-apply-btn:disabled:hover {
    background: #4b5563 !important;
}

.career-apply-btn:disabled .btn-text-one,
.career-apply-btn:disabled .btn-text-two {
    transition: none;
}

.career-apply-btn:disabled:hover .btn-text-one {
    top: 50%;
}

.career-apply-btn:disabled:hover .btn-text-two {
    top: 150%;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cards per row on laptop/desktop */
    gap: 2rem;
}

/* Mobile view: 1 card per row */
@media (max-width: 768px) {
    .career-grid {
        grid-template-columns: 1fr;
    }

    .outer {
        height: 180px;
    }

    .topl {
        top: 6%;
    }

    .bottoml {
        bottom: 6%;
    }

    .card-details {
        padding: 1rem 2rem;
    }
}