      @import url('https://fonts.googleapis.com/css2?family=Sintony:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

        .listing-header-wrapper-v2 {
            background-color: #085E7F; /* Default Teal */
            color: #ffffff;
            padding: 30px 0;
            margin-bottom: 0;
            font-family: 'Roboto', sans-serif;
        }

        /* Darker Blue for Doctors to match mockup */
        .layout-doctor.listing-header-wrapper-v2 {
           background: linear-gradient(90deg, #043A80 0%, #085E7F 100%);
        }

        .listing-header-wrapper-v2.layout-doctor {
            height: 298px;
        }

        .listing-header-wrapper-v2 .breadcrumbs-v2 {
            font-size: 13px;
            color: #FFF;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            margin-bottom: 25px;
        }

        .listing-header-wrapper-v2 .breadcrumbs-v2 a {
            color: #FFF;
            text-decoration-line: underline;
            text-decoration-style: solid;
            text-decoration-skip-ink: auto;
            text-decoration-thickness: auto;
            text-underline-offset: auto;
            text-underline-position: from-font;
        }

        .listing-header-wrapper-v2 .breadcrumbs-v2 span.separator {
            color: rgba(255, 255, 255, 0.9);
            margin: 0 5px;
            font-size: 13px;
        }

        /* Aggressive hiding for the original theme elements on Doctor pages to prevent overlaps */
        body.single-doctor .breadcrumbs,
        body.single-doctor .container > .breadcrumbs,
        body.single-doctor .single-top h1,
        body.single-doctor h1.entry-title,
        body.single-doctor .page-title,
        body.single-doctor .single-listing-title-wrapper {
            display: none !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }

        body.single-hospital-clinic .breadcrumbs {
            display: none !important;
        }

        /* Ensure our premium header h1 remains visible */
        .listing-header-wrapper-v2 h1 {
           display: block !important;
    visibility: visible !important;
    color: #FFF;
    font-family: 'Sintony', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 12px 0;
        }

        .header-v2-content {
            display: flex;
            gap: 33px;
            align-items: flex-start;
        }

        .header-v2-main {
            display: flex;
            gap: 20px;
            flex: 1;
            align-items: stretch; /* Stretches info block to photo height */
        }

        .header-v2-image {
            flex-shrink: 0;
        }

        .header-v2-image img {
            width: 293px;
            height: 216px;
            border-radius: 12px;
            object-fit: cover;
            display: block;
        }

        .header-v2-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .header-v2-info .info-list {
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        .header-v2-info .info-list li {
            margin-bottom: 12px;
            font-size: 20px;
            line-height: 1.4;
            color: #FFF;
            list-style: none !important;
            list-style-type: none !important;
            padding-left: 0 !important;
        }

        .header-v2-info .info-list li::before {
            display: none !important;
            content: none !important;
        }

        .header-v2-info .info-label {
            color: #FFF;
            font-size: 20px;
            font-weight: 500;
            line-height: normal;
        }

        .header-v2-info .info-value {
            color: #FFF;
            font-size: 20px;
            font-weight: 400;
            line-height: normal;
        }

        .header-v2-info .info-value a,
        .header-v2-info .info-value span.underlined {
           color: #FFF;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: auto;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
        }


           .header-v2-info .info-value a:hover,
        .header-v2-info .info-value span.underlined:hover {
           color: #187AAB;
        }

        .info-value .underlined {
            font-size: 20px;
        }

        .header-v2-card {
            width: 281px;
            height: auto;
            flex-shrink: 0;
            border-radius: 2px;
            border: 2px solid #E5E5E5;
            background: #FFF;
            box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            margin-bottom: -90px;
            position: relative;
            z-index: 10;
        }

        .header-v2-card.no-map {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .header-v2-card.no-map .btn-container {
            background: #FFF;
            border: 1px solid #E5E5E5;
            box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
            border-radius: 1px;
            margin-top: auto;
        }

        .header-v2-card .directions-heading {
            color: #333;
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 10px;
            text-align: center;
        }

        /* Doctor-specific rating bar - High Fidelity */
        .doctor-rating-bar {
            background: #FFF;
            border-radius: 12px;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto; /* Anchors to bottom */
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            color: #333;
            width: 100%;
            max-width: 650px;
        }

        .rating-info-left {
            display: flex;
            align-items: center;
            gap: 25px;
            flex-grow: 1;
        }

        .rating-score-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .rating-score-text {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            line-height: 1.2;
        }

        .rating-stars {
            font-size: 22px;
            display: flex;
            gap: 4px;
            flex-shrink: 0;
        }

        body .listing-header-wrapper-v2 .rating-stars i:before {
            color: #F8CC30 !important;
        }

    

        .rating-count-text {
            color: #6C6C6C;
            font-size: 14px;
            font-weight: 400;   
            white-space: nowrap;
        }

        body .listing-header-wrapper-v2 .rating-count-text i:before {
            color: #187AAB !important;
        }

        .rating-actions-right {
            display: flex;
            align-items: center;
            gap: 25px;
            padding-left: 20px;
            border-left: 1px solid #EEE;
        }

        .rating-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: #555;
            text-decoration: none !important;
            font-size: 13px;
            min-width: 50px;
        }

        .rating-action-btn i {
            font-size: 24px;
            color: #555;
        }

        .rating-action-btn span {
            font-weight: 500;
        }

        .rating-action-btn:hover {
            color: #006079;
        }

        .rating-action-btn.action-save-listing i { transition: color 0.2s ease; }
        .rating-action-btn.action-save-listing.is-saved i,
        .rating-action-btn.action-save-listing:hover i {
            color: #187aab !important;
        }
        .rating-action-btn.action-save-listing:hover i:before,
        .rating-action-btn.action-save-listing.is-saved i:before {
            content: "\f004"; /* solid heart */
        }

        /* Adjustments for doctor image */
        .layout-doctor .header-v2-image img {
            height: auto;
            max-height: 350px;
            width: 293px;
        }

        .doctor-specialty-subtitle {
           font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #FFF;
    font-style: normal;
    line-height: normal;
        }

        /* Doctor action card specific */
        .header-v2-card.card-doctor {
            padding: 12px 0;
            height: auto;
            min-height: 306px;
            border-radius: 20px;
            border: 1px solid #E5E5E5;
            background: #FFF;
            box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
        }

        .layout-doctor .directions-heading {
           text-align: center;
    margin-bottom: 12px;
    color: #444;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
        }

        .header-v2-card.card-doctor .btn-container {
            padding: 0px 10px 0 10px;
        }

        .header-v2-card.card-doctor .card-address-bottom {
              margin-top: 10px;
    padding: 10px 10px 0 10px !important;
    color: #444;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
        }

        .header-v2-card.card-doctor .map-container {
            margin-bottom: 10px;
        }

        .header-v2-card .map-container {
            width: 100%;
            background: #f5f5f5;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .header-v2-card .map-container img {
            width: 100%;
            height: 190px;
            object-fit: cover;
        }

        .header-v2-card .btn-container {

            padding: 10px;
        }

        .header-v2-card .btn-v2 {
            display: block;
            width: 100%;
            padding: 10px;
            text-align: center;
            border-radius: 2px;
            font-weight: 500;
            margin-bottom: 8px;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease-in-out;
        }

        .header-v2-card .btn-website {
            background: #fff;
            color: #1D81B0;
            border: 1px solid #1D81B0;
        }
      
        .header-v2-card .btn-website:hover {
              color: #FFF;
    background: -moz-linear-gradient(145deg, #187aab 0%, #002c77 100%);
    background: linear-gradient(145deg, #187aab 0%, #002c77 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#187aab", endColorstr="#002c77", GradientType=1);
        }

        .header-v2-card .btn-inquire {
            background: #00BC22;
            color: #fff;
            border: none;
            margin-bottom: 0;
            border-radius: 2px;
        }
        
        .header-v2-card .btn-inquire:hover {
            background: #187aab;
    border-color: #187aab;
        }

        /* Nav Tabs Restored Style */
        .header-v2-nav-tabs {
            background: #FFF;
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
        }

        .header-v2-nav-tabs ul.menu {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
        }

        .header-v2-nav-tabs ul.menu li {
            margin: 0;
        }

        .header-v2-nav-tabs ul.menu li a {
            display: block;
            padding: 15px 20px;
            color: #444;
            font-weight: bold;
            text-decoration: none;
            border-bottom: 3px solid transparent;
        }

        .header-v2-nav-tabs ul.menu li.active a {
            color: #004861;
            border-bottom-color: #004861;
        }

        .layout-doctor .header-v2-nav-tabs ul.menu li a {
            color: #004861;
            font-weight: 400;
            position: relative;
            border-bottom: none !important;
        }

        .layout-doctor .header-v2-nav-tabs ul.menu li.active a {
            font-weight: 700;
        }

        .layout-doctor .header-v2-nav-tabs ul.menu li.active a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20px;
            right: 20px;
            height: 3px;
            background: #004861;
        }


        /* Responsive */
        @media (max-width: 991px) {
            .listing-header-wrapper-v2.layout-doctor {
                height: auto;
                min-height: auto;
            }

            .floating-admission {
                display: none;
            }

            .header-v2-card {
                width: 100%;
                max-width: 400px;
                /* margin: 20px auto 30px auto; */
                /* Centers the card nicely! */
                height: auto;
                min-height: 306px;
            }
        }

        @media (max-width: 767px) {
            .listing-header-wrapper-v2 .breadcrumbs-v2 {
                margin-bottom: 20px;
                text-align: center;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 5px;
            }

            .listing-header-wrapper-v2 {
                padding: 20px 15px 40px 15px !important;
                height: auto !important;
            }

            .header-v2-main {
                flex-direction: column; 
                align-items: center;
                text-align: center;
                gap: 15px;
            }

            .header-v2-info .info-label {
                font-size: 16px;
            }

            .header-v2-info .info-value {
                font-size: 16px;
            }

            .header-v2-content {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding:0px;
            }

            .listing-header-wrapper-v2 .header-v2-image img,
            .layout-doctor .header-v2-image img {
                width: 100%;
                max-width: 300px;
                height: auto;
                margin: 0 auto;
                border-radius: 15px;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            }

            .header-v2-content h1 {
                font-size: 26px !important;
                text-align: center;
                line-height: 1.3;
                margin-top: 15px !important;
                font-weight: 700;
            }
            
            .doctor-specialty-subtitle {
                font-size: 18px;
                text-align: center;
                margin-bottom: 8px;
                opacity: 0.95;
            }

            .info-value .underlined {
                font-size: 16px;
            }

            .info-value a:hover {
                color:#187AAB !important;
            }


            .listing-header-wrapper-v2 h1 {
                margin: 0 !important;
            }

            .header-v2-info .info-list li {
                margin-bottom: 8px;
            }

            .header-v2-meta {
                flex-wrap: wrap;
                text-align: center;
                font-size: 14px;
                justify-content: center;
                line-height: 1.5;
                margin-top: 5px;
            }

            .breadcrumbs-v2 {
                line-height: 20px !important;
                text-align: center;
            }

            .header-v2-card {
                display: flex;
                margin-top: 25px !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* Rating Bar Responsiveness */
            .doctor-rating-bar {
                flex-direction: column;
                padding: 30px 20px; /* Increased top/bottom padding for breathing room */
                gap: 25px;
                width: 100%;
                box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Softer shadow for mobile */
                border-radius: 15px;
                width:300px;
            }

            .rating-info-left {
                flex-direction: column;
                gap: 12px; /* Increased gap for better hierarchy */
                text-align: center;
            }

            .rating-score-group {
                gap: 6px;
            }

            .rating-score-text {
                color: #444;
                font-size: 20px;
                font-weight: 700;
                line-height: normal;
            }

            .rating-stars {
                font-size: 30px; /* Larger stars for big impact on mobile */
                margin: 10px 0;
            }

            .rating-actions-right {
                padding-left: 0;
                border-left: none;
                border-top: 1px solid #EEE;
                padding-top: 25px;
                width: 100%;
                justify-content: space-evenly;
                gap: 15px;
            }
            
            .rating-action-btn i {
                font-size: 28px;
            }

            /* Hide scrollbar for the tab menu on mobile */
            .layout-doctor + .container.single-top .menu::-webkit-scrollbar {
                display: none !important;
            }
            .layout-doctor + .container.single-top .menu {
                -ms-overflow-style: none !important;
                scrollbar-width: none !important;
                overflow-x: auto !important;
                white-space: nowrap;
                display: flex;
            }
            .layout-doctor + .container.single-top .menu li {
                flex-shrink: 0;
            }
        }

        /* Hide the original breadcrumbs and title */
        body.single-hospital-clinic .breadcrumbs,
        body.single-doctor .breadcrumbs,
        body.single-doctor h1.entry-title,
        body.single-doctor .page-title,
        body.single-doctor .single-listing-title-wrapper {
            display: none !important;
        }

        .layout-doctor + .container.single-top {
            margin-top: 97px;
        }
        body.page-template-template-listing-videos .layout-doctor + .container.single-top {
            margin-bottom: 25px;
        }

        /* Doctor-specific tab design restoration */
        .layout-doctor + .container.single-top .menu li {
            border-right: none;
            padding: 8px 15px;
            position: relative;
        }
        .layout-doctor + .container.single-top .menu li a {
            color: #187AAB !important;
            padding-bottom: 5px;
            display: inline-block;
            transition: border-color 0.3s ease;
            border-bottom: 2px solid transparent;
            text-align: center;
        }

        /* Reserve space for bold text to prevent shifting on hover */
        .layout-doctor + .container.single-top .menu li a::after {
            display: block;
            content: attr(title);
            font-weight: 700;
            height: 0;
            overflow: hidden;
            visibility: hidden;
        }

        .layout-doctor + .container.single-top .menu li a:hover,
        .layout-doctor + .container.single-top .menu .active a {
            font-weight: 700;
            text-decoration: none !important;
        }