/* =========================================
   Page Template Styles
   ========================================= */
.up-page-wrapper {
    width: 100%;
    background: #f4f6f9;
    padding: 25px 0 60px;
    direction: rtl;
}

.up-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Breadcrumb */
.up-page-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 12.5px;
    color: #777;
}

.up-page-breadcrumb .up-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.up-page-breadcrumb a {
    color: #4837F3;
    font-weight: 500;
    text-decoration: none;
}

.up-page-breadcrumb a:hover { color: #FF6B35; }
.up-page-breadcrumb .sep { color: #ccc; font-weight: bold; margin: 0 5px; }

/* مقاله */
.up-page-article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f5;
    padding: 35px 40px;
    overflow: hidden;
}

/* هدر */
.up-page-header {
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f5;
}

.up-page-title {
    font-size: 28px;
    font-weight: 900;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.4;
}

.up-page-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px;
    font-weight: 500;
}

.up-page-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #999;
}

.up-page-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.up-page-date svg { stroke: #4837F3; flex-shrink: 0; }

/* محتوا */
.up-page-content {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}

.up-page-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin: 30px 0 15px;
    padding-right: 12px;
    border-right: 4px solid #4837F3;
    line-height: 1.5;
}

.up-page-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 25px 0 12px;
    line-height: 1.5;
}

.up-page-content h4 {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin: 20px 0 10px;
    line-height: 1.5;
}

.up-page-content p { margin: 0 0 18px; }

.up-page-content a {
    color: #4837F3;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #4837F3;
    transition: all 0.2s ease;
}

.up-page-content a:hover {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.up-page-content ul,
.up-page-content ol {
    margin: 0 0 18px;
    padding-right: 25px;
}

.up-page-content li { margin-bottom: 8px; }
.up-page-content ul li::marker { color: #4837F3; }

.up-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}

.up-page-content blockquote {
    margin: 20px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fafbff, #f5f6ff);
    border-right: 4px solid #4837F3;
    border-radius: 10px;
    font-style: italic;
    color: #555;
}

.up-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef0fa;
}

.up-page-content table th {
    background: linear-gradient(135deg, #fafbff, #f5f6ff);
    padding: 12px 15px;
    text-align: right;
    font-weight: 800;
    color: #222;
    border-bottom: 2px solid #eef0fa;
}

.up-page-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f4f4f8;
    color: #555;
}

/* لینک صفحات */
.up-page-links {
    margin: 20px 0;
    padding: 15px;
    background: #f7f8fc;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

.up-page-links a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1.5px solid #e6e8f5;
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 700;
    color: #4837F3 !important;
    border-bottom: 1.5px solid #e6e8f5 !important;
}

.up-page-links a:hover {
    background: #4837F3;
    color: #fff !important;
    border-color: #4837F3 !important;
}

/* فوتر */
.up-page-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1.5px dashed #f0f0f5;
    text-align: left;
}

.up-edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f7f8fc;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.up-edit-link a:hover {
    background: #4837F3;
    color: #fff;
}

/* نظرات */
.up-page-comments {
    margin-top: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f5;
    padding: 30px 35px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .up-page-container { padding: 0 15px; }
    .up-page-wrapper { padding: 15px 0 40px; }
    .up-page-article { padding: 22px 20px; border-radius: 14px; }
    .up-page-title { font-size: 22px; }
    .up-page-content { font-size: 14px; }
    .up-page-content h2 { font-size: 18px; margin: 25px 0 12px; }
    .up-page-content h3 { font-size: 16px; }
    .up-page-comments { padding: 20px 18px; }
}

@media (max-width: 480px) {
    .up-page-article { padding: 18px 15px; }
    .up-page-title { font-size: 20px; }
}