/* Add here all your CSS customizations */
.tags {
    bottom: 0;
    list-style: outside none none;
    margin: 0;
    padding: 0;
    right: 0;
}
.tags li, .tags a {
    float: right;
    font-size: 11px;
    height: 24px;
    line-height: 24px;
    position: relative;
    margin-top: 6px;
}
.tags a {
    background: #0089e0 none repeat scroll 0 0;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    color: #fff;
    margin-left: 14px;
    padding: 0 10px 0 12px;
    text-decoration: none;
}
.tags a::before {
    border-color: transparent #0089e0 transparent transparent;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    content: "";
    float: left;
    height: 0;
    left: -12px;
    position: absolute;
    top: 0;
    width: 0;
}
.tags a::after {
    background: #fff none repeat scroll 0 0;
    border-radius: 2px;
    box-shadow: -1px -1px 2px #004977;
    content: "";
    float: left;
    height: 4px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 4px;
}
.tags a:hover {
    background: #555 none repeat scroll 0 0;
}
.tags a:hover::before {
    border-color: transparent #555 transparent transparent;
}
.befortag {
    margin: 15px 0;
}

/* Uniform thumbnail styling for service images */
.popup-gallery .col-md-3,
.popup-gallery .col-sm-4,
.popup-gallery .col-xs-6 {
    padding: 5px;
}

.popup-gallery a {
    display: block;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.popup-gallery a:hover {
    transform: scale(1.05);
}

.popup-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
