/******************************/
/* Box Theme — إضافات القالب  */
/* (الصفحات الداخلية + CF7)   */
/******************************/

/******************************/
/* && Page Head (بانر داخلي) &&*/
/******************************/
.page-head {
    position: relative;
    background-color: var(--dark);
    background-image: url("../images/intro.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 190px 0 70px;
    text-align: center;
}

.page-head:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

.page-head .container {
    position: relative;
    z-index: 2;
}

.page-head-title {
    color: var(--yellow);
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 12px;
}

.page-head-text {
    color: var(--white);
    font-size: 16px;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto 5px;
}

.box-breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-top: 10px;
    max-width: 100%;
}

.box-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.box-breadcrumb a:hover {
    color: var(--yellow);
}

.box-breadcrumb .post,
.box-breadcrumb .current-item {
    color: var(--yellow);
}

/******************************/
/* && أقسام عامة &&*/
/******************************/
.archive-section,
.single-section {
    padding: 90px 0;
    background-color: var(--white);
}

.box-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.box-pagination .wp-pagenavi {
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-pagination .wp-pagenavi a,
.box-pagination .wp-pagenavi span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    color: var(--dark);
    font-weight: bold;
    font-size: 15px;
    transition: all 0.35s ease-in-out;
}

.box-pagination .wp-pagenavi span.current,
.box-pagination .wp-pagenavi a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* محتوى المحرر */
.entry-content {
    color: var(--dark);
    font-size: 16px;
    line-height: 2.1;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--dark);
    margin: 25px 0 15px;
}

.entry-content ul,
.entry-content ol {
    padding-inline-start: 22px;
    margin-bottom: 18px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content img {
    border-radius: 16px;
    height: auto;
}

.entry-content a {
    color: var(--primary);
}

/******************************/
/* && أرشيف الخدمات (col-6) &&*/
/******************************/
.services-archive {
    background-color: var(--gray-bg);
}

.services-archive-inner {
    display: block;
}

.services-archive-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.services-archive-cards .service-card {
    height: 100%;
}

.service-block {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    background-color: var(--white);
    border-radius: 18px;
    border: 1px solid transparent;
    padding: 35px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease-in-out;
    overflow: hidden;
}

.service-block:after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.35s ease-in-out;
}

.service-block:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 45, 25, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-block:hover:after {
    transform: scaleY(1);
}

.service-block-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.service-block-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    background-color: var(--gray-bg);
    border-radius: 16px;
    transition: all 0.35s ease-in-out;
}

.service-block:hover .service-block-icon {
    background-color: rgba(237, 188, 56, 0.18);
}

.service-block-icon img {
    width: 44px;
}

.service-block-title {
    color: var(--dark);
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 0;
    transition: all 0.35s ease-in-out;
}

.service-block:hover .service-block-title {
    color: var(--primary);
}

.service-block-text {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.service-block-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    margin-top: auto;
}

.service-block-more i {
    transform: rotate(45deg);
    transition: all 0.35s ease-in-out;
}

.service-block:hover .service-block-more i {
    transform: rotate(0);
}

/* في LTR: السهم القطري يبقى ↗ بدل ↖ (مش نازل لتحت) */
html[dir="ltr"] .service-block-more i,
html[dir="ltr"] .main-btn .btn-icon i {
    transform: rotate(135deg);
}

/* سهم كارت الخبر: ← في العربي / → في الإنجليزي */
html[dir="ltr"] .news-go i {
    transform: rotate(180deg);
}

html[dir="ltr"] .news-card:hover .news-go i {
    transform: rotate(180deg);
}

/* عند الـ hover السهم يتجه لاتجاه القراءة (يمين في الإنجليزي) */
html[dir="ltr"] .service-block:hover .service-block-more i,
html[dir="ltr"] .main-btn:hover .btn-icon i {
    transform: rotate(180deg);
}

/******************************/
/* && سنجل الخدمة &&*/
/******************************/
.service-single-top {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-bottom: 45px;
}

.service-single-image {
    flex: 0 0 52%;
    max-width: 52%;
}

.service-single-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.service-single-head {
    flex: 1;
}

.service-single-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    background-color: var(--gray-bg);
    border-radius: 20px;
    margin-bottom: 22px;
}

.service-single-icon img {
    width: 54px;
}

.service-single-title {
    color: var(--dark);
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.service-single-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 60px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--yellow);
}

.service-single-excerpt {
    color: var(--gray);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 0;
}

/******************************/
/* && السنجل العام / الأخبار &&*/
/******************************/
.single-article {
    max-width: 900px;
    margin: 0 auto;
}

.single-meta {
    margin-bottom: 18px;
}

.single-meta .news-date {
    background-color: var(--gray-bg);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: bold;
}

.single-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-image img {
    width: 100%;
    height: auto;
}

/******************************/
/* && أرشيف الأخبار &&*/
/******************************/
.news-archive .news-card {
    margin-bottom: 40px;
}

/******************************/
/* && الأسئلة الشائعة &&*/
/******************************/
.faq-archive {
    background-color: var(--gray-bg);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.35s ease-in-out;
}

.faq-item.open {
    border-color: rgba(199, 45, 25, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: transparent;
    text-align: inherit;
    padding: 22px 25px;
    cursor: pointer;
}

.faq-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--gray-bg);
    border-radius: 12px;
    color: var(--primary);
    font-size: 15px;
    font-weight: bold;
    transition: all 0.35s ease-in-out;
}

.faq-item.open .faq-num {
    background-color: var(--primary);
    color: var(--white);
}

.faq-q-text {
    flex: 1;
    color: var(--dark);
    font-size: 17px;
    font-weight: bold;
    line-height: 1.7;
}

.faq-item.open .faq-q-text {
    color: var(--primary);
}

.faq-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    color: var(--dark);
    font-size: 13px;
    transition: all 0.35s ease-in-out;
}

.faq-toggle .fa-minus {
    display: none;
}

.faq-item.open .faq-toggle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.faq-item.open .faq-toggle .fa-plus {
    display: none;
}

.faq-item.open .faq-toggle .fa-minus {
    display: block;
}

.faq-answer-inner {
    color: var(--gray);
    font-size: 15px;
    line-height: 2.1;
    padding: 0 25px 25px;
    border-top: 1px dashed #eee;
    padding-top: 20px;
    margin: 0 25px 25px;
    padding-inline: 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/******************************/
/* && عملاؤنا / المنصات &&*/
/******************************/
.clients-archive,
.platforms-page {
    background-color: var(--gray-bg);
}

.client-grid-card {
    height: 150px;
    margin-bottom: 30px;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease-in-out;
}

.client-grid-card:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 45, 25, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.client-grid-card img {
    max-height: 90px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.platforms-desc {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

/******************************/
/* && صفحة تواصل معنا &&*/
/******************************/
.contact-section {
    padding: 90px 0;
    background-color: var(--gray-bg);
}

.contact-block-title {
    position: relative;
    color: var(--dark);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 14px;
}

.contact-block-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 46px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--yellow);
}

.contact-top {
    margin-bottom: 30px;
}

.contact-info-card,
.contact-social-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* أيقونات التواصل — صف واحد بدون نصوص */
.contact-icons-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--gray-bg);
    color: var(--primary);
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.35s ease-in-out;
}

.contact-icon-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(199, 45, 25, 0.22);
}

/* معلومات التواصل: أيقونة + القيمة جنبها في صف واحد */
.contact-info-row {
    gap: 30px;
}

.contact-info-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-size: 15px;
    font-weight: bold;
    transition: all 0.35s ease-in-out;
}

.contact-info-line .contact-icon-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    font-size: 19px;
}

.contact-info-line:hover {
    color: var(--primary);
}

.contact-info-line:hover .contact-icon-btn {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(199, 45, 25, 0.22);
}

.contact-info-text {
    word-break: break-word;
}

.contact-form-card {
    margin-top: 0;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 35px 30px;
}

.contact-form-card .join-field-wrap {
    flex: 1 1 100%;
}

.contact-map {
    height: calc(100% - 30px);
    min-height: 420px;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    background-color: var(--white);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/******************************/
/* && صفحة انضم الينا &&*/
/******************************/
.join-page-section {
    padding: 90px 0;
    background-color: var(--gray-bg);
}

.join-page-desc {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.join-page-section .join-card {
    margin-top: 0;
}

/******************************/
/* && CF7 &&*/
/******************************/
.wpcf7 .join-form {
    margin: 0;
}

.join-form p {
    width: 100%;
    margin: 0;
    position: relative;
}

.join-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

.join-form .join-field {
    display: block;
}

.join-form select.join-field {
    height: 64px;
}

.join-form textarea.join-field {
    height: 150px;
    padding: 20px 25px;
    resize: vertical;
}

.cf7-submit-wrap {
    position: relative;
}

.join-form input.join-submit {
    width: 100%;
    min-height: 66px;
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    text-align: start;
    padding-inline-start: 30px;
    padding-inline-end: 95px;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
}

.join-form input.join-submit:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(199, 45, 25, 0.18);
}

.cf7-submit-wrap .btn-icon {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 70px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 15px;
    pointer-events: none;
}

.cf7-submit-wrap .btn-icon i {
    transform: rotate(45deg);
}

html[dir="ltr"] .cf7-submit-wrap .btn-icon i {
    transform: rotate(135deg);
}

/* سهم الـ select: شمال في العربي / يمين في الإنجليزي */
html[dir="ltr"] .join-select-wrap i {
    left: auto;
    right: 25px;
}

/* أسهم سلايدر الأخبار: في الإنجليزي على اليمين وبترتيب طبيعي */
html[dir="ltr"] .news-slider .owl-nav {
    left: auto;
    right: 15px;
    flex-direction: row;
}

/* أسهم سلايدر الانترو: في الإنجليزي على اليمين (عكس العربي) */
html[dir="ltr"] .main-slider .owl-nav {
    left: auto;
    right: 40px;
}

.cf7-submit-wrap .wpcf7-spinner {
    position: absolute;
    top: 50%;
    inset-inline-end: 80px;
    transform: translateY(-50%);
    margin: 0;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 6px;
    color: var(--primary);
}

.wpcf7 form .wpcf7-response-output {
    width: 100%;
    margin: 20px 0 0;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px dashed var(--primary);
    color: var(--dark);
    font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #1a936f;
    color: #1a936f;
}

/******************************/
/* && 404 &&*/
/******************************/
.error-inner {
    text-align: center;
    padding: 30px 0;
}

.error-code {
    color: var(--primary);
    font-size: 110px;
    font-weight: bold;
    margin-bottom: 10px;
}

.error-text {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 30px;
}

/******************************/
/* && الفوتر (قائمة ديناميك) &&*/
/******************************/
.footer-menu {
    column-count: 2;
    column-gap: 60px;
}

.footer-menu li {
    break-inside: avoid;
    margin-bottom: 22px;
}

.footer-menu li a {
    position: relative;
    color: var(--white);
    font-size: 15px;
    padding-inline-start: 16px;
}

.footer-menu li a:before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 0;
    width: 6px;
    height: 6px;
    background-color: var(--white);
}

.footer-menu li a:hover {
    color: var(--yellow);
}

/******************************/
/* && تحسينات عامة &&*/
/******************************/
.lang-menu.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[dir="ltr"] .lang-dropdown {
    left: auto;
    right: 0;
}

html[dir="ltr"] body,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
    font-family: "NeoSansArabic", "Almarai", sans-serif;
}

.service-card {
    color: inherit;
}
html[dir="ltr"] .page-template-about  .about-badge .badge-num{
    direction: rtl;
}
/******************************/
/* && Responsive &&*/
/******************************/

/* الهيدر فيه 8 عناصر منيو — ضغط تدريجي قبل نقطة الموبايل عشان ميحصلش overflow */
@media (max-width: 1600px) and (min-width: 992px) {
    .main-nav {
        gap: 40px;
    }

    .head-logo {
        margin-inline-end: 40px;
    }

    .nav-list > .menu-item > a {
        padding: 0 15px;
        font-size: 15px;
    }
}

@media (max-width: 1350px) and (min-width: 992px) {
    .main-nav {
        gap: 18px;
    }

    .head-logo {
        margin-inline-end: 18px;
    }

    .head-logo .main-logo img {
        max-width: 100px;
    }

    .nav-list {
        padding: 0 6px;
        height: 54px;
    }

    .nav-list > .menu-item > a {
        padding: 0 9px;
        font-size: 13.5px;
        height: 54px;
    }

    .nav-list > .menu-item > a:before {
        bottom: 10px;
        right: 9px;
        left: 9px;
    }

    .join-btn {
        min-height: 48px;
        padding: 6px 16px;
        font-size: 14px;
    }

    .main-nav-url {
        gap: 2px;
    }

    .phone-link,
    .lang-menu .lang {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 1199px) {
    .contact-icon-btn {
        width: 58px;
        height: 58px;
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .page-head {
        padding: 150px 0 55px;
    }

    .page-head-title {
        font-size: 30px;
    }

    .archive-section,
    .single-section,
    .contact-section,
    .join-page-section {
        padding: 70px 0;
    }

    .service-single-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .service-single-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .contact-map {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .services-archive-cards {
        grid-template-columns: 1fr;
    }

    .page-head {
        padding: 130px 0 45px;
    }

    .page-head-title {
        font-size: 26px;
    }

    .service-block {
        padding: 25px 20px;
    }

    .service-single-title {
        font-size: 24px;
    }

    .faq-question {
        padding: 18px;
        gap: 12px;
    }

    .faq-q-text {
        font-size: 15px;
    }

    .faq-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .faq-answer-inner {
        margin: 0 18px 20px;
    }

    .contact-icons-row {
        justify-content: flex-start;
        gap: 12px;
    }

    .contact-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .contact-info-line .contact-icon-btn {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .contact-info-line {
        font-size: 14px;
    }

    .contact-icon-btn {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-map iframe {
        min-height: 300px;
    }

    .client-grid-card {
        height: 120px;
        padding: 15px 20px;
    }

    .client-grid-card img {
        max-height: 70px;
    }

    .error-code {
        font-size: 80px;
    }
}

@media (max-width: 500px) {
    .page-head {
        padding: 115px 0 40px;
    }

    .page-head-title {
        font-size: 22px;
    }

    .join-form input.join-submit {
        min-height: 56px;
        font-size: 14px;
        padding-inline-start: 20px;
        padding-inline-end: 70px;
    }

    .cf7-submit-wrap .btn-icon {
        width: 50px;
        height: 56px;
    }

    .footer-menu {
        column-gap: 40px;
    }
}
