/* Rejuvera career portal theme */
@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../IBMPlexSansArabic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../IBMPlexSansArabic-SemiBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rv-purple-deep: #2a1744;
    --rv-purple: #4a2476;
    --rv-purple-mid: #6f35a1;
    --rv-cream: #fbf7ef;
    --rv-cream-2: #fffdf8;
    --rv-lilac: #f2eaf8;
    --rv-gold: #c7a76b;
    --rv-text: #291a3d;
    --rv-muted: #6f6478;
    --rv-line: rgba(74, 36, 118, 0.13);
    --rv-card: rgba(255, 255, 255, 0.92);
    --rv-shadow: 0 22px 60px rgba(42, 23, 68, 0.12);
    --rv-soft-shadow: 0 10px 30px rgba(42, 23, 68, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at top right, rgba(199, 167, 107, 0.16), transparent 38rem),
        radial-gradient(ellipse at 12% 18%, rgba(111, 53, 161, 0.1), transparent 30rem),
        var(--rv-cream);
    color: var(--rv-text);
    line-height: 1.7;
}

a {
    color: inherit;
}

.rv-top-strip {
    background: var(--rv-purple);
    color: #fff;
    font-size: 0.82rem;
}

.rv-top-inner {
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rv-top-contact,
.rv-top-location {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.rv-top-contact a {
    text-decoration: none;
    opacity: 0.96;
}

.rv-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 252, 246, 0.96);
    border-bottom: 1px solid var(--rv-line);
    box-shadow: 0 10px 28px rgba(42, 23, 68, 0.07);
    backdrop-filter: blur(18px);
}

.rv-logo {
    width: clamp(10.5rem, 16vw, 13rem);
    height: 4.35rem;
    object-fit: contain;
}

.rv-nav-links .nav-link {
    color: var(--rv-purple-deep);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
}

.rv-nav-links .nav-link:hover,
.rv-nav-links .nav-link:focus {
    color: var(--rv-purple);
    background: rgba(74, 36, 118, 0.07);
}

.rv-toggler {
    border: 1px solid var(--rv-line);
    color: var(--rv-purple);
}

.rv-nav-cta,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.65rem;
    border: 0;
    border-radius: 0.8rem;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, var(--rv-purple), var(--rv-purple-mid)) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(74, 36, 118, 0.22);
}

.rv-nav-cta:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(74, 36, 118, 0.28);
}

.btn-secondary,
.btn-outline-light,
.rv-lang-btn {
    min-height: 2.65rem;
    border-radius: 0.8rem;
    border: 1px solid var(--rv-line) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--rv-purple-deep) !important;
    font-weight: 700;
}

.btn-secondary:hover,
.btn-outline-light:hover,
.rv-lang-btn:hover {
    background: var(--rv-lilac) !important;
}

.hero {
    position: relative;
    min-height: 38rem;
    display: flex;
    align-items: center;
    text-align: center;
    padding: clamp(4.8rem, 8vw, 7.5rem) 0 3.4rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1.5rem max(1rem, 5vw) auto;
    height: 24rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(90deg, rgba(251, 247, 239, 0.97) 0%, rgba(251, 247, 239, 0.86) 48%, rgba(251, 247, 239, 0.42) 100%),
        url("../clinic-interior.jpeg") center/cover;
    box-shadow: var(--rv-shadow);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 11rem;
    background: linear-gradient(180deg, transparent, var(--rv-cream));
    z-index: -1;
}

.hero-content {
    max-width: 56rem;
}

.rv-kicker,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    color: var(--rv-purple);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rv-kicker::before,
.section-heading span::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: rgba(74, 36, 118, 0.32);
}

.hero-title {
    max-width: 14ch;
    margin: 0 auto;
    color: var(--rv-purple-deep);
    font-size: clamp(2.4rem, 5.3vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-subtitle {
    max-width: 44rem;
    margin: 1rem auto 0;
    color: var(--rv-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid rgba(74, 36, 118, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--rv-purple);
    padding: 0.42rem 0.72rem;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(42, 23, 68, 0.07);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

#about {
    padding: 2.5rem 0 1rem;
}

.feature-card,
.job-card,
.empty-state,
.modal-content {
    border: 1px solid var(--rv-line);
    background: var(--rv-card);
    border-radius: 0.85rem;
    box-shadow: var(--rv-soft-shadow);
}

.feature-card {
    height: 100%;
    padding: 1.1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rv-shadow);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--rv-purple);
    background: linear-gradient(135deg, rgba(242, 234, 248, 0.95), rgba(255, 255, 255, 0.8));
}

.feature-card h4 {
    color: var(--rv-purple-deep);
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--rv-muted);
    font-size: 0.9rem;
}

#jobs {
    padding: clamp(2.8rem, 6vw, 5.5rem) 0;
}

.section-heading {
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    color: var(--rv-purple-deep);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
}

.section-heading p {
    color: var(--rv-muted);
    margin: 0;
}

.job-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card .card-img-top {
    height: 11rem;
    object-fit: cover;
}

.job-card .card-body {
    padding: 1.35rem;
}

.job-card .card-title {
    color: var(--rv-purple-deep);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    border: 1px solid rgba(74, 36, 118, 0.1);
    border-radius: 999px;
    background: rgba(242, 234, 248, 0.62);
    color: var(--rv-purple);
    padding: 0.32rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.card-text {
    color: var(--rv-muted);
}

.job-actions {
    flex-wrap: wrap;
}

.job-actions .btn {
    flex: 1 1 9rem;
}

.empty-state {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: var(--rv-lilac);
    color: var(--rv-purple);
}

.modal-content {
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--rv-purple), var(--rv-purple-mid));
    color: #fff;
    border-bottom: 0;
}

.modal-body,
.modal-footer {
    background: var(--rv-cream-2);
}

.form-label {
    color: var(--rv-purple-deep);
    font-weight: 700;
}

.form-control,
.form-select {
    border: 1px solid var(--rv-line);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--rv-text);
    min-height: 2.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(111, 53, 161, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(111, 53, 161, 0.13);
}

.form-text {
    color: var(--rv-muted);
}

#jobFullDescription {
    color: var(--rv-text);
    white-space: pre-line;
}

#jobImageContainer img {
    max-height: 24rem;
    object-fit: cover;
}

.pagination .page-link {
    color: var(--rv-purple);
    border-color: var(--rv-line);
}

.pagination .page-item.active .page-link {
    background: var(--rv-purple);
    border-color: var(--rv-purple);
}

.rv-footer {
    padding: 3rem 0 1.2rem;
    background: linear-gradient(135deg, var(--rv-purple-deep), #1d0f31);
    color: #fff;
}

.rv-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.rv-footer-logo {
    width: 9rem;
    height: auto;
    filter: brightness(0) invert(1);
}

.rv-footer-copy {
    max-width: 22rem;
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.rv-footer-links,
.rv-footer-contact {
    display: grid;
    gap: 0.65rem;
}

.rv-footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.rv-footer-links a:hover {
    color: #fff;
}

.rv-footer-top {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.rv-footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.84rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

html[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

@media (max-width: 991px) {
    .rv-top-strip {
        display: none;
    }

    .rv-navbar .container {
        align-items: center;
    }

    .rv-navbar .navbar-collapse {
        margin-top: 0.75rem;
        border: 1px solid var(--rv-line);
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.8rem;
    }

    .hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .hero::before {
        inset: 1rem 0.75rem auto;
        height: 16rem;
    }

    .rv-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding-inline: 1rem;
    }

    .rv-logo {
        width: 9.8rem;
        height: 3.4rem;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 0.96rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-card {
        padding: 1rem;
    }

    .job-card .card-body {
        padding: 1.1rem;
    }

    .job-actions .btn {
        flex-basis: 100%;
    }

    .modal-dialog {
        margin: 0.75rem;
    }
}
