:root {
    --bs-primary: #559254;
    --bs-primary-rgb: 13, 110, 253;
    --bs-primary-text-emphasis: #6dee8d;
    --bs-primary-bg-subtle: #cfe2ff;
    --bs-primary-border-subtle: #9ec5fe;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
    background-color: #28a745;
    border-radius: 50%;
    color: #ffffff;
}

.back-to-top i {
    color: #ffffff;
    font-size: 18px;
}
.service-category-btn {
    transition: all 0.3s ease;
}
.service-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}
.btn {
    border-radius: 0.3rem !important;
}
.btn-outline-success:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.pagination .page-link {
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: 0.5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-success {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-success:hover {
    color: #fff !important;
}

.btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-primary);
    color: var(--bs-light) !important;
}

.btn-hover {
    transition: 0.5s;
}

.btn-hover:hover {
    color: var(--bs-secondary) !important;
}

/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}

@media (max-width: 768px) {
    .sub-title::before, .sub-title::after, .section-title .sub-style::before, .section-title .sub-style::after {
    display: none!important;
    }
}

/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--bs-dark) !important;
    z-index: 10000 !important;
    position: relative;
}

.topbar .container-fluid {
    z-index: 10000 !important;
    position: relative;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}

/* Ensure topbar is always visible and above other elements */
.topbar {
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
}

/* Modern Social Media Icons */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon-link i {
    font-size: 16px;
}

/* Navbar Button Colors */
.navbar .btn {
    color: #ffffff !important;
}

.navbar .btn-outline-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.navbar .btn-outline-success:hover {
    color: #ffffff !important;
    background-color: #28a745 !important;
}

.navbar .btn-success {
    color: #ffffff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.navbar .btn-success:hover {
    color: #ffffff !important;
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.topbar .container-fluid {
    position: relative !important;
    z-index: 10000 !important;
}

@media (max-width: 576px) {
    .topbar {
        display: block !important;
    }
}
/*** Topbar End ***/

/*** Navbar ***/
.navbar {
    z-index: 9999 !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: "Open Sans", sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-dark) !important;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 50px;
    transition: 0.5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: 0.5s;
        opacity: 0;
        z-index: 10001;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: 0.5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
        z-index: 9999;
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #dddddd;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 45px;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 9999;
    }

    /* Ana sayfa için navbar topbar'ın altında olsun */
    body.homepage .navbar-light {
        top: 50px!important;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light) !important;
        z-index: 9999;
        top:0px!important;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}
/*** Carousel Hero Header Start ***/
.header-carousel {
    position: relative;
}

.header-carousel .owl-nav .owl-prev {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 150px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 576px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        top: 430px;
        transition: 0.5s;
    }

    .header-carousel
        .header-carousel-item
        .carousel-caption
        .carousel-caption-content {
        width: 95% !important;
    }
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 95px;
    display: block;
    object-fit: cover;
    transition: 0.5s;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        margin-top: 0;
        transition: 0.5s;
    }
}

@media (min-width: 992px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin-top: 50px;
    }
}

.header-carousel .header-carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.header-carousel
    .header-carousel-item
    .carousel-caption
    .carousel-caption-content {
    position: relative;
    width: 75%;
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(../img/documents-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}

/* Blog Breadcrumb Styles */
.bg-breadcrumb.blog-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.blog-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.blog-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}

/* About Breadcrumb Styles */
.bg-breadcrumb.about-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.about-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.about-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}

/* Contact Breadcrumb Styles */
.bg-breadcrumb.contact-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.contact-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.contact-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}

/* Services Breadcrumb Styles */
.bg-breadcrumb.services-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.services-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.services-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}

/* Team Breadcrumb Styles */
.bg-breadcrumb.team-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.team-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.team-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}

/* FAQ Breadcrumb Styles */
.bg-breadcrumb.faq-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url(https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=1920&h=400&fit=crop);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
}

.bg-breadcrumb.faq-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
    font-weight: 500;
}

.bg-breadcrumb.faq-breadcrumb .breadcrumb-item.active {
    color: var(--bs-success) !important;
    font-weight: 600;
}
/*** Single Page Hero Header End ***/

/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item .service-img::before {
    width: 100%;
    height: 0;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
    z-index: 5;
}

.service .service-item:hover .service-img::before {
    height: 100%;
    background: rgba(40, 167, 69, 0.3);
}

.service .service-item .service-img:hover img {
    transform: scale(1.3);
}

.service .service-item .service-content {
    position: relative;
    z-index: 2;
}

.service .service-item .service-content::before {
    width: 100%;
    height: 8px;
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(40, 167, 69, 0.5);
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-content::before {
    background: rgba(40, 167, 69, 0.5);
    height: 100%;
}

.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    z-index: 9;
}
.service .service-item:hover .service-content .service-content-inner h5 {
    color: var(--bs-secondary);
}

/*** About Start ***/
.about .about-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 10px;
}

.about .about-img .about-img-inner {
    position: absolute;
    left: 0;
    bottom: 0;
    border: 10px solid;
    border-color: var(--bs-white) var(--bs-white) var(--bs-white)
        var(--bs-white);
    border-radius: 50%;
}

.about .about-img .about-experience {
    position: absolute;
    top: 125px;
    left: -125px;
    transform: rotate(-90deg);
    background: transparent;
    color: var(--bs-primary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
}

/*** About End ***/

/*** Feature Start ***/
.feature .feature-item {
    position: relative;
    display: flex;
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

.feature .feature-item::before {
    width: 0;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover::before {
    width: 100%;
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
    display: inline-flex;
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover .feature-icon {
    position: relative;
    z-index: 2;
}

.feature .feature-item:hover .feature-content {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}

.feature .feature-item:hover .feature-content h5 {
    color: var(--bs-dark);
}
/*** Feature End ***/

/*** Appointment Start ***/
.appointment {
    background: linear-gradient(
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.9)
        ),
        url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.appointment .appointment-form {
    background: rgba(239, 162, 134, 0.3);
}

.appointment .appointment-form .btn.btn-success {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

/*** Youtube Video start ***/
.video {
    position: relative;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    display: block;
    width: 33px;
    height: 44px;
    border-radius: 50%;
    transition: 0.5s;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 115px;
    height: 115px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
    transition: 0.5s;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    transition: all 300ms;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 33px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    margin-left: 5px;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}
/*** Youtube Video End ***/
/*** Appointment End ***/

/*** Team Start ***/
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: -125px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
}

.team .team-item .team-img:hover .team-icon {
    margin-bottom: 145px;
}

.team .team-item:hover .team-img::before {
    background: rgba(40, 167, 69, 0.3);
}

.team .team-item .team-content {
    color: var(--bs-primary);
    transition: 0.5s;
}

.team .team-item .team-content h5 {
    color: var(--bs-secondary);
    transition: 0.5s;
}

.team .team-item:hover .team-content h5 {
    color: var(--bs-dark);
}

.team .team-item:hover .team-content {
    background: var(--bs-primary);
    color: var(--bs-white);
}
/*** Team End ***/

/*** testimonial Start ***/
.testimonial {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
        url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.testimonial .testimonial-item .testimonial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: transparent;
}

.testimonial .testimonial-item .testimonial-inner .testimonial-inner-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
}

.testimonial .testimonial-carousel.owl-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

@media (max-width: 900px) {
    .testimonial .testimonial-carousel .owl-nav .owl-prev {
        margin-top: -190px;
        margin-left: 40px;
    }

    .testimonial .testimonial-carousel .owl-nav .owl-next {
        margin-top: -190px;
        margin-right: 40px;
    }
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--bs-white);
    background: transparent;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    background: var(--bs-secondary) !important;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
    transition: 0.5s;
}

@media (min-width: 900px) {
    .testimonial
        .testimonial-carousel
        .testimonial-item
        .testimonial-inner
        p.fs-7 {
        font-size: 20px;
    }
}

/* Testimonial Section Title Start */
.testimonial .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.testimonial .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Testimonial End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item .blog-img:hover img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-img::after {
    background: rgba(40, 167, 69, 0.5);
}

.blog .blog-item .blog-centent {
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-top: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/*** Blog End ***/

/*** Contact Start ***/
.contact {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
        url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.contact .contact-form .btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .contact-form .btn.btn-light:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.contact .contact-form .form-floating input,
.contact .contact-form .form-floating textarea,
.contact .contact-form .form-floating label {
    color: var(--bs-light);
}

/* Testimonial Section Title Start */
.contact .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.contact .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer .footer-item a {
    line-height: 35px;
    color: #28a745;
    text-decoration: none;
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: #218838;
    text-decoration: none;
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    background: var(--bs-dark) !important;
}
/*** copyright end ***/

/* Service Card Fixed Height and Text Overflow */
.service .service-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service .service-item .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service .service-item .service-content .service-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service .service-item .service-content .service-content-inner p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service .service-item .service-content .service-content-inner h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Change body font to Roboto */
body {
    font-family: "Roboto", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif !important;
}

/*** Dashboard Styles Start ***/
.dashboard-sidebar .list-group-item {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    color: var(--bs-dark);
    transition: all 0.3s ease;
}

.dashboard-sidebar .list-group-item:hover {
    background: var(--bs-success) !important;
    color: white !important;
}

.dashboard-sidebar .list-group-item.active {
    background: var(--bs-success) !important;
    color: white !important;
}

.dashboard-stats .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.dashboard-stats .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dashboard-content .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dashboard-content .list-group-item {
    border: 1px solid #e9ecef;
    background: #fff;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-content .list-group-item:hover {
    background: #f8f9fa;
    border-color: var(--bs-success);
}

.dashboard-content .list-group-item.active {
    background: var(--bs-success);
    color: white;
    border-color: var(--bs-success);
}

.dashboard-profile {
    border-left: 4px solid var(--bs-success);
    padding-left: 1rem;
    background: #f8f9fa;
}
/*** Dashboard Styles End ***/

.file-upload-area {
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.file-upload-area.dragover {
    border-color: var(--bs-success) !important;
    background-color: rgba(25, 135, 84, 0.1);
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}


.user-type-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.user-type-card.selected {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.1);
}

.user-type-card.selected[data-type="provider"] {
    border-color: var(--bs-success);
    background-color: rgba(25, 135, 84, 0.1);
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
}

.card {
    border-radius: 15px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.password-input-container {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: var(--bs-primary);
}

.password-input-container .form-control {
    padding-right: 45px;
}


/* Teklif Al sayfası için yeşil tema */
.form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.form-check-input:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.form-check-input:hover {
    border-color: #198754 !important;
}

.form-control:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.form-select:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.form-control:hover {
    border-color: #198754 !important;
}

.form-select:hover {
    border-color: #198754 !important;
}

/* Radio buttons için */
input[type="radio"]:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

input[type="radio"]:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

/* File input için */
.form-control[type="file"]:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.form-control[type="file"]:hover {
    border-color: #198754 !important;
}


/* Dashboard notifications styles */
.notification-item {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
}

.notification-item.read {
    background-color: white;
    border-left: 4px solid #6c757d;
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.dropdown-item:hover {
    background-color: #e9ecef;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
}

/* Auth sayfası için yeşil tema */
.nav-pills .nav-link.active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff!important;
}

.nav-pills .nav-link {
    color: #198754 !important;
    border: 1px solid #198754 !important;
}

.nav-pills .nav-link:hover {
    background-color: #198754 !important;
    color: white !important;
}

.alert-primary {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.alert-info {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.user-type-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-type-card:hover {
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.1);
}

.user-type-card.selected {
    border-color: #198754;
    background-color: #d1e7dd;
}

.user-type-card.selected .card-body {
    background-color: #d1e7dd;
}

.forgot-password-link {
    color: #198754 !important;
}

.forgot-password-link:hover {
    color: #146c43 !important;
}

.form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.form-control:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.form-select:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.btn-close {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.modal-header.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #BB6653 !important;
}

.bg-warning{
    background-color: #BB6653 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.alert-success {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}


/* COMPLETE CSS RESET FOR NAVBAR AUTH */
#navbarAuthContainer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar .btn {
    margin: 0 2px;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #navbarAuthContainer {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    
    #navbarAuthContainer .btn {
        width: 100%;
        margin: 2px 0;
    }
}


/* COMPLETE CSS RESET FOR NAVBAR AUTH */
#navbarAuthContainer {
    display: flex !important;
    gap: 8px;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
    z-index: auto !important;
}

#navbarAuthContainer .btn {
    display: inline-block !important;
    margin: 0 2px;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
    z-index: auto !important;
}

/* Force visibility on all pages */
.navbar #navbarAuthContainer,
.navbar-collapse #navbarAuthContainer,
.d-flex #navbarAuthContainer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
    z-index: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #navbarAuthContainer {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    
    #navbarAuthContainer .btn {
        width: 100%;
        margin: 2px 0;
    }
}

.text-danger {
    color: #dc3545 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff !important;
}

/* Mesaj İkonları - Kurumsal Renkler */
.message-icon-bg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message-new {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.message-read {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.message-pending {
    background: linear-gradient(135deg, #BB6653 0%, #F08B51 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

/* Mesaj Badge'leri - Kurumsal Renkler */
.message-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-new-badge {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

/* Sipariş İkonları - Kurumsal Renkler */
.order-icon-bg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.order-completed {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.order-pending {
    background: linear-gradient(135deg, #BB6653 0%, #F08B51 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.order-scheduled {
    background: linear-gradient(135deg, #0dcaf0 0%, #17a2b8 100%);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

/* Sipariş Badge'leri - Kurumsal Renkler */
.order-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-completed-badge {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.order-pending-badge {
    background: linear-gradient(135deg, #BB6653 0%, #F08B51 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.order-scheduled-badge {
    background: linear-gradient(135deg, #0dcaf0 0%, #17a2b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}

/* Hover Efektleri */
.message-icon-bg:hover,
.order-icon-bg:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.list-group-item:hover {
    background-color: rgba(25, 135, 84, 0.02);
    transition: background-color 0.3s ease;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .message-icon-bg,
    .order-icon-bg {
        width: 35px;
        height: 35px;
    }
    
    .message-badge,
    .order-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

.text-success {
    color: #488c76 !important;
}
.bg-success , .btn-success{
    background-color: #488c76 !important;
}
.text-danger {
    color: #d95148 !important;
}
.bg-danger , .btn-danger{
    background-color: #d95148 !important;
}
.text-warning {
    color: #BB6653 !important;
}
.btn-warning {
    background-color: #BB6653 !important;
}
.btn-outline-warning {
    border-color: #BB6653 !important;
    color: #BB6653 !important;
}
.btn-outline-warning:hover {
    background-color: #BB6653 !important;
    color: #fff !important;
}
.form-control, .form-select {
    padding: 6px 15px !important;
}

.btn-outline-primary{
    border-color: #7A85C1 !important;
    background-color: #7A85C1 !important;
    color: #fff !important;
}
.btn-outline-primary:hover{
    background-color: #7A85C1 !important;
    color: #fff !important;
}


/* html { scrollbar-gutter: stable both-edges; }

html, body { overflow-y: scroll; } */

/* When a modal is open, disable background scroll but keep width stable */
html.modal-open, body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important; /* avoid layout shift from added padding */
}

/* Limit modal height and enable internal scrolling */
.modal { overflow: hidden !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; contain: layout paint; transform: translateZ(0); }
.modal-dialog, .modal-content, .modal-body { overscroll-behavior: contain; }

.modal-dialog { max-width: 95%; }

.modal-lg .modal-content { max-height: 80vh; }
.modal .modal-content { max-height: 80vh; display: flex; flex-direction: column; }
.modal .modal-content { box-shadow: none !important; }
.modal .modal-header, .modal .modal-footer { flex-shrink: 0; }
.modal .modal-body { overflow-y: auto; max-height: calc(80vh - 130px); scrollbar-gutter: stable; }

/* Prevent scroll chaining visual jumps */
.modal .modal-body { -webkit-transform: translateZ(0); transform: translateZ(0); }

/* For scrollable dialogs ensure correct max-height on content/body */
.modal-dialog-scrollable .modal-content { max-height: 80vh; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }

/* On very small viewports, slightly reduce */
@media (max-height: 700px) {
  .modal .modal-content { max-height: 75vh; }
  .modal .modal-body { max-height: calc(75vh - 130px); }
}

/* ===== Modal stacking and animation fixes (prevent flicker over navbar/topbar) ===== */
/* Ensure modals always sit above sticky topbar/navbar (which use high z-indexes) */
.modal-backdrop { z-index: 11000 !important; }
.modal { z-index: 11010 !important; }

/* Remove transitions to prevent flicker */
.modal, .modal-dialog, .modal-content, .modal-backdrop { transition: none !important; }
.modal.fade .modal-dialog { transition: none !important; }
/* Kill any translate/scale on dialog to avoid jump/flicker */
.modal.fade .modal-dialog, .modal.show .modal-dialog { transform: none !important; }
.modal-stable .modal-dialog { margin: 10vh auto !important; }

/* Reduce box-shadows inside modal to prevent repaint on hover */
.modal .card, .modal .btn, .modal .form-control, .modal .form-select { box-shadow: none !important; }
.modal .btn:hover { box-shadow: none !important; transform: none !important; }

/* Prevent scroll anchoring jumps */
html, body, .modal, .modal-body { overflow-anchor: none; }

/* Disable WOW/animate effects inside modals to avoid hover-triggered reflows */
.modal .wow {
    visibility: visible !important;
    animation-name: none !important;
    animation-duration: 0s !important;
}

/* When any modal is open, fully disable WOW animations everywhere */
.modal-open .wow {
    visibility: visible !important;
    animation: none !important;
}

/* Avoid any background layout shift while modal is open */
.modal-open .navbar,
.modal-open .topbar {
    padding-right: 0 !important;
}

/* Hide back-to-top while modal is open to avoid fadeIn/out flicker */
.modal-open .back-to-top { display: none !important; }

/* Prevent touch scroll chaining on mobile */
.modal-open { touch-action: none; }

/* When modal is open, hide root scrollbars completely */
html.modal-open, body.modal-open { -ms-overflow-style: none; scrollbar-width: none; }
html.modal-open::-webkit-scrollbar, body.modal-open::-webkit-scrollbar { width: 0 !important; height: 0 !important; }

/* Allow pointer events; rely on backdrop to block interactions to avoid hover-induced flicker */
body.modal-open { pointer-events: auto; }
body.modal-open .modal, body.modal-open .modal * { pointer-events: auto; }
body.modal-open .modal-backdrop { pointer-events: auto; }

/* Utility class: force-disable scroll on any background container while modal open */
.scroll-locked { overflow: hidden !important; overscroll-behavior: contain !important; }

/* Keep sticky position; we already suppress scroll handlers while modal open to avoid reflow */

/* Inside modal, kill hover transforms/transitions */
.modal * { transition: none !important; }
/* Disable animate.css inside modal */
.modal [class*="animate__"] { animation: none !important; }