.service-header {
    font-size: clamp(12px, 1vw, 14px); /* responsive font size */
    color: #0b0b0b;
}

.service-description {
    font-size: clamp(12.5px, 20px - 0.8vw, 16px);
}

/* Floating Buttons Default (LTR) */
.floating-whatsapp-button,
.floating-location-button {
    position: fixed;
    z-index: 9999;
}

.floating-whatsapp-button {
    bottom: 65px;
    right: 15px; /* LTR default */
}

.floating-location-button {
    bottom: 110px;
    right: 15px; /* LTR default */
}

/* Common Icon Styling */
.floating-whatsapp-button .icon,
.floating-location-button .icon {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 4px;
}

/* Different padding for location icon */
.floating-location-button .icon {
    padding: 8px;
}

/* RTL Support */
[dir="rtl"] .floating-whatsapp-button {
    right: auto;
    left: 15px;
}

[dir="rtl"] .floating-location-button {
    right: auto;
    left: 15px;
}

.profile-float {
    position: fixed;
    right: 0; /* LTR default on right */
    background-color: var(--primary-color-1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 999;
    text-decoration: none;
    color: white;
    gap: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    width: 150px;
    height: 45px;
    white-space: nowrap;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.profile-float {
    bottom: 10px;
}

.profile-float-text {
    color: white;
    flex-shrink: 0;
}

.profile-float-icon {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}


[dir="rtl"] .profile-float {
    right: auto;
    left: 0; /* Move to left in RTL */
}

[dir="rtl"] .profile-float {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp green */
    cursor: pointer;
    transition: filter .12s ease, transform .08s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: bold;
    margin-top: 10px; /* add space between description and button */
    width: 120px;
    display: flex; /* enable flexbox */
    align-items: center; /* vertically center text */
    justify-content: center; /* horizontally center text */
    text-align: center; /* ensure text is centered */
    color: black; /* black text color */
    text-decoration: none; /* remove underline */
}

[dir="ltr"] .btn-whatsapp {
    width: 150px;
}

.service-card {
    border-radius: 8px; /* small rounded corners */
    padding: 10px; /* add spacing inside */
    background-color: var(--primary-color-1); /* clean white background */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-4px); /* subtle hover lift */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); /* deeper shadow on hover */
}

.service-card img {
    width: 100%;
    height: 180px;
    border-radius: 6px;
}

.service-card h3 {
    padding-top: 8px;
    font-weight: bold;
}

.service-card .service-description {
    flex-grow: 1;
    text-align: center;
}

.main-responsibilities {
    width: 100%;
    height: 250px;
    padding: 0 20px !important;
    background: rgba(0, 0, 0, .6);
    font-weight: bold;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    text-align: center;
    margin-bottom: 10px;
}

.main-responsibilities-title {
    font-size: clamp(12px, 1vw, 16px); /* responsive font size */
}

.follow-us {
    color: var(--primary-color-1);
    font-weight: bold;
    margin-top: 3px;
}

.project-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    margin: 10px;
}

[dir="ltr"] .gallery-load-container {
    margin-right: 10px;
}

[dir="rtl"] .gallery-load-container {
    margin-left: 10px;
}

.project-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-link:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

.project-text {
    padding: 0 15px 0 15px;
    text-align: center;
    width: 100%;
}

.project-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 6px;
}

.project-desc {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
    max-height: 2.6em; /* roughly two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* keeps single-line ellipsis */
}

#contact_form {
    background: #ffffff; /* white form */
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* soft gray shadow */
    color: #333;
    transition: all 0.3s ease;
}

#contact_form:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Title */
#contact_form h3 {
    color: var(--primary-color-1);
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

/* Inputs */
#contact_form .form-control {
    background-color: #f7f8fa;
    border: 1px solid var(--primary-color-1);
    color: var(--primary-color-1);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#contact_form .form-control:focus {
    background-color: var(--primary-color-1);
    color: #fff;
    border-color: var(--primary-color-1);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Textarea */
#contact_form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Error */
#contact_form .error {
    display: none;
    color: #d32f2f;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Button */
#contact_form .btn {
    color: #fff !important;
    border: 1px solid #fff;
    padding: 8px 0; /* smaller height */
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px; /* smaller font */
    transition: all 0.3s ease;
    background-color: var(--primary-color-1) !important;
}

#contact_form .btn:hover,
#contact_form .btn:focus {
    color: #0b0b0b !important;
    background: var(--primary-color-1);

    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ReCAPTCHA */
#contact_form .g-recaptcha {
    margin-top: 15px;
}

/* Sidebar */
#sidebar {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    color: var(--primary-color-1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#sidebar h3 {
    color: var(--primary-color-1);
    font-weight: 700;
    margin-bottom: 20px;
}

#sidebar address span {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

#sidebar a {
    color: var(--primary-color-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

#sidebar a:hover {
    color: var(--primary-color-1);
}

/* Responsive */
@media (max-width: 768px) {
    #contact_form {
        padding: 20px;
    }
}

.bloglist {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Gray shadow */
    border-radius: 8px; /* Rounded corners for the card */
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
    padding: 5px;
}

.bloglist:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

.why-us-rtl {
    direction: rtl;
}

.why-us {
    direction: ltr;
}

.why-us .text span {
    font-weight: bold;
}

.profile-float-whatsapp {
    position: fixed;
    right: 0; /* LTR default on right */
    background-color: green;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 999;
    text-decoration: none;
    color: white;
    gap: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    width: 150px;
    height: 45px;
    white-space: nowrap;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.profile-float-whatsapp {
    bottom: 60px;
}

.profile-float-whatsapp-text {
    color: white;
    flex-shrink: 0;
}

.profile-float-whatsapp-icon {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

[dir="rtl"] .profile-float-whatsapp {
    right: auto;
    left: 0; /* Move to left in RTL */
}

[dir="rtl"] .profile-float-whatsapp {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#section-intro img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* change for more/less transparency */
    pointer-events: none;
}


.is-hidden {
    display: none;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
}

.service-card-new {
    height: 230px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.service-card-new-bg {
    height: 100%;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card-new-overlay {
    height: 100%;
    border-radius: 15px;
    background: rgba(0, 0, 0, .5);
    position: relative;
}

.service-card-new-content {
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card-new-text {
    width: 100%;
    padding-bottom: 60px;
}

.service-card-new-content h3 {
    margin-bottom: 10px;
}

.service-card-new-content p {
    margin-bottom: 0;
}

.service-card-new-content .btn-primary {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    width: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .service-card-new {
        height: 220px;
    }
}

/* Keep WhatsApp CTA aligned with logo/header row */
.header-whatsapp-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap;
}

.header-whatsapp-cta a {
    display: block;
    text-decoration: none;
}

.header-whatsapp-cta .de_phone-simple {
    margin-top: 0 !important;
    padding-left: 46px;
    line-height: 1.4em;
    white-space: nowrap;
}

.header-whatsapp-cta .de_phone-simple i {
    left: 0;
}

/* RTL fix */
[dir="rtl"] .header-whatsapp-cta .de_phone-simple,
.rtl .header-whatsapp-cta .de_phone-simple {
    padding-left: 0;
    padding-right: 46px;
    text-align: right;
}

[dir="rtl"] .header-whatsapp-cta .de_phone-simple i,
.rtl .header-whatsapp-cta .de_phone-simple i {
    left: auto;
    right: 0;
}

/* From 1400px to 1175px: shrink smoothly */
@media only screen and (max-width: 1400px) and (min-width: 1175px) {
    header .container {
        max-width: 100%;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    header .md-flex {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }

    header div#logo {
        flex: 0 0 auto;
    }

    header .md-flex > .md-flex-col:not(.header-whatsapp-cta) {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-whatsapp-cta {
        display: flex !important;
        flex: 0 0 auto;
    }

    .header-whatsapp-cta .de_phone-simple {
        font-size: calc(9px + (100vw - 1175px) * 3 / 225);
        padding-left: calc(34px + (100vw - 1175px) * 12 / 225);
    }

    .header-whatsapp-cta .de_phone-simple i {
        font-size: calc(30px + (100vw - 1175px) * 12 / 225);
    }

    .header-whatsapp-cta .de_phone-simple .d-num {
        font-size: calc(15px + (100vw - 1175px) * 5 / 225);
    }

    [dir="rtl"] .header-whatsapp-cta .de_phone-simple,
    .rtl .header-whatsapp-cta .de_phone-simple {
        padding-left: 0;
        padding-right: calc(34px + (100vw - 1175px) * 12 / 225);
    }

    #mainmenu li a {
        font-size: calc(12px + (100vw - 1175px) * 2 / 225);
    }

    #mainmenu a {
        padding-left: 10px;
    }

    #mainmenu li a:after {
        margin-right: 10px;
    }
}

/* At 1175px and below: keep it in the header row, compact */
@media only screen and (max-width: 1175px) {
    .md-flex-col.col-extra.header-whatsapp-cta {
        display: flex !important;
    }

    header .md-flex {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    header div#logo {
        flex: 0 0 auto;
    }

    .header-whatsapp-cta {
        flex: 0 0 auto;
        width: auto !important;
        order: initial !important;
        margin-top: 0 !important;
    }

    .header-whatsapp-cta .de_phone-simple {
        font-size: 9px;
        padding-left: 32px;
        line-height: 1.3em;
    }

    .header-whatsapp-cta .de_phone-simple i {
        font-size: 28px;
    }

    .header-whatsapp-cta .de_phone-simple .d-num {
        font-size: 14px;
    }

    [dir="rtl"] .header-whatsapp-cta .de_phone-simple,
    .rtl .header-whatsapp-cta .de_phone-simple {
        padding-left: 0;
        padding-right: 32px;
    }
}

/* Mobile: keep logo, menu icon, and WhatsApp CTA in same top row */
@media only screen and (max-width: 992px) {
    header .md-flex {
        flex-wrap: wrap;
    }

    header div#logo {
        height: 60px;
    }

    header div#logo img.logo {
        max-height: 50px;
        height: auto;
    }

    #menu-btn {
        display: block;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .header-whatsapp-cta {
        width: auto !important;
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .header-whatsapp-cta a {
        background: transparent;
        padding: 0;
    }

    .header-whatsapp-cta .de_phone-simple {
        transform: none;
    }

    header .md-flex > .md-flex-col:not(.header-whatsapp-cta) {
        flex: 0 0 100%;
        width: 100%;
        order: 10;
    }
}

/* Very small screens: hide title, keep icon + number */
@media only screen and (max-width: 480px) {
    .header-whatsapp-cta .cta-title {
        display: none;
    }

    .header-whatsapp-cta .de_phone-simple {
        padding-left: 28px;
    }

    .header-whatsapp-cta .de_phone-simple i {
        font-size: 24px;
    }

    .header-whatsapp-cta .de_phone-simple .d-num {
        font-size: 12px;
    }

    [dir="rtl"] .header-whatsapp-cta .de_phone-simple,
    .rtl .header-whatsapp-cta .de_phone-simple {
        padding-left: 0;
        padding-right: 28px;
    }
}

/* Hide WhatsApp header CTA when tablet/mobile hamburger menu appears */
@media only screen and (max-width: 992px) {
    .md-flex-col.col-extra.header-whatsapp-cta,
    .header-whatsapp-cta {
        display: none !important;
    }
}

/* Hide WhatsApp header button when screen is less than 1170px */
@media only screen and (max-width: 1169px) {
    .md-flex-col.col-extra.header-whatsapp-cta,
    .header-whatsapp-cta {
        display: none !important;
    }
}

.project-load {
    margin: 0 10px;
}

/* The homepage hero headline is a RevSlider caption (.tp-caption.finewide_large_white)
   that already carries its own font-size/line-height/weight from settings.css.
   It was promoted to a real <h1> for SEO (previously just a styled <div>, with no
   live h1 anywhere on the page), wrapped in .hero-h1. Bootstrap and style-update.css
   both set a global font-size/margin on the bare h1 tag, which would shrink/reflow it
   relative to the original caption's look. This reset makes the h1 purely semantic --
   it inherits size, weight and spacing from its parent .tp-caption instead, so the
   visual result is byte-for-byte identical to before. */
h1.hero-h1 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    margin: 0;
    display: inline;
}