* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    direction: rtl;
    color: #333;
}

/* ================= HERO ================= */

.article-wrapper {
    width: 100%;
}

.article-hero {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= CONTAINER ================= */

.article-container {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* ================= ARTICLE CARD ================= */

.article-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    line-height: 2;
    font-size: 17px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 25px 0;
}

/* ================= TAGS ================= */

.article-tags {
    margin-top: 30px;
}

.article-tag {
    display: inline-block;
    background: #e0f7fa;
    color: #20B2AA;
    padding: 6px 15px;
    border-radius: 20px;
    margin: 5px 5px 0 0;
    font-size: 13px;
    transition: 0.3s ease;
}

.article-tag:hover {
    background: #40E0D0;
    color: #fff;
}

/* ================= CTA ================= */

.cta-box {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background: linear-gradient(90deg, #40E0D0, #20B2AA);
    border-radius: 16px;
    color: white;
}

.cta-box h3 {
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #20B2AA;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #f3f3f3;
}

/* ================= COMMENTS ================= */

.comment-section {
    margin-top: 50px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.section-title {
    margin-bottom: 20px;
    color: #20B2AA;
}

.comment-box {
    background: #f8fdff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0f7fa;
}

.comment-box strong {
    display: block;
    margin-bottom: 8px;
    color: #20B2AA;
}

.no-comment {
    color: #777;
}

/* ================= COMMENT FORM ================= */

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form button {
    background: #40E0D0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}

.comment-form button:hover {
    background: #20B2AA;
}

/* ================= RELATED ================= */

.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    margin-bottom: 25px;
    color: #20B2AA;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.related-excerpt {
    font-size: 14px;
    color: #666;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .article-hero {
        height: 260px;
    }

    .article-content {
        padding: 25px;
        font-size: 15px;
    }

    .comment-section {
        padding: 20px;
    }
}

.hero-title{
    display: flex;
    justify-content: space-around;
}

.article-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 15px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay روی عکس */
.hero-overlay {
    position: absolute;
    bottom: 20px;      /* پایین تصویر */
    right: 20px;       /* گوشه راست */
    left: auto;        /* اگر بخوای چپ باشه، right: auto; left:20px */
    background: rgba(0, 0, 0, 0.5); /* نیمه شفاف */
    padding: 20px;
    border-radius: 12px;
    color: white;
    max-width: 90%;
}

.hero-overlay h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.hero-meta span {
    margin-left: 10px;
    font-size: 13px;
    opacity: 0.9;
}
