/* Career detail page only – all selectors scoped so they cannot affect header/site layout */
/* Loaded only on body.rbz-career-detail-page */

/*
 * Elementor adds .elementor-invisible to widgets with entrance animations.
 * Its JS normally removes this class once the element scrolls into view.
 * On custom template pages (like career detail) Elementor's frontend JS may
 * not fully initialise, leaving the class in place and hiding widgets.
 * This rule makes all such elements visible immediately on career pages.
 */
body.rbz-career-detail-page .elementor-invisible {
    visibility: visible !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    clear: both !important;
    isolation: isolate !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #071448 !important;
    background: transparent !important;
    border: none !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper * {
    box-sizing: border-box !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-container {
    background: #ffffff !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-breadcrumb a:hover {
    color: #e6ad1b;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-breadcrumb-separator {
    color: #d1d5db;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-header {
    padding: 40px !important;
    background: linear-gradient(135deg, #071448, #0a1d5c) !important;
    border-radius: 14px !important;
    margin-bottom: 40px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-title-section {
    margin-bottom: 30px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-info-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #e6ad1b !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-info-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-expired-date {
    color: #ef4444 !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-main {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    border: 1px solid #e8eaf0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-section {
    margin-bottom: 40px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #071448 !important;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #e6ad1b;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568 !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-section-content p {
    margin-bottom: 16px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568 !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #e6ad1b;
    border-radius: 50%;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-apply-box {
    background: #ffffff !important;
    border: 2px solid #e6ad1b;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(230, 173, 27, 0.15);
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-box-title {
    font-size: 22px;
    font-weight: 700;
    color: #071448 !important;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaf0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #071448 !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group .required {
    color: #dc3232;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group input[type="text"],
body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group input[type="email"],
body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group input[type="tel"],
body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    font-size: 14px;
    color: #071448;
    font-family: inherit;
    transition: all 0.3s ease;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group input:focus,
body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group textarea:focus {
    outline: none;
    border-color: #e6ad1b;
    box-shadow: 0 0 0 3px rgba(230, 173, 27, 0.1);
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e8eaf0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-help {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e6ad1b, #d4a017);
    color: #071448 !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #071448, #0a1d5c);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 20, 72, 0.3);
    text-decoration: none !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-spin {
    animation: rbz-spin 1s linear infinite;
}

@keyframes rbz-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-closed {
    padding: 25px;
    background: #fef3c7 !important;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    text-align: center;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-closed .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #f59e0b !important;
    margin-bottom: 10px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-apply-closed p {
    font-size: 15px;
    color: #92400e !important;
    margin: 0;
    font-weight: 600;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-share-box {
    background: #f8f9fc !important;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    padding: 25px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-share-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #071448 !important;
    margin: 0 0 15px 0;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-buttons {
    display: flex;
    gap: 10px;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e8eaf0;
    color: #071448 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(7, 20, 72, 0.15);
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #ffffff !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff !important;
}

body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-share-email:hover {
    background: #e6ad1b;
    border-color: #e6ad1b;
    color: #071448 !important;
}

body.rbz-career-detail-page .rbz-career-not-found {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8eaf0;
}

body.rbz-career-detail-page .rbz-career-not-found h1 {
    font-size: 32px;
    color: #071448 !important;
    margin-bottom: 20px;
}

body.rbz-career-detail-page .rbz-career-not-found p {
    font-size: 16px;
    color: #6b7280 !important;
    margin-bottom: 30px;
}

body.rbz-career-detail-page .rbz-career-not-found .rbz-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e6ad1b, #d4a017);
    color: #071448 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.rbz-career-detail-page .rbz-career-not-found .rbz-back-btn:hover {
    background: linear-gradient(135deg, #071448, #0a1d5c);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

@media (max-width: 1200px) {
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-content {
        grid-template-columns: 1fr;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-header {
        padding: 30px 20px;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-title {
        font-size: 32px;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-info-grid {
        grid-template-columns: 1fr;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-main {
        padding: 25px 20px;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-detail-title {
        font-size: 26px;
    }
    body.rbz-career-detail-page .rbz-career-detail-wrapper .rbz-career-apply-box {
        padding: 20px;
    }
}
