/* ==========================================================
   DR. SANIL PAREKH - HOMEPAGE CUSTOM SECTIONS
   Moved from index.php to meciy.css
   ========================================================== */

/* -------------------- SEO ACCESSIBILITY H1 -------------------- */
.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------- DIGESTIVE CONCERNS + GOOGLE REVIEW SUMMARY -------------------- */
.patient-entry-section {
                padding: 80px 0;
                background: #f7f9f8;
            }
            .patient-entry-heading {
                max-width: 760px;
                margin: 0 auto 38px;
                text-align: center;
            }
            .patient-entry-heading h2 {
                margin-bottom: 12px;
                font-size: 38px;
                line-height: 1.2;
            }
            .patient-entry-heading p {
                margin: 0;
                color: #66716d;
                font-size: 16px;
                line-height: 1.7;
            }
            .patient-entry-card {
                height: 100%;
                padding: 28px;
                background: #ffffff;
                border: 1px solid #e5ebe8;
                border-radius: 18px;
                box-shadow: 0 10px 30px rgba(21, 47, 39, 0.06);
                transition: transform .25s ease, box-shadow .25s ease;
            }
            .patient-entry-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgba(21, 47, 39, 0.11);
            }
            .patient-entry-card__tag {
                display: inline-block;
                margin-bottom: 14px;
                padding: 6px 11px;
                border-radius: 50px;
                background: #eef5f2;
                color: #356859;
                font-size: 12px;
                font-weight: 600;
                letter-spacing: .04em;
                text-transform: uppercase;
            }
            .patient-entry-card h3 {
                margin-bottom: 12px;
                font-size: 23px;
                line-height: 1.3;
            }
            .patient-entry-card p {
                min-height: 78px;
                margin-bottom: 22px;
                color: #66716d;
                line-height: 1.7;
            }
            .patient-entry-card__btn {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 10px 16px;
                border: 1px solid #d9e4df;
                border-radius: 8px;
                color: #264f44;
                font-weight: 600;
                transition: all .2s ease;
            }
            .patient-entry-card__btn:hover {
                background: #264f44;
                border-color: #264f44;
                color: #ffffff;
            }
            .patient-entry-footer {
                margin-top: 36px;
                text-align: center;
            }

            /* Google review summary used in Testimonials */
            .google-review-summary {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 32px;
                margin-bottom: 38px;
                padding: 28px 32px;
                background: #ffffff;
                border: 1px solid #e7ece9;
                border-radius: 18px;
                box-shadow: 0 10px 30px rgba(21, 47, 39, 0.06);
            }
            .google-review-summary__score {
                min-width: 220px;
                text-align: center;
            }
            .google-review-summary__brand {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 9px;
                margin-bottom: 8px;
                font-weight: 600;
            }
            .google-review-summary__brand img {
                width: 28px;
                height: 28px;
                object-fit: contain;
            }
            .google-review-summary__number {
                margin: 0;
                font-size: 46px;
                line-height: 1;
                font-weight: 700;
            }
            .google-review-summary__stars {
                margin: 8px 0 5px;
                font-size: 19px;
            }
            .google-review-summary__stars i {
                margin: 0 1px;
            }
            .google-review-summary__count {
                margin: 0;
                color: #66716d;
                font-size: 14px;
            }
            .google-review-summary__content {
                flex: 1;
            }
            .google-review-summary__content h3 {
                margin-bottom: 9px;
                font-size: 25px;
            }
            .google-review-summary__content p {
                margin-bottom: 18px;
                color: #66716d;
                line-height: 1.7;
            }
            .testimonial-actions {
                margin-top: 30px;
                text-align: center;
            }

            @media (max-width: 991px) {
                .patient-entry-section {
                    padding: 60px 0;
                }
                .patient-entry-heading h2 {
                    font-size: 32px;
                }
                .patient-entry-card p {
                    min-height: auto;
                }
                .google-review-summary {
                    align-items: flex-start;
                    flex-direction: column;
                }
                .google-review-summary__score {
                    width: 100%;
                    min-width: 0;
                    text-align: left;
                }
                .google-review-summary__brand {
                    justify-content: flex-start;
                }
            }

            @media (max-width: 575px) {
                .patient-entry-card {
                    padding: 23px;
                }
                .patient-entry-heading h2 {
                    font-size: 28px;
                }
                .google-review-summary {
                    padding: 24px 20px;
                }
                .google-review-summary__number {
                    font-size: 40px;
                }
            }

/* -------------------- FACEBOOK-STYLE CLINICAL UPDATES CAROUSEL -------------------- */
.custom-facebook-feed {
        position: relative;
        padding: 92px 0 86px;
        overflow: hidden;
        background:
            radial-gradient(circle at 10% 12%, rgba(91, 194, 196, .11), transparent 31%),
            radial-gradient(circle at 90% 18%, rgba(55, 132, 128, .08), transparent 29%),
            #f8fbfa;
    }

    .custom-facebook-feed__heading {
        max-width: 860px;
        margin: 0 auto 42px;
        text-align: center;
    }

    .custom-facebook-feed__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding: 7px 13px;
        border: 1px solid rgba(58, 153, 151, .18);
        border-radius: 999px;
        background: rgba(255,255,255,.76);
        color: #3a7774;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .custom-facebook-feed__heading h2 {
        margin-bottom: 14px;
        font-size: 40px;
        line-height: 1.2;
    }

    .custom-facebook-feed__heading p {
        max-width: 720px;
        margin: 0 auto;
        color: #65716e;
        font-size: 16px;
        line-height: 1.75;
    }

    .custom-fb-carousel {
        position: relative;
        padding: 0 54px;
    }

    .custom-fb-carousel__viewport {
        width: 100%;
        overflow: hidden;
        border-radius: 22px;
    }

    .custom-fb-carousel__track {
        display: flex;
        align-items: stretch;
        gap: 28px;
        transition: transform .55s cubic-bezier(.22,.61,.36,1);
        will-change: transform;
    }

    .custom-fb-carousel__slide {
        flex: 0 0 calc((100% - 28px) / 2);
        min-width: 0;
    }

    .custom-fb-carousel__slide .custom-fb-card {
        height: 100%;
    }

    .custom-fb-carousel__nav {
        position: absolute;
        top: 50%;
        z-index: 8;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid rgba(47,112,109,.14);
        border-radius: 50%;
        background: rgba(255,255,255,.92);
        color: #2f706d;
        box-shadow: 0 10px 28px rgba(31,81,77,.12);
        transform: translateY(-50%);
        cursor: pointer;
        transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .custom-fb-carousel__nav:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 14px 34px rgba(31,81,77,.16);
    }

    .custom-fb-carousel__nav:disabled {
        opacity: .35;
        cursor: default;
        pointer-events: none;
    }

    .custom-fb-carousel__nav--prev {
        left: 0;
    }

    .custom-fb-carousel__nav--next {
        right: 0;
    }

    .custom-fb-carousel__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 26px;
    }

    .custom-fb-carousel__dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(47,112,109,.22);
        cursor: pointer;
        transition: width .25s ease, background .25s ease, transform .25s ease;
    }

    .custom-fb-carousel__dot.is-active {
        width: 24px;
        background: #3f8783;
    }

    .custom-fb-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        border: 1px solid #e6ebf0;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 18px 46px rgba(22, 55, 62, .08);
    }

    .custom-fb-card__header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px 18px 14px;
    }

    .custom-fb-card__profile {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        overflow: hidden;
        border-radius: 50%;
        background: #eef3f8;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
    }

    .custom-fb-card__profile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .custom-fb-card__meta {
        flex: 1;
        min-width: 0;
    }

    .custom-fb-card__meta h3 {
        margin: 0 0 3px;
        color: #1c1e21;
        font-size: 17px;
        line-height: 1.25;
    }

    .custom-fb-card__meta p {
        margin: 0;
        color: #65676b;
        font-size: 12px;
        line-height: 1.4;
    }

    .custom-fb-card__menu {
        color: #65676b;
        font-size: 20px;
        line-height: 1;
    }


    .custom-fb-gallery {
        position: relative;
        overflow: hidden;
        background: #f0f2f5;
        border-top: 1px solid #eef1f4;
        border-bottom: 1px solid #eef1f4;
    }

    .custom-fb-gallery__track {
        display: flex;
        transition: transform .45s ease;
        will-change: transform;
    }

    .custom-fb-gallery__slide {
        flex: 0 0 100%;
        min-width: 100%;
        aspect-ratio: 1 / 1;
        background: #f0f2f5;
    }

    .custom-fb-gallery__slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .custom-fb-gallery__btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.92);
        color: #1c1e21;
        box-shadow: 0 6px 18px rgba(0,0,0,.14);
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .custom-fb-gallery__btn:hover {
        transform: translateY(-50%) scale(1.04);
        box-shadow: 0 10px 24px rgba(0,0,0,.18);
    }

    .custom-fb-gallery__btn--prev {
        left: 12px;
    }

    .custom-fb-gallery__btn--next {
        right: 12px;
    }

    .custom-fb-gallery__counter {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 2;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(0,0,0,.62);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
    }

    .custom-fb-gallery__dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        padding: 12px 12px 0;
    }

    .custom-fb-gallery__dot {
        width: 7px;
        height: 7px;
        border: 0;
        border-radius: 50%;
        background: #ccd0d5;
        transition: transform .2s ease, background .2s ease;
        cursor: pointer;
    }

    .custom-fb-gallery__dot.is-active {
        background: #1877f2;
        transform: scale(1.12);
    }

    .custom-fb-card__stats {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px 10px;
        color: #65676b;
        font-size: 12px;
        border-bottom: 1px solid #eef1f4;
    }

    .custom-fb-card__reactions {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .custom-fb-card__reactions i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        font-size: 10px;
        color: #fff;
    }

    .custom-fb-card__reactions .fa-thumbs-up {
        background: #1877f2;
    }

    .custom-fb-card__reactions .fa-heart {
        background: #f02849;
    }

    .custom-fb-card__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 12px 12px;
    }

    .custom-fb-card__action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 10px;
        color: #65676b;
        font-size: 14px;
        font-weight: 600;
        transition: background .2s ease, color .2s ease;
    }

    .custom-fb-card__action:hover {
        background: #f2f4f7;
        color: #1c1e21;
    }

    @media (max-width: 991px) {
        .custom-facebook-feed {
            padding: 74px 0 68px;
        }

        .custom-facebook-feed__heading h2 {
            font-size: 34px;
        }

        .custom-fb-carousel {
            padding: 0 48px;
        }

        .custom-fb-carousel__slide {
            flex-basis: 100%;
        }
    }

    @media (max-width: 575px) {
        .custom-facebook-feed {
            padding: 58px 0 52px;
        }

        .custom-facebook-feed__heading {
            margin-bottom: 30px;
            padding: 0 14px;
        }

        .custom-facebook-feed__heading h2 {
            font-size: 29px;
        }

        .custom-fb-carousel {
            padding: 0 38px;
        }

        .custom-fb-carousel__track {
            gap: 16px;
        }

        .custom-fb-carousel__nav {
            width: 36px;
            height: 36px;
        }

        .custom-fb-carousel__viewport {
            border-radius: 16px;
        }

        .custom-fb-card {
            border-radius: 16px;
        }

        .custom-fb-card__header {
            padding: 16px 16px 12px;
        }


        .custom-fb-card__stats {
            padding: 12px 16px 10px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .custom-fb-card__actions {
            padding: 8px 8px 10px;
            gap: 4px;
        }

        .custom-fb-card__action {
            gap: 6px;
            padding: 10px 6px;
            font-size: 13px;
        }
    }

/* -------------------- PREMIUM PATIENT TESTIMONIAL MARQUEE -------------------- */
.premium-testimonials {
        position: relative;
        padding: 96px 0 92px;
        background:
            radial-gradient(circle at 15% 15%, rgba(91,194,196,.10), transparent 28%),
            radial-gradient(circle at 82% 85%, rgba(49,119,115,.08), transparent 30%),
            #f7faf9;
        overflow: hidden;
    }

    .premium-testimonials__heading {
        max-width: 820px;
        margin: 0 auto 44px;
        text-align: center;
    }

    .premium-testimonials__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding: 7px 13px;
        border: 1px solid rgba(58,153,151,.18);
        border-radius: 999px;
        background: rgba(255,255,255,.72);
        color: #3a7774;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .premium-testimonials__heading h2 {
        margin-bottom: 13px;
        font-size: 40px;
        line-height: 1.2;
    }

    .premium-testimonials__heading p {
        max-width: 650px;
        margin: 0 auto;
        color: #697572;
        font-size: 16px;
        line-height: 1.75;
    }

    .testimonial-rating-pill {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
        padding: 10px 15px;
        border: 1px solid rgba(55,132,128,.14);
        border-radius: 999px;
        background: rgba(255,255,255,.84);
        box-shadow: 0 10px 30px rgba(31,83,79,.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .testimonial-rating-pill img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .testimonial-rating-pill strong {
        font-size: 14px;
        color: #253d3b;
    }

    .testimonial-rating-pill .stars {
        display: flex;
        gap: 2px;
        color: #f4a623;
        font-size: 13px;
    }

    .testimonial-marquee {
        position: relative;
        width: 100%;
        overflow: hidden;
        isolation: isolate;
    }

    .testimonial-marquee + .testimonial-marquee {
        margin-top: 24px;
    }

    .testimonial-marquee::before,
    .testimonial-marquee::after {
        content: "";
        position: absolute;
        top: -18px;
        bottom: -18px;
        width: 120px;
        z-index: 5;
        pointer-events: none;

        /*
         * Important: the mask makes the BACKDROP BLUR itself fade out.
         * This avoids the visible straight inner edge created by a normal
         * rectangular backdrop-filter element.
         */
        background: rgba(247, 250, 249, .10);
        backdrop-filter: blur(22px) saturate(112%);
        -webkit-backdrop-filter: blur(22px) saturate(112%);
    }

    .testimonial-marquee::before {
        left: 0;
        -webkit-mask-image: linear-gradient(
            to right,
            #000 0%,
            rgba(0,0,0,.96) 12%,
            rgba(0,0,0,.72) 38%,
            rgba(0,0,0,.34) 67%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            #000 0%,
            rgba(0,0,0,.96) 12%,
            rgba(0,0,0,.72) 38%,
            rgba(0,0,0,.34) 67%,
            transparent 100%
        );
    }

    .testimonial-marquee::after {
        right: 0;
        -webkit-mask-image: linear-gradient(
            to left,
            #000 0%,
            rgba(0,0,0,.96) 12%,
            rgba(0,0,0,.72) 38%,
            rgba(0,0,0,.34) 67%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to left,
            #000 0%,
            rgba(0,0,0,.96) 12%,
            rgba(0,0,0,.72) 38%,
            rgba(0,0,0,.34) 67%,
            transparent 100%
        );
    }

    .testimonial-marquee-track {
        display: flex;
        width: max-content;
        min-width: max-content;
        will-change: transform;
        animation: testimonial-scroll-left 72s linear infinite;
        transform: translate3d(0,0,0);
        backface-visibility: hidden;
    }

    .testimonial-marquee--reverse .testimonial-marquee-track {
        animation-name: testimonial-scroll-right;
        animation-duration: 72s;
    }

    .testimonial-marquee:hover .testimonial-marquee-track {
        animation-play-state: paused;
    }

    .testimonial-marquee-group {
        display: flex;
        flex: 0 0 auto;
        gap: 22px;
        min-width: max-content;
        padding-right: 22px;
    }

    @keyframes testimonial-scroll-left {
        from { transform: translate3d(0,0,0); }
        to   { transform: translate3d(-50%,0,0); }
    }

    @keyframes testimonial-scroll-right {
        from { transform: translate3d(-50%,0,0); }
        to   { transform: translate3d(0,0,0); }
    }

    .premium-review-card {
        display: flex;
        flex: 0 0 390px;
        flex-direction: column;
        box-sizing: border-box;
        width: 390px;
        height: 310px;
        min-height: 310px;
        padding: 24px;
        border: 1px solid rgba(61,150,146,.16);
        border-radius: 22px;
        background: rgba(255,255,255,.86);
        box-shadow:
            0 18px 48px rgba(31,81,77,.07),
            inset 0 1px 0 rgba(255,255,255,.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition:
            transform .28s ease,
            box-shadow .28s ease,
            border-color .28s ease;
    }

    .premium-review-card:hover {
        transform: translateY(-4px);
        border-color: rgba(61,150,146,.30);
        box-shadow:
            0 24px 62px rgba(31,81,77,.12),
            inset 0 1px 0 rgba(255,255,255,.96);
    }

    .premium-review-card__top {
        display: flex;
        flex: 0 0 46px;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        margin-bottom: 17px;
    }

    .premium-review-avatar {
        display: grid;
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        place-items: center;
        border: 1px solid rgba(61,150,146,.18);
        border-radius: 50%;
        background:
            linear-gradient(145deg, rgba(86,190,191,.16), rgba(255,255,255,.92));
        color: #2f706d;
        font-size: 17px;
        font-weight: 700;
        box-shadow: inset 0 0 0 5px rgba(255,255,255,.72);
    }

    .premium-review-meta {
        flex: 1;
        min-width: 0;
    }

    .premium-review-meta h3 {
        margin: 0 0 5px;
        color: #173b39;
        font-size: 17px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .premium-review-stars {
        display: flex;
        gap: 2px;
        color: #f4a623;
        font-size: 12px;
    }

    .premium-review-google {
        flex: 0 0 auto;
        width: 25px;
        height: 25px;
        object-fit: contain;
    }

    .premium-review-card > p {
        display: -webkit-box;
        flex: 1 1 auto;
        margin: 0;
        min-height: 0;
        max-height: 144px;
        overflow: hidden;
        color: #4e5e5b;
        font-size: 14px;
        line-height: 1.72;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
    }

    .premium-review-card__footer {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 32px;
        margin-top: auto;
        padding-top: 15px;
        border-top: 1px solid rgba(50,111,108,.10);
        font-size: 12px;
    }

    .premium-review-card__footer span {
        color: #80908c;
        font-weight: 600;
    }

    .premium-review-card__footer a {
        color: #2f706d;
        font-weight: 700;
        white-space: nowrap;
    }

    .premium-review-card__footer a:hover {
        color: #183f3d;
    }

    .premium-testimonials__actions {
        margin-top: 42px;
        text-align: center;
    }

    @media (max-width: 991px) {
        .premium-testimonials {
            padding: 76px 0 72px;
        }

        .premium-testimonials__heading h2 {
            font-size: 34px;
        }

        .testimonial-marquee::before,
        .testimonial-marquee::after {
            width: 72px;
        }

        .premium-review-card {
            flex-basis: 350px;
            width: 350px;
            height: 310px;
            min-height: 310px;
        }
    }

    @media (max-width: 575px) {
        .premium-testimonials {
            padding: 60px 0 58px;
        }

        .premium-testimonials__heading {
            margin-bottom: 34px;
            padding: 0 18px;
        }

        .premium-testimonials__heading h2 {
            font-size: 29px;
        }

        .testimonial-marquee::before,
        .testimonial-marquee::after {
            width: 42px;
            backdrop-filter: blur(12px) saturate(108%);
            -webkit-backdrop-filter: blur(12px) saturate(108%);
        }

        .testimonial-marquee-group {
            gap: 14px;
            padding-right: 14px;
        }

        .premium-review-card {
            flex-basis: 306px;
            width: 306px;
            height: 290px;
            min-height: 290px;
            padding: 20px;
            border-radius: 18px;
        }

        .premium-review-card__top {
            flex-basis: 46px;
            min-height: 46px;
        }

        .premium-review-card > p {
            min-height: 0;
            max-height: 132px;
            font-size: 13px;
            -webkit-line-clamp: 6;
        }

        .premium-review-card__footer {
            min-height: 30px;
            padding-top: 13px;
        }

        .testimonial-marquee-track,
        .testimonial-marquee--reverse .testimonial-marquee-track {
            animation-duration: 58s;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .testimonial-marquee-track,
        .testimonial-marquee--reverse .testimonial-marquee-track {
            animation-play-state: paused;
        }
    }
