/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}
body, .service-content {
    user-select: none; /* matn tanlanmasin */
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/doctor-operation.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/doctor-operation.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(6, 163, 218, .7);
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

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

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.bg-offer {
    background:url(../img/doctor-operation.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(6, 163, 218, .85);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.bg-testimonial {
    background: url(../img/doctor-operation.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(6, 163, 218, .85);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}
/* ===== Umumiy container ===== */
.service-content {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
}

/* ===== Sarlavhalar ===== */
.service-content h2 {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.service-content h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg,#1a237e,#3f51b5);
    margin: 10px auto 0;
    border-radius: 2px;
}

.service-content h3 {
    font-size: 22px;
    color: #3f51b5;
    margin-top: 28px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-content h4 {
    font-size: 18px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ===== Paragraflar ===== */
.service-content p {
    font-size: 16px;
    margin-bottom: 18px;
}

/* ===== Info box ===== */
.service-content .info-box {
    background: linear-gradient(120deg, #d0e8ff, #f0f7ff);
    border-left: 6px solid #2196f3;
    padding: 20px 25px;
    margin: 22px 0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-content .info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* ===== Listalar ===== */
.service-content ul {
    margin-left: 25px;
    margin-bottom: 18px;
    list-style: disc;
}

.service-content ul li {
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-content ul li:hover {
    color: #1a237e;
}

/* ===== Badge & Emoji Styling ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-right: 6px;
}

.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #333; }
.badge-danger  { background-color: #dc3545; }

/* ===== Jadval ===== */
.service-content .stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.service-content .stats-table th,
.service-content .stats-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    transition: background 0.3s;
}

.service-content .stats-table th {
    background: linear-gradient(90deg, #1a237e, #3f51b5);
    color: #fff;
}

.service-content .stats-table tr:hover td {
    background: #f1f5fb;
}

/* ===== Progress bar for rating ===== */
.progress-container {
    background-color: #eee;
    border-radius: 12px;
    height: 12px;
    width: 100%;
    margin: 6px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff9800, #ffc107);
    transition: width 0.6s ease;
}

/* Star rating */
.star-rating {
    color: #ffc107;
    font-size: 18px;
}

/* ===== Success story box ===== */
.service-content .success-story {
    background: linear-gradient(135deg,#d4edda,#e8f5e9);
    border-left: 6px solid #4caf50;
    padding: 20px 25px;
    margin: 28px 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-content .success-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* ===== Ordered list ===== */
.service-content ol {
    margin-left: 25px;
    margin-bottom: 18px;
}

.service-content ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .service-content {
        padding: 20px;
    }

    .service-content h2 {
        font-size: 26px;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .service-content .stats-table th,
    .service-content .stats-table td {
        padding: 10px;
    }
}

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}


.page_404 {
    padding: 40px 0;
    background: #fff;
    font-family: 'Arvo', serif;
}

.page_404 img {
    width: 100%;
}

.four_zero_four_bg {
    background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
    height: 400px;
    background-position: center;
}


.four_zero_four_bg h1 {
    font-size: 80px;
    font-weight: 900;
}

.four_zero_four_bg h3 {
    font-size: 80px;
}

.link_404 {
    color: #fff !important;
    padding: 10px 20px;
    background: #39ac31;
    margin: 20px 0;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 1px;
}

.contant_box_404 {
    margin-top: -50px;
}

.contant_box_404 .h2 {
    font-size: 2em;
    font-weight: 600;
}

.contant_box_404 p {
    font-size: 1.4em;
    font-weight: 400;
}



/* Support me */
#support {
  position: fixed;
  bottom: 1em;
  right: 1em;
}

/* Image Overlay Styles */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s;
    z-index: 5;
}

.img-wrapper {
    position: relative;
}

.img-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Lightbox Modal Styles */
#imageViewerModal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content-img {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================= */
/* Mobile UI/UX Overhaul & Responsiveness    */
/* ========================================= */

@media (max-width: 991.98px) {
    /* Banner Heights */
    .banner .bg-primary, .banner .bg-dark, .banner .bg-secondary {
        min-height: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    /* Typography Scaling */
    .carousel-caption h1.display-1 {
        font-size: 28px !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    .carousel-caption h5 {
        font-size: 16px !important;
    }

    /* Padding adjustments (p-5 is too big on mobile) */
    .p-5 {
        padding: 1.5rem !important;
    }
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Custom Elements */
    .about-img-box {
        min-height: 350px !important;
    }
    
    .bg-appointment {
        padding: 2rem 1rem !important;
    }
    
    .appointment-form {
        padding: 1.5rem !important;
    }

    .service-content {
        padding: 15px !important;
    }

    .service-content h2 {
        font-size: 24px !important;
    }

    .testimonial-carousel {
        padding: 1.5rem !important;
    }
}