  /* استایل اصلی بدن */
  body {
    background-color: #272F39;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #A695CF;
    text-align: center;
    margin-bottom: 30px;
    font-size: 37px;
}

h2 {
    color: #D496B8;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* استایل آیتم‌های آموزشی */
.instruction-item {
    background-color: #1E1E2D;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #7D4FE7;
}

.item-header {
    padding: 15px 20px;
  font-size: 18px;
    color: white;
    border-radius: 20px;
    margin: 10px;
}

/* استایل ویدئو */
.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    border-radius: 8px;
    overflow: hidden;
}

.video-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 50px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.video-container:hover .play-icon {
    color: #7D4FE7;
    transform: translate(-50%, -50%) scale(1.1);
}

/* استایل پلیر صوتی - تغییرات اصلی اینجا اعمال شده */
.audio-player {
    width: 100%;
    margin: 15px 0;
    background-color: #2A2A3A;
    border-radius: 50px;
    padding: 10px 20px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse; /* تغییر جهت به راست به چپ */
}

.play-btn {
    background: linear-gradient(145deg, #6d3fd7, #7D4FE7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2),
                -5px -5px 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn:active {
    box-shadow: inset 3px 3px 5px rgba(0,0,0,0.2),
                inset -3px -3px 5px rgba(255,255,255,0.1);
}

.play-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    animation: pulse 2s infinite;
    opacity: 0;
}

.play-btn.playing::after {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0; }
}

.timeline-container {
    flex-grow: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    margin-top: 23px;
    height: 100%;
}


.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #3A3A4A;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
    direction: ltr;
    margin: 5px 0; /* فاصله از زمان */
}

.progress-bar:hover {
    height: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #7D4FE7, #A695CF);
    border-radius: 10px;
    width: 0%;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(125, 79, 231, 0.8);
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    direction: ltr;
}

.time {
    font-size: 14px;
    color: #D496B8;
}

/* استایل پایانی */
.final-note {
    background-color: #1E1E2D;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #7D4FE7;
}

.final-note p {
    font-size: 18px;
    margin-bottom: 15px;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.4);
}

.whatsapp-link i {
    margin-left: 8px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    p {
font-size: 20px;
margin-bottom: 20px;
text-align: center !important;

}
    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 18px;
    }

    .item-header {
        padding: 12px 15px;
        font-size: 16px;
    }

    .video-container {
        max-width: 100%;
    }
    
    .audio-player {
        padding: 8px 15px;
        border-radius: 30px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .progress-bar {
        height: 6px;
    }
}