/* ==================================================
   COURSE / VIDEO PAGE STYLES
   ================================================== */

/* --- Course Header (Category + Title) --- */
.custom-education-theme-course-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-education-theme-course-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* --- Video Header Layout --- */
.custom-education-theme-video-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
    align-items: start;
}

.custom-education-theme-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow-hover);
    border: 1px solid var(--glass-border);
    background: #000;
}

.custom-education-theme-video-player iframe,
.custom-education-theme-video-player video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.custom-education-theme-video-player-poster {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-education-theme-video-play-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: customEducationThemePlayPulse 2s ease-in-out infinite;
}

.custom-education-theme-video-play-btn:hover {
    transform: scale(1.15);
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 15px 40px var(--accent-glow-60);
    animation: none;
}

@keyframes customEducationThemePlayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* --- Course Info Sidebar (Sticky + Center) --- */
.custom-education-theme-course-info-card {
    padding: 22px;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
    text-align: center;
}

.custom-education-theme-course-info-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.custom-education-theme-course-info-price .custom-education-theme-old-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}

.custom-education-theme-course-info-price .custom-education-theme-new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.custom-education-theme-course-info-price .custom-education-theme-discount-badge {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ============ COURSE ACTION BUTTONS ============ */
.custom-education-theme-course-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-education-theme-course-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px var(--accent-glow-35);
    text-decoration: none;
}

.custom-education-theme-course-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px var(--accent-glow-50);
}

.custom-education-theme-course-action-btn.custom-education-theme-state-purchased {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
    box-shadow: none;
}
.custom-education-theme-course-action-btn.custom-education-theme-state-purchased:hover {
    background: var(--success-bg-hover);
    box-shadow: 0 8px 25px var(--success-border);
    transform: translateY(-3px);
}

.custom-education-theme-course-action-btn.custom-education-theme-state-in-cart {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
    box-shadow: none;
}
.custom-education-theme-course-action-btn.custom-education-theme-state-in-cart:hover {
    background: var(--warning-bg-hover);
    box-shadow: 0 8px 25px var(--warning-border);
    transform: translateY(-3px);
}

.custom-education-theme-course-action-btn.custom-education-theme-state-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
    box-shadow: none;
}
.custom-education-theme-course-action-btn.custom-education-theme-state-info:hover {
    background: var(--info-bg-hover);
    box-shadow: 0 8px 25px var(--info-border);
    transform: translateY(-3px);
}

.custom-education-theme-course-action-btn.custom-education-theme-state-disabled {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}
.custom-education-theme-course-action-btn.custom-education-theme-state-disabled:hover {
    transform: none;
    background: var(--danger-bg);
    box-shadow: none;
}

.custom-education-theme-course-action-btn.custom-education-theme-state-neutral {
    background: var(--neutral-bg);
    border-color: var(--neutral-border);
    color: var(--neutral-text);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}
.custom-education-theme-course-action-btn.custom-education-theme-state-neutral:hover {
    transform: none;
    background: var(--neutral-bg);
    box-shadow: none;
}

/* ============ COURSE COUPON BOX ============ */
.custom-education-theme-course-coupon {
    display: flex;
    gap: 8px;
    width: 100%;
}

.custom-education-theme-course-coupon input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    font-size: 0.88rem;
    text-align: center;
    transition: var(--transition);
    min-width: 0;
}

.custom-education-theme-course-coupon input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-15);
}

.custom-education-theme-course-coupon input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.custom-education-theme-course-coupon button {
    padding: 12px 22px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-education-theme-course-coupon button:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow-35);
}

/* --- Course Meta List --- */
.custom-education-theme-course-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.custom-education-theme-course-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.custom-education-theme-course-info-list li:last-child { border-bottom: none; padding-bottom: 0; }

.custom-education-theme-course-info-list li span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.custom-education-theme-course-info-list li span:first-child i {
    color: var(--accent);
    width: 18px;
    text-align: center;
}

.custom-education-theme-course-info-list li span:last-child { font-weight: 700; color: var(--text-primary); }

/* --- Video Content Tabs --- */
.custom-education-theme-course-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.custom-education-theme-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.custom-education-theme-tabs::-webkit-scrollbar { display: none; }

.custom-education-theme-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-education-theme-tab:hover { color: var(--accent); background: var(--accent-glow-05); }

.custom-education-theme-tab.custom-education-theme-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--accent-glow-06);
}

.custom-education-theme-tab-panel {
    padding: 26px 30px 30px;
    display: none;
    opacity: 0;
    animation: customEducationThemeTabFade 0.6s ease-in-out forwards;
}

.custom-education-theme-tab-panel.custom-education-theme-active { display: block; }

@keyframes customEducationThemeTabFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-education-theme-tab-panel p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 12px;
}

/* --- Instructor Bio --- */
.custom-education-theme-instructor-bio {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--accent-glow-05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-glow-15);
}

.custom-education-theme-instructor-bio-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.custom-education-theme-instructor-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }

.custom-education-theme-instructor-bio-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-education-theme-instructor-bio-body h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }

.custom-education-theme-instructor-bio-body .custom-education-theme-instructor-bio-role {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}

.custom-education-theme-instructor-bio-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}





.custom-education-theme-certificate-list li i { color: var(--success); font-size: 0.95rem; flex-shrink: 0; }

/* --- Related Courses --- */
.custom-education-theme-related-courses { margin-top: 40px; }

.custom-education-theme-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============ COURSE RESPONSIVE ============ */
@media (max-width: 1100px) {
    .custom-education-theme-video-header { grid-template-columns: 1fr; }
    .custom-education-theme-course-info-card { position: static; }
    .custom-education-theme-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .custom-education-theme-course-title { font-size: 1.25rem; }
    .custom-education-theme-tab-panel { padding: 20px; }
    .custom-education-theme-instructor-bio { flex-direction: column; align-items: center; text-align: center; }
    .custom-education-theme-related-grid { grid-template-columns: 1fr; }
    .custom-education-theme-video-play-btn { width: 68px; height: 68px; font-size: 1.5rem; }
    .custom-education-theme-course-coupon { flex-direction: column; }
    .custom-education-theme-course-coupon button { justify-content: center; }

    /* Tabs → horizontal scroll on mobile */
    .custom-education-theme-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }

    .custom-education-theme-tabs::-webkit-scrollbar { display: none; }

    .custom-education-theme-tab {
        padding: 12px 16px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .custom-education-theme-tab i { font-size: 0.85rem; }
}

/* ============ SHORT URL BOX ============ */
.custom-education-theme-course-shorturl {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
}

/* لیبل */
.custom-education-theme-course-shorturl-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

    .custom-education-theme-course-shorturl-label i {
        color: var(--accent);
        font-size: 0.8rem;
    }

/* لینک */
.custom-education-theme-course-shorturl-value {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 600;
    background: var(--accent-glow-08);
    border: 1px dashed var(--accent-glow-25);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

/* دکمه */
.custom-education-theme-course-shorturl-copy {
    padding: 6px 10px !important;
    min-width: auto;
    flex-shrink: 0;
    height: auto;
}