:root {
    --primary: #2563eb;
    --dark: #1e40af;
    --light: #dbeafe;
    --mid: #93c5fd;
    --gold: #facc15;
}

.breadcrumb {
    padding: 10px 10px;
    background: #eff6ff;
    border: 2px solid #93c5fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-top: 10px;
    border-radius: 20px;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    flex-wrap: wrap;
}

.bread-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bread-link:hover {
    background: var(--light);
    color: var(--dark);
}

.bread-sep {
    color: #cbd5e1;
    font-size: 1.2rem;
    font-weight: 300;
}

.bread-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--mid);
}

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1e40af 100%);
    padding: 20px 20px 10px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: olgoGridMove 8s linear infinite;
}

@keyframes olgoGridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 10px;
    color: gold;
}

.hero h1 span {
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #0f172a;
    border-right: 5px solid var(--primary);
    padding-right: 15px;
}

/* ===== نکات طلایی ===== */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tip-box {
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.tip-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tip-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.tip-desc {
    font-size: 0.92rem;
    opacity: 0.85;
    line-height: 1.8;
}

.tip-example {
    background: rgba(255,255,255,0.6);
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.tip--blue {
    background: #dbeafe;
    color: #1e3a8a;
}
.tip--blue .tip-title { color: #1e40af; }

.tip--green {
    background: #dcfce7;
    color: #14532d;
}
.tip--green .tip-title { color: #16a34a; }

.tip--yellow {
    background: #fef3c7;
    color: #92400e;
}
.tip--yellow .tip-title { color: #d97706; }

.tip--purple {
    background: #f3e8ff;
    color: #4c1d95;
}
.tip--purple .tip-title { color: #7c3aed; }

.tip--pink {
    background: #fce4ec;
    color: #991b1b;
}
.tip--pink .tip-title { color: #dc2626; }

/* ===== مسیر یادگیری ===== */
.learning-path {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.learning-subtitle {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 16px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.learning-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    background: #fff;
    color: #475569;
    text-align: center;
}

.learning-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.learning-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.learning-item--active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 800;
    pointer-events: none;
    border-color: #93c5fd;
}

.learning-item--blue { border-color: rgb(97, 180, 248); }
.learning-item--blue:hover { background: #f0fdf4; color: #166534; }

.learning-item--green { border-color: #86efac; }
.learning-item--green:hover { background: #f0fdf4; color: #166534; }

.learning-item--yellow { border-color: #fcd34d; }
.learning-item--yellow:hover { background: #fffbeb; color: #92400e; }

.learning-item--purple { border-color: #c4b5fd; }
.learning-item--purple:hover { background: #f5f3ff; color: #6d28d9; }

.learning-item--pink { border-color: #f9a8d4; }
.learning-item--pink:hover { background: #fdf2f8; color: #be185d; }

.learning-item--lavender { border-color: #c4b5fd; }
.learning-item--lavender:hover { background: #f5f3ff; color: #6d28d9; }

.learning-item--cyan { border-color: #67e8f9; }
.learning-item--cyan:hover { background: #ecfeff; color: #155e75; }

.learning-item--red { border-color: #fca5a5; }
.learning-item--red:hover { background: #fef2f2; color: #991b1b; }

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .tip-box {
        padding: 16px 18px;
    }
    .learning-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    .learning-item {
        font-size: 0.75rem;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 20px 16px;
    }
    .tips-grid {
        gap: 12px;
    }
    .learning-item {
        font-size: 0.72rem;
        padding: 8px 6px;
    }
    .card h2 {
        font-size: 1rem;
    }
    .hero {
        padding: 20px 16px;
    }
    .breadcrumb-inner {
        font-size: 0.75rem;
        gap: 4px;
    }
    .bread-link,
    .bread-current {
        padding: 3px 8px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    .tip-box {
        padding: 14px 16px;
    }
    .tip-title {
        font-size: 0.95rem;
    }
    .tip-desc {
        font-size: 0.85rem;
    }
    .tip-example {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .learning-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}