*,
*::before *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

section {
    padding-top: 50px;
    margin-top: -50px;
}

body {
    background-color: #fafafa !important;
}

html {
    scroll-behavior: smooth;
}

.modal-body {
    position: relative;
    overflow: hidden;
}

.modal-body img {
    transition: transform 0.2s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.modal-body img.zoomed {
    transform: scale(2);
    cursor: move;
}

.modal-body img.pan {
    cursor: move;
    transition: none;
}

.carousel-item {
    overflow: hidden;
}

.nav-link.active {
    font-weight: bold;
    color: #d5a021 !important;
}
#services .card {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

#services .card:not(.main-card):hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#services .card.main-card .card {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.container {
    scroll-margin: 70px;
}

.gallery-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.7;
}

.gallery-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.text-hover {
    transition: opacity 0.3s ease;
}

.text-hover:hover {
    color: #d5a021 !important;
}

.phone {
    text-decoration: none !important;
    color: black !important;
    transition: color 0.3s ease;
}
.phone:hover {
    color: #d5a021 !important;
}

.phone_nav {
    text-decoration: none !important;
    color: #fafafa !important;
    transition: color 0.3s ease;
}

.phone_nav:hover {
    color: #d5a021 !important;
}

.service_header {
    text-decoration-line: underline;
    text-underline-position: under;
    text-underline-offset: 3px;
    display: inline;
}
.content-wrapper {
    display: flex;
    align-items: center;
}

.service-image {
    margin-right: 20px;
    width: 100%;
    max-width: 64px;
    height: auto;
    object-fit: cover;
}

.service_desc {
    margin-top: 1rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .service-wrap .col-sm-4 {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .service-wrap .col-sm-4 .content-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .service-wrap .col-sm-4 .content-wrapper img.service-image {
        margin-right: 15px;
    }

    .service-wrap .col-sm-4 .text-wrap {
        text-align: left;
    }
}

.main-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: fill;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .main-img {
        width: 100%;
        max-width: none !important;
        height: 120px !important;
        object-fit: cover;
    }
}
