/* Additions on top of the original theme (forms, alerts, articles, gallery) */

.site-form {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.site-form .rows label {
    display: block;
    margin: 0 0 6px;
    font-weight: 500;
    font-size: 15px;
}
.site-form select.wpcf7-form-control {
    appearance: auto;
}
.site-form textarea.wpcf7-form-control {
    border-radius: 20px;
}
.site-form .wpcf7-submit {
    padding: 10px 40px;
    border: none;
    cursor: pointer;
}
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.site-alert {
    border-radius: 20px;
}

.page-intro {
    margin: 0 0 25px;
}

.post-content {
    width: 100%;
    padding: 0 15px;
}
.post-content img {
    max-height: 600px;
    object-fit: contain;
}

.related-posts {
    padding-top: 0;
}

.servs-all .services-box .box img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

footer .textwidget ul li a {
    color: inherit;
}

.map-embed iframe {
    width: 100%;
    height: 250px;
    border: 0;
    margin: 20px 0 0;
}

.error-page {
    text-align: center;
    padding: 120px 15px;
}
.error-page h1 {
    font-size: 90px;
    font-weight: 900;
    color: #d2b967;
}
.error-page a {
    display: inline-block;
    margin-top: 20px;
    color: #fff;
    background: #232a4e;
    padding: 10px 25px;
    border-radius: 30px;
}

.testmoi {
    padding-bottom: 90px;
}
.testmoi .slider-testmoi {
    padding: 0 10px 10px;
}
.testmoi .itemss {
    padding: 0 40px 30px;
}
.testmoi .itemss .box {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.testmoi .itemss .box:before,
.testmoi .itemss .box:after {
    display: none !important;
}
.testmoi .itemss img {
    width: 100%;
    height: auto;
    max-height: 440px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
}
.testmoi .owl-controls {
    margin-top: 5px;
}
.testmoi .owl-pagination {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    margin-top: 8px;
    text-align: center;
}
.testmoi .owl-pagination .owl-page {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 5px;
    border-radius: 7px;
    background: #dfdfdf;
}
.testmoi .owl-pagination .owl-page.active {
    width: 40px;
    background: #d2b967;
}

.memberships {
    padding: 60px 0;
}
.memberships-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.membership-logo {
    flex: 0 1 230px;
    min-width: 0;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee5c9;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(35, 42, 78, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.membership-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(35, 42, 78, 0.12);
}
.membership-logo a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.membership-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 1199px) {
    .memberships-logos {
        flex-wrap: wrap;
    }
    .membership-logo {
        flex: 0 0 210px;
    }
}
@media (max-width: 767px) {
    .memberships-logos {
        flex-wrap: wrap;
        gap: 12px;
    }
    .membership-logo {
        flex: 0 0 calc(50% - 6px);
        height: 100px;
    }
}

/* Service "Read more" buttons on the home page */
.gallery-wrap .item .service-more,
.serv .items .service-more {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    width: 140px;
    margin: 0 auto;
    padding: 9px 15px;
    border-radius: 25px;
    background: #d2b967;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.5s ease 0s;
}
.gallery-wrap .item:hover .service-more {
    opacity: 1;
}
.gallery-wrap .item .service-more:hover,
.serv .items .service-more:hover {
    background: #232a4e;
    color: #fff;
}
.serv .items .service-more {
    opacity: 1;
    bottom: 15px;
}

/* Keep every "Read more" button on the same line at the bottom of its card */
.servs-all .services-box .box p {
    flex: 1 1 auto;
}
.servs-all .services-box .box p ~ a {
    margin-top: auto;
    align-self: flex-start;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 120px;
}
