/* Force hide horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Custom styles for services dropdown */

/* Desktop (Static) Layout */
.rd-navbar-static .rd-nav-item.rd-navbar--has-dropdown {
    position: relative;
    cursor: pointer;
}

.rd-navbar-static .rd-nav-item.rd-navbar--has-dropdown:hover > .rd-navbar-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    display: block !important;
}

/* Ensure dropdown links are visible and styled */
.rd-navbar-static .rd-navbar-dropdown {
    transition: .3s all ease;
    display: none;
}

.rd-navbar-static .rd-navbar-dropdown .rd-dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #151515;
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    transition: .2s all ease;
}

.rd-navbar-static .rd-navbar-dropdown .rd-dropdown-link:hover {
    background: #f5f5f5;
    color: #151515;
}

.rd-navbar-static .rd-navbar-dropdown li:last-child .rd-dropdown-link {
    border-bottom: none;
}

/* Mobile (Fixed) Layout */

/* Remove right arrows in submenu items */
.rd-navbar-static .rd-navbar-dropdown li > a::before,
.rd-navbar-fixed .rd-navbar-dropdown li > a::before {
    display: none !important;
}

/* Reset padding when hovering submenu items (where arrow used to be) */
.rd-navbar-static .rd-navbar-dropdown li.focus > a,
.rd-navbar-static .rd-navbar-dropdown li.opened > a,
.rd-navbar-static .rd-navbar-dropdown li > a:hover,
.rd-navbar-fixed .rd-navbar-dropdown li.focus > a,
.rd-navbar-fixed .rd-navbar-dropdown li.opened > a,
.rd-navbar-fixed .rd-navbar-dropdown li > a:hover {
    padding-left: 30px !important;
    padding-right: 30px !important;
    color: #151515 !important;
}

@media (min-width: 992px) {
    .rd-navbar-static .rd-navbar-dropdown li.focus > a,
    .rd-navbar-static .rd-navbar-dropdown li.opened > a,
    .rd-navbar-static .rd-navbar-dropdown li > a:hover,
    .rd-navbar-fixed .rd-navbar-dropdown li.focus > a,
    .rd-navbar-fixed .rd-navbar-dropdown li.opened > a,
    .rd-navbar-fixed .rd-navbar-dropdown li > a:hover {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.rd-navbar-fixed .rd-navbar--has-dropdown.opened > .rd-navbar-dropdown,
.rd-navbar-fixed .rd-nav-item.opened > .rd-navbar-dropdown {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
}

.rd-navbar-fixed .rd-navbar-dropdown .rd-dropdown-link {
    padding: 12px 20px 12px 25px;
    display: block;
    font-size: 15px;
    color: #151515;
    background: #f9f9f9;
    border-bottom: 1px solid #ebebeb;
}

.rd-navbar-fixed .rd-navbar-dropdown .rd-dropdown-link:hover {
    background: #f0f0f0;
}

/* Pricing Page Styles */
.pricing-group + .pricing-group {
    margin-top: 40px;
}

.pricing-group-title {
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #E4DACA;
    display: block;
    color: #151515;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-classic-item {
    transition: .2s all ease;
    padding: 12px 10px;
}

.pricing-classic-item:hover {
    background: #f7f7f7;
}

.pricing-classic-body h4 {
    font-size: 14px;
    margin: 0;
}

.price-value h3 {
    font-size: 16px;
    margin: 0;
    color: #151515;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-note {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #ebebeb;
    border-left: 3px solid #E4DACA;
    margin-top: 40px;
}

.pricing-note h4 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pricing-note p {
    font-size: 14px;
    line-height: 1.5;
}

/* FAQ Styles */
.list-terms-2 dt {
    font-weight: 700;
    color: #151515;
    font-size: 16px;
    margin-bottom: 5px;
}

.list-terms-2 dd {
    margin-bottom: 25px;
    font-style: italic;
    color: #777;
    padding-left: 15px;
    border-left: 2px solid #E4DACA;
}

.list-terms-2 dd:last-child {
    margin-bottom: 0;
}


/* Before & After Gallery Styles */
.before-after-category {
    margin-top: 50px;
}

.category-title {
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: #E4DACA;
}

.thumbnail-classic figure img {
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}

.thumbnail-classic:hover figure img {
    transform: scale(1.05);
}

.thumbnail-classic {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}
