
.btn-home-primary {
            color: #5C5F71;
            border: none;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            font-weight: 500;
            margin: 4px 2px;
            cursor: pointer;
            /*border-radius: 8px;*/
            border: 1px solid #1b3a6a;
            transition: background-color 0.3s, transform 0.2s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

            .btn-home-primary:hover {
                background-color: #286fb7;
                color: #fff;
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            }

            .btn-home-primary:active {
                background-color: #4569a0;
                transform: translateY(0);
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            }

        .home-lazy-placeholder {
            background: #f4f5f7 url("images/medeed.jpg") center / cover no-repeat;
        }

        .home-lazy-placeholder.is-loaded {
            background-image: none;
        }

.testimonial-card {
            background-color: #ffffff;
            position: relative;
            padding: 20px;
            z-index: 2;
            display: flex;
            flex-direction: column;
        }

        @media (max-width: 1299px) {
            .testimonial-card {
                padding: 20px;
            }
        }

        @media (max-width: 767px) {
            .testimonial-card {
                padding: 20px;
            }
        }

        .testimonial-card .testimonial-text {
            font-family: var(--title-font);
            font-weight: 500;
            font-size: 14px !important;
            line-height: 20px;
            letter-spacing: 0.02em;
            color: var(--title-color);
            margin-bottom: 30px;
            text-align: justify;
            order: 3;
            padding-top: 65px;
            position: relative;
        }

            .testimonial-card .testimonial-text span {
                border-bottom: 1px solid #ababac;
                padding-bottom: 2px;
                margin-block: 10px;
            }

            .testimonial-card .testimonial-text::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 35px;
                height: 35px;
                background-image: url('assets/img/icon/quote2.svg');
                background-size: contain;
                background-repeat: no-repeat;
            }

        @media (max-width: 1199px) {
            .testimonial-card .testimonial-text {
                font-size: 25px;
                line-height: 35px;
            }
        }

        @media (max-width: 991px) {
            .testimonial-card .testimonial-text {
                font-size: 24px;
                line-height: 34px;
            }
        }

        @media (max-width: 575px) {
            .testimonial-card .testimonial-text {
                font-size: 20px;
                line-height: 30px;
                padding-top: 45px;
            }
        }

        @media (max-width: 480px) {
            .testimonial-card .testimonial-text {
                font-size: 17px;
                line-height: 28px;
                padding-top: 40px;
            }
        }

        .testimonial-card .testimonial-profile {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            width: 100%;
            position: relative;
        }

        .testimonial-card .testimonial-author {
            width: 100%;
            overflow: hidden;
            margin-right: 0;
            display: flex;
            justify-content: center;
            position: relative;
        }

            .testimonial-card .testimonial-author img {
                width: 100%;
                height: 180px;
                object-fit: cover;
                display: block;
            }

        .testimonial-card .testimonial-info {
            text-align: center;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 25px 20px 20px 20px; /* افزایش padding */
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
        }

        .testimonial-card .testimonial-name {
            font-weight: 600;
            font-size: 16px; /* افزایش سایز فونت */
            line-height: 20px; /* افزایش line-height */
            letter-spacing: 0.02em;
            color: white;
            margin: 0 0 8px 0; /* افزایش margin */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        }

        @media (max-width: 575px) {
            .testimonial-card .testimonial-name {
                font-size: 14px;
                line-height: 18px;
            }
        }

        .testimonial-card .testimonial-position {
            font-size: 16px; /* افزایش سایز فونت */
            margin-bottom: 0;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            line-height: 1.5; /* افزایش line-height */
        }

        @media (max-width: 575px) {
            .testimonial-card .testimonial-position {
                font-size: 14px;
            }
        }

        .testimonial-card .testimonial-wrapper {
            display: flex;
            justify-content: space-between;
            order: 2;
            margin-bottom: 30px;
            width: 30%;
        }

        @media (max-width: 575px) {
            .testimonial-card .testimonial-wrapper {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }
        }


        @media (min-width: 768px) {
            .testimonial-card {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: flex-start;
            }

                .testimonial-card .testimonial-wrapper {
                    order: 2;
                    width: 15%;
                    margin-bottom: 0;
                    justify-content: flex-start;
                }

                .testimonial-card .testimonial-text {
                    order: 3;
                    width: 82%;
                    margin-bottom: 0;
                    padding-top: 50px;
                    padding-right: 30px;
                }

                .testimonial-card .testimonial-profile {
                    align-items: flex-start;
                }

                .testimonial-card .testimonial-author {
                    justify-content: flex-start;
                }

                .testimonial-card .testimonial-info {
                    text-align: left;
                    padding: 25px 20px 20px 20px;
                }
        }

        @media (max-width: 767px) {
            .testimonial-card {
                flex-direction: column;
            }

                .testimonial-card .testimonial-wrapper {
                    order: 2;
                    margin-bottom: 20px;
                    width: 100%;
                }

                .testimonial-card .testimonial-text {
                    order: 3;
                    width: 100%;
                    padding-top: 45px;
                }

                .testimonial-card .testimonial-profile {
                    align-items: center;
                }

                .testimonial-card .testimonial-author {
                    justify-content: center;
                }

                .testimonial-card .testimonial-info {
                    text-align: center;
                }

                .testimonial-card .testimonial-author img {
                    height: 220px;
                }
        }

        .testimonial-card .testimonial-author:hover .testimonial-info {
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        }

.media-body i {
                            font-size: 80px;
                            padding-bottom: 20px
                        }

                        .info-grid {
                            display: grid;
                            grid-template-columns: repeat(3, 1fr);
                            gap: 20px;
                        }

                        .info-item {
                            display: flex;
                            align-items: center;
                            gap: 15px;
                            padding: 15px;
                            /*background: rgba(255, 255, 255, 0.08);*/
                            background: #f6f6f6;
                            border-radius: 0px;
                            backdrop-filter: blur(10px);
                        }

                            .info-item strong {
                                color: #545454
                            }

                        .info-icon {
                            width: 60px;
                            height: 60px;
                            background: #545454;
                            border-radius: 0px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            color: white;
                            font-size: 28px;
                            flex-shrink: 0;
                        }



                        /* برای صفحه نمایش کوچک (موبایل) */
                        @media (max-width: 768px) {
                            .info-grid {
                                grid-template-columns: 1fr; /* تک ستونی در موبایل */
                            }
                        }

                        /* برای صفحه نمایش متوسط (تبلت) */
                        @media (min-width: 769px) and (max-width: 1024px) {
                            .info-grid {
                                grid-template-columns: repeat(2, 1fr); /* دو ستونی در تبلت */
                            }
                        }

                        /* برای صفحه نمایش بزرگ (دسکتاپ) */
                        @media (min-width: 1025px) {
                            .info-grid {
                                grid-template-columns: repeat(3, 1fr); /* سه ستونی در دسکتاپ */
                            }
                        }

:root {
            --medbase-blue: #215d9a;
            --medbase-border: #5C5F71;
            --medbase-light-blue: #5087c7;
            --medbase-orange: #545454;
            --medbase-light-orange: #787878;
        }

        .medbase-branch-container {
            perspective: 1000px;
            margin-bottom: 5px;
            height: 500px;
        }

        .medbase-branch-card {
            width: 100%;
            height: 100%;
            position: relative;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .medbase-branch-card.flipped {
            transform: rotateY(180deg);
        }

        .medbase-card-front, .medbase-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border: 1px solid #dddddd;
            overflow: hidden;
        }

        .medbase-card-front {
            display: flex;
            flex-direction: column;
        }

        .medbase-card-back {
            transform: rotateY(180deg);
            background: #fff;
            padding: 15px 8px;
            display: flex;
            flex-direction: column;
        }

        .medbase-branch-img {
            max-height: 180px;
            min-height: 180px;
            object-fit: cover;
            width: 100%;
        }

        .medbase-branch-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--medbase-blue);
            color: white;
            padding: 9px 9px;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 4px;
        }

        .medbase-card-body {
            padding: 15px;
            background: white;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .medbase-card-title {
            color: var(--medbase-border);
            font-weight: 600;
            font-size: 0.85em;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #dddddd;
            line-height: 1.4;
        }

        .medbase-branch-info {
            margin-bottom: 5px;
        }

        .medbase-info-item {
            display: flex;
            margin-bottom: 3px;
            font-size: 11px;
        }

        .medbase-info-item i {
            color: var(--medbase-border);
            font-size: 0.8rem;
            min-width: 20px;
            padding-top: 3px;
        }

        .medbase-info-item a {
            color: var(--medbase-border);
        }

        /* ======= بخش حمل و نقل ======= */
        .medbase-transport-info {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 8px 10px;
            margin-top: auto;
            font-size: 10px;
            line-height: 1.5;
        }

        .medbase-transport-item {
            display: flex;
            margin-bottom: 5px;
        }

        .medbase-transport-item:last-child {
            margin-bottom: 0;
        }

        .medbase-transport-item i {
            color: var(--medbase-blue);
            min-width: 18px;
            padding-top: 2px;
            font-size: 0.75rem;
        }

        .medbase-transport-item small {
            color: #888;
            font-size: 9px;
        }
        /* ============================= */

        .medbase-btn-container {
            margin-top: 8px;
        }

        .medbase-btn-medpoints {
            background-color: #fff;
            color: var(--medbase-orange);
            border: 1px solid #dddddd;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
            cursor: pointer;
            font-size: 0.6rem;
            padding: 5px 8px;
            margin-top: 5px;
        }

        .medbase-btn-medpoints:hover {
            background-color: var(--medbase-orange);
            color: #fff;
            transform: translateY(-2px);
        }

        .medbase-medpoints-title {
            color: var(--medbase-orange);
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            text-align: center;
            font-size: 0.9rem;
            padding-left: 15px;
        }

        .medbase-medpoints-title i {
            margin-right: 10px;
        }

        .medbase-cities-container {
            flex-grow: 1;
            overflow-y: auto;
            padding: 10px;
            margin-bottom: 60px;
        }

        .medbase-city-item {
            display: flex;
            align-items: center;
            padding: 8px 10px;
            background: white;
            border: 1px solid #dddddd;
            margin-bottom: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            font-size: 0.88rem;
        }

        .medbase-city-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .medbase-city-item div i, .medbase-city-item i {
            color: var(--medbase-orange);
            margin-right: 10px;
            width: 12px;
            font-size: 0.8rem;
        }

        .medbase-back-btn {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #fff;
            color: var(--medbase-orange);
            border: 1px solid #dddddd;
            font-size: 0.6rem;
            padding: 6px 10px;
            font-weight: 500;
            transition: all 0.3s ease;
            width: calc(100% - 50px);
            cursor: pointer;
            border-radius: 6px;
        }

        .medbase-back-btn:hover {
            background-color: var(--medbase-orange);
            color: white;
            transform: translateX(-50%) translateY(-2px);
        }

        .medbase-img-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding-left: 20px;
        }

        .medbase-overlay-item {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
        }

        .medbase-overlay-item i {
            margin-right: 8px;
            font-size: 0.8rem;
        }

        .medbase-flip-instruction {
            text-align: center;
            color: var(--medbase-orange);
            font-weight: 400;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            margin-top: 5px;
        }

        .medbase-flip-instruction i {
            margin-right: 8px;
            animation: medbase-bounce 2s infinite;
        }

        @keyframes medbase-bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }