/* Star Rating  */
.rated {
    color: rgb(240, 184, 73);
}
.half-rated {
    background: linear-gradient(270deg, rgb(240, 184, 73) 50%, gray 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.doctors-section {
    max-width: 1200px;
    margin: 0 auto;

}

.doctor-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 15px;
}

.doctor-name {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.doctor-rating {
    margin-bottom: 15px;
    display: inline-flex;
}
.rating-text{
    padding-right: 10px;
}

.stars {
    color: #ffd700;
    font-weight: bold;
}

.doctor-description {
    margin-bottom: 20px;
    margin-top: 20px;
    line-height: 1.6;
}

.doctor-best-for,
.doctor-positive-comments,
.doctor-negative-comments {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.doctor-best-for {
    background: #f8f9fa;
}

.doctor-positive-comments {
    background: #e8f5e9;
}

.doctor-negative-comments {
    background: #ffebee;
}

.doctor-customer-reviews,
.doctor-portfolio {
    margin-top: 20px;
}

.review-image,
.portfolio-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .doctor-customer-reviews,
    .doctor-portfolio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .doctor-customer-reviews,
    .doctor-portfolio {
        grid-template-columns: 1fr;
    }
}

.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.faq-answer {
    padding: 20px;
    line-height: 1.6;
    color: #666;
}

/* اگر می‌خواهید حالت آکاردئون داشته باشید، این CSS را اضافه کنید */
.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* یا مقدار مناسب دیگر */
    transition: max-height 0.5s ease-in;
}

.faq-question {
    position: relative;
    padding-left: 40px;
}

.faq-question::before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    content: '-';
}



/* Doctor Table */

.doctor-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.doctor-info-table th,
.doctor-info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.doctor-info-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.doctor-info-table tr:last-child th,
.doctor-info-table tr:last-child td {
    border-bottom: none;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 5px;
}

.phone-number {
    direction: ltr;
    text-align: right;
}

.doctor-info-table a {
    color: #007bff;
    text-decoration: none;
}

.doctor-info-table a:hover {
    text-decoration: underline;
}

.img-locations{
    max-width: 50px;
}
.locations a {
    margin: 0 5px;
}

.social{
    margin: 0 5px;
}

.img-social{
    max-width: 35px;
}



/* Table of content  */

/* فایل doctors-toc-styles.css */
.doctors-table-of-contents {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin: 0 0 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

}

.toc-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: #374151;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
    line-height: 1.5;
}

.toc-list a:hover {
    background-color: #f3f4f6;
    color: #2563eb;
    padding-right: 16px;
}

h2.doctor-name {
    scroll-margin-top: 80px;
    transition: background-color 0.3s ease;
}

h2.doctor-name.highlight {
    background-color: #eff6ff !important;
}

@media (max-width: 768px) {
    .doctors-table-of-contents {
        position: relative;
        top: 0;
        margin: 20px 0;
        padding: 20px;
    }
    
    .toc-list a {
        font-size: 14px;
        padding: 6px 10px;
    }
}


/* BTN  scroll 
 */

 #scrollBtn {
    width: 100%; /* تمام عرض صفحه */
    padding: 15px;
    background-color: #191970; /* رنگ پس‌زمینه */
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 16px; /* گوشه‌های گرد */
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.5); /* سایه */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#scrollBtn:hover {
    background-color: #1c1c8c; /* رنگ روشن‌تر هنگام هاور */
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.6);
}


/* Gallery  */

.wp-lightbox-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.gallery-item {
    flex: 1 1 calc(20%% - 10px); /* نمایش 3 ستون در دسکتاپ */
    max-width: calc(20% - 10px);
    text-align: center;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.masonry-gallery {
    column-count: 3; /* تعداد ستون‌ها را بسته به نیاز تغییر دهید */
    column-gap: 16px;
    width: 100%;
  }
  
  .masonry-gallery .gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
  }
  
  .masonry-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }

/* تنظیم ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 10px); /* نمایش 2 ستون در تبلت */
        max-width: calc(50% - 10px);
    }
    .masonry-gallery { column-count: 2; }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 calc(50% - 10px); /* نمایش تک‌ستونی در موبایل */
        max-width: calc(50% - 10px);
    }
    .masonry-gallery { column-count: 1; }
}



/* lightbox2 */

.lb-loader,.lightbox{text-align:center;line-height:0;position:absolute;left:0}body.lb-disable-scrolling{overflow:hidden}.lightboxOverlay{position:absolute;top:0;left:0;z-index:9999;background-color:#000;filter:alpha(Opacity=80);opacity:.8;display:none}.lightbox{width:100%;z-index:10000;font-weight:400;outline:0}.lightbox .lb-image{display:block;height:auto;max-width:inherit;max-height:none;border-radius:3px;border:4px solid #fff}.lightbox a img{border:none}.lb-outerContainer{position:relative;width:250px;height:250px;margin:0 auto;border-radius:4px;background-color:#fff}.lb-outerContainer:after{content:"";display:table;clear:both}.lb-loader{top:43%;height:25%;width:100%}.lb-cancel{display:block;width:32px;height:32px;margin:0 auto;background:url(../images/loading.gif) no-repeat}.lb-nav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}.lb-container>.nav{left:0}.lb-nav a{outline:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)}.lb-next,.lb-prev{height:100%;cursor:pointer;display:block}.lb-nav a.lb-prev{width:34%;left:0;float:left;background:url(../images/prev.png) left 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-prev:hover{filter:alpha(Opacity=100);opacity:1}.lb-nav a.lb-next{width:64%;right:0;float:right;background:url(../images/next.png) right 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-next:hover{filter:alpha(Opacity=100);opacity:1}.lb-dataContainer{margin:0 auto;padding-top:5px;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.lb-dataContainer:after{content:"";display:table;clear:both}.lb-data{padding:0 4px;color:#ccc}.lb-data .lb-details{width:85%;float:left;text-align:left;line-height:1.1em}.lb-data .lb-caption{font-size:13px;font-weight:700;line-height:1em}.lb-data .lb-caption a{color:#4ae}.lb-data .lb-number{display:block;clear:left;padding-bottom:1em;font-size:12px;color:#999}.lb-data .lb-close{display:block;float:right;width:30px;height:30px;background:url(../images/close.png) top right no-repeat;text-align:right;outline:0;filter:alpha(Opacity=70);opacity:.7;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.lb-data .lb-close:hover{cursor:pointer;filter:alpha(Opacity=100);opacity:1}
