/*
Theme Name: elemntor child theme
Author: mustafa zidan
Description: Your description goes here
Version: 1.0.1
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* ============================================
   Single Post
   ============================================ */

/* Force header bg on non-Elementor pages */
body.single .header-fixed,
body.error404 .header-fixed,
body.page:not(.elementor-page) .header-fixed,
body.archive .header-fixed,
body.search .header-fixed,
body.blog .header-fixed {
    background-color: var(--e-global-color-primary, #1C3258) !important;
}

.aljp-single__content {
    padding: 96px 124px;
}

/* Header box */
.aljp-single__header {
    max-width: 840px;
    margin: 0 auto;
    margin-top: 50px;
}

/* Breadcrumb */
.aljp-single__breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    align-self: stretch;
}

.aljp-single__breadcrumb a,
.aljp-single__breadcrumb span {
    color: var(--gray-8-base, #616163);
    text-align: right;
    font-family: var(--font-arabic, 'Almarai', sans-serif);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
}

.aljp-single__breadcrumb a:hover {
    opacity: 0.7;
}

/* Title */
.aljp-single__title {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic, 'Almarai', sans-serif);
    font-size: 60px;
    font-style: normal;
    font-weight: 600;
    line-height: 60px;
    margin: 20px 0;
}

/* Date */
.aljp-single__date {
    color: var(--gray-8-base, #616163);
    text-align: right;
    font-family: var(--font-arabic, 'Almarai', sans-serif);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    display: block;
}

/* Featured Image */
.aljp-single__featured {
    margin: 80px 0;
}

.aljp-single__featured img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body Content */
.aljp-single__body p,
.aljp-single__body ul,
.aljp-single__body ol,
.aljp-single__body li {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    opacity: 0.8;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.aljp-single__body h2,
.aljp-single__body h3 {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 16px;
}

.aljp-single__body h4 {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    margin-bottom: 12px;
}

.aljp-single__body h5 {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    margin-bottom: 8px;
}

.aljp-single__body h6 {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 8px;
}

.aljp-single__body p:has(img) {
    max-width: 100% !important;
}

/* Image paragraph after text paragraph */
.aljp-single__body p + p:has(img) {
    margin-top: 80px;
}

/* Text/heading after image paragraph */
.aljp-single__body p:has(img) + p,
.aljp-single__body p:has(img) + h3 {
    margin-top: 80px;
}

.aljp-single__body img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Single Post - Mobile
   ============================================ */
@media (max-width: 1024px) {
    .aljp-single__content {
        padding: 40px 8px 80px 8px;
    }

    .aljp-single__title {
        font-size: 36px;
        font-weight: 600;
        line-height: 40px;
        margin: 12px 0;
    }

    .aljp-single__featured {
        margin: 50px 0;
    }

    .aljp-single__body p,
    .aljp-single__body ul,
    .aljp-single__body ol,
    .aljp-single__body li {
        font-size: 20px;
        line-height: 28px;
        max-width: 100%;
    }

    .aljp-single__body h2,
    .aljp-single__body h3 {
        font-size: 30px;
        font-weight: 600;
        line-height: 36px;
        margin-top: 40px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .aljp-single__body h4 {
        font-size: 24px;
        line-height: 32px;
        max-width: 100%;
    }

    .aljp-single__body h5 {
        font-size: 20px;
        line-height: 28px;
        max-width: 100%;
    }

    .aljp-single__body h6 {
        font-size: 18px;
        line-height: 28px;
        max-width: 100%;
    }

    .aljp-single__body p + p:has(img) {
        margin-top: 40px;
    }

    .aljp-single__body p:has(img) + p,
    .aljp-single__body p:has(img) + h3 {
        margin-top: 40px;
    }
}

/* ============================================
   Preloader
   ============================================ */
.aljp-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E8EBEE;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.aljp-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.aljp-preloader__svg {
    animation: preloaderRotate 1.2s linear infinite;
}

.aljp-preloader__circle {
    stroke-dasharray: 176;
    stroke-dashoffset: 140;
    animation: preloaderDash 1.5s ease-in-out infinite;
}

@keyframes preloaderRotate {
    to { transform: rotate(360deg); }
}

@keyframes preloaderDash {
    0% { stroke-dashoffset: 140; }
    50% { stroke-dashoffset: 40; }
    100% { stroke-dashoffset: 140; }
}

/* ============================================
   Scroll to Top
   ============================================ */
.aljp-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.aljp-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aljp-scroll-top:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.aljp-scroll-top__progress {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.aljp-scroll-top__bar {
    stroke-dasharray: 131.95;
    stroke-dashoffset: 131.95;
    transition: stroke-dashoffset 0.1s linear;
}

.aljp-scroll-top__arrow {
    position: relative;
    z-index: 1;
}

/* ============================================
   WhatsApp Button
   ============================================ */
.aljp-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.aljp-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ============================================
   Page Template
   ============================================ */
.aljp-page__content {
    padding: 96px 124px;
    max-width: 1200px;
    margin: 0 auto;
}

.aljp-page__title {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 48px;
    font-weight: 600;
    line-height: 52px;
    margin: 0 0 40px 0;
}

.aljp-page__body {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

/* ============================================
   Archive / Search / Index
   ============================================ */
.aljp-archive__content {
    padding: 96px 124px;
    max-width: 1200px;
    margin: 0 auto;
}

.aljp-archive__title {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 48px;
    font-weight: 600;
    line-height: 52px;
    margin: 0 0 40px 0;
}

.aljp-archive__search-form {
    display: flex;
    margin-bottom: 40px;
    gap: 12px;
}

.aljp-archive__search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--secondary-3, #BBC2CD);
    border-radius: 32px;
    font-family: var(--font-arabic);
    font-size: 18px;
    line-height: 28px;
    outline: none;
    text-align: right;
    background: var(--gray-1, #FFF);
}

.aljp-archive__search-form button {
    padding: 12px 32px;
    border-radius: 32px;
    background: var(--primary-7-base, #51859A);
    color: var(--gray-1, #FFF);
    border: none;
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.aljp-archive__search-form button:hover {
    opacity: 0.85;
}

.aljp-archive__card {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(81, 133, 154, 0.2);
    text-decoration: none !important;
}

.aljp-archive__card:first-child {
    border-top: 1px solid rgba(81, 133, 154, 0.2);
}

.aljp-archive__card-img {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.aljp-archive__card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.aljp-archive__card:hover img {
    transform: scale(1.05);
}

.aljp-archive__card-info {
    flex: 1;
    min-width: 0;
}

.aljp-archive__card-title {
    color: var(--gray-10, #3A3A3B);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin: 0 0 8px 0;
}

.aljp-archive__card-excerpt {
    color: var(--gray-8-base, #616163);
    text-align: right;
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.aljp-archive__card-date {
    color: var(--gray-8-base, #616163);
    font-family: var(--font-english, 'Test Karbon', sans-serif);
    font-size: 16px;
    line-height: 24px;
}

.aljp-archive__no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-8-base, #616163);
    font-family: var(--font-arabic);
    font-size: 24px;
    line-height: 32px;
}

.aljp-archive__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.aljp-archive__pagination a,
.aljp-archive__pagination span {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--secondary-3, #BBC2CD);
    color: var(--gray-10, #3A3A3B);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.aljp-archive__pagination .current,
.aljp-archive__pagination a:hover {
    background: var(--primary-7-base, #51859A);
    border-color: var(--primary-7-base, #51859A);
    color: var(--gray-1, #FFF);
}

/* 404 Page */
.aljp-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
    text-align: center;
}

.aljp-404__number {
    font-family: var(--font-english, 'Test Karbon', sans-serif);
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-7-base, #51859A);
    opacity: 0.15;
    margin-bottom: -30px;
}

.aljp-404__title {
    font-family: var(--font-arabic);
    font-size: 36px;
    font-weight: 600;
    line-height: 40px;
    color: var(--gray-10, #3A3A3B);
    margin: 0 0 16px 0;
}

.aljp-404__desc {
    font-family: var(--font-arabic);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--gray-8-base, #616163);
    margin: 0 0 40px 0;
    max-width: 500px;
}

.aljp-404__btn {
    display: inline-flex;
    padding: 12px 32px;
    border-radius: 32px;
    background: var(--primary-7-base, #51859A);
    color: var(--gray-1, #FFF);
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.aljp-404__btn:hover {
    opacity: 0.85;
}

/* ============================================
   Page/Archive/404 - Mobile
   ============================================ */
@media (max-width: 1024px) {
    .aljp-page__content,
    .aljp-archive__content {
        padding: 40px 16px 80px;
    }

    .aljp-page__title,
    .aljp-archive__title {
        font-size: 30px;
        line-height: 36px;
    }

    .aljp-archive__card {
        flex-direction: column;
        gap: 0;
    }

    .aljp-archive__card-img {
        width: 100%;
    }

    .aljp-archive__card-info {
        padding: 16px;
    }

    .aljp-404__number {
        font-size: 120px;
    }

    .aljp-404__title {
        font-size: 28px;
        line-height: 36px;
    }
}

/* ============================================
   Community Single Page (cs-)
   ============================================ */
.cs { background: #E8EBEE; }
.cs-container { max-width: 1312px; margin: 0 auto; padding: 0 24px; }

/* --- Hero --- */
.cs-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-1, #1C3258);
    padding: 196px 0 128px;
}
.cs-hero__inner {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    gap: 0;
}
.cs-hero__image-left { width: 35%; flex-shrink: 0; }
.cs-hero__image-left img { width: 100%; height: 520px; object-fit: cover; }
.cs-hero__content {
    width: 47%;
    padding: 144px 80px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.cs-hero__title {
    font-size: 72px;
    font-weight: 600;
    line-height: 72px;
    color: #FFF;
    margin: 0;
    max-width: 50%;
}
.cs-hero__desc {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    color: #FFF;
    margin: 24px 0;
}
.cs-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--primary-7-base, #51859A);
    color: #FFF;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    border-radius: 30px;
    padding: 10px 28px;
    width: fit-content;
    transition: background .3s;
    text-decoration: none !important;
}
.cs-hero__btn:hover { background: #51859AC4; }
.cs-hero__btn svg { width: 27px; height: 27px; flex-shrink: 0; }
.cs-hero__image-right { width: 18%; flex-shrink: 0; display: flex; align-items: flex-start; }
.cs-hero__image-right img { width: 100%; height: 180px; object-fit: cover; }

/* --- Gallery --- */
.cs-gallery-section { padding: 128px 0; }
.cs-gallery-section__title {
    font-size: 72px; font-weight: 600; line-height: 72px;
    color: var(--gray-10, #3A3A3B); text-align: center; margin-bottom: 60px;
}

/* --- Stats --- */
.cs-stats { padding: 64px 0 128px; }
.cs-stats__inner { display: flex; justify-content: space-between; gap: 0; }
.cs-stats__content { width: 38%; padding: 20px 0 0; }
.cs-stats__content-title { font-size: 48px; font-weight: 600; line-height: 48px; color: var(--gray-10); margin: 0 0 16px 0; }
.cs-stats__content-desc { font-size: 24px; font-weight: 400; line-height: 32px; color: var(--gray-8-base, #616163); margin: 0; }
.cs-stats__counters { width: 62%; padding-right: 128px; }
.cs-stat-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cs-stat-row__counter { flex-shrink: 0; display: flex; flex-direction: column-reverse; }
.cs-stat-row__number { display: flex; align-items: baseline; gap: 4px; color: var(--primary-7-base, #51859A); font-size: 60px; font-weight: 600; line-height: 60px; }
.cs-stat-row__label { color: var(--gray-10); font-size: 20px; font-weight: 400; line-height: 28px; }
.cs-stat-row__desc { width: 45%; font-size: 18px; font-weight: 400; line-height: 28px; color: var(--gray-10); text-align: end; }
.cs-stat-divider { border: none; border-top: 1px solid rgba(81,133,154,.2); margin: 40px 0; }

/* --- Anchor Nav --- */
.cs-anchor-nav { position: sticky; top: 0; z-index: 1000; background: var(--primary-1, #1C3258); }
.cs-anchor-nav__inner { display: flex; align-items: center; justify-content: center; }
.cs-anchor-nav__item {
    display: flex; padding: 24px 32px; justify-content: center; align-items: center;
    color: var(--secondary-4, #8E99AC); font-size: 24px; font-weight: 600; line-height: 32px;
    border-bottom: 3px solid var(--primary-1, #1C3258); transition: color .3s, border-color .3s;
    cursor: pointer; text-decoration: none !important;
}
.cs-anchor-nav__item:hover { color: #FFF; }
.cs-anchor-nav__item.is-active { color: #FFF; border-bottom-color: var(--primary-7-base, #51859A); }

/* --- Spaces --- */
.cs-spaces { padding: 128px 0; }
.cs-spaces__inner { display: flex; justify-content: space-between; }
.cs-spaces__content { width: 41.3%; padding-left: 212px; display: flex; flex-direction: column; justify-content: flex-end; }
.cs-spaces__title { font-size: 48px; font-weight: 600; line-height: 48px; color: var(--gray-10); margin: 0 0 32px 0; }
.cs-spaces__image { width: 59.7%; }
.cs-spaces__image img { width: 100%; height: 644px; object-fit: cover; }

/* Feature list (cs-fl) */
.cs-fl__card {
    display: flex; padding: 16px; align-items: center; gap: 20px;
    border-bottom: 1px solid var(--primary-3, #CBDAE1); transition: background .3s; cursor: pointer;
}
.cs-fl__card:first-child { border-top: 1px solid var(--primary-3, #CBDAE1); }
.cs-fl__card.is-active { background: rgba(81,133,154,.1); }
.cs-fl__title { font-size: 24px; font-weight: 600; line-height: 32px; color: var(--gray-10); display: none; margin: 0; }
.cs-fl__card.is-active .cs-fl__title { display: block; }
.cs-fl__desc { font-size: 18px; font-weight: 400; line-height: 28px; color: var(--gray-10); margin: 0; }

/* --- Facilities --- */
.cs-facilities { padding: 128px 0; }
.cs-facilities__title { font-size: 72px; font-weight: 600; line-height: 72px; color: var(--gray-10); text-align: center; margin: 0; margin-right: -151px; }
.cs-facilities__subtitle { font-size: 72px; font-weight: 600; line-height: 72px; color: var(--gray-10); text-align: center; margin: 0; padding-right: 151px; padding-top: 30px; }

/* Image cards (cs-icards) */
.cs-icards { display: flex; gap: 20px; margin-top: 80px; }
.cs-icard {
    display: flex; height: 524px; min-height: 524px; padding-top: 40px; flex-direction: column;
    justify-content: flex-end; align-items: center; flex: 1;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    overflow: hidden; cursor: pointer; transition: all .4s;
}
.cs-icard__info {
    padding: 28px; width: stretch; width: -webkit-fill-available;
    background: linear-gradient(180deg, rgba(81,133,154,0) 0%, rgba(81,133,154,.8) 100%);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    display: flex; align-items: flex-end; gap: 16px;
}
.cs-icard__icon {
    display: flex; padding: 10px; border-radius: 40px; background: var(--primary-7-base, #51859A);
    flex-shrink: 0; align-self: flex-end; transition: background .3s, transform .3s;
}
.cs-icard.is-active .cs-icard__icon { background: var(--primary-1, #1C3258); transform: rotate(45deg); }
.cs-icard__text { flex: 1; }
.cs-icard__title { color: #FFF; font-size: 30px; font-weight: 600; line-height: 36px; margin: 0; }
.cs-icard__desc { color: #FFF; font-size: 18px; font-weight: 400; line-height: 28px; margin: 0; display: none; }
.cs-icard.is-active .cs-icard__desc { display: block; margin-top: 16px; }

/* --- Units --- */
.cs-units-section { padding: 96px 0 128px; }
.cs-units__slide { display: flex; gap: 0; flex-direction: row-reverse; }
.cs-units__images { width: 52%; flex-shrink: 0; }
.cs-units__main-img img { width: 100%; height: 480px; object-fit: cover; }
.cs-units__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.cs-units__thumb { flex: 1; cursor: pointer; opacity: .5; transition: opacity .3s; }
.cs-units__thumb.is-active { opacity: 1; }
.cs-units__thumb:hover { opacity: .8; }
.cs-units__thumb img { width: 100%; height: 170px; object-fit: cover; }
.cs-units__content { width: 48%; display: flex; flex-direction: column; justify-content: center; padding-left: 112px; }
.cs-units__label { font-size: 20px; font-weight: 400; line-height: 28px; color: var(--gray-10); margin-bottom: 331px; }
.cs-units__title { font-size: 60px; font-weight: 600; line-height: 60px; color: var(--gray-10); margin: 0 0 40px; }
.cs-units__numbers { display: flex; gap: 48px; margin-bottom: 40px; }
.cs-units__num-top { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.cs-units__num-top strong { font-size: 30px; font-weight: 600; line-height: 36px; color: var(--gray-10); }
.cs-units__num-top span { font-size: 18px; font-weight: 400; line-height: 28px; color: var(--gray-8-base, #616163); }
.cs-units__num-desc { font-size: 18px; font-weight: 400; line-height: 28px; color: var(--gray-8-base, #616163); }
.cs-units__num-sep { width: 1px; height: 64px; background: rgba(81,133,154,.2); align-self: center; }
.cs-units__arrows { display: flex; gap: 12px; }
.cs-units__arrow {
    display: flex; padding: 10px 20px; border-radius: 999px;
    border: 1px solid var(--gray-8-base, #616163); background: none;
    cursor: pointer; color: var(--gray-8-base, #616163); transition: opacity .3s;
}
.cs-units__arrow:hover { opacity: .7; }
.cs-units__arrow svg { width: 36px; height: 17px; }

/* --- Location + Download --- */
.cs-location-section { margin-top: 550px; padding: 128px 0; background: var(--primary-7-base, #51859A); }
.cs-location__map { padding: 0 111px; margin-top: -550px; }
.cs-location__map iframe { width: 100%; height: 600px; border: none; background: var(--primary-7-base, #51859A); padding: 12px; }
.cs-location__bottom {
    max-width: 1312px; margin: 0 auto; padding: 144px 111px 0;
    display: flex; justify-content: space-between;
}
.cs-location__image { width: 50%; }
.cs-location__image img { width: 80%; }
.cs-location__download { width: 50%; display: flex; flex-direction: column; justify-content: center; }
.cs-location__download-title { font-size: 48px; font-weight: 600; line-height: 48px; color: #FFF; margin: 0 0 20px 0; }
.cs-location__download-desc { font-size: 20px; font-weight: 400; line-height: 24px; color: #FFF; margin: 0 0 48px 0; }
.cs-location__download-btn {
    display: inline-flex; align-items: center; gap: 14px; color: #FFF;
    font-size: 18px; font-weight: 600; line-height: 28px; background: none; border: none;
    width: fit-content; flex-direction: row-reverse; transition: opacity .3s; text-decoration: none !important;
}
.cs-location__download-btn:hover { opacity: .7; }

/* ============================================
   Community Single - Mobile
   ============================================ */
@media (max-width: 1024px) {
    .cs-hero { padding: 120px 0 48px; }
    .cs-hero__inner { flex-direction: column; padding: 0 8px; }
    .cs-hero__image-left { width: stretch; width: -webkit-fill-available; }
    .cs-hero__image-left img { height: 240px; }
    .cs-hero__content { width: stretch; width: -webkit-fill-available; padding: 30px 16px 40px; }
    .cs-hero__title { font-size: 36px; line-height: 40px; max-width: 35%; }
    .cs-hero__desc { font-size: 20px; line-height: 28px; margin: 20px 0; }
    .cs-hero__image-right { width: stretch; width: -webkit-fill-available; }
    .cs-hero__image-right img { height: 180px; object-fit: fill; width: stretch; width: -webkit-fill-available; }

    .cs-gallery-section { padding: 96px 0 64px; }
    .cs-gallery-section__title { font-size: 36px; line-height: 40px; margin-bottom: 40px; }

    .cs-stats { padding: 0 0 80px; }
    .cs-stats__inner { flex-direction: column; padding: 0 8px; }
    .cs-stats__content { width: stretch; width: -webkit-fill-available; padding: 0 16px; }
    .cs-stats__content-title { font-size: 30px; line-height: 36px; margin-bottom: 12px; }
    .cs-stats__content-desc { font-size: 20px; line-height: 28px; }
    .cs-stats__counters { width: stretch; width: -webkit-fill-available; padding: 48px 32px 0; }
    .cs-stat-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cs-stat-row__number { font-size: 36px; line-height: 40px; }
    .cs-stat-row__desc { width: stretch; width: -webkit-fill-available; text-align: start; }
    .cs-stat-divider { margin: 32px 0; }

    .cs-anchor-nav__inner { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .cs-anchor-nav__inner::-webkit-scrollbar { display: none; }
    .cs-anchor-nav__item { font-size: 20px; line-height: 28px; padding: 12px 20px; white-space: nowrap; }

    .cs-spaces { padding: 64px 0; }
    .cs-spaces__inner { flex-direction: column; padding: 0 8px; }
    .cs-spaces__content { width: stretch; width: -webkit-fill-available; padding: 0 16px 50px; }
    .cs-spaces__title { font-size: 36px; line-height: 40px; }
    .cs-spaces__image { width: stretch; width: -webkit-fill-available; }
    .cs-spaces__image img { height: 412px; }

    .cs-facilities { padding: 48px 0; }
    .cs-facilities__title, .cs-facilities__subtitle { font-size: 30px; line-height: 36px; }
    .cs-icards { flex-direction: column; gap: 8px; margin-top: 40px; }
    .cs-icard { height: 320px; min-height: 320px; }

    .cs-units-section { padding: 48px 0 96px; }
    .cs-units__slide { flex-direction: column; }
    .cs-units__images { width: stretch; width: -webkit-fill-available; order: 2; }
    .cs-units__content { width: stretch; width: -webkit-fill-available; padding: 0 16px 30px; order: 1; }
    .cs-units__label { margin-bottom: 10px; }
    .cs-units__title { font-size: 36px; line-height: 40px; margin-bottom: 24px; }
    .cs-units__main-img img { height: 300px; }
    .cs-units__thumbs { flex-wrap: nowrap; }
    .cs-units__thumb img { height: 100px; }
    .cs-units__numbers { gap: 24px; margin-bottom: 24px; }
    .cs-units__arrows { margin-top: 20px; }
    .aljp-units__arrows { margin-top: 30px; }

    .cs-location-section { margin-top: 0; padding: 8px 0 80px; }
    .cs-location__map { padding: 0; margin: 0; }
    .cs-location__map iframe { height: 310px; padding: 0; }
    section#location .cs-container { padding: 5px 10px 0 10px; }
    .cs-location__bottom { flex-direction: column; padding: 48px 16px 0; }
    .cs-location__image { width: stretch; width: -webkit-fill-available; }
    .cs-location__image img { width: stretch; width: -webkit-fill-available; }
    .cs-location__download { width: stretch; width: -webkit-fill-available; padding: 40px 0 0; }
    .cs-location__download-title { font-size: 30px; line-height: 36px; }
    .cs-location__download-desc { margin-bottom: 30px; }
    .cs-location__download-btn { font-size: 16px; }

    .cs-facilities__title { margin-right: 0 !important; }
    .cs-facilities__subtitle { padding-right: 0 !important; }
}

/* ============================================
   LTR Overrides - Single Post
   ============================================ */
html[dir="ltr"] {
    --font-arabic: var(--font-english, 'Test Karbon', sans-serif);
}

html[dir="ltr"] .aljp-single__breadcrumb a,
html[dir="ltr"] .aljp-single__breadcrumb span {
    text-align: left;
}

html[dir="ltr"] .aljp-single__title {
    text-align: left;
}

html[dir="ltr"] .aljp-single__date {
    text-align: left;
}

html[dir="ltr"] .aljp-single__body p,
html[dir="ltr"] .aljp-single__body ul,
html[dir="ltr"] .aljp-single__body ol,
html[dir="ltr"] .aljp-single__body li {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .aljp-single__body h2,
html[dir="ltr"] .aljp-single__body h3 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .aljp-single__body h4 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .aljp-single__body h5 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .aljp-single__body h6 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* --- Page / Archive --- */
html[dir="ltr"] .aljp-page__title {
    text-align: left;
}

html[dir="ltr"] .aljp-page__body {
    text-align: left;
}

html[dir="ltr"] .aljp-archive__title {
    text-align: left;
}

html[dir="ltr"] .aljp-archive__search-form input[type="search"] {
    text-align: left;
}

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

html[dir="ltr"] .aljp-archive__card-excerpt {
    text-align: left;
}

/* ============================================
   LTR Overrides - Community Single (cs-)
   ============================================ */

/* --- Hero --- */
html[dir="ltr"] .cs-hero__content {
    padding: 144px 30px 40px 80px;
}

html[dir="ltr"] .cs-hero__btn svg {
    transform: scaleX(-1);
}

/* --- Stats --- */
html[dir="ltr"] .cs-stats__counters {
    padding-right: 0;
    padding-left: 128px;
}

html[dir="ltr"] .cs-stat-row__desc {
    text-align: start;
}

/* --- Spaces --- */
html[dir="ltr"] .cs-spaces__content {
    padding-left: 0;
    padding-right: 212px;
}

/* --- Facilities --- */
html[dir="ltr"] .cs-facilities__title {
    margin-right: 0;
    margin-left: -151px;
}

html[dir="ltr"] .cs-facilities__subtitle {
    padding-right: 0;
    padding-left: 151px;
}

/* --- Units --- */
html[dir="ltr"] .cs-units__slide {
    flex-direction: row;
}

html[dir="ltr"] .cs-units__content {
    padding-left: 112px;
    padding-right: 0;
}

html[dir="ltr"] .cs-units__arrows {
    flex-direction: row-reverse;
}

/* --- Location --- */
html[dir="ltr"] .cs-location__download-btn {
    flex-direction: row;
}

html[dir="ltr"] .cs-location__download-btn svg {
    transform: scaleX(-1);
}

/* --- Mobile Overrides --- */
@media (max-width: 1024px) {
    html[dir="ltr"] .cs-hero__content {
        padding: 30px 16px 40px;
    }

    html[dir="ltr"] .cs-stats__counters {
        padding-left: 32px;
    }

    html[dir="ltr"] .cs-spaces__content {
        padding-right: 16px;
    }

    html[dir="ltr"] .cs-units__slide {
        flex-direction: column;
    }

    html[dir="ltr"] .cs-units__content {
        padding-left: 0;
        padding-right: 16px;
    }

    html[dir="ltr"] .cs-facilities__title {
        margin-left: 0 !important;
    }

    html[dir="ltr"] .cs-facilities__subtitle {
        padding-left: 0 !important;
    }
}