.this-14,
.this-14 p,
.this-14 ul li,
.this-14 a {
    margin: 0;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.this p,
.this,
.this ul li {
    font-weight: 400 !important;
    font-size: 16px !important;
    margin: 0;
}

.hidden-row {
    display: none;
}

/* Modern price rows */
.prices-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.price-row:nth-child(odd) {
    background: #f8fafc;
}

.price-row:nth-child(even) {
    background: #fff;
}

.price-row:hover {
    background: rgba(47, 167, 223, 0.07);
}

.price-row.hidden-row {
    display: none;
}

.price-row-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    min-width: 0;
    font-weight: bold;
}

.price-row-value {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-row-enquire {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .price-row {
        flex-wrap: wrap;
        gap: 6px 8px;
        padding: 10px 8px;
    }

    .price-row-name {
        width: 100%;
        flex: 0 0 100%;
        font-size: 14px;
        white-space: normal;
        word-break: break-word;
    }

    .price-row-value {
        font-size: 13px;
    }

    .price-row-enquire {
        margin-left: auto;
    }

    .por-anim {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }

    .procedure-enquire-btn {
        min-width: 65px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

.hidden-row-2 {
    display: none;
}

.show-less-more-btn {
    margin: 5px auto auto 0;
    border-radius: 4px;
    height: 35px;
    width: 120px;
    font-weight: 500;
    background: #2fa7df;
    border: 1px solid #c8c8c8;
    color: #FFF;
    transition: all 0.3s ease;
    font-size: 16px;
    align-items: center;
    justify-content: center;
}

.show-less-more-btn:hover {
    background: #E6E6E6;
    color: #000;
}

.discount {
    display: inline-block;
    animation: discount 2s infinite;
}

@keyframes discount {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.procedures-request {
    text-decoration: none;
    font-weight: 700 !important;
    color: #323232;
}

.procedures-request:hover {
    text-decoration: underline;
    color: #323232;
}

@media (max-width: 768px) {
    footer {
        margin-top: -100px;
    }
}

.are-one,
.are-two,
.are-three,
.are-four {
    display: none;
}

/* Footer spacing conflict fixes (page-specific) */
html,
body {
    height: auto;
}

.ltn__breadcrumb-area,
.doctor-profile-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer,
.ltn__footer-area,
.site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.body-wrapper,
.page-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

.ltn__breadcrumb-area {
    overflow: visible !important;
}

/* Make overlay transparent (no blur on slow internet) but keep interactive so menu can close */
.ltn__utilize-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
}

@media screen and (max-width: 349px) {
    .are-one {
        display: flex;
    }
}

@media screen and (min-width: 350px) and (max-width: 499px) {
    .are-two {
        display: flex;
    }
}

@media screen and (min-width: 500px) and (max-width: 768px) {
    .are-three {
        display: flex;
    }
}

@media screen and (min-width: 769px) {
    .are-four {
        display: flex;
    }
}

.modal-ragip-img {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-ragip-img-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.modal-ragip-img img {
    width: auto;
    height: auto;
    max-height: 70vh;
}

.modal-ragip-img .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-ragip-img .close:hover,
.modal-ragip-img .close:focus {
    color: #bbb;
    text-decoration: none;
}

@media (min-width:780px) {
    .spacetop {
        height: 50px;
    }
}

@media (max-width:780px) {
    .hani-center {
        text-align: center;
    }
}

.breadcr {
    font-size: 15px !important;
    color: #808080 !important;
    font-weight: 500 !important;
}

.breadcr:hover {
    font-weight: 600 !important;
    color: #404040 !important;
}

.breadcr-link {
    font-size: 15px !important;
    color: #2fa7df !important;
    font-weight: 500 !important;
}

.breadcr-link:hover {
    font-weight: 600 !important;
}

.breadcrs {
    font-size: 15px !important;
    color: #404040 !important;
    font-weight: 600 !important;
}

.breadcrs:hover {
    font-weight: 700 !important;
    color: #202020 !important;
}

.btnApp {
    margin-top: 3px !important;
    width: 100%;
    font-size: 20px;
    padding: 7px 0 7px 0;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: linear-gradient(-45deg, #f3a938, #f3a938, #dc732e, #e38331);
    background-size: 400%;
    -webkit-animation: anime 3s linear infinite;
    animation: anime 3s linear infinite;
}

.btnAppS {
    margin-top: 3px !important;
    width: 100%;
    font-size: 20px;
    padding: 7px 0 7px 0;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: linear-gradient(-45deg, #2fa7df, #2fa7df, #4fc7ff, #4fc7ff);
    background-size: 400%;
    -webkit-animation: anime 3s linear infinite;
    animation: anime 3s linear infinite;
}

.btnApp2 {
    margin-top: 3px !important;
    width: 100%;
    font-size: 20px;
    padding: 7px 0 7px 0;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: linear-gradient(-45deg, #2fa7df, #2fa7df, #2fa7df, #2fa7df);
    background-size: 400%;
    -webkit-animation: anime 3s linear infinite;
    animation: anime 3s linear infinite;
}

.btnApp3 {
    margin-top: 3px !important;
    width: 70%;
    font-size: 20px;
    padding: 7px 0 7px 0;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: #0A9A9A;
}

@-webkit-keyframes anime {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes anime {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-doctor {
    transition: all 0.3s ease 0s;
    font-weight: 500;
    border-bottom: 3px solid transparent !important;
}

.btn-doctor:hover,
.btn-doctor.active {
    background: #F0F0F0;
    font-weight: 600;
    border-bottom: 3px solid #128c7e !important;
}

@media (max-width:750px) {
    .space-doctors-area {
        padding-top: 0 !important;
    }
}

@media (min-width:751px) {
    .space-doctors-area {
        padding-top: 0 !important;
    }
}

.star-border {
    color: transparent;
    /* Hide the fill color */
    border: 2px solid #000;
    /* Adjust the border color and width */
    border-radius: 50%;
    /* Optional: to make the border rounded */
}

.star-rating-fetch-fetch,
.star-rating-fetch-fetch-2 {
    display: inline-flex;
    font-size: 13px;
    padding: 1px;
}

.star-rating-fetch,
.star-rating-fetch-2 i {
    color: #FFB800;
}

.star-rating {
    direction: rtl;
    display: inline-block;
    user-select: none;
    margin-top: 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    -webkit-text-stroke-color: gold;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating input[type="radio"]:checked~label {
    color: gold;
}

.star-rating input[type="radio"]:checked~label {
    color: gold;
}

.star-rating input[type="radio"]:checked~label~label {
    -webkit-text-stroke-color: gold;
    color: transparent;
    -webkit-text-stroke-width: 2px;
}

#costs {
    border-collapse: collapse;
    width: 100%;
}

#costs td {
    padding: 5px 10px;
}

#costs tr {
    border-radius: 8px;
}

#costs tr:nth-child(even) {
    background-color: #F5F5F5;
}

#costs tr:hover {
    background-color: #E0E0E0;
}

#costs th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: white;
    color: #2fa7df;
}

.result {
    -webkit-text-stroke-color: gold;
    color: transparent;
    -webkit-text-stroke-width: 2px;
}

.active-result {
    padding: 2px;
    -webkit-text-stroke-color: gold;
    color: gold;
    -webkit-text-stroke-width: 2px;
}

.main-sec-title {
    border: 2px solid #F0F0F0;
    border-bottom: none;
    text-align: center;
    padding: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

@media (min-width: 990px) {
    .space-map {
        margin-top: -40px !important;
    }
}

.modal-contact {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-contact-content {
    background-color: #fefefe;
    margin: 50px auto auto auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    overflow: auto;
    max-height: 550px;
    transform: translateY(-30px);
    border-radius: 8px !important;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.4);
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-contact.show {
    display: block;
    opacity: 1;
}

.modal-contact.show .modal-contact-content {
    transform: translateY(0);
    opacity: 1;
}

.input-info-save {
    font-size: 12px !important;
}

h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2a2a2a !important;
}

h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #3a3a3a !important;
}

h4 {
    font-size: 18px !important;
}

td,
p {
    font-size: 16px !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {

    td,
    p {
        font-size: 12px !important;
    }
}

@media (max-width: 789px) {
    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 95px;
        background: rgba(0, 0, 0, 0.125);
        /*backdrop-filter: blur(10px); Blur effect */
        text-align: center;
        padding: 10px;
        box-sizing: border-box;
    }

    .image-container {
        width: 100%;
        height: 400px;
        position: relative;
        overflow: hidden;
        border: 2px solid #F0F0F0;
        box-sizing: border-box;
    }

    .image-container img {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: auto;
    }

    .package,
    .package-2 {
        position: absolute !important;
        top: 307.5px !important;
        height: 85px !important;
        opacity: 1 !important;
        z-index: 99 !important;
    }

    .package {
        inset-inline-start: 150px !important;
    }

    .package-2 {
        inset-inline-start: 60px !important;
    }

    .space-ragip {
        padding: 5px;
    }
}

@media (min-width: 789px) {
    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 115px;
        background: rgba(0, 0, 0, 0.125);
        /*backdrop-filter: blur(10px); Blur effect */
        text-align: center;
        padding: 10px;
        box-sizing: border-box;
    }

    .image-container {
        width: 100%;
        height: 500px;
        position: relative;
        overflow: hidden;
        border: 2px solid #F0F0F0;
        box-sizing: border-box;
    }

    .image-container img {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: auto;
    }

    .package,
    .package-2 {
        position: absolute;
        top: 390px !important;
        height: 100px !important;
        opacity: 1 !important;
        z-index: 99 !important;
    }

    .package {
        inset-inline-start: 170px !important;
    }

    .package-2 {
        inset-inline-start: 60px !important;
    }
}

.one-row {
    margin-top: 4px;
    padding: 0 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    justify-content: center;
}

@media (max-width: 765px) {

    .btnAppS,
    .btnApp {
        font-size: 16px;
        font-weight: 700 !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

@media (max-width: 789px) {
    .padding-start-0 {
        padding: 0 !important;
        margin: 0 !important;
    }
}

:root {
    --ltn__color-1: transparent;
}

.slick-dots {
    margin-top: 8px
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-header,
.accordion-header-s {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 15px 10px;
    margin: 0;
    text-align: start;
    display: flex;
    align-items: center;
    justify-content: start;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header-s {
    font-weight: 700;
    padding-bottom: 12px;
    font-size: 16px;
}

.accordion-header:hover {
    color: #2fa7df;
}

.accordion-header .symbol,
.accordion-header-s .symbol {
    font-size: 20px;
    margin-right: 10px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    text-align: start;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.accordion-content p {
    padding: 5px;
    margin: 0;
}

ul.s {
    list-style-type: none;
    padding: 0;
}

ul.s li {
    display: block;

    padding-block: 5px;
    padding-inline-start: 22px;
    padding-inline-end: 5px;
    margin: 0;
    position: relative;
}

ul.s li::before {
    content: "-";
    width: 16px;
    height: 16px;
    position: absolute;

    inset-inline-start: 0;
    top: 5px;
}

.accordion-content.open {
    max-height: none;
    padding: 15px 10px;
    overflow: hidden;
}

.accordion-content table {
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    word-break: break-word;
}

.accordion-content td,
.accordion-content th {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    vertical-align: top;
    padding: 4px 6px;
}

.accordion-content img {
    max-width: 100%;
    height: auto;
}

.accordion-content>[class^="text-preview-"],
.accordion-content>[class^="text-full-"] {
    display: flow-root;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.accordion-content .accordion-text-hidden {
    display: none !important;
}

.accordion-content>[class^="text-preview-"]>*,
.accordion-content>[class^="text-full-"]>* {
    max-width: 100%;
}

.show-more-btn-profile {
    display: block;
    align-items: center;
    justify-content: center;
    clear: both;
    float: none !important;
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 100%;
    margin-top: 16px !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 4px;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {

    .accordion-content>[class^="text-preview-"],
    .accordion-content>[class^="text-full-"] {
        margin-bottom: 18px;
    }

    .show-more-btn-profile {
        display: block;
        width: fit-content;
        max-width: 100%;
    }
}

.accordion-header.active {
    color: #2fa7df;
}

.procedure-name,
.price-area {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
}

@media (max-width: 768px) {

    .procedure-name,
    .price-area {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border: none;
    }

    .price-area {
        text-align: left;
        padding: 5px 0;
    }

    tr.acto {
        display: block;
        margin-bottom: 10px;
        margin-top: 25px;
        border: none;
        height: auto;
        border-radius: none;
    }

    .card.acto {
        margin-bottom: 10px;
        border: none;
    }

    .hideonmob {
        display: none !important;
    }

    h3 {
        font-size: 18px
    }
}

.program-container {
    background: white;
    width: 100%;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.accordion-ragip-mulla-musa {
    margin-bottom: 5px;
}

.accordion-ragip-mulla-musa-item {
    margin-bottom: 10px;
}

.accordion-ragip-mulla-musa-button {
    width: 100%;
    text-align: left;
    padding: 5px 15px;
    font-size: 16px;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    position: relative;
}

.accordion-main-button {
    border: 2px solid #e2e8f0;
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 16px;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
}

.accordion-main-button.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 2px solid #10b981;
    border-bottom: none;
    background-color: #f0fdf4;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.accordion-ragip-mulla-musa-button:hover,
.accordion-main-button:hover {
    background-color: #f8f9fa;
    border-color: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.procedure-enquire-btn {
    padding: 5px 5px;
    background: #de7623;
    color: #10b981;
    border: 2px solid #10b981;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.procedure-enquire-btn:hover {
    background: #10b981;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.accordion-ragip-mulla-musa-button .left-icon {
    margin-right: 10px;
    width: 25px;
}

.accordion-ragip-mulla-musa-button .arrow-icon {
    width: 15px;
    transition: transform 0.5s;
}

.accordion-ragip-mulla-musa-button.active .arrow-icon {
    transform: rotate(-180deg);
}

.accordion-ragip-mulla-musa-button.active .left-icon {
    color: rgba(10, 154, 154, 1);
}

.btn-info-package {
    display: flex;
    justify-content: start;
    align-items: center;
    color: #323232;
    font-size: 15px;
}

.accordion-ragip-mulla-musa-content {
    display: none;
    background-color: #f8f9fa;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.borderedcontentthis {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border: 2px solid #10b981;
    border-top: none;
    margin-top: 0;
}

.accordion-ragip-mulla-musa-content.show {
    display: block;
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.accordion-ragip-mulla-musa-content ul {
    list-style: none;
    padding: 0;
}

.accordion-ragip-mulla-musa-content ul li {
    padding: 0;
    margin: 0;
}

.price-section {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.discounted-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
    color: #f44336;
}

.discount-badge {
    background-color: #ff6d00;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 16px;
}

.personalized-offer-button {
    background-color: rgba(10, 154, 154, 1);
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    margin-top: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.personalized-offer-button:hover {
    background-color: #2fa7df;
}

.add-to-list-button {
    background-color: transparent;
    color: rgba(10, 154, 154, 1);
    border: 1px solid rgba(10, 154, 154, 1);
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
}

.add-to-list-button:hover {
    background-color: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

/* Modern Doctor Profile Design */
.doctor-header-row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.doctor-header-row>[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    /* Custom widths removed to rely on Bootstrap grid */
}

@media (min-width: 768px) and (max-width: 991px) {
    .doctor-header-main {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .doctor-header-map-col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {

    .doctor-header-main,
    .doctor-header-map-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .doctor-page-menu {
        display: flex;
        gap: 8px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.8);
        padding: 8px;
        margin-bottom: 30px;
        position: sticky;
        top: 80px;
        z-index: 10;
        overflow-x: auto;
        white-space: nowrap;
        backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        /* Force refresh indicator */
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .doctor-page-menu::-webkit-scrollbar {
        height: 2px;
    }

    .doctor-page-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .doctor-page-menu::-webkit-scrollbar-thumb {
        background: rgba(108, 117, 125, 0.3);
        border-radius: 10px;
    }

    .doctor-page-menu a {
        color: #374151;
        font-weight: 600;
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 25px;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        font-size: 14px;
        min-width: fit-content;
        background: transparent;
        border: 1px solid transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .doctor-page-menu a svg {
        transition: transform 0.3s ease;
        opacity: 0.7;
    }

    .doctor-page-menu a:hover svg {
        transform: scale(1.2);
        opacity: 1;
    }

    .doctor-page-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }

    .doctor-page-menu a:hover::before {
        left: 100%;
    }

    .doctor-page-menu a:hover,
    .doctor-page-menu a:focus {
        color: #ffffff;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .doctor-page-menu a:active {
        transform: translateY(0) scale(1);
        transition: transform 0.1s;
    }

    /* Additional override for cache busting */
    .doctor-menu-v2 {
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.8) !important;
        padding: 8px !important;
        backdrop-filter: blur(20px) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

    .doctor-menu-v2 a {
        color: #374151 !important;
        padding: 12px 20px !important;
        border-radius: 25px !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .doctor-menu-v2 a svg {
        flex-shrink: 0;
    }

    .doctor-menu-v2 a:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #ffffff !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3) !important;
    }

    .doctor-menu-v2 a:hover svg {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }

    .doctor-anchor {
        scroll-margin-top: var(--doctor-anchor-offset, 120px);
    }
}

.doctor-header-row>[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.doctor-header-map {
    width: 100%;
}

@media (min-width: 992px) {
    .doctor-header-map {
        width: auto;
    }
}

.doctor-profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: visible !important;
    --doctor-section-gutter: 15px;
    --doctor-section-gap: 24px;
}

.doctor-section-container {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 992px) {
    .doctor-section-container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .doctor-section-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.doctor-section-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 14px;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: 1;
    overflow: visible !important;
    transform: none !important;
    will-change: auto;
}

.row {
    overflow: visible !important;
}

.specializations-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 992px) {
    .doctor-section-container {
        margin-left: var(--doctor-section-gutter);
        margin-right: var(--doctor-section-gutter);
        margin-bottom: var(--doctor-section-gap);
    }

    .doctor-section-row {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: var(--doctor-section-gap);
        margin-left: var(--doctor-section-gutter) !important;
        margin-right: var(--doctor-section-gutter) !important;
        margin-bottom: var(--doctor-section-gap);
        padding-left: 0;
        padding-right: 0;
    }

    .doctor-section-row>[class*="col-"] {
        width: auto;
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .doctor-section-row> :only-child {
        grid-column: 1 / -1;
    }

    .doctor-header-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 0;
    }

    .opening-hours-wrapper,
    .videos-wrapper {
        margin: 0;
    }

    .profile-nav {
        margin: var(--doctor-section-gap) var(--doctor-section-gutter);
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
    }

    .reviews-section-modern {
        margin: 0;
        padding: 24px;
    }

    #map-div {
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .doctor-section-row {
        padding-left: 0;
        padding-right: 0;
    }
}

.doctor-header-row {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.doctor-header-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    height: 100%;
    border-right: 1px solid #f0f0f0;
}

.doctor-avatar-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.doctor-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    position: relative;
}

.doctor-verified-badge {
    position: absolute;
    bottom: 15px;
    right: 40px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a7fa8 0%, #2ea6df 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.doctor-stats-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    align-items: stretch;
}

.doctor-years-exp {
    flex: 1;
    text-align: center;
    margin-top: 0;
    background: linear-gradient(135deg, #e6f7fc 0%, #c9eefa 100%);
    padding: 12px 10px;
    border-radius: 8px;
    border: 2px solid #2ea6df;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.doctor-years-exp-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e40af;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.doctor-years-exp-label {
    font-size: 11px;
    color: #2ea6df;
    font-weight: 600;
    margin: 4px 0 0 0;
    line-height: 1.1;
    white-space: nowrap;
}

.doctor-rating-box {
    flex: 1;
    text-align: center;
    margin-top: 0;
    /* background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); */
    padding: 10px 8px;
    border-radius: 8px;
    border: 1.5px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.doctor-rating-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0.5;
}

.doctor-rating-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.doctor-rating-box p {
    white-space: nowrap;
    margin: 0;
}

.doctor-rating-box .stars {
    color: #0e969a;
    font-size: 14px;
    margin: 2px 0;
    position: relative;
    z-index: 1;
}

.doctor-info-section {
    flex: 1;
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-name-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-name-title h1 .doctor-name-prefix {
    color: #2563eb;
}

.doctor-name-title h1 .doctor-name-main {
    color: #1a202c;
}

.doctor-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
}

.doctor-verified-badge-icon {
    width: 22px;
    height: 22px;
    cursor: help;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
    vertical-align: middle;
    margin-top: 0;
}

.doctor-verified-badge-icon:hover {
    transform: scale(1.2);
}

.doctor-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
}

.doctor-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.doctor-info-list .doctor-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-info-list .rating-stars-fa {
    color: #fbbf24;
    font-size: 14px;
    display: inline-flex;
    gap: 2px;
}

.doctor-info-list .rating-stars-fa .fas.fa-star,
.doctor-info-list .rating-stars-fa .fas.fa-star-half-alt {
    color: #fbbf24;
}

.doctor-info-list .rating-stars-fa .far.fa-star {
    color: #d1d5db;
}

.doctor-info-list .rating-text {
    margin-right: 4px;
    font-weight: 700;
    font-size: 20px;
    color: #1f2937;
}

.doctor-info-list .reviews-count {
    color: #6b7280;
    font-size: 13px;
}

.doctor-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #10b981;
}

.doctor-description p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
}

.doctor-cta-button {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.doctor-cta-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Action Buttons */
.doctor-action-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.doctor-call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.doctor-call-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.doctor-econsult-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.doctor-econsult-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.doctor-book-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.doctor-book-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.doctor-action-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .doctor-action-btn {
        min-width: 100%;
    }
}

.map-card-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-location-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
}

.map-location-text svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #718096;
    margin-top: 2px;
}

.map-hospital-link {
    margin-top: 6px;
    font-size: 13px;
}

.map-hospital-link a {
    color: #0066cc;
    text-decoration: underline;
}

.map-container-modern {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;
}

/* Specializations Modern Design */
.specializations-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Blog Content Styles */
.blog-content-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-content-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.blog-body {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

.blog-preview {
    margin-bottom: 10px;
}

.blog-full {
    margin-bottom: 10px;
}

.blog-toggle-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.blog-toggle-btn:hover {
    background: #1d4ed8;
}

.section-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.section-title-modern span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .section-title-modern {
        font-size: 16px;
    }
}

.specialization-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    font-weight: 600;
    color: #0369a1;
    margin-right: 8px;
    margin-bottom: 8px;
}

.specialization-badge.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.specialization-badge.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.opening-hours-wrapper {
    width: 100%;
    margin: 15px auto;
}

.videos-wrapper {
    width: 100%;
    margin: 15px auto;
}

.layout-row::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 992px) {
    .opening-hours-wrapper {
        width: 100%;
    }

    .videos-wrapper {
        width: 100%;
    }
}

/* Opening Hours Modern */
.opening-hours-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.day-schedule-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.day-name-modern {
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
}

.day-time-modern {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
}

.available-247 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
}

/* Blog Content Modern */
.blog-content-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-content-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.blog-content-modern .blog-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

/* Portfolio Gallery Slider */
.portfolio-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Gallery carousel styling - Based on blog-page.php working version */
.gallery-slider-container {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #fff;
}

.gallery-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-slide {
    position: relative;
    display: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.gallery-slide.active {
    display: block;
    opacity: 1;
}

.gallery-slide.fade-out {
    opacity: 0;
}

.gallery-slide.fade-in {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    min-height: 500px;
    max-height: 700px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f5f5f5;
    transition: transform 0.3s;
}

.gallery-slide:hover img:not(.plus-18-blurred img) {
    transform: scale(1.02);
}

.gallery-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5));
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* +18 Content Blur and Badge */
.gallery-slide.plus-18-blurred img {
    filter: blur(20px);
    transition: filter 0.3s;
}

.gallery-slide.plus-18-blurred:hover img {
    filter: blur(22px);
}

.gallery-slide.plus-18-unblurred img {
    filter: none !important;
}

.plus-18-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(71, 85, 105, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.4);
    pointer-events: none;
    z-index: 5;
}

.plus-18-badge svg {
    width: 32px;
    height: 32px;
}

.gallery-slide.plus-18-unblurred .plus-18-badge {
    display: none;
}

/* Slide animation for carousel */
.gallery-slide-next,
.gallery-slide-prev {
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
}

.gallery-slide-next {
    transform: translateX(100%);
}

.gallery-slide-prev {
    transform: translateX(-100%);
}

.gallery-slide-next.gallery-slide-start,
.gallery-slide-prev.gallery-slide-end {
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.gallery-slide.active.gallery-slide-end {
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out;
}

.gallery-slide.active.gallery-slide-start {
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 15px;
}

.slider-btn-next {
    right: 15px;
}

.slider-btn::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.slider-btn:hover::before {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.slider-btn-prev::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%232d3748' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.146a.5.5 0 0 1 0 .708L5.207 8l6.147 6.146a.5.5 0 0 1-.708.708l-6.5-6.5a.5.5 0 0 1 0-.708l6.5-6.5a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.slider-btn-next::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%232d3748' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.146a.5.5 0 0 1 .708 0l6.5 6.5a.5.5 0 0 1 0 .708l-6.5 6.5a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.slider-btn svg {
    display: none;
}

/* RTL support for carousel arrows */
[dir="rtl"] .slider-btn-prev {
    left: auto !important;
    right: 15px !important;
}

[dir="rtl"] .slider-btn-next {
    right: auto !important;
    left: 15px !important;
}

[dir="rtl"] .slider-btn-prev::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%232d3748' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.146a.5.5 0 0 1 .708 0l6.5 6.5a.5.5 0 0 1 0 .708l-6.5 6.5a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

[dir="rtl"] .slider-btn-next::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%232d3748' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.146a.5.5 0 0 1 0 .708L5.207 8l6.147 6.146a.5.5 0 0 1-.708.708l-6.5-6.5a.5.5 0 0 1 0-.708l6.5-6.5a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Mobile Responsive Styles for Gallery Slider */
@media (max-width: 768px) {
    .gallery-slider-container {
        margin: 20px 10px;
    }

    .gallery-slide img {
        min-height: 400px;
    }

    .gallery-slide-title {
        font-size: 14px;
        padding: 12px 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn::before {
        width: 40px;
        height: 40px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    [dir="rtl"] .slider-btn-prev {
        left: auto !important;
        right: 10px !important;
    }

    [dir="rtl"] .slider-btn-next {
        right: auto !important;
        left: 10px !important;
    }
}

/* show slider dots on larger viewports */
/* keep dots visible on all devices but adjust styling for larger screens */
@media (min-width: 769px) {
    .slider-dots {
        margin-top: 16px;
        gap: 10px;
    }

    .slider-dot {
        width: 12px;
        height: 12px;
    }
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.slider-dot.active {
    background: #10b981;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.18);
    transform: scale(1.12);
}

@media (max-width: 480px) {
    .gallery-slide img {
        min-height: 350px;
    }

    .gallery-slide-title {
        font-size: 13px;
        padding: 10px 12px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn::before {
        width: 36px;
        height: 36px;
    }

    .plus-18-badge {
        padding: 15px 20px;
        font-size: 18px;
    }

    .plus-18-badge svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 390px) {
    .gallery-slide img {
        min-height: 320px;
    }

    .gallery-slide-title {
        font-size: 12px;
        padding: 8px 10px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
    }

    .slider-btn::before {
        width: 32px;
        height: 32px;
    }

    .plus-18-badge {
        padding: 12px 16px;
        font-size: 16px;
    }

    .plus-18-badge svg {
        width: 20px;
        height: 20px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Certificates Section */
.certificates-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.certificate-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Mobile: horizontal snap slider */
@media (max-width: 768px) {
    .certificates-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 10px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        scrollbar-width: none;
    }

    .certificates-grid::-webkit-scrollbar {
        display: none;
    }

    .certificate-item {
        flex: 0 0 72vw;
        max-width: 260px;
        min-width: 180px;
        width: 72vw;
        padding-bottom: 72vw;
        scroll-snap-align: start;
        border-radius: 16px;
    }
}

/* Certificate Lightbox Modal */
.certificate-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 200000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cert-modal-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    box-sizing: border-box;
}

/* Close button */
.certificate-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.certificate-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Prev / Next arrows */
.cert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.13);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.cert-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
}

.cert-nav-btn svg {
    pointer-events: none;
}

.cert-nav-prev {
    left: 10px;
}

.cert-nav-next {
    right: 10px;
}

.cert-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Image */
.certificate-modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    user-select: none;
    transition: opacity 0.25s ease;
}

/* Title + description below image */
.cert-modal-info {
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
}

.certificate-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.certificate-modal-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

/* Counter dots */
.cert-modal-dots {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    justify-content: center;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.cert-dot.active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 560px) {
    .cert-modal-inner {
        padding: 14px 46px;
    }

    .cert-nav-btn {
        width: 38px;
        height: 38px;
    }

    .cert-nav-prev {
        left: 4px;
    }

    .cert-nav-next {
        right: 4px;
    }

    .certificate-modal-image {
        max-height: 58vh;
        border-radius: 10px;
    }

    .certificate-modal-title {
        font-size: 15px;
    }
}

/* +18 Confirmation Modal */
.plus18-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.plus18-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(71, 85, 105, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plus18-modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.plus18-modal-header svg {
    width: 64px;
    height: 64px;
    color: #64748b;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.plus18-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #475569;
    margin: 0;
}

.plus18-modal-body {
    padding: 30px;
}

.plus18-modal-text {
    color: #4b5563;
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.plus18-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.plus18-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.plus18-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.plus18-btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.plus18-btn-confirm {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.plus18-btn-confirm:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

@media (max-width: 480px) {
    .plus18-modal-content {
        max-width: 100%;
    }

    .plus18-modal-header {
        padding: 20px;
    }

    .plus18-modal-header svg {
        width: 48px;
        height: 48px;
    }

    .plus18-modal-title {
        font-size: 20px;
    }

    .plus18-modal-body {
        padding: 20px;
    }

    .plus18-modal-text {
        font-size: 14px;
    }

    .plus18-modal-buttons {
        flex-direction: column;
    }

    .plus18-btn {
        width: 100%;
    }
}

/* Reviews Section Styles */
.reviews-section-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.review-summary {
    display: grid;
    grid-template-columns: 175px 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

.review-score-panel {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-bars-panel {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-trust-panel {
    display: flex;
    flex-direction: column;
}

.review-score-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.review-score-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    font-size: 18px;
    color: #ffc107;
    margin-bottom: 8px;
}

.review-score-stars span {
    color: #ffc107;
}

.review-score-stars span.muted {
    color: #cbd5e0;
}

.review-score-label {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 6px;
}

.review-count {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.review-breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-breakdown-row:last-child {
    margin-bottom: 0;
}

.review-breakdown-row>span:first-child {
    min-width: 70px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.review-breakdown-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.review-breakdown-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.review-breakdown-percent {
    min-width: 45px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

[dir="rtl"] .doctor-info-list .rating-stars-fa,
[dir="rtl"] .review-score-stars {
    flex-direction: row-reverse;
}

[dir="rtl"] .review-breakdown-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .review-breakdown-row>span:first-child,
[dir="rtl"] .review-breakdown-percent {
    text-align: left;
}

[dir="rtl"] .review-breakdown-bar span {
    margin-left: auto;
    background: linear-gradient(270deg, #10b981 0%, #059669 100%);
}

.trust-card {
    background: linear-gradient(135deg, #e6f7fc 0%, #c9eefa 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #2ea6df;
    flex: 1;
}

.trust-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2ea6df 0%, #1a7fa8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: white;
}

.trust-card strong {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    display: block;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.trust-card a {
    color: #2ea6df;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.trust-card a:hover {
    color: #1a7fa8;
}

.review-item-modern {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.review-item-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.review-item-hidden {
    display: none;
}

.show-more-reviews-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 32px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.show-more-reviews-btn:hover {
    background: #2563eb;
}

.show-more-reviews-btn.hidden {
    display: none;
}

.review-header-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.reviewer-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.review-stars span {
    color: #d1d5db;
    font-size: 16px;
}

.review-stars span.filled {
    color: #ffc107;
}

.reviewer-photos {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.reviewer-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.reviewer-photos img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-body {
    margin-bottom: 0;
}

.review-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.review-footer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.review-show-more {
    color: #2ea6df;
    background: none;
    border: none;
    padding: 4px 0;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.review-show-more:hover {
    color: #2563eb;
    text-decoration: underline;
}

.review-reply {
    margin-left: 56px;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
}

.review-reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
    flex-shrink: 0;
}

.review-reply-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.review-reply-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.review-reply-date {
    color: #5f6368;
    font-size: 12px;
}

.review-reply-content {
    color: #374151;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.reviews-list-container {
    margin-top: 20px;
}

/* Profile Navigation Menu (Hospital Style) */
.profile-nav {
    position: sticky;
    top: var(--nav-top, 0px);
    z-index: 999;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.profile-nav__inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.profile-nav__inner::-webkit-scrollbar {
    display: none;
}

.profile-nav__link {
    flex: 0 0 auto;
    padding: 14px 18px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.profile-nav__link svg {
    flex-shrink: 0;
    color: rgb(46, 166, 223);
}

.profile-nav__link:hover,
.profile-nav__link.active {
    color: #2fa7df;
    border-bottom-color: #2fa7df;
    background: #f7fafc;
}

@media (max-width: 768px) {
    .profile-nav {
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 12px;
        margin-top: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
    }

    .profile-nav__inner {
        align-items: center;
        padding: 0 8px;
    }

    .profile-nav__link {
        padding: 10px 12px;
        font-size: 13px;
        gap: 4px;
        min-height: 46px;
    }

    .profile-nav__link svg {
        width: 15px;
        height: 15px;
    }

    .profile-nav.is-fixed {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        top: var(--nav-top, 0px);
    }
}

.profile-nav.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    top: var(--nav-top, 0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .doctor-header-card {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border-right: none;
        padding: 20px 8px;
    }

    .doctor-avatar-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: transparent;
        border-radius: 0;
        padding: 20px 8px 0;
        margin-bottom: 10px;
    }

    .doctor-profile-container {
        display: flex;
        flex-direction: column;
    }

    .doctor-header-row {
        display: flex;
        flex-direction: column;
    }

    .doctor-header-map-col {
        order: 998;
    }

    .opening-hours-wrapper {
        order: 999;
    }

    .reviews-section-modern {
        order: 1000;
    }

    .gallery-slide {
        min-width: 260px;
        height: 350px;
    }

    .gallery-slide-title {
        padding: 12px 15px;
        font-size: 14px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .certificate-modal-content {
        max-width: 95%;
    }

    .certificate-modal-title {
        font-size: 18px;
    }

    .doctor-avatar {
        width: 200px;
        height: 200px;
        object-fit: contain;
    }

    .doctor-verified-badge {
        width: 20px;
        height: 20px;
        bottom: 9px;
        right: 20px;
    }

    .doctor-stats-row {
        display: flex;
        gap: 8px;
        width: 85%;
        max-width: 80px;
        margin: 10px auto 0;
        justify-content: center;
        align-items: stretch;
    }

    .doctor-years-exp {
        flex: 1;
        margin-top: 0;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        padding: 10px 8px;
        border-radius: 8px;
        border: 1.5px solid #3b82f6;
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
        width: 100%;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .doctor-years-exp-value {
        font-size: 18px;
        color: #1e40af;
        margin: 0;
        line-height: 1.1;
        white-space: nowrap;
    }

    .doctor-years-exp-label {
        font-size: 9px;
        color: #3b82f6;
        font-weight: 600;
        margin: 3px 0 0 0;
        line-height: 1.1;
        white-space: nowrap;
    }

    .doctor-rating-box {
        flex: 1;
        margin-top: 0;
        padding: 4px 8px;
        border-radius: 8px;
        width: 50%;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 80px;
    }

    .doctor-info-section {
        width: 100%;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 8px;
    }

    .doctor-rating-box h3 {
        font-size: 18px;
        white-space: nowrap;
    }

    .doctor-rating-box p:first-of-type {
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #92400e !important;
        white-space: nowrap;
    }

    .doctor-rating-box p:last-of-type {
        font-size: 8px !important;
        white-space: nowrap;
    }

    .doctor-name-title h1 {
        font-size: 22px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .review-summary {
        grid-template-columns: 1fr;
    }

    .review-summary-main {
        flex-direction: column;
        align-items: stretch;
    }

    .review-score-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .review-stars {
        margin-left: 0;
    }

    .reviews-section-modern {
        padding: 16px 5px;
    }

    .reviews-list-container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Doctor profile refresh */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --ic-brand-teal: #12a6a6;
    --ic-brand-teal-deep: #0b8c92;
    --ic-brand-blue: #2c9cda;
    --ic-brand-blue-deep: #1f6fb3;
    --ic-brand-orange: #eb8a2f;
    --ic-brand-orange-deep: #d96f1e;
    --ic-ink: #102033;
    --ic-muted: #55687d;
    --ic-panel: rgba(255, 255, 255, 0.9);
    --ic-panel-border: rgba(18, 166, 166, 0.14);
    --ic-panel-shadow: 0 24px 56px rgba(16, 32, 51, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(235, 138, 47, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(18, 166, 166, 0.18), transparent 30%),
        radial-gradient(circle at 20% 35%, rgba(44, 156, 218, 0.1), transparent 24%),
        linear-gradient(180deg, #f7fbfb 0%, #eef7fa 42%, #fbfdfe 100%);
    color: var(--ic-ink);
}

.body-wrapper,
.space-doctors-area {
    max-width: 100%;
    overflow-x: hidden;
}

.space-doctors-area {
    background: transparent !important;
    padding-bottom: 88px !important;
}

.doctor-profile-container {
    max-width: 1320px;
    position: relative;
    padding: 26px 14px 0;
    overflow-x: hidden;
}

.doctor-header-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.doctor-header-row>[class*="col-"],
.doctor-section-row>[class*="col-"] {
    min-width: 0;
}

.doctor-profile-container::before,
.doctor-profile-container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.doctor-profile-container::before {
    width: 240px;
    height: 240px;
    top: 72px;
    left: -110px;
    background: radial-gradient(circle, rgba(18, 166, 166, 0.18), transparent 72%);
}

.doctor-profile-container::after {
    width: 280px;
    height: 280px;
    right: -130px;
    top: 360px;
    background: radial-gradient(circle, rgba(44, 156, 218, 0.18), transparent 70%);
}

.doctor-profile-container>* {
    position: relative;
    /* z-index: 1; */
}

.doctor-breadcrumb-shell {
    margin-bottom: 16px;
    max-width: 100%;
}

.doctor-breadcrumbs {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 10px 16px;
    margin: 0;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 248, 0.88));
    border: 1px solid rgba(18, 166, 166, 0.14);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.doctor-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.doctor-breadcrumbs li {
    min-width: 0;
    flex: 0 0 auto;
}

.doctor-breadcrumbs li:last-child {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.doctor-breadcrumb-separator {
    color: #cbd5e0;
    user-select: none;
}

.doctor-breadcrumb-current {
    color: #11b881;
    font-weight: 600;
}

/* .doctor-header-card, */
.doctor-info-section,
.specializations-modern,
.map-card-modern,
.opening-hours-modern,
.portfolio-section,
.certificates-section,
.reviews-section-modern,
.blog-content-modern {
    background: var(--ic-panel);
    border: 1px solid var(--ic-panel-border);
    border-radius: 28px;
    box-shadow: var(--ic-panel-shadow);
    backdrop-filter: blur(18px);
}

.specializations-modern,
.map-card-modern,
.opening-hours-modern,
.portfolio-section,
.certificates-section,
.reviews-section-modern,
.blog-content-modern {
    padding: 28px;
    overflow: hidden;
}

.specializations-modern::before,
.map-card-modern::before,
.opening-hours-modern::before,
.portfolio-section::before,
.certificates-section::before,
.reviews-section-modern::before,
.blog-content-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(18, 166, 166, 0), rgba(18, 166, 166, 0.9), rgba(44, 156, 218, 0.78), rgba(235, 138, 47, 0.7), rgba(235, 138, 47, 0));
}

.doctor-header-card {
    min-height: 100%;
    padding: 26px 24px 28px;
    /* border: 1px solid rgba(18, 166, 166, 0.3); */
    /* box-shadow:
                0 48px 96px rgba(6, 16, 26, 0.55),
                0 0 0 1px rgba(18, 166, 166, 0.08) inset,
                0 1px 0 rgba(100, 220, 220, 0.18) inset; */
    color: #dff5f5;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
}

.doctor-header-card::before,
.doctor-header-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.doctor-header-card::before {
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--ic-brand-teal) 0%, var(--ic-brand-blue) 52%, var(--ic-brand-orange) 100%);
    box-shadow: 0 0 28px rgba(18, 166, 166, 0.65);
}

.doctor-header-card::after {
    width: 400px;
    height: 400px;
    border-radius: 999px;
    top: -220px;
    right: -170px;
    background: radial-gradient(circle, rgba(44, 156, 218, 0.22), transparent 62%);
}

.doctor-card-topline,
.doctor-avatar-section {
    position: relative;
    z-index: 1;
}

.doctor-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    z-index: 1;
}

.doctor-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    /* background: rgba(18, 166, 166, 0.2); */
    border: 1px solid rgba(18, 166, 166, 0.38);
    color: #095e5be5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(18, 166, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.doctor-card-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5af0ea;
    box-shadow: 0 0 8px #5af0ea;
    animation: ic-pulse 2.4s ease-in-out infinite;
}

@keyframes ic-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.75);
    }
}

.doctor-card-subtitle {
    margin: 11px 0 0;
    color: #11b881;
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
}

.doctor-avatar-section {
    gap: 20px;
    padding: 12px 0 4px;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.doctor-avatar-shell {
    position: relative;
    display: inline-flex;
    width: min(100%, 200px);
    aspect-ratio: 1;
    align-self: center;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ic-brand-orange) 0%, var(--ic-brand-teal) 45%, var(--ic-brand-blue) 100%);
    box-shadow:
        0 0 0 5px rgba(18, 166, 166, 0.12),
        0 0 40px rgba(18, 166, 166, 0.28),
        0 20px 48px rgba(6, 16, 26, 0.5);
}

.doctor-avatar-shell::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--ic-brand-orange) 0%, var(--ic-brand-teal) 45%, var(--ic-brand-blue) 100%);
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
}

.doctor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: cover;
    object-position: center top;
    border: none;
    background: #e8f5f0;
}

.doctor-verified-badge {
    bottom: -10px;
    right: -10px;
    top: auto;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(15, 20, 30, 0.55);
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--ic-brand-orange) 0%, var(--ic-brand-orange-deep) 100%);
    box-shadow: 0 0 16px rgba(235, 138, 47, 0.5), 0 8px 20px rgba(235, 138, 47, 0.3);
}

.doctor-card-caption {
    margin: 2px 0 0;
    color: #11b881;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Desktop: horizontal layout for header card */
@media (min-width: 769px) {
    .doctor-header-card {
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 36px;
    }

    .doctor-card-topline {
        flex: 1;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .doctor-card-subtitle {
        max-width: none;
        font-size: 15px;
    }

    .doctor-avatar-section {
        flex: 0 0 auto;
        width: 200px;
        padding: 0;
    }
}

.doctor-stats-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.doctor-years-exp,
.doctor-rating-box {
    min-height: 100px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
}

.doctor-years-exp {
    background: linear-gradient(150deg, rgba(18, 166, 166, 0.76) 0%, rgba(44, 157, 218, 0.68) 100%);
    border: 1px solid rgba(18, 166, 166, 0.38);
    box-shadow: 0 0 22px rgba(18, 166, 166, 0.65), inset 0 1px 0 rgba(9, 180, 180, 0.67);
}

.doctor-rating-box {
    background: linear-gradient(150deg, rgba(235, 138, 47, 0.26) 0%, rgba(217, 111, 30, 0.16) 100%);
    border: 1px solid rgba(235, 138, 47, 0.38);
    box-shadow: 0 0 22px rgba(235, 138, 47, 0.2), inset 0 1px 0 rgba(255, 200, 120, 0.14);
}

.doctor-years-exp-value {
    color: #7df4f0;
    font-size: 24px;
    letter-spacing: -0.03em;
    text-shadow: 0 0 18px rgba(18, 166, 166, 0.6);
}

.doctor-rating-box h3 {
    color: #ffc97a;
    font-size: 24px;
    letter-spacing: -0.03em;
    text-shadow: 0 0 18px rgba(215, 109, 10, 0.93);
}

.doctor-years-exp-label {
    color: rgba(180, 240, 238, 0.78) !important;
}





.doctor-info-section {
    min-height: 100%;
    padding: 34px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.doctor-info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(18, 166, 166, 0.12), rgba(44, 156, 218, 0.04) 58%, rgba(18, 166, 166, 0));
    pointer-events: none;
}

.doctor-info-section>* {
    position: relative;
    z-index: 1;
}

.doctor-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-name-title h1 {
    font-size: clamp(2rem, 3.4vw, 3.2rem) !important;
    line-height: 1.08;
    letter-spacing: -0.04em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.doctor-name-title h1 .doctor-name-prefix {
    color: var(--ic-brand-teal-deep);
}

.doctor-specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 11px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18, 166, 166, 0.12), rgba(44, 156, 218, 0.12));
    border: 1px solid rgba(18, 166, 166, 0.14);
    color: var(--ic-brand-teal-deep) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.doctor-verified-badge-icon {
    width: 28px;
    height: 28px;
}

.doctor-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.doctor-info-list li {
    min-height: 88px;
    margin: 0;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 248, 248, 0.95));
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.05);
}

.doctor-info-list li:last-child {
    grid-column: 1 / -1;
}

.doctor-info-icon {
    width: 40px;
    height: 40px;
    margin-top: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(18, 166, 166, 0.14), rgba(44, 156, 218, 0.14));
    color: var(--ic-brand-teal-deep);
}

.doctor-info-list li>div {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}

.doctor-info-list strong {
    display: block;
    margin-bottom: 4px;
    color: #102033;
}

.doctor-rating-stars {
    width: 100%;
    justify-content: space-between;
}

.doctor-info-list .rating-text {
    margin-right: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.doctor-description {
    margin-top: 22px;
    padding: 22px 24px;
    border: 1px solid rgba(18, 166, 166, 0.14);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(231, 248, 247, 0.78), rgba(245, 251, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.doctor-description p {
    font-size: 15px !important;
    line-height: 1.75;
    color: #44556a;
}

.doctor-action-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.doctor-action-btn {
    min-height: 60px;
    min-width: 0;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.doctor-action-btn svg {
    margin-right: 0 !important;
}

.doctor-call-btn {
    background: linear-gradient(135deg, var(--ic-brand-teal) 0%, var(--ic-brand-teal-deep) 100%);
}

.doctor-econsult-btn {
    background: linear-gradient(135deg, var(--ic-brand-blue-deep) 0%, var(--ic-brand-blue) 100%);
}

.doctor-book-btn {
    background: linear-gradient(135deg, var(--ic-brand-orange) 0%, var(--ic-brand-orange-deep) 100%);
    box-shadow: 0 12px 24px rgba(235, 138, 47, 0.24);
}

.profile-nav {
    position: sticky;
    top: var(--nav-top, 0px);
    z-index: 999;
    margin: 20px 15px 28px;
    border: 1px solid rgba(18, 166, 166, 0.14);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 248, 0.86));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.profile-nav__inner {
    gap: 8px;
    padding: 8px;
}

.profile-nav__link {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 600;
}

.profile-nav__link:hover,
.profile-nav__link.active {
    background: #11b881;
    color: #ffffff;
    border-color: rgba(18, 166, 166, 0.16);
    box-shadow: 0 12px 20px rgba(18, 166, 166, 0.18);
}

.profile-nav__link:hover svg,
.profile-nav__link.active svg {
    color: #ffffff;
}

.section-title-modern {
    margin-bottom: 22px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-title-modern svg {
    width: 22px;
    height: 22px;
    padding: 10px;
    border-radius: 14px;
    background: #11b881;
    color: #ffffff;
    box-sizing: content-box;
    box-shadow: 0 12px 20px rgba(18, 166, 166, 0.2);
}

.accordion {
    gap: 12px;
}

.accordion-header,
.accordion-header-s {
    border-radius: 18px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f1f8f8 100%);
    padding: 17px 20px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ic-ink);
}

.accordion-header .symbol {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 12px;
    background: rgba(18, 166, 166, 0.1);
    color: var(--ic-brand-teal-deep);
    font-weight: 700;
}

.accordion-header.active,
.accordion-header:hover {
    color: var(--ic-ink);
    border-color: rgba(18, 166, 166, 0.22);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.accordion-content {
    margin-top: -6px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 250, 0.96));
}

.accordion-content.open {
    padding: 20px;
}

.accordion-content p,
.accordion-content li,
.accordion-content td {
    font-size: 15px !important;
    line-height: 1.7;
    color: #4b5c70;
}

.show-more-btn-profile {
    padding: 10px 16px !important;
    border-radius: 999px !important;
    background: #11b881 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(17, 184, 129, 0.2);
}

ul.s li {
    padding-top: 7px;
    padding-bottom: 7px;
}

ul.s li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    top: 14px;
    background: linear-gradient(135deg, var(--ic-brand-orange) 0%, var(--ic-brand-teal) 100%);
}

.map-card-modern {
    gap: 20px;
}

.map-location-text {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 248, 0.94));
}

.map-location-title {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #102033;
}

.map-location-subtitle {
    display: block;
    color: #5d7087;
    font-size: 14px;
    line-height: 1.6;
}

.map-hospital-link {
    margin-top: 8px;
    color: var(--ic-brand-blue-deep);
    font-weight: 600;
}

.map-container-modern {
    min-height: 320px;
    border-radius: 22px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.45);
}

.doctor-feature-grid {
    margin: 0 -8px 18px;
}

.doctor-feature-col {
    padding: 3px 8px;
}

.doctor-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* min-height: 88px; */
    padding: 4px;
    border-radius: 22px;
    /* border: 1px solid rgba(18, 166, 166, 0.12); */
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 248, 0.95)); */
    /* box-shadow: 0 16px 32px rgba(16, 32, 51, 0.05); */
}

.doctor-feature-icon {
    width: auto;
    height: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--ic-brand-teal);
    box-shadow: none;
    font-size: 16px;
}

.doctor-feature-text {
    display: block;
    margin-top: 2px;
    color: #425367;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

.doctor-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    padding: 5px 0 10px;
}

.doctor-payment-item {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 250, 0.96));
    box-shadow: 0 14px 24px rgba(16, 32, 51, 0.05);
}

.doctor-payment-item img {
    width: 52px !important;
    margin: 0 !important;
}

.doctor-media-grid {
    margin: 0 -8px;
}

.doctor-media-col {
    padding: 8px;
}

.doctor-video-card {
    height: 100%;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 248, 0.95));
    box-shadow: 0 16px 30px rgba(16, 32, 51, 0.05);
}

.doctor-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.doctor-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 18px;
}

.doctor-video-title {
    margin: 14px 4px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ic-ink);
    font-weight: 700;
}

@keyframes priceRowEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes priceRowReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.price-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px 22px;
    border-radius: 26px;
    border: 1px solid rgba(18, 166, 166, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 249, 248, 0.95));
    box-shadow: 0 16px 28px rgba(16, 32, 51, 0.06);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease,
        background 0.35s ease;
    animation: priceRowEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--price-row-index, 0) * 70ms);
}

.price-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 42%, rgba(47, 167, 223, 0.07) 100%);
    pointer-events: none;
}

.price-row:nth-child(odd),
.price-row:nth-child(even) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 249, 248, 0.95));
}

.price-row:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(231, 248, 247, 0.99));
    border-color: rgba(18, 166, 166, 0.24);
    box-shadow: 0 22px 38px rgba(18, 166, 166, 0.12);
}

.price-row.hidden-row-revealed {
    animation: priceRowReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.price-row-name,
.price-row-value,
.price-row-enquire {
    position: relative;
    z-index: 1;
}

.price-row-name {
    flex: 1 1 260px;
    font-size: 16px;
    font-weight: 800;
    color: #102033;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.price-row-value {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 56px;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 166, 166, 0.16);
    background: linear-gradient(135deg, rgba(255, 244, 232, 0.96), rgba(234, 248, 246, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 24px rgba(18, 166, 166, 0.09);
    font-size: 18px;
    color: var(--ic-brand-teal-deep);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-row-value::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
    transform: translateX(-140%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.price-row:hover .price-row-value {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 26px rgba(18, 166, 166, 0.13);
}

.price-row:hover .price-row-value::after {
    transform: translateX(140%);
}

.price-row-value-range {
    min-width: 172px;
    font-size: 16px;
}

.price-row-value-por {
    min-width: 176px;
    background: linear-gradient(135deg, rgba(47, 167, 223, 0.14), rgba(18, 166, 166, 0.12));
    color: var(--ic-brand-teal-deep);
}

.por-anim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ic-brand-teal-deep);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.01em;
}

.price-row-enquire {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

[dir="rtl"] .price-row-enquire {
    margin-right: auto;
}

.procedure-enquire-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 134px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(18, 166, 166, 0.08);
    border-radius: 999px;
    background: #de7623;
    box-shadow: 0 16px 28px rgba(18, 166, 166, 0.2);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.procedure-enquire-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 32%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}

.procedure-enquire-btn:hover,
.procedure-enquire-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(18, 166, 166, 0.28);
    color: #ffffff;
    filter: saturate(1.06);
}

.procedure-enquire-btn:hover::before,
.procedure-enquire-btn:focus::before {
    left: 118%;
}

.procedure-enquire-btn:focus {
    outline: none;
}

.doctor-prices-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.show-less-more-btn {
    width: auto;
    min-width: 148px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    background: #11b881;
    box-shadow: 0 14px 24px rgba(18, 166, 166, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.show-less-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(18, 166, 166, 0.24);
}

.show-less-more-btn.show-less-prices-btn {
    background: linear-gradient(135deg, #5f7288 0%, #48586d 100%);
    box-shadow: 0 14px 24px rgba(72, 88, 109, 0.22);
}

@media (max-width: 768px) {
    .price-row {
        gap: 12px;
        padding: 16px 14px;
        border-radius: 24px;
    }

    .price-row-name {
        flex-basis: 100%;
        font-size: 15px;
    }

    .price-row-value {
        min-width: 116px;
        min-height: 50px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .price-row-value-range,
    .price-row-value-por {
        min-width: 148px;
        font-size: 14px;
    }

    .price-row-enquire {
        margin-left: auto;
    }

    .procedure-enquire-btn {
        min-width: 122px;
        min-height: 46px;
        padding: 0 18px;
        font-size: 13px;
    }

    .por-anim {
        font-size: 11px;
        padding: 6px 10px;
    }

    .doctor-prices-actions {
        flex-direction: column;
        align-items: center;
    }

    .show-less-more-btn {
        min-width: 160px;
    }
}

.opening-hours-modern {
    padding: 28px;
}

.day-schedule-modern {
    margin-bottom: 10px;
    padding: 3px 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 248, 0.96));
}

.available-247 {
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(18, 166, 166, 0.2);
}

.accordion-main-button {
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 248, 0.96));
    box-shadow: 0 14px 26px rgba(16, 32, 51, 0.05);
}

.accordion-main-button.active {
    background: linear-gradient(135deg, rgba(18, 166, 166, 0.14), rgba(44, 156, 218, 0.08));
    border-color: rgba(18, 166, 166, 0.22);
    box-shadow: 0 18px 30px rgba(18, 166, 166, 0.14);
}

.borderedcontentthis {
    border-radius: 0 0 22px 22px;
    border: 1px solid rgba(18, 166, 166, 0.18);
    border-top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 250, 0.98));
}

.gallery-slider-container {
    max-width: 100%;
    margin: 8px auto 0;
    padding: 16px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 248, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px rgba(16, 32, 51, 0.08);
}

.gallery-slider {
    border-radius: 24px;
    background: linear-gradient(180deg, #eef8f8 0%, #ddeef4 100%);
}

.gallery-slide img {
    min-height: 460px;
    background: #e8eef6;
}

.slider-btn::before {
    background-color: rgba(15, 23, 42, 0.86);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
}

.slider-dot.active {
    background: var(--ic-brand-teal);
    box-shadow: 0 6px 18px rgba(18, 166, 166, 0.24);
}

.certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.certificate-item {
    border-radius: 22px;
    border: 1px solid rgba(18, 166, 166, 0.12);
    box-shadow: 0 18px 30px rgba(16, 32, 51, 0.08);
}

.certificate-overlay {
    padding: 14px 12px;
    font-size: 13px;
}

.blog-content-modern .blog-body {
    font-size: 16px;
    line-height: 1.75;
}

.blog-toggle-btn {
    border-radius: 999px;
    padding: 10px 18px;
    background: #11b881;
    box-shadow: 0 14px 24px rgba(18, 166, 166, 0.2);
}

.reviews-section-modern {
    padding: 34px;
}

.review-score-panel,
.review-bars-panel,
.trust-card,
.review-item-modern {
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(16, 32, 51, 0.05);
}

.review-score-panel {
    border-color: rgba(18, 166, 166, 0.24);
}

.review-bars-panel {
    border-color: rgba(18, 166, 166, 0.12);
}

.trust-card {
    border-color: rgba(44, 156, 218, 0.14);
    background: linear-gradient(135deg, rgba(231, 248, 247, 0.95), rgba(244, 249, 255, 0.98) 56%, rgba(255, 244, 232, 0.96) 100%);
}

.review-item-modern {
    border: 1px solid rgba(18, 166, 166, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 248, 0.96));
}

.review-reply {
    border-left: 0;
    border-radius: 20px;
    border: 1px solid rgba(44, 156, 218, 0.14);
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.94), rgba(255, 255, 255, 0.98));
}

@media (max-width: 991px) {

    .doctor-action-group,
    .doctor-info-list {
        grid-template-columns: 1fr;
    }

    .doctor-header-card,
    .doctor-info-section,
    .specializations-modern,
    .map-card-modern,
    .opening-hours-modern,
    .portfolio-section,
    .certificates-section,
    .reviews-section-modern,
    .blog-content-modern {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .doctor-profile-container {
        padding: 8px 6px 0;
    }

    .doctor-breadcrumb-shell {
        margin-bottom: 8px;
    }

    .doctor-breadcrumbs {
        display: flex;
        gap: 6px;
        border-radius: 18px;
        padding: 8px 12px;
        font-size: 13px;
        margin-top: 55px;
    }

    .doctor-breadcrumbs li:last-child {
        max-width: min(56vw, 220px);
    }

    .doctor-header-card {
        padding: 14px 14px 16px;
    }

    .doctor-avatar-section,
    .doctor-info-section,
    .specializations-modern,
    .map-card-modern,
    .opening-hours-modern,
    .portfolio-section,
    .certificates-section,
    .reviews-section-modern,
    .blog-content-modern {
        border-radius: 18px;
        padding: 14px 12px;
    }

    .doctor-avatar-section {
        /* background: linear-gradient(180deg, #ffffff 0%, #eef8f8 100%); */
        /* border: 1px solid rgba(18, 166, 166, 0.1); */
        /* box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07); */
        border-radius: 18px;
        padding: 12px;
        gap: 10px;
    }

    .doctor-card-topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .doctor-card-subtitle {
        margin-top: 6px;
        max-width: none;
        font-size: 12px;
        line-height: 1.5;
    }

    .doctor-avatar-shell {
        width: min(100%, 180px);
        aspect-ratio: 1;
        padding: 4px;
        border-radius: 50%;
    }

    .doctor-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: top;
    }

    .doctor-card-caption {
        font-size: 12px;
        color: rgb(23 216 203);
    }

    .doctor-verified-badge {
        width: 36px;
        height: 36px;
        bottom: -8px;
        right: -8px;
        top: auto;
        border-radius: 9px !important;
    }

    .doctor-stats-row {
        max-width: none;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .doctor-years-exp,
    .doctor-rating-box {
        min-height: 70px;
        width: 100%;
        border-radius: 14px;
        padding: 8px 10px;
    }

    .doctor-years-exp {
        background: linear-gradient(150deg, rgba(18, 166, 166, 0.32) 0%, rgba(44, 156, 218, 0.2) 100%);
        border-color: rgba(18, 166, 166, 0.4);
        box-shadow: 0 0 18px rgba(18, 166, 166, 0.22);
    }

    .doctor-rating-box {
        background: linear-gradient(150deg, rgba(235, 138, 47, 0.3) 0%, rgba(217, 111, 30, 0.2) 100%);
        border-color: rgba(235, 138, 47, 0.4);
        box-shadow: 0 0 18px rgba(235, 138, 47, 0.2);
    }

    .doctor-years-exp-value,
    .doctor-rating-box h3 {
        font-size: 18px;
    }

    .doctor-years-exp-value,
    .doctor-years-exp-label {
        color: #ffffff !important;
    }

    .doctor-rating-box h3 {
        color: #6f4300;
    }

    .doctor-rating-box p:first-of-type {
        color: #8a5b00 !important;
    }

    .doctor-rating-box p:last-of-type {
        color: #9b7826 !important;
    }

    .doctor-info-list li:last-child {
        grid-column: auto;
    }

    .doctor-info-list {
        gap: 8px;
        margin-top: 12px;
    }

    .doctor-info-list li {
        min-height: 64px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .doctor-name-title {
        margin-bottom: 10px;
    }

    .doctor-description {
        margin-top: 10px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .doctor-description p {
        font-size: 13px !important;
        line-height: 1.6;
    }

    .doctor-action-group {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .doctor-action-btn {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .profile-nav {
        margin: 12px 0 16px;
        border-radius: 16px;
    }

    .profile-nav.is-fixed {
        border-radius: 0;
    }

    .profile-nav__inner {
        padding: 6px;
        gap: 4px;
    }

    .profile-nav__link {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
    }

    .section-title-modern {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .section-title-modern svg {
        width: 18px;
        height: 18px;
        padding: 8px;
        border-radius: 11px;
    }

    .accordion-header,
    .accordion-header-s {
        padding: 13px 14px;
        font-size: 15px;
        border-radius: 14px;
    }

    .accordion-content.open {
        padding: 14px;
    }

    .price-row {
        padding: 10px 12px;
        border-radius: 14px;
        gap: 8px;
        margin-bottom: 6px;
    }

    .day-schedule-modern {
        padding: 10px 12px;
        margin-bottom: 6px;
        border-radius: 14px;
    }

    .accordion-main-button {
        padding: 12px 14px;
        border-radius: 16px;
        margin-top: 8px;
    }

    .doctor-feature-card {
        /* min-height: 66px; */
        padding: 3px 12px;
        border-radius: 16px;
        gap: 10px;
    }

    .doctor-feature-icon {
        width: auto;
        height: auto;
        border-radius: 0;
    }

    .doctor-video-card {
        padding: 10px;
        border-radius: 18px;
    }

    .doctor-payment-item {
        min-height: 64px;
        border-radius: 14px;
    }

    .map-location-text {
        padding: 12px;
        border-radius: 14px;
    }

    .map-container-modern {
        min-height: 220px;
        border-radius: 16px;
    }

    .review-score-panel,
    .review-bars-panel,
    .trust-card,
    .review-item-modern {
        border-radius: 18px;
        padding: 12px;
    }

    .reviews-section-modern {
        padding: 14px 12px;
    }

    .gallery-slider-container {
        padding: 8px;
        border-radius: 18px;
        margin-top: 4px;
    }

    .gallery-slide img {
        min-height: 260px;
    }

    .doctor-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .certificate-item {
        border-radius: 16px;
    }

    .certificates-grid {
        gap: 10px;
    }

    .space-doctors-area {
        padding-bottom: 40px !important;
    }

    .reels-container {
        position: relative;
        width: min(520px, 100%);
        margin: 20px auto;
    }

    .reel-item {
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: none;
    }

    .reel-item.active {
        display: block;
    }

    .reel-item iframe {
        width: 100%;
        aspect-ratio: 9 / 16;
        border: none;
        display: block;
        min-height: 580px;
    }

    .reel-item[data-platform="instagram"] {
        overflow: hidden;
    }

    .reel-item[data-platform="instagram"] iframe {
        aspect-ratio: auto;
        height: 760px;
        min-height: 760px;
        margin-top: -90px;
    }

    .reel-item-title {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        color: white;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        pointer-events: none;
    }

    .reels-nav {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
    }

    .reel-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid #e5e7eb;
        background: white;
        color: #1e293b;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        font-size: 18px;
    }

    .reel-nav-btn:hover:not(:disabled) {
        background: #f1f5f9;
        border-color: #2563eb;
        color: #2563eb;
    }

    .reel-nav-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .reel-counter {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #64748b;
        font-weight: 500;
    }

    @media (max-width: 768px) {}

    .reels-container {
        max-width: 100%;
    }

    .reel-item iframe {
        min-height: 520px;
    }

    .reel-item[data-platform="instagram"] iframe {
        height: 640px;
        min-height: 640px;
        margin-top: -70px;
    }
}

@media (min-width: 1024px) {
    .reels-container {
        width: min(560px, 100%);
    }

    .reel-item iframe {
        min-height: 640px;
    }

    .reel-item[data-platform="instagram"] iframe {
        height: 820px;
        min-height: 820px;
        margin-top: -110px;
    }

    /* Display 3 items side-by-side on large screens */
    .reels-container {
        width: 100%;
        max-width: 1200px;
    }

    .reels-track {
        display: flex;
        gap: 16px;
        align-items: stretch;
        overflow: hidden;
    }

    .reel-item {
        display: none;
        /* hidden by default; visible items will be shown */
        flex: 0 0 calc((100% - 32px) / 3);
        /* show 3 items per row */
    }

    .reel-item.visible {
        display: block;
    }

    /* ensure iframes fit the container width */
    .reel-item iframe {
        width: 100%;
        min-height: 360px;
        aspect-ratio: 9 / 16;
    }

    /* Position nav arrows as overlay on large screens */
    .reels-container {
        position: relative;
    }

    .reel-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    #reelPrevBtn {
        left: -60px;
    }

    #reelNextBtn {
        right: -60px;
    }

    .reels-nav {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        display: flex;
        justify-content: center;
        gap: 12px;
    }
}