:root {
    --bg-color: #1b1b1b;
    --surface-color: #1b1b1b;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #ff7b00;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);

}

/* --- استایل‌های عمومی --- */


a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff9500;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- طرح بندی اصلی --- */
.main-wrapper {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* --- کارت مقاله اصلی --- */
.article-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2rem;
    color: #d0bdac;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta i {
    margin-left: 0.5rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.share-buttons a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

.article-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* --- بخش مقالات مرتبط (اسلایدر) --- */
.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* مهم برای پنهان کردن اسلایدهای خارج از دید */
    border-radius: 8px;
}

.related-articles-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.related-card {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.related-card img {
    width: 100%;
    height: 250px; /* ارتفاع ثابت برای تصاویر */
    object-fit: cover;
    border-radius: 8px;
}

.related-card h4 {
    padding: 1rem 0;
    font-size: 1.1rem;
}

.related-card h4 a {
    color: var(--text-color);
}

/* دکمه‌های کنترل اسلایدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.prev-btn {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.next-btn {
    left: 0;
}

/* نقاط نمایش وضعیت اسلایدر */
.slider-dots {
    text-align: center;
    padding-top: 1rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}


/* --- بخش کامنت‌ها --- */
.comments-section {
    margin-top: 2rem;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-family);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #ff9500;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 700;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.comment-text {
    margin-top: 0.5rem;
}

/* --- سایدبار --- */
.widget {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #839d6d;
    color: #95928f;
}

.next-article a {
    display: block;
    color: var(--text-color);
}

.next-article img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.next-article h5 {
    font-size: 1rem;
    font-weight: 500;
}

.popular-posts ul {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 1rem;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.popular-posts img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

/* --- رسپانسیو کردن --- */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    .article-title {
        font-size: 1.5rem;
    }
}

.description img{
    border-radius: 8px;
    border: 3px solid #cccccc;
    display: block;
    margin: auto;
    max-width: 700px;
    width: 100%;
    height: auto!important;
}
