/* ============================================================
   Theme overrides for WordPress / CF7 / about-blocks / single-service
   ============================================================ */

/* ---- CF7 form: align Contact Form 7 markup with original design ---- */
.request-card .wpcf7,
.contact-form-wrap .wpcf7 {
    width: 100%;
}

.request-card .wpcf7-form .form-control,
.contact-form-wrap .wpcf7-form .form-control {
    border-radius: 50px;
    padding: 13px 50px 13px 50px;
    text-align: right;
    color: #333;
    font-family: inherit;
    background: #f3f3f3;
    border: 0;
    min-height: 46px;
    font-size: 13.12px;
    width: 100%;
}
html[dir="ltr"] .request-card .wpcf7-form .form-control,
html[dir="ltr"] .contact-form-wrap .wpcf7-form .form-control {
    text-align: left;
}

.request-card .wpcf7-form .form-control::placeholder,
.contact-form-wrap .wpcf7-form .form-control::placeholder {
    color: #9ca0b1;
}

.request-card .wpcf7-form .form-control:focus,
.contact-form-wrap .wpcf7-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(44, 53, 96, 0.08);
    background: #fff;
    outline: none;
}

.request-card .wpcf7-form .textarea-soft,
.contact-form-wrap .wpcf7-form .textarea-soft {
    border-radius: 18px !important;
    padding: 14px 52px 14px 52px !important;
    background: #f4f5fa !important;
    min-height: 110px;
    resize: vertical;
}

.input-with-icon i {
    z-index: 2;
}
.input-with-icon .wpcf7-form-control-wrap {
    display: block;
}

/* CF7 native checkbox group: convert inline span list into 2-column grid like original pills */
.service-checks .wpcf7-form-control.wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}
.service-checks .wpcf7-list-item {
    display: flex;
    margin: 0 !important;
    align-items: flex-start;
}
.service-checks .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    line-height: 1.55;
}
.service-checks .wpcf7-list-item input[type="checkbox"] {
    accent-color: var(--primary, #2c3560);
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}
.service-checks .wpcf7-list-item-label {
    flex: 1;
}

@media (max-width: 575.98px) {
    .service-checks .wpcf7-form-control.wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
}

/* ---- About-blocks (alternating image/text) ---- */
.about-blocks .about-block {
    margin-bottom: 60px;
}
.about-blocks .about-block img {
    border-radius: 18px;
    height: 350px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 14px 36px rgba(20, 33, 80, 0.1);
}
.about-blocks .about-block h3 {
    color: var(--primary, #2c3560);
    font-weight: 800;
    margin-bottom: 12px;
}
.about-blocks .about-block p {
    color: #555;
    line-height: 1.95;
}
@media (max-width: 767.98px) {
    .about-blocks .about-block.flex-row-reverse,
    .about-blocks .about-block {
        flex-direction: column-reverse !important;
    }
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
    background:
        linear-gradient(106deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 9%),
        url("../images/counter-background.png") center / cover no-repeat;
    padding: 80px 0 40px;
    text-align: center;
}
.page-hero .page-title {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

html[dir="ltr"] .page-hero .page-title {
    font-size: clamp(25px, 3.4vw, 38px);
}

/* ---- Single service ---- */
.single-service-section {
    padding: 70px 0 90px;
}

.single-service-head {
    display: flex;
    align-items: center;

    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.single-service-title {
    color: var(--primary, #2c3560);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin: 0;
    flex: 1;
}

.service-icon-lg {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    background: var(--primary, #2c3560);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(44, 53, 96, 0.25);
}
.service-icon-lg img {
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.single-service-thumb {
    margin: 26px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(20, 33, 80, 0.1);
}
.single-service-thumb img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.single-service-content {
    color: #333;
    line-height: 1.95;
    font-size: 16px;
}
.single-service-short {
    margin-top: 28px;
    padding: 22px 24px;
    background: #f4f5fa;
    border-right: 4px solid var(--primary, #2c3560);
    border-radius: 10px;
}
.single-service-short p {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.9;
}
.single-service-short p:last-child {
    margin-bottom: 0;
}

/* Single blog (news) tweaks */
.single-news-section {
    padding: 70px 0 90px;
}
.single-news-thumb img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 18px;
}
.single-news-title {
    color: var(--primary, #2c3560);
    font-size: 30px;
    font-weight: 800;
    margin: 18px 0 16px;
}
.single-news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f1f3f7;
    border-radius: 999px;
    color: #555;
    font-size: 14px;
    margin: 16px 0;
}
.single-news-date i {
    color: var(--primary, #2c3560);
}
.single-news-content {
    color: #333;
    line-height: 1.95;
    font-size: 16px;
}

/* Contact page */
.contact-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    padding-top: 72px;
    padding-bottom: 86px;
}

.contact-section .contact-box {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(44, 53, 96, 0.08);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 18px 46px rgba(20, 33, 80, 0.08);
}
.wpcf7-spinner{
    display: none;
}
.contact-section .contact-box::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--primary, #2c3560);
}
/* WP PageNavi Pagination */
.wp-pagenavi {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 45px auto 0;
    padding: 0;
    direction: rtl;
    text-align: center;
}

.wp-pagenavi .pages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--cream-soft);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.wp-pagenavi a,
.wp-pagenavi span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.wp-pagenavi span.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(66, 78, 123, 0.24);
}

.wp-pagenavi a:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(44, 53, 96, 0.18);
}

.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
    min-width: 46px;
    border-radius: 999px;
    background: var(--primary-darker);
    color: var(--white);
    border-color: var(--primary-darker);
}

.wp-pagenavi .nextpostslink:hover,
.wp-pagenavi .previouspostslink:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 575px) {
    .wp-pagenavi {
        gap: 8px;
        margin-top: 32px;
    }

    .wp-pagenavi .pages {
        width: 100%;
        min-height: 38px;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .wp-pagenavi a,
    .wp-pagenavi span.current {
        min-width: 38px;
        height: 38px;
        padding: 7px 12px;
        font-size: 14px;
    }
}
.contact-box-title {
    color: var(--primary, #2c3560);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(44, 53, 96, 0.1);
}

html[dir="ltr"] .contact-box-title {
    font-size: 18px;
}

html[dir="ltr"] .contact-info a,
html[dir="ltr"] .contact-info li:not(:has(a)),
html[dir="ltr"] .contact-form-wrap .wpcf7-form .form-control {
    font-size: 13.5px;
}

.contact-socials {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
}

.contact-info {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
}

.contact-socials a {
    width: 48px;
    height: 48px;
    min-height: 48px;
    color: #2b2b2b;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #f6f7fb;
    border: 1px solid rgba(44, 53, 96, 0.06);
    border-radius: 50%;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.contact-info li {
    min-height: 58px;
    color: #2b2b2b;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 12px 14px;
    background: #f6f7fb;
    border: 1px solid rgba(44, 53, 96, 0.08);
    border-radius: 8px;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.contact-info span {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
}

.contact-info li > i {
    margin-inline-end: 12px;
}

.contact-info li:not(:has(a)) {
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f6f7fb;
    border: 1px solid rgba(44, 53, 96, 0.08);
    border-radius: 8px;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

 
.contact-socials a:hover,
.contact-info a:hover,
.contact-info li:not(:has(a)):hover {
    background: #ffffff;
    border-color: rgba(44, 53, 96, 0.18);
    color: var(--primary, #2c3560);
    transform: translateY(-2px);
}

.contact-form-wrap {
    background: #fff;
    padding: 34px;
    border: 1px solid rgba(44, 53, 96, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(20, 33, 80, 0.08);
}

.contact-form-wrap .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.contact-form-wrap .wpcf7-form .form-control {
    min-height: 50px;
    background: #f7f8fc;
    border: 1px solid rgba(44, 53, 96, 0.08);
}

.contact-form-wrap .wpcf7-form .textarea-soft {
    min-height: 150px;
}

.contact-form-wrap .btn-send {
    min-width: 170px;
    min-height: 46px;
}

.contact-map-wrap {
     margin: 0 auto 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(44, 53, 96, 0.08);
    box-shadow: 0 18px 46px rgba(20, 33, 80, 0.08);
    background: #fff;
}

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

html[dir="ltr"] .contact-section .contact-box::before {
    inset-inline-start: 0;
}

@media (max-width: 767.98px) {
    .contact-section {
        padding-top: 48px;
        padding-bottom: 58px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-section .contact-box,
    .contact-form-wrap {
        padding: 22px;
    }

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

@media (max-width: 575.98px) {
    .contact-form-wrap .btn-send {
    min-width: 160px;
    font-size: 16px;
    min-height: 35px;
    padding: 5px 8px;
}


    .contact-section .contact-box,
    .contact-form-wrap {
        padding: 18px;
    }

    .contact-socials a,
    .contact-info li {
        align-items: center;
    }
}

/* ---- LTR (English) overrides ---- */
html[dir="ltr"] .input-with-icon i {
    right: auto;
    left: 22px;
}
html[dir="ltr"] .request-card .wpcf7-form .form-control,
html[dir="ltr"] .contact-form-wrap .wpcf7-form .form-control {
    padding: 13px 50px 13px 50px;
}
html[dir="ltr"] .textarea-with-icon i {
    right: auto;
    left: 22px;
}
html[dir="ltr"] .request-card .wpcf7-form .textarea-soft,
html[dir="ltr"] .contact-form-wrap .wpcf7-form .textarea-soft {
    padding: 14px 20px 14px 52px !important;
}
html[dir="ltr"] .single-service-short {
    border-right: 0;
    border-left: 4px solid var(--primary, #2c3560);
}
html[dir="ltr"] .contact-section .contact-box::before {
    inset-inline-start: auto;
    left: 0;
}

/* ---- Responsive (mobile) cleanups for both languages ---- */
@media (max-width: 991.98px) {
    .single-service-head { gap: 12px; }
    .service-icon-lg { width: 64px; height: 64px; }
    .hero-card { padding: 36px 18px; }
    .hero-card h1 { font-size: clamp(22px, 5vw, 32px); }
}

@media (max-width: 767.98px) {
    .request-card { padding: 22px 18px; }
    .request-card .wpcf7-form .form-control { font-size: 14px; }
    .features-layout .col-lg-5,
    .features-layout .col-lg-7 { text-align: center; }
    .features-layout .features-main { max-width: 320px; margin: 0 auto; }
    .about-row { row-gap: 28px !important; }
    .page-hero { padding: 56px 0 28px; }
    .single-service-thumb img { max-height: 280px; }
    .footer-grid { row-gap: 26px !important; }
    .site-footer h5 { margin-top: 14px; }
}

@media (max-width: 575.98px) {
    .service-checks { font-size: 12px; }
    .counter-section { padding: 50px 0; }
    .counter-item h3 { font-size: 28px; }
    .blog-card--small,
    .blog-card--feature { margin-bottom: 16px; }
}

/* Pagenavi */
.wp-pagenavi {
    display: inline-flex;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.wp-pagenavi a,
.wp-pagenavi span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7ef;
    color: #333;
    text-decoration: none;
}
.wp-pagenavi .current {
    background: var(--primary, #2c3560);
    color: #fff;
    border-color: var(--primary, #2c3560);
}
