/* Page components: About, Vision, Business, Projects and Careers.
 * Business variant classes are generated dynamically in Business.cshtml. */

.about-header {
    background-image: url(../img/about-header.jpg);
    background-position: 103% 84%;
}

.projects-header {
    background-image: url(../img/Projects-header.jpg);
    background-position: center 50%;
}

.careers-header {
    background-image: url(../img/jobs-header.jpg);
    background-position: center 60%;
}

.contact-header {
    background-image: url(../img/vehicles-cover.jpg);
    background-position: center 63%;
}

.news-header {
    background-image: url(../img/news-cover.jpg);
    background-position: center 86%;
}


@media (max-width: 768px) {
    .contact-header {
        background-position: 60% center;
    }
}

/* About */
.aboutImg {
    background:
    linear-gradient(rgb(229 229 229 / 37%) 0%, rgb(50 50 50 / 41%) 55%),
    url(/landingpage/img/SCAI_Building.jpg);
    background-position: 73% 49%;
}

/* Base and utilities */
@media (max-width: 991.98px) {
    .aboutImgShow {
        display: none;
    }
}

/* About and vision */
.letter-spacing {
    letter-spacing: 1px;
}

.title-divider {
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.about-content-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: #ffffffc7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 62, 0.08);
    transition: all 0.3s ease;
}

.about-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(9, 30, 62, 0.14);
}

.about-content-card h4 {
    color: var(--dark);
    font-weight: 700;
}

.about-content-card p {
    color: #35383e;
    line-height: 1.9;
    font-size: 1rem;
}

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: var(--iconsBackground);
    border-radius: 12px;
    font-size: 22px;
}

html[dir='rtl'] .about-content-card {
    text-align: right;
}

/* Base and utilities */
@media (max-width: 576px) {
    .about-content-card {
        gap: 18px;
        padding: 22px;
    }

    .about-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* About and vision */
.vision-card {
    position: relative;
    overflow: hidden;
    padding-top: 45px;
}

.vision-card-number {
    position: absolute;
    top: 12px;
    right: 20px;
    color: rgba(6, 163, 218, 0.15);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

html[dir='rtl'] .vision-card-number {
    right: auto;
    left: 20px;
}

.vision-card .about-icon {
    background: linear-gradient(135deg, var(--primary), #0b7fb5);
}

.vision-card:hover .about-icon {
    background: var(--secondary);
}

/* Hero */
.business-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-position: center 63%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Business */
html[dir='rtl'] .business-passenger-cars {
    background-image: url('/landingpage/img/car-1-left.jpg');
}

html[dir='ltr'] .business-passenger-cars {
    background-image: url('/landingpage/img/car-1.jpg');
}
/*----------------------------------------------*/
html[dir='rtl'] .business-commercial-vehicles {
    background-image: url('/landingpage/img/commercial-1-left.jpg');
}

html[dir='ltr'] .business-commercial-vehicles {
    background-image: url('/landingpage/img/commercial-1.jpg');
}
/*----------------------------------------------*/
html[dir='rtl'] .business-buses-trucks {
    background-image: url('/landingpage/img/Bus-Truck-4-left.jpg');
}

html[dir='ltr'] .business-buses-trucks {
    background-image: url('/landingpage/img/Bus-Truck-4.jpg');
}
/*----------------------------------------------*/
html[dir='ltr'] .business-infrastructure {
    background-image: url('/landingpage/img/Infra-cover-left.jpg');
    background-position: center 42% !important;
}

html[dir='rtl'] .business-infrastructure {
    background-image: url('/landingpage/img/Infra-cover.jpg');
    background-position: center 42% !important;
}
/*----------------------------------------------*/
html[dir='ltr'] .business-research-development {
    background-image: url('/landingpage/img/R_D-Cover-right.jpg');
}

html[dir='rtl'] .business-research-development {
    background-image: url('/landingpage/img/R_D-Cover.jpg');
}
/*----------------------------------------------*/
html[dir='rtl'] .business-dealerships {
    background-image: url('/landingpage/img/Dealership.jpg');
    background-color: #0000008f;
}

html[dir='ltr'] .business-dealerships {
    background-image: url('/landingpage/img/Dealership.jpg');
    background-color: #0000008f;
}
/*----------------------------------------------*/
.business-overlay {
    position: absolute;
    inset: 0;
}

.business-label {
    letter-spacing: 1.5px;
}

/* Hero */
.business-hero-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Business */
.business-description-card {
    align-items: center;
}

.business-description {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 2;
}

/* Vision and mission */
.business-feature-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(9, 30, 62, 0.06);
    transition: 0.3s ease;
}

.business-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(9, 30, 62, 0.12);
}

.business-feature-card i {
    font-size: 30px;
}

.business-feature-card h5 {
    color: var(--dark);
    font-weight: 700;
}

.business-feature-card p {
    color: #6b7280;
    line-height: 1.8;
}

/* Business */
.business-selector-card {
    position: sticky;
    top: 110px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 62, 0.1);
}

.business-selector-link {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px 16px;
    color: var(--dark);
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.business-selector-link i {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.business-selector-link:hover,
.business-selector-link.active {
    color: #ffffff;
    background: var(--primary);
}

.business-selector-link:hover i,
.business-selector-link.active i {
    color: #ffffff;
}

/* Hero */
html[dir='rtl'] .business-hero,
html[dir='rtl'] .business-description-card,
html[dir='rtl'] .business-feature-card,
html[dir='rtl'] .business-selector-card {
    text-align: right;
}

/* Base and utilities */
@media (max-width: 991.98px) {
    .business-hero {
        min-height: 420px;
    }

    .business-selector-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .business-hero {
        min-height: 360px;
    }

    .business-hero h1 {
        font-size: 2.2rem;
    }
}

/* Projects */
.project-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(9, 30, 62, 0.07);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 38px rgba(9, 30, 62, 0.14);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-category {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 14px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
}

html[dir='rtl'] .project-category {
    right: 18px;
    left: auto;
}

.project-content {
    padding: 28px;
}

.project-content h4 {
    margin-bottom: 14px;
    color: var(--dark);
    font-weight: 700;
}

.project-content p {
    min-height: 78px;
    margin-bottom: 22px;
    color: #6b7280;
    line-height: 1.8;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.project-link:hover {
    color: var(--dark);
    gap: 5px;
}

html[dir='rtl'] .project-link i {
    transform: rotate(180deg);
    margin-right: 0.5rem;
    margin-left: 0 !important;
}

/* Base and utilities */
@media (max-width: 576px) {
    .project-image-wrapper {
        height: 210px;
    }

    .project-content {
        padding: 22px;
    }
}

/* Careers */
.career-content-card {
    padding: 35px;
    background: #f7fafc;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(9, 30, 62, 0.07);
    transition: all 0.3s ease;
}

.career-content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(9, 30, 62, 0.13);
}

.career-content-card h3 {
    margin: 20px 0 14px;
    color: var(--dark);
    font-weight: 700;
}

.career-content-card p {
    color: #6b7280;
    line-height: 1.85;
}

.career-provide-card {
    background: #f7fafc;
}

.career-card-icon,
.career-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    color: #ffffff;
    background: var(--iconsBackground);
    border-radius: 14px;
    font-size: 25px;
}

.career-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.career-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: #5f6b7a;
    line-height: 1.6;
}

.career-list li i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--secondary);
}

.career-cta {
    padding: 55px 30px;
    color: #ffffff;
    background: linear-gradient(rgba(9, 30, 62, 0.9), rgba(9, 30, 62, 0.9));
    background-size: cover;
}

.career-cta-icon {
    margin: 0 auto 22px;
    background: var(--iconsBackground);
}

.career-cta h2 {
    color: #ffffff;
    font-weight: 700;
}

.career-cta p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.career-email {
    color: rgba(255, 255, 255, 0.75);
    direction: ltr;
    unicode-bidi: plaintext;
}

html[dir='rtl'] .career-content-card,
html[dir='rtl'] .career-cta {
    text-align: right;
}

html[dir='rtl'] .career-list li i {
    margin-right: 0;
    margin-left: 10px;
}

/* Base and utilities */
@media (max-width: 767.98px) {
    .career-content-card {
        padding: 26px;
    }

    .career-cta {
        padding: 40px 22px;
    }
}

/* Careers */
.career-vacancies-section {
    padding: 96px 0;
    background: #f7fafc;
}

.career-vacancies-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.career-vacancies-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1597c3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.career-vacancies-heading h2 {
    margin-bottom: 12px;
    color: #0a1e3b;
}

.career-vacancies-heading p {
    margin: 0;
    color: #5a687b;
}

.career-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.career-category-button {
    border: 1px solid #d9e1ea;
    border-radius: 999px;
    padding: 10px 18px;
    background: #fff;
    color: #0a1e3b;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.career-category-button:hover,
.career-category-button.is-active {
    border-color: #0a1e3b;
    background: #0a1e3b;
    color: #fff;
}

.career-jobs-list {
    display: grid;
    gap: 16px;
}

.career-job-card {
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    background: #fff;
    transition: opacity 0.2s ease;
}

.career-job-summary {
    padding: 24px;
}

.career-job-title {
    margin: 0 0 12px;
    color: #0a1e3b;
    font-size: 1.2rem;
}

.career-job-meta,
.career-job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.career-job-meta span:not(:last-child)::after {
    margin-inline-start: 16px;
    color: #c0c9d5;
    content: '|';
}

.career-job-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b5f90;
    font-weight: 700;
    cursor: pointer;
}

.career-job-expand-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #e5f4fa;
    font-size: 1.1rem;
    line-height: 1;
}

.career-job-details {
    padding: 0 24px 28px;
    border-top: 1px solid #e8edf3;
}

.career-job-details-meta {
    margin: 22px 0;
}

.career-job-detail-block {
    margin-top: 22px;
}

.career-job-detail-block h4 {
    margin: 0 0 8px;
    color: #0a1e3b;
    font-size: 1rem;
}

.career-job-detail-block p {
    margin: 0;
    color: #4b5a6c;
    line-height: 1.8;
}

.career-job-multiline {
    white-space: pre-line;
}

.career-job-closing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e8edf3;
}

.career-job-closing p {
    max-width: 680px;
    margin: 0;
    color: #4b5a6c;
}

.career-job-apply-button {
    display: inline-block;
    border-radius: 6px;
    padding: 11px 18px;
    background: #0a1e3b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.career-job-apply-button:hover {
    background: #0b5f90;
    color: #fff;
}

.career-no-jobs {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

/* Base and utilities */
@media (max-width: 576px) {
    .career-vacancies-section {
        padding: 64px 0;
    }

    .career-job-summary,
    .career-job-details {
        padding-inline: 18px;
    }
}

/* Business */
.business-content,
.business-image {
    opacity: 0;
    transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-content {
    transform: translateY(70px);
}

.business-image-right {
    transform: translateX(200px);
}

.business-image-left {
    transform: translateX(-200px);
}

.business-section.is-visible .business-content,
.business-section.is-visible .business-image {
    opacity: 1;
    transform: translate(0, 0);
}

.business-section.is-visible .business-content {
    transition-delay: 0.18s;
}

/* Base and utilities */
@media (max-width: 991.98px) {
    .business-image-right,
    .business-image-left {
        transform: translateY(60px);
    }

    .business-section.is-visible .business-image-right,
    .business-section.is-visible .business-image-left {
        transform: translateY(0);
    }

    .business-content {
        margin-top: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .business-content,
    .business-image {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* About and vision */
.direction-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    border: 1px solid rgba(9, 30, 62, 0.09);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(9, 30, 62, 0.08);
}

.direction-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    content: '';
    background: var(--primary);
}

.direction-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.direction-title {
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 700;
}

html[dir='rtl'] .direction-card {
    flex-direction: row-reverse;
}

html[dir='rtl'] .direction-card::before {
    right: 0;
    left: auto;
}

html[dir='rtl'] .direction-content {
    text-align: right;
}

/* Base and utilities */
@media (max-width: 575.98px) {
    .direction-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .direction-content,
    html[dir='rtl'] .direction-content {
        text-align: center;
    }

    .direction-title {
        margin-bottom: 14px;
        font-size: 1.7rem;
    }
}

/* Projects */
.project-details-trigger {
    padding: 0;
    border: 0;
    background: transparent;
}

.project-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(9, 30, 62, 0.25);
}

.project-modal-image-wrapper {
    position: relative;
    height: clamp(220px, 35vw, 360px);
    overflow: hidden;
    background: var(--dark);
}

.project-modal-image-wrapper::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(
        to bottom,
        rgba(9, 30, 62, 0.02) 35%,
        rgba(9, 30, 62, 0.36) 100%
        );
}

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 10px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
}

.project-modal-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.project-modal-category {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.project-modal-title {
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 700;
}

.project-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(9, 30, 62, 0.09);
    border-bottom: 1px solid rgba(9, 30, 62, 0.09);
}

.project-meta-item {
    display: flex;
    flex: 1 1 220px;
    align-items: center;
    gap: 13px;
}

.project-meta-item i {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--primary);
    background: rgba(9, 30, 62, 0.07);
    border-radius: 12px;
    font-size: 18px;
}

.project-meta-item span {
    display: block;
    margin-bottom: 3px;
    color: #7a8490;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-meta-item strong {
    display: block;
    color: var(--dark);
    font-size: 0.96rem;
}

.project-modal-description {
    padding: 22px;
    color: #5f6b7a;
    background: var(--light);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.9;
}

html[dir='rtl'] .project-modal-close {
    right: auto;
    left: 18px;
}

html[dir='rtl'] .project-meta-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Base and utilities */
@media (max-width: 575.98px) {
    .project-modal-image-wrapper {
        height: 220px;
    }

    .project-modal-body {
        padding: 24px 20px;
    }

    .project-modal-meta {
        gap: 14px;
    }

    .project-modal-description {
        padding: 18px;
    }
}
