.refimg {
    width: 100px;
}

.hovereffect {
    width: 100%;
    height: 100%;
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
}

.hovereffect .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    background-color: rgba(75, 75, 75, 0.7);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.hovereffect:hover .overlay {
    background-color: rgba(65, 7, 7, 0.4);
}

.hovereffect img {
    display: block;
    position: relative;
}

.hovereffect h2 {
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: relative;
    font-size: 17px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-transform: translateY(45px);
    -ms-transform: translateY(45px);
    transform: translateY(45px);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.hovereffect:hover h2 {
    -webkit-transform: translateY(5px);
    -ms-transform: translateY(5px);
    transform: translateY(5px);
}

.hovereffect a.info {
    display: inline-block;
    text-decoration: none;
    padding: 70px 50px;
    text-transform: uppercase;
    color: #fff;
    background-color: transparent;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    font-weight: normal;
    margin: -52px 0 0 0;
}

.hovereffect:hover a.info {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.hovereffect a.info:hover {
    box-shadow: 0 0 0px #fff;
}

.icon-box.border .icon {
    border: 3px solid #fc2222;
}

.sticky-phone {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0px;
    z-index: 1000;
    background-color: black;
}

#topbar {
    border: none;
}

.im-list {
    padding-left: 50px;
}

.im-list li {
    padding-top: 20px;
    margin-top: 20px;
}

.wb-po-item {
    text-align: center;
    height: 150px;
}

@media screen and (min-width: 640px) {
    .font-diag {
        transform: rotate(-10deg);
        -webkit-transform: rotate(-10deg);
        -moz-transform: rotate(-10deg);
        -ms-transform: rotate(-10deg);
        -o-transform: rotate(-10deg);
    }
}

.highmail {
    display: none
}

.plan {
    height: 600px;
}

.plan-list {
    height: 70%;
}

.portfolio-item.no-overlay .portfolio-description span, .portfolio-item.no-overlay .grid-description span, .grid-item.no-overlay .portfolio-description span, .grid-item.no-overlay .grid-description span {
    text-transform: none;
}

/* Responsive heading fixes: reduce H1 size on small screens and allow breaking long words */
@media (max-width: 767px) {
    .heading-text h1 {
        font-size: 28px !important;
        line-height: 1.1 !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    /* If using heading-section modifier, ensure a slightly larger but still mobile-friendly size */
    .heading-text.heading-section > h1 {
        font-size: 30px !important;
    }
    /* Reduce H2 in .heading-text on small screens (welcome.php uses H2) */
    .heading-text h2,
    .heading-text.heading-section > h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Prevent accidental horizontal panning/overflow on small devices */
html, body {
    overflow-x: hidden !important;
}