/* ==========================================================================
   تم پورتال آموزش و مستندات نرم‌افزار حسابداری (Premium Documentation Hub)
   ========================================================================== */

:root {
    --bg-main: #0b111e;
    --bg-card: rgba(22, 32, 53, 0.6);
    --primary: #38bdf8; /* آبی تکنولوژی برای راهنما */
    --accent: #ef4444;  /* قرمز برای هماهنگی با هویت آروتک */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body.edu-portal-body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

/* هدر اختصاصی */
.edu-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 15px 0;
}

.edu-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edu-brand h1 {
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.edu-brand p {
    font-size: 0.85rem;
    margin: 3px 0 0 0;
    color: var(--text-muted);
}

.back-to-app-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.back-to-app-btn:hover {
    background: var(--primary);
    color: #0b111e;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* بدنه چیدمان دو ستونه */
.edu-main-container {
    max-width: 1400px;
    margin: 100px auto 40px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

/* سایدبار ناوبری چسبان */
.edu-sidebar {
    position: relative;
}

.sidebar-sticky-content {
    position: sticky;
    top: 100px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-sticky-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.05rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0; margin: 0;
}

.sidebar-nav ul li {
    margin-bottom: 8px;
}

.sidebar-nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-nav ul li a.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    font-weight: 700;
    border-right: 3px solid var(--primary);
}

/* محتوای سمت چپ کارت‌ها */
.edu-content-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.edu-section-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 110px; /* تنظیم تراز اسکرول با هدر */
}

.section-badge {
    position: absolute;
    top: 25px; left: 40px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.edu-section-card h2 {
    font-size: 1.7rem;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.section-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 35px;
}

/* پلیر ویدیو ریسپانسیو */
.video-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* گالری عکس‌ها */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* لیست قدم به قدم */
.step-by-step-guide {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-by-step-guide h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.step-by-step-guide ol {
    margin: 0; padding-right: 20px;
}

.step-by-step-guide li {
    margin-bottom: 10px;
    color: #d1d5db;
}

/* فوتر انتهای صفحه */
.edu-footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

/* ریسپانسیو فوق‌العاده برای موبایل */
@media (max-width: 992px) {
    .edu-main-container {
        grid-template-columns: 1fr; /* حذف سایدبار از کنار در موبایل */
        margin-top: 120px;
        padding: 0 15px;
    }
    .edu-sidebar {
        display: none; /* مخفی کردن سایدبار متنی در موبایل برای سادگی */
    }
    .edu-section-card {
        padding: 25px 20px;
    }
    .image-gallery {
        grid-template-columns: 1fr;
    }
    .section-badge {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
    .edu-header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}