@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Arabic:500,700");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html,
body {
    margin: 0px;
    height: 100%;
}
/* a blue color as a generic focus style */
button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

a {
    text-decoration: none;
}

:root {
    --grey: 0px 0px 32px 8px rgba(102, 102, 102, 0.08);
    --colors-primary-600: rgba(55, 42, 88, 1);
    --colors-primary-500: rgba(106, 93, 139, 1);
    --colors-primary-400: rgba(136, 125, 162, 1);
    --colors-primary-300: rgba(166, 158, 185, 1);
    --colors-primary-200: rgba(195, 190, 209, 1);
    --colors-primary-100: rgba(225, 223, 232, 1);
    --colors-primary-50: rgba(243, 242, 246, 1);
    --colors-additional-success: rgba(73, 160, 120, 1);
    --colors-additional-failure: rgba(219, 58, 52, 1);
    --khames-design-system-colors-gray-darkest: rgba(17, 17, 17, 1);
    --khames-design-system-colors-gray-dark: rgba(102, 102, 102, 1);
    --khames-design-system-colors-gray-white: rgba(255, 255, 255, 1);
    --khames-design-system-colors-gray-lighter: rgba(230, 230, 230, 1);
    --khames-design-system-colors-gray-lightest: rgba(244, 244, 244, 1);
    --khames-design-system-colors-gray-light: rgba(204, 204, 204, 1);
}


/* Main Container */
.services-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 156px;
    background-color: #fafafa;
    min-height: 100vh;
}

/* Search Section */
.search {
    width: 100%;
    background-color: transparent;
    padding: 0;
}

.list {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

[dir="ltr"] .list {
    flex-direction: row;
}

[dir="rtl"] .list {
    flex-direction: row-reverse;
}

.field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    flex: 1;
    background-color: var(--khames-design-system-colors-gray-white);
    border-radius: 16px;
    border: 1px solid var(--khames-design-system-colors-gray-lighter);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .field:hover {
        border-color: var(--colors-primary-300);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .field:focus-within {
        border-color: var(--colors-primary-500);
        box-shadow: 0 0 0 3px rgba(106, 93, 139, 0.1);
    }

.field-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    pointer-events: none;
}

[dir="ltr"] .field-content {
    flex-direction: row;
}

[dir="rtl"] .field-content {
    flex-direction: row-reverse;
}

.field-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.7;
}

.field-text {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 500;
    color: var(--khames-design-system-colors-gray-darkest);
    font-size: 16px;
    flex: 1;
    text-align: right;
}

[dir="ltr"] .field-text {
    text-align: left;
}

[dir="rtl"] .field-text {
    text-align: right;
}

.field-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-size: 16px;
    z-index: 2;
}

    .field-select:focus {
        outline: none;
    }

.field-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.3s ease;
    pointer-events: none;
}

[dir="ltr"] .field-arrow {
    order: 1;
}

[dir="rtl"] .field-arrow {
    order: -1;
}

.field:focus-within .field-arrow {
    transform: rotate(180deg);
}

[dir="rtl"] .field:focus-within .field-arrow {
    transform: rotate(-180deg);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--colors-primary-500);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .search-btn:hover {
        background-color: var(--colors-primary-600);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(106, 93, 139, 0.3);
    }

    .search-btn:active {
        transform: translateY(0);
    }

.search-icon {
    width: 24px;
    height: 24px;
}

/* Page Title */
.page-title {
    width: 100%;
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 700;
    color: var(--khames-design-system-colors-gray-darkest);
    font-size: 40px;
    text-align: right;
    margin: 8px 0;
}

[dir="ltr"] .page-title {
    text-align: left;
}

[dir="rtl"] .page-title {
    text-align: right;
}

/* Featured Banner */
.banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
    width: 100%;
    background-color: var(--khames-design-system-colors-gray-lightest);
    border-radius: 24px;
    overflow: hidden;
}

.banner-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    order: 3;
}

[dir="ltr"] .banner-icon {
    order: 1;
}

[dir="rtl"] .banner-icon {
    order: 3;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    order: 1;
    text-align: right;
    align-items: flex-end;
}

[dir="ltr"] .banner-content {
    order: 2;
    text-align: left !important;
    align-items: flex-end !important;
}

[dir="rtl"] .banner-content {
    text-align: right;
    align-items: flex-start;
}

.banner-title {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 700;
    color: var(--khames-design-system-colors-gray-darkest);
    font-size: 32px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0;
    justify-content: flex-end;
    text-align: right;
}

[dir="ltr"] .banner-title {
    justify-content: flex-end !important;
    text-align: left !important;
    width: 100%;
}

[dir="rtl"] .banner-title {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
}

.banner-description {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 500;
    color: var(--khames-design-system-colors-gray-dark);
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
}

[dir="ltr"] .banner-description {
    text-align: left;
}

[dir="rtl"] .banner-description {
    text-align: right;
}

.badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--colors-primary-500);
    border-radius: 12px;
    vertical-align: middle;
    flex-shrink: 0;
}

[dir="ltr"] .badge {
    margin-left: 12px;
}

[dir="rtl"] .badge {
    margin-right: 12px;
}

.badge-text {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 700;
    color: var(--khames-design-system-colors-gray-white);
    font-size: 14px;
    white-space: nowrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--khames-design-system-colors-gray-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

.service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-direction: row-reverse;
}

[dir="ltr"] .service-header {
    flex-direction: row;
}

[dir="rtl"] .service-header {
    flex-direction: row-reverse;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    text-align: right;
}

[dir="ltr"] .service-text {
    text-align: left;
}

[dir="rtl"] .service-text {
    text-align: right;
}

.service-title {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 700;
    color: var(--khames-design-system-colors-gray-darkest);
    font-size: 20px;
    line-height: 1.3;
    text-align: right;
}

[dir="ltr"] .service-title {
    text-align: left;
}

[dir="rtl"] .service-title {
    text-align: right;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

[dir="ltr"] .service-meta {
    flex-direction: row;
    justify-content: flex-end;
}

[dir="rtl"] .service-meta {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.meta-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.meta-text {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 500;
    color: var(--khames-design-system-colors-gray-dark);
    font-size: 14px;
}

.service-description {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 500;
    color: var(--khames-design-system-colors-gray-dark);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

[dir="ltr"] .service-description {
    text-align: left;
}

[dir="rtl"] .service-description {
    text-align: right;
}

.service-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background-color: var(--colors-primary-500);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

    .service-btn:hover {
        background-color: var(--colors-primary-600);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(106, 93, 139, 0.3);
    }

    .service-btn:active {
        transform: translateY(0);
    }

.service-btn-text {
    font-family: "IBM Plex Sans Arabic", Helvetica;
    font-weight: 700;
    color: var(--khames-design-system-colors-gray-white);
    font-size: 16px;
    white-space: nowrap;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .services-frame {
        padding: 32px 48px;
    }

    .page-title {
        font-size: 36px;
    }

    .banner {
        padding: 28px 32px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-description {
        font-size: 15px;
    }

    .banner-icon {
        width: 100px;
        height: 100px;
    }

    .service-image {
        width: 100px;
        height: 100px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .services-frame {
        padding: 24px 16px;
        gap: 24px;
    }

    .list {
        flex-direction: column;
        gap: 12px;
    }

    .field {
        width: 100%;
        padding: 14px 16px;
    }

    .search-btn {
        width: 100%;
        height: 56px;
    }

    .page-title {
        font-size: 28px;
        text-align: center;
    }

    .banner {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }

    .banner-icon {
        width: 100px;
        height: 100px;
        order: 1;
    }

    .banner-content {
        order: 2;
        text-align: center;
        align-items: center;
    }

    [dir="ltr"] .banner-content {
        align-items: center;
        text-align: center;
    }

    [dir="rtl"] .banner-content {
        align-items: center;
        text-align: center;
    }

    [dir="ltr"] .banner-title {
        justify-content: center !important;
    }

    [dir="rtl"] .banner-title {
        justify-content: center;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-description {
        font-size: 14px;
    }

    .badge {
        position: static;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .service-text {
        text-align: center;
        align-items: center;
    }

    .service-image {
        width: 120px;
        height: 120px;
    }

    .service-meta {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .services-frame {
        padding: 16px 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .banner {
        padding: 20px;
    }

    .banner-title {
        font-size: 22px;
    }

    .banner-description {
        font-size: 13px;
    }

    .banner-icon {
        width: 80px;
        height: 80px;
    }

    .service-card {
        padding: 20px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-image {
        width: 100px;
        height: 100px;
    }
}
