/* ================================================== */
/*    Global Custom Styles                            */
/* ================================================== */

/* Fix for modal flickering - Force scrollbar to stay visible */
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adjust scroll position for sticky header */
}

body.modal-open {
    padding-right: 0 !important;
}

.sticky {
    padding-right: 0 !important;
}

/* Counter Section */
.counter-area.one .counter-text h1::before {
    display: none !important;
}

/* Mobile Slider & Buttons */
.mobile-slider-area {
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-slider-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.mobile-slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mobile-slider-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mobile-slider-content h1 span {
    color: #fff;
}

.mobile-slider-content .slider-button a {
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
    padding: 12px 30px;
    display: inline-block;
}

.mobile-view-btn {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
}

.mobile-view-btn::before {
    position: absolute;
    content: "";
    top: 3px;
    right: -45px;
    width: 26px;
    height: 26px;
    border: 1px solid #2E3561;
    border-radius: 50%;
    transition: .5s;
}

.mobile-view-btn a {
    display: inline-block;
    font-size: 16px;
    line-height: 32px;
    color: #2E3561;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: .5s;
}

.mobile-view-btn a::before {
    position: absolute;
    content: "";
    top: 16px;
    right: -55px;
    height: 1px;
    width: 42px;
    background: #2E3561;
    z-index: -1;
    transition: .5s;
}

.mobile-view-btn a::after {
    position: absolute;
    content: "";
    top: 12px;
    right: -60px;
    height: 8px;
    width: 8px;
    background: #2E3561;
    border-radius: 50%;
    z-index: -1;
    transition: .5s;
}

.mobile-view-btn:hover::before {
    border-color: #D7AB79;
}

.mobile-view-btn a:hover {
    color: #D7AB79;
}

.mobile-view-btn a:hover::before {
    background: #D7AB79;
}

.mobile-view-btn a:hover::after {
    background: #D7AB79;
}

/* Loader & Separator */
.loader-wrapper .loder-section {
    background-color: #333A68 !important;
}

.section-separator {
    width: 100%;
    height: 1px;
    background-color: #2E3561;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    z-index: 9;
    opacity: 0.2;
}

/* Testimonial Section */
.testimonial-area .section-title {
    text-align: center !important;
    margin-bottom: 50px;
}

.testi-list .owl-dots {
    text-align: center !important;
    margin-top: 30px !important;
    width: 100%;
}

.testi-list .owl-dots .owl-dot {
    background: #ffffff !important;
}

.testi-list .owl-dots .owl-dot.active {
    background: #D7AB7C !important;
}

/* Blog Section */
.blog-list .owl-dots {
    display: none !important;
}

/* Footer Section */
.footer-section {
    padding: 25px 0 !important;
}

.footer-section .copy-rights h4 {
    margin: 10px 0 0 0 !important;
}

/* About Section Know More Button */
.about-btn-container {
    margin-top: 3px;
}

.about-btn-container a {
    display: inline-block;
    background-color: #D7AB79;
    color: #fff;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.about-btn-container a:hover {
    background-color: #2E3561;
    color: #fff;
}

.about-btn-container a i {
    margin-left: 8px;
}

/* ================================================== */
/*    Responsive Media Queries                        */
/* ================================================== */

@media (max-width: 991px) {
    .service-list .owl-dots {
        text-align: center;
        margin-top: 20px;
    }
    .tag-area {
        padding: 50px 0 !important;
    }
    .tag-area .title span {
        font-size: 30px !important;
    }
    .mobile-menu-area {
        background-color: #2E3561  !important;
    }
    .counter-area.one.upper.bg-col {
        padding-top: 0 !important;
    }
    .mean-container .mean-bar::before {
        content: none !important;
    }
    /* Fix for Blog Carousel on iPad to ensure full width of cards */
    .blog-list.owl-carousel .owl-item > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    /* Service Button Mobile Fix */
    .service-area.one .service-button {
        margin-top: 10px;
        margin-bottom: 20px;
        display: block !important;
    }
    .service-area.one .service-button a {
        top: 0 !important;
        left: 0 !important;
    }
    .service-area.one .service-button::before {
        display: none !important;
    }
    /* Service Dots Mobile Color */
    .service-list .owl-dots .owl-dot {
        background: #ffffff !important;
    }
    .service-list .owl-dots .owl-dot.active {
        background: #D7AB7C !important;
    }
    /* Service Image Mobile Fix */
    .service-area.one .service-inner-box.upper {
        display: flex !important;
        flex-direction: column;
    }
    .service-area.one .service-thumb {
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        width: 100% !important;
        order: -1;
        margin-bottom: 20px;
        z-index: 1 !important;
        text-align: center;
        display: block !important;
    }
    .service-area.one .service-thumb img {
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        z-index: 1 !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .section-separator {
        margin: 15px 0;
    }
    /* Reduce tab font size on mobile */
    .appoinment-tab .tab .tabs li a {
        font-size: 13px !important;
    }
    .appoinment-tab .tab .tabs {
        margin-bottom: 20px !important;
    }
    .counter-single-item-inner {
        margin-bottom: 70px !important;
    }
    .about-btn-container {
        text-align: center;
        margin-bottom: 20px;
    }
}