/* ------------------------------------------ */
/*        Recruitments Listing Page           */
/* ------------------------------------------ */

.recruitments-listing-section {
    min-height: calc(100vh - 68px);
    padding: 3rem 0;
    padding-bottom: 3rem;
}

/* Page Title */
.page-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    color: #192D50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 0;
}

/* Recruitments Grid - 3 columns per row */
.recruitments-grid {
    margin-top: 2rem;
}

/* Recruitment Card Link */
.recruitment-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

.recruitment-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Recruitment Card */
.recruitment-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-left: 4px solid #192D50;
    padding: 2rem;
    position: relative;
}

/* Status Badge */
.recruitment-status-badge {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* .recruitment-status-badge.status-open {
    background-color: #192D50;
    color: #ffffff;
} */

.recruitment-status-badge.status-closed,
.recruitment-status-badge.status-open {
    background-color: #b8d2ff;
    color: #192D50;
}

/* RTL Badge Position */
.rtl-card .recruitment-status-badge {
    right: auto;
    left: 1rem;
}

.recruitment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left-color: #2a4a7a;
}

/* RTL/Arabic Card Styles */
.recruitment-card.rtl-card {
    border-left: none;
    border-right: 4px solid #192D50;
}

.recruitment-card.rtl-card:hover {
    border-left-color: transparent;
    border-right-color: #2a4a7a;
}

/* Recruitment Info */
.recruitment-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recruitment-job-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #192D50;
    margin-bottom: 1.5rem;
    min-height: 2.2em;
    margin-top: 0.2rem;
}

.recruitment-details {
    margin-top: auto;
}

.recruitment-actions {
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
    margin-top: 15px;
}

.recruitment-apply-btn {
    display: block;
    padding: 0.2rem;
    background-color: #192D50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 2px solid #192D50;
    width: 100%;
    text-align: center;
}

.recruitment-apply-btn:hover {
    background-color: #2a4a7a;
    border-color: #2a4a7a;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 45, 80, 0.2);
}

.recruitment-apply-btn:active {
    transform: translateY(0);
}

.recruitment-entity,
.recruitment-opening-date,
.recruitment-closing-date {
    font-family: var(--font-main);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333333;
    display: flex;
    align-items: center;
}

.recruitment-closing-date {
    margin-bottom: 0;
}

.recruitment-dates {
    margin-top: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #000000;
    display: inline;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-weight: 500;
    color: #192D50;
    display: inline;
    font-size: 0.9375rem;
}

/* RTL/Arabic: Reverse label and value order */
.rtl-card .recruitment-entity,
.rtl-card .recruitment-opening-date,
.rtl-card .recruitment-closing-date {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl-card .detail-label {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl-card .detail-value {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .recruitments-listing-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .recruitment-card {
        padding: 1.75rem;
    }

    .recruitment-job-title {
        font-size: 1.375rem;
    }

    .recruitment-apply-btn {
        padding: 0.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .recruitments-listing-section {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .recruitment-card {
        padding: 1.5rem;
    }

    .recruitment-job-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .recruitment-status-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .rtl-card .recruitment-status-badge {
        right: auto;
        left: 0.75rem;
    }

    .recruitment-entity,
    .recruitment-opening-date,
    .recruitment-closing-date {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .detail-label {
        font-size: 0.7rem;
    }

    .detail-value {
        font-size: 0.875rem;
    }

    .recruitment-actions {
        padding-top: 1.25rem;
    }

    .recruitment-apply-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .recruitment-card {
        padding: 1.25rem;
    }

    .recruitment-job-title {
        font-size: 1.125rem;
        min-height: 2.8em;
        margin-bottom: 1rem;
    }

    .recruitment-status-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.65rem;
    }

    .rtl-card .recruitment-status-badge {
        right: auto;
        left: 0.75rem;
    }

    .recruitment-entity,
    .recruitment-opening-date,
    .recruitment-closing-date {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .recruitment-actions {
        padding-top: 1rem;
    }

    .recruitment-apply-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Ensure cards have equal height */
.recruitments-grid .col-md-4,
.recruitments-grid .col-12 {
    display: flex;
}

.recruitment-card-link {
    width: 100%;
    display: flex;
}

.recruitment-card {
    width: 100%;
}

