.section-pd {
    padding: 50px 0;
}

.feature-counters-sec {
    padding: 30px 0;
}

.section-title {
    margin-bottom: 30px;
}

@media only screen and (max-width: 991px) {
    .section-pd {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    header.main-header .container-fluid {
        padding: 0;
    }

}

.our-services {
    background-color: #e7eef7;
    position: relative;
    overflow: hidden;
}

.our-services .container {
    position: relative;
    z-index: 1;
}

.specialized-bg-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    max-width: 400px;
}

@media only screen and (max-width: 768px) {
    .specialized-bg-shape {
        max-width: 250px;
    }
}

.hospital-opd-timings {
    background-color: #e7eef7;
    border-radius: 30px 30px 0 0;
}

.about-sec {
    position: relative;
}

.about-sec .container {
    position: relative;
    z-index: 1;
}

.about-bg-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
    max-width: 650px;
    opacity: 0.2;
}

@media only screen and (max-width: 768px) {
    .about-bg-shape {
        max-width: 270px;
    }
}

.how-it-work {
    position: relative;
}

.how-it-work .container {
    position: relative;
    z-index: 1;
}

.preventive-bg-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
    max-width: 200px;
    opacity: 0.2;
}

@media only screen and (max-width: 768px) {
    .preventive-bg-shape {
        max-width: 130px;
    }
}

/* Line Circle for Why Choose Us */
.our-benefit {
    position: relative;
    overflow: hidden;
}

.our-benefit .container {
    position: relative;
    z-index: 1;
}

.our-benefit::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.our-benefit::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* About Us Images Center Background */
.about-us-images {
    position: relative;
    z-index: 1;
}

.about-center-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    max-width: 400px;
    opacity: 0.3;
}

@media only screen and (max-width: 768px) {
    .about-center-bg {
        max-width: 250px;
    }
}

/* Mobile responsive for hospital-opd-timings shape */
@media only screen and (max-width: 768px) {
    .hospital-opd-timings::before {
        width: 250px;
        height: 250px;
        top: -50px;
        right: -50px;
    }

    .hospital-opd-timings::after {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: -25px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-google-rating {
        display: flex;
        justify-content: center;
        margin: 30px auto 0;
        width: max-content;
    }

    .hero-content {
        text-align: center;
    }
}

/* Mega Menu Improvement */
@media (min-width: 992px) {
    .main-menu ul li.mega-menu {
        position: static !important;
    }

    .main-menu ul li.mega-menu ul {
        width: 1000px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 25px !important;
        background: #496f9f !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease !important;
    }

    .main-menu ul li.mega-menu:hover ul {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .main-menu ul li.mega-menu ul li {
        width: 33.33% !important;
        padding: 0 !important;
    }

    .main-menu ul li.mega-menu ul li a {
        padding: 10px 15px !important;
        white-space: normal !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        display: block !important;
    }

    .main-menu ul li.mega-menu ul li a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 5px !important;
    }
}

/* Sidebar Appointment Form Adjustments */
.sidebar-appointment-form .appointment-form-header {
    display: block !important;
    text-align: center;
}

.sidebar-appointment-form .appointment-form-header .icon-box {
    margin: 0 auto 15px !important;
}

.sidebar-appointment-form .appointment-form-header .header-content p {
    margin-top: 5px;
}

/* Sciatica Page Custom Styles */
.sciatica-key-features {
    background: #fdfdfd;
    padding: 25px;
    border-left: 4px solid #496f9f;
    margin-top: 30px;
    border-radius: 0 15px 15px 0;
}

.sciatica-key-features h3 {
    color: #496f9f !important;
    margin-bottom: 20px !important;
    font-size: 24px;
}

.sciatica-key-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sciatica-key-features ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
}

.sciatica-key-features ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #496f9f;
    border-radius: 50%;
}

.treatment-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    height: 100%;
    transition: all 0.3s ease;
}

.treatment-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.treatment-box h4 {
    color: #496f9f;
    margin-bottom: 12px;
    font-size: 20px;
}

.treatment-box p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
}

.service-entry h2.custom-title {
    color: #496f9f !important;
    margin-bottom: 20px !important;
}

.service-details-content p {
    margin-bottom: 15px;
}

/* 3D Rotating Spine Image Animation - Why Choose Us Section */
.our-benefit-image figure {
    perspective: 1200px;
    position: relative;
}

.our-benefit-image img {
    /* animation: spine3DRotate 12s linear infinite; */
    transform-style: preserve-3d;
    will-change: transform;
}

.our-benefit-image img:hover {
    animation-play-state: paused;
}

@keyframes spine3DRotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@media (max-width: 992px) {
    .hero-section .section-title h3::before {
        display: none !important;
    }
}

.main-header .navbar-brand img {
    max-width: 250px;
}

.extracurricular-section img {
    border-radius: 20px;
}