/* =========================================================
   Service pages — simple sidebar (list + book CTA)
   Readable, brand colors, sticky on desktop
========================================================= */

.vh-service-page {
    --vh-navy: #0f2f4d;
    --vh-blue: #025fbe;
    --vh-orange: #fe6d02;
    --vh-green: #43992a;
    --vh-line: rgba(15, 47, 77, 0.12);
    --vh-text: #2a3b4f;
}

/* Sticky sidebar while main content scrolls */
.vh-service-page > .container > .row > .col-lg-4 {
    align-self: flex-start;
    position: sticky;
    top: 108px;
    z-index: 20;
    max-height: none;
    overflow: visible;
    contain: none;
}

.vh-service-page .page-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
    transition: transform 0.35s ease;
}

/* ---------- Services list ---------- */
.vh-service-page .page-category-list {
    background: #fff;
    border: 1px solid var(--vh-line);
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 47, 77, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.vh-service-page .page-category-list .page-category-list-title {
    margin: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff !important;
    background: var(--vh-blue);
    letter-spacing: 0.01em;
}

.vh-service-page .page-category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vh-service-page .page-category-list ul li {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--vh-line);
    font-weight: 600;
}

.vh-service-page .page-category-list ul li:last-child {
    border-bottom: none;
}

.vh-service-page .page-category-list ul li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--vh-navy) !important;
    background: transparent !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.25s ease;
}

.vh-service-page .page-category-list ul li a::before {
    display: none !important;
}

.vh-service-page .page-category-list ul li a::after {
    content: "→";
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: rgba(15, 47, 77, 0.35);
    transition: color 0.2s ease, transform 0.25s ease;
}

.vh-service-page .page-category-list ul li a:hover {
    color: var(--vh-blue) !important;
    background: rgba(2, 95, 190, 0.05) !important;
    padding-left: 20px;
}

.vh-service-page .page-category-list ul li a:hover::after {
    color: var(--vh-blue);
    transform: translateX(3px);
}

.vh-service-page .page-category-list ul li.active a {
    color: var(--vh-orange) !important;
    background: rgba(254, 109, 2, 0.06) !important;
}

.vh-service-page .page-category-list ul li.active a::after {
    color: var(--vh-orange);
}

/* ---------- Book CTA — solid, no photo overlay ---------- */
.vh-service-page .sidebar-cta-box,
.vh-service-page.physio-service-page .sidebar-cta-box,
.vh-service-page.ent-service-page .sidebar-cta-box {
    position: relative;
    margin: 0;
    padding: 20px 18px 18px;
    border-radius: 12px;
    border: 1px solid rgba(2, 95, 190, 0.2);
    background: var(--vh-blue) !important;
    background-image: none !important;
    box-shadow: 0 8px 22px rgba(2, 95, 190, 0.18);
    overflow: hidden;
    min-height: 0;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.vh-service-page .sidebar-cta-box::before {
    display: none !important;
}

.vh-service-page .sidebar-cta-box .icon-box {
    display: none !important;
}

.vh-service-page .sidebar-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.vh-service-page .sidebar-cta-content h2 {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
}

.vh-service-page .sidebar-cta-content p {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.vh-service-page .sidebar-cta-content ul {
    list-style: none;
    width: 100%;
    margin: 0 0 14px !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.vh-service-page .sidebar-cta-content ul li {
    margin: 0 !important;
    padding: 0;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    color: #fff !important;
}

.vh-service-page .sidebar-cta-content ul li a,
.vh-service-page .vh-sidebar-phone {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 1px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.vh-service-page .sidebar-cta-content ul li a:hover,
.vh-service-page .vh-sidebar-phone:hover {
    color: #fff !important;
    border-bottom-color: #fff;
}

/* Plain full-width book button — no pill / no extra arrow circle */
.vh-service-page .vh-sidebar-btn,
.vh-service-page a.vh-sidebar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    background: var(--vh-orange) !important;
    border: 1px solid var(--vh-orange) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    gap: 0 !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.vh-service-page .vh-sidebar-btn::before,
.vh-service-page .vh-sidebar-btn::after {
    display: none !important;
    content: none !important;
}

.vh-service-page .vh-sidebar-btn:hover,
.vh-service-page .vh-sidebar-btn:focus {
    background: #e55f00 !important;
    border-color: #e55f00 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.vh-service-page .vh-sidebar-btn:active {
    transform: translateY(0);
}

/* Subtle motion when sidebar is in view */
@media (prefers-reduced-motion: no-preference) {
    .vh-service-page .page-category-list,
    .vh-service-page .sidebar-cta-box {
        animation: vhSidebarIn 0.55s ease both;
    }

    .vh-service-page .sidebar-cta-box {
        animation-delay: 0.08s;
    }
}

@keyframes vhSidebarIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Tablet / mobile: full width, no sticky ---------- */
@media (max-width: 991px) {
    .vh-service-page > .container > .row > .col-lg-4 {
        position: static;
        top: auto;
        z-index: auto;
    }

    .vh-service-page .page-single-sidebar {
        margin-top: 8px;
        gap: 14px;
    }

    .vh-service-page .page-category-list .page-category-list-title {
        font-size: 15px;
        padding: 13px 16px;
    }

    .vh-service-page .page-category-list ul li a {
        padding: 12px 14px;
        font-size: 14.5px;
    }

    .vh-service-page .sidebar-cta-box,
    .vh-service-page.physio-service-page .sidebar-cta-box,
    .vh-service-page.ent-service-page .sidebar-cta-box {
        padding: 18px 16px 16px;
    }

    .vh-service-page .sidebar-cta-content h2 {
        font-size: 17px !important;
    }

    .vh-service-page .sidebar-cta-content p {
        font-size: 13.5px !important;
    }
}

@media (max-width: 575px) {
    .vh-service-page .page-category-list ul li a:hover {
        padding-left: 14px;
    }
}

/* Ortho + shared service content mobile alignment */
@media (max-width: 767px) {
    .vh-service-page .service-therapy-item-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .vh-service-page .service-therapy-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
    }

    .vh-service-page .therapy-benefits-list {
        display: block !important;
        width: 100% !important;
    }

    .vh-service-page .therapy-list-item {
        width: 100% !important;
        margin: 0 0 12px !important;
    }

    .vh-service-page .therapy-list-content ul {
        padding-left: 0 !important;
        margin: 0 !important;
    }

    .vh-service-page .therapy-list-content ul li {
        word-wrap: break-word;
    }

    .vh-service-page .service-contact-content {
        margin-top: 24px;
    }

    .vh-service-page .service-entry h4 {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    .vh-service-page .faq-accordion .accordion-header .accordion-button {
        font-size: 14.5px !important;
        padding: 14px 14px !important;
        text-align: left;
    }
}
