.ps-theme-wpc {
    -ms-touch-action: none;
    touch-action: none;
    overflow: hidden !important;
    -ms-overflow-style: none;
}

@supports (-ms-overflow-style: none) {
    .ps-theme-wpc {
        overflow: auto !important;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .ps-theme-wpc {
        overflow: auto !important;
    }
}

.ps-theme-wpc.ps-active-x > .ps-scrollbar-x-rail,
.ps-theme-wpc.ps-active-y > .ps-scrollbar-y-rail {
    display: block;
    background-color: transparent;
}

.ps-theme-wpc.ps-in-scrolling {
    pointer-events: none;
}

.ps-theme-wpc.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
    background-color: rgba(0, 0, 0, .1) !important;
}

.ps-theme-wpc.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    background-color: rgba(0, 0, 0, 1);
}

.ps-theme-wpc.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
    background-color: rgba(0, 0, 0, .1) !important;
}

.ps-theme-wpc.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    background-color: rgba(0, 0, 0, 1);
    width: 2px;
    border-radius: 1px;
}

.ps-theme-wpc > .ps-scrollbar-x-rail {
    display: none;
    position: absolute;
    /* please don't change 'position' */
    opacity: 0;
    transition: background-color .2s linear, opacity .2s linear;
    bottom: 0;
    /* there must be 'bottom' for ps-scrollbar-x-rail */
    height: 2px;
    border-radius: 1px;
}

.ps-theme-wpc > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    position: absolute;
    /* please don't change 'position' */
    background-color: rgba(0, 0, 0, 1);
    transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
    bottom: 0;
    /* there must be 'bottom' for ps-scrollbar-x */
    height: 2px !important;
    border-radius: 1px !important;
}

.ps-theme-wpc > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x, .ps-theme-wpc > .ps-scrollbar-x-rail:active > .ps-scrollbar-x {
    height: 2px;
    border-radius: 1px;
}

.ps-theme-wpc > .ps-scrollbar-y-rail {
    display: none;
    position: absolute;
    /* please don't change 'position' */
    opacity: 0;
    transition: background-color .2s linear, opacity .2s linear;
    right: 0;
    /* there must be 'right' for ps-scrollbar-y-rail */
    width: 2px;
    border-radius: 1px;
}

.ps-theme-wpc > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    position: absolute;
    /* please don't change 'position' */
    background-color: rgba(0, 0, 0, 1);
    /* border-radius: 0; */
    transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
    right: 0;
    /* there must be 'right' for ps-scrollbar-y */
    width: 2px !important;
    border-radius: 1px !important;
}

.ps-theme-wpc > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y, .ps-theme-wpc > .ps-scrollbar-y-rail:active > .ps-scrollbar-y {
    width: 2px;
    border-radius: 1px;
}

.ps-theme-wpc:hover.ps-in-scrolling {
    pointer-events: none;
}

.ps-theme-wpc:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
    background-color: rgba(0, 0, 0, 1);
}

.ps-theme-wpc:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    background-color: rgba(0, 0, 0, 1);
    height: 2px;
    border-radius: 1px;
}

.ps-theme-wpc:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
    background-color: rgba(0, 0, 0, 1);
}

.ps-theme-wpc:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    background-color: rgba(0, 0, 0, 1);
    width: 2px;
    border-radius: 1px;
}

.ps-theme-wpc:hover > .ps-scrollbar-x-rail:hover {
    background-color: rgba(0, 0, 0, .1);
    opacity: 1;
}

.ps-theme-wpc:hover > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x {
    background-color: rgba(0, 0, 0, 1);
}

.ps-theme-wpc:hover > .ps-scrollbar-y-rail:hover {
    background-color: rgba(0, 0, 0, .1);
    opacity: 1;
}

.ps-theme-wpc:hover > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y {
    background-color: rgba(0, 0, 0, 1);
}

/*--------------------------------------------------------------
# Footer Styling Fixes
--------------------------------------------------------------*/

/* Ensure footer wrapper has proper background */
.footer-wrapper {
    background-color: #1E1D1D;
    position: relative;
}

/* Main footer container */
.main-footer {
    background-color: #1E1D1D !important;
    color: #ffffff;
    padding: 0;
}

/* Ensure container is properly centered */
.main-footer .e-con-boxed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Footer top section - newsletter */
.main-footer__top {
    padding-top: 50px !important;
    padding-bottom: 31px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 74px !important;
}

/* Ensure row has proper spacing */
.main-footer__top .row {
    margin: 0;
    align-items: center;
}

/* Footer logo */
.main-footer__logo img {
    max-width: 100%;
    height: auto;
}

/* Newsletter form styling */
.main-footer__newsletter {
    position: relative;
    max-width: 576px;
    margin-left: auto;
}

.main-footer__newsletter input[type="text"] {
    width: 100%;
    height: 55px;
    background-color: #ffffff;
    color: #7A7373;
    border: none;
    outline: none;
    padding-left: 30px;
    padding-right: 55px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
}

.main-footer__newsletter button[type="submit"] {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #A42125;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
}

.main-footer__newsletter button[type="submit"]:hover {
    color: #1E1D1D;
}

/* Footer widgets container */
.main-footer .e-con-boxed .e-con-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Footer widget columns */
.footer-widget {
    color: #ffffff;
}

.footer-widget__title {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 21px;
    line-height: 1.555;
}

/* About widget */
.footer-widget--about {
    max-width: 450px;
}

.footer-widget--about .footer-widget__title {
    font-size: 18px;
    line-height: 1.5;
}

/* Links widget */
.footer-widget--links {
    padding-left: 22px;
}

.footer-widget__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget__links li {
    margin-bottom: 20px;
}

.footer-widget__links li a {
    color: #7A7373;
    text-decoration: none;
    transition: all 500ms ease;
}

.footer-widget__links li a:hover {
    color: #A42125;
}

/* Contact widget */
.footer-widget--contact {
    padding-left: 83px;
}

.footer-widget__address {
    color: #7A7373;
    font-size: 15px;
    line-height: 1.866;
    margin-bottom: 14px;
}

.footer-widget__info {
    list-style: none;
    padding: 0;
    margin: 0 0 29px 0;
}

.footer-widget__info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #7A7373;
    font-size: 15px;
}

.footer-widget__info li span {
    color: #A42125;
    font-size: 18px;
    margin-right: 15px;
}

.footer-widget__info li a {
    color: #7A7373;
    text-decoration: none;
    transition: all 500ms ease;
}

.footer-widget__info li a:hover {
    color: #A42125;
}

/* Social icons */
.footer-widget__social {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
}

.footer-widget__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #100F0F;
    color: #ffffff;
    font-size: 14px;
    transition: all 400ms ease;
    text-decoration: none;
}

.footer-widget__social a:hover {
    background-color: #A42125;
    color: #ffffff;
}

/* Gallery widget */
.footer-widget__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: -3px;
}

.footer-widget__gallery__link {
    position: relative;
    display: block;
    overflow: hidden;
}

.footer-widget__gallery__link img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-widget__gallery__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(164, 33, 37, 0.8);
    color: #ffffff;
    font-size: 16px;
    opacity: 0;
    transition: all 500ms ease;
}

.footer-widget__gallery__link:hover .footer-widget__gallery__icon {
    opacity: 1;
}

/* Footer bottom - copyright */
.main-footer__bottom {
    background-color: #100F0F !important;
    text-align: center;
    padding: 33.5px 0;
    margin-top: 0;
}

.main-footer__copyright {
    color: #7A7373;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Back to Top Button */
.scroll-to-top {
    display: flex;
    align-items: center;
    width: auto;
    height: 35px;
    background: #A42125;
    position: fixed;
    bottom: 60px;
    right: 0;
    z-index: 999;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: rotate(-90deg);
    transform-origin: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
}

.scroll-to-top:hover {
    background: #8B1A1E;
    bottom: 70px;
}

.scroll-to-top__text {
    display: inline;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-right: 8px;
    color: #ffffff;
}

.scroll-to-top__wrapper {
    display: inline-block;
    width: 30px;
    height: 4px;
    background-color: #A42125;
    position: relative;
    overflow: hidden;
}

.scroll-to-top__inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1E1D1D;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .footer-widget--contact {
        padding-left: 30px;
    }
    
    .footer-widget--links {
        padding-left: 30px;
    }
}

@media (max-width: 991px) {
    .main-footer__top {
        margin-bottom: 56px !important;
    }
    
    .footer-widget--contact,
    .footer-widget--links {
        padding-left: 0;
    }
    
    .main-footer .e-con-boxed .e-con-inner {
        flex-direction: column;
    }
    
    .footer-widget--about {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .main-footer__top {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .footer-widget__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure mordecai-btn styles work in footer */
.footer-widget .mordecai-btn {
    margin-top: 20px;
}

.footer-widget .mordecai-btn .mordecai-btn__text {
    color: #ffffff;
}

.footer-widget .mordecai-btn:hover .mordecai-btn__text {
    color: #A42125;
}

/*--------------------------------------------------------------
# Fix Duplicate Header on Scroll
--------------------------------------------------------------*/

/* Hide the original header when cloned header is active */
.sticky-header--cloned.active ~ .sticky-header--normal {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Ensure only one header is visible at a time */
.sticky-header--normal {
    position: relative;
    z-index: 100;
}

.sticky-header--cloned {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999 !important;
    background-color: #ffffff !important;
    box-shadow: 0px 3px 18px rgba(30, 29, 29, 0.07);
    transform: translateY(-100%);
    transition: transform 500ms ease, visibility 500ms ease;
    visibility: hidden;
}

.sticky-header--cloned.active {
    transform: translateY(0%);
    visibility: visible;
}

/* Hide topbar in cloned header */
.sticky-header--cloned .topbar {
    display: none !important;
}

/* Prevent header duplication - ensure original header doesn't stick when cloned is active */
body:has(.sticky-header--cloned.active) .sticky-header--normal {
    position: static !important;
}

/* Alternative approach - hide original when scrolled */
.sticky-header--normal.sticky-header--scrolled {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Enhanced Footer Styling - More Visually Appealing
--------------------------------------------------------------*/

/* Add subtle gradient overlay to footer */
.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(30, 29, 29, 0.95) 0%, rgba(16, 15, 15, 1) 100%);
    z-index: 0;
    pointer-events: none;
}

.footer-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Enhanced footer top section with better spacing */
.main-footer__top {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 80px !important;
    position: relative;
}

/* Add decorative line above footer top */
.main-footer__top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A42125, transparent);
}

/* Enhanced newsletter form */
.main-footer__newsletter {
    position: relative;
    max-width: 576px;
    margin-left: auto;
}

.main-footer__newsletter input[type="text"] {
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    color: #1E1D1D;
    border: 2px solid transparent;
    outline: none;
    padding-left: 30px;
    padding-right: 65px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-footer__newsletter input[type="text"]:focus {
    border-color: #A42125;
    box-shadow: 0 4px 20px rgba(164, 33, 37, 0.2);
}

.main-footer__newsletter button[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #A42125;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-footer__newsletter button[type="submit"]:hover {
    background: #8B1A1E;
    transform: translateY(-50%) scale(1.05);
}

/* Enhanced widget titles with underline accent */
.footer-widget__title {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.555;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #A42125, transparent);
}

/* Enhanced about widget text */
.footer-widget--about .footer-widget__title {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-widget--about p,
.footer-widget--about .footer-widget__title {
    color: #E0E0E0;
}

/* Enhanced links with hover effects */
.footer-widget__links li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.footer-widget__links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #A42125;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-widget__links li:hover::before {
    transform: translateX(5px);
}

.footer-widget__links li a {
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget__links li a:hover {
    color: #A42125;
    transform: translateX(5px);
}

/* Enhanced contact info with icons */
.footer-widget__info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: #B0B0B0;
    font-size: 15px;
    line-height: 1.6;
}

.footer-widget__info li span {
    color: #A42125;
    font-size: 18px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-widget__info li a {
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget__info li a:hover {
    color: #A42125;
}

/* Enhanced social icons with hover animations */
.footer-widget__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.footer-widget__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #100F0F 0%, #1E1D1D 100%);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget__social a:hover {
    background: linear-gradient(135deg, #A42125 0%, #8B1A1E 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(164, 33, 37, 0.4);
    border-color: #A42125;
}

/* Enhanced gallery with better hover effects */
.footer-widget__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: -3px;
}

.footer-widget__gallery__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-widget__gallery__link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(164, 33, 37, 0.3);
}

.footer-widget__gallery__link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-widget__gallery__link:hover img {
    transform: scale(1.1);
}

.footer-widget__gallery__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(164, 33, 37, 0.9) 0%, rgba(139, 26, 30, 0.9) 100%);
    color: #ffffff;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-widget__gallery__link:hover .footer-widget__gallery__icon {
    opacity: 1;
}

/* Enhanced contact button */
.footer-widget .mordecai-btn {
    margin-top: 25px;
    background: linear-gradient(135deg, #A42125 0%, #8B1A1E 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(164, 33, 37, 0.3);
}

.footer-widget .mordecai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 33, 37, 0.5);
}

.footer-widget .mordecai-btn .mordecai-btn__text {
    color: #ffffff;
    font-weight: 700;
}

/* Enhanced copyright section */
.main-footer__bottom {
    background: linear-gradient(180deg, #100F0F 0%, #0A0A0A 100%) !important;
    text-align: center;
    padding: 40px 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.main-footer__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A42125, transparent);
}

.main-footer__copyright {
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.main-footer__copyright .dynamic-year {
    color: #A42125;
    font-weight: 700;
}

/* Enhanced back to top button */
.scroll-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 120px;
    height: 45px;
    background: linear-gradient(135deg, #A42125 0%, #8B1A1E 100%);
    position: fixed;
    bottom: 60px;
    right: 0;
    z-index: 999;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: rotate(-90deg);
    transform-origin: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 0 10px rgba(164, 33, 37, 0.3);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #8B1A1E 0%, #A42125 100%);
    bottom: 70px;
    box-shadow: -4px 0 15px rgba(164, 33, 37, 0.5);
    transform: rotate(-90deg) scale(1.05);
}

.scroll-to-top__text {
    display: inline;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-right: 10px;
    color: #ffffff;
}

.scroll-to-top__wrapper {
    display: inline-block;
    width: 30px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-to-top__inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Add subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget {
    animation: fadeInUp 0.6s ease-out;
}

.footer-widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget:nth-child(3) { animation-delay: 0.3s; }
.footer-widget:nth-child(4) { animation-delay: 0.4s; }
