.cadence-doctor-profile {
    font-family: inherit;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.cadence-doctor-profile * {
    box-sizing: border-box;
}

/* Header Section */
.doctor-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
    position: relative;
    overflow: hidden;
}

.doctor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.doctor-info-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.doctor-main-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.doctor-image-container {
    position: relative;
    flex-shrink: 0;
}

.doctor-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.doctor-details h1 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.doctor-title {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.experience-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

/* Booking Buttons */
.header-booking-btn {
    background: white;
    color: #1e3a5f;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.header-booking-btn::before {
    content: '📅';
    font-size: 1.2em;
}

/* Quick Info Cards */
.quick-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.info-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.info-card-title {
    color: #2c5282;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.info-card-value {
    color: #666;
    font-size: 0.95em;
}

/* Main Content Grid */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* About Section */
.about-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    color: #1e3a5f;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-right: 15px;
}

.section-title:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2c5282;
    border-radius: 2px;
}

.about-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    text-align: justify;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contact Card */
.contact-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e7ff;
}

.contact-card h3 {
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.contact-info {
    margin-bottom: 15px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.contact-info-icon {
    color: #2c5282;
    font-size: 1.2em;
}

.sidebar-booking-btn {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.sidebar-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
}

/* Resume Section */
.resume-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.resume-timeline {
    position: relative;
    padding-right: 40px; /* افزایش دادم از 30px به 40px */
}

.resume-timeline::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e7ff;
}

.resume-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    padding-right: 25px; /* اضافه کردم - فاصله متن از سمت راست */
}

.resume-item::before {
    content: '';
    position: absolute;
    right: -1px; /* تغییر دادم از 0 به -1px */
    top: 5px;
    width: 12px;
    height: 12px;
    background: #2c5282;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e0e7ff;
    z-index: 1; /* اضافه کردم تا آیکون بالای خط عمودی باشه */
}

.resume-item h3 {
    color: #2c5282;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4; /* اضافه کردم برای بهبود فاصله خطوط */
}

.resume-item p {
    color: #666;
    margin: 5px 0;
    line-height: 1.6; /* اضافه کردم برای بهبود خوانایی */
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-content {
    order: 2;
}

.video-content h2 {
    color: #1e3a5f;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.video-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    order: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 30px;
    border-radius: 15px;
    min-width: 350px;
    position: relative;
    border: 1px solid #e0e7ff;
    scroll-snap-align: start;
}

.testimonial-card:before {
    content: '❝';
    font-size: 3em;
    color: #2c5282;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.testimonial-text {
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    color: #2c5282;
    font-weight: 600;
}

.testimonial-date {
    color: #999;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Floating Booking Button */
.floating-booking {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-booking-btn {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-booking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .video-wrapper {
        grid-template-columns: 1fr;
    }
    
    .video-content {
        order: 1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .video-container {
        order: 2;
    }
}

@media (max-width: 768px) {
    .doctor-info-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-image {
        width: 150px;
        height: 150px;
    }
    
    .header-booking-btn {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .quick-info-section {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        gap: 20px;
    }
    
    .testimonial-card {
        min-width: 280px;
    }
    
    .floating-booking {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .floating-booking-btn {
        justify-content: center;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .doctor-header,
    .about-section,
    .resume-section,
    .video-section,
    .testimonials-section {
        padding: 25px;
    }
}

/* Scrollbar Styling */
.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: #2c5282;
    border-radius: 10px;
}
