﻿:root {
    --primary: #87c66d;
    --secondary: #6aad54;
    --accent: #a5d68a;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333333;
}


main {
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 30%, #f0f0f0 80%, #f5f5f5 100%);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    font-family: 'Yekan', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.article-header {
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    padding: 60px 0 40px;
    transform-style: preserve-3d;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.meta-item {
    display: flex;
    align-items: center;
}

    .meta-item i {
        margin-left: 8px;
    }

.article-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 0 40px 40px;
    line-height: 2;
    border-top: 6px solid var(--primary);
    transform-style: preserve-3d;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    transition: all 0.3s;
}

    .article-content img {
        max-width: 100%;
    }

.article-main-image {
    width: 100%;
    padding: 0 5%;
    margin: 10px auto;
    display: block;
    box-sizing: border-box;

}

.article-content:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.article-content p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out;
}

.article-content h2,
.article-content h3 {
    color: var(--primary);
    margin: 2.5rem 0 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.article-content ul {
    margin: 2rem 0;
    padding-right: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.article-content li {
    margin-bottom: 1rem;
    position: relative;
}



.article-image {
    margin: 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

    .article-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.8s;
    }

    .article-image:hover img {
        transform: scale(1.03);
    }

.back-link {
    display: inline-flex;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

    .back-link:hover {
        background-color: var(--secondary);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }










figure.image {
    display: table;
    margin: 1em auto;
}

figure.image-style-align-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

figure.image-style-align-left {
    float: left;
    margin-right: 1em;
}

figure.image-style-align-right {
    float: right;
    margin-left: 1em;
}

figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
}
figure.image figcaption {

    text-align: center;
    margin-bottom: 30px;
}

.image-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.5em;
}

.image-inline img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Make sure the image container behaves well */
.image-style-align-left,
.image-style-align-right,
.image-style-side {
    max-width: 50%;
}

.image-style-align-left {
    float: left;
    margin: 0 1rem 1rem 0;
}

.image-style-align-right {
    float: right;
    margin: 0 0 1rem 1rem;
}

.image-style-side {
    float: right;
    margin: 0 0 1rem 1rem;
}

.image-style-block {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
}

/* Inline images (usually for text-aligned ones) */
.image-inline {
    display: inline-block;
    vertical-align: middle;
}






.comment-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Yekan', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.comment-container {
    max-width: 700px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out forwards;
    color: #333333;
    line-height: 1.7;
}

/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
/* بقیه استایل‌ها مانند قبل... */
.form-header {
    background-color: #5A8F4E;
    color: white;
    padding: 25px;
    text-align: center;
}

    .form-header h2 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .form-header p {
        opacity: 0.9;
        font-size: 0.95rem;
    }

.comment-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #133971;
}

.comment-form input,
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: white;
}

    .comment-form input:focus,
    .comment-form textarea:focus,
    .comment-form select:focus {
        border-color: #5A8F4E;
        outline: none;
        box-shadow: 0 0 0 3px rgba(90, 143, 78, 0.2);
    }

.comment-form textarea {
    min-height: 200px;
    max-height: 1000px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

    .form-row .form-group {
        flex: 1;
    }

.submit-btn {
    background-color: #5A8F4E;
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

    .submit-btn:hover {
        background-color: #133971;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .submit-btn:active {
        transform: translateY(1px);
    }

.rating-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.rating-star {
    color: #FFC107;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .rating-star:hover {
        transform: scale(1.2);
    }

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}



@media (max-width: 768px) {
    .article-header {
        padding: 40px 0 10px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 0 15px 10px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content img {
        width: 80% !important;
        max-width: 80% !important;
        height: auto !important;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    figure.image {
        text-align: center;
    }

    .article-main-image {
        width: 100% !important;
        padding: 0 !important;
    }
}
@media (max-width: 768px) {
    .image-style-align-left,
    .image-style-align-right,
    .image-style-side {
        float: none !important;
        display: block !important;
        margin: 1rem auto !important;
        max-width: 80% !important;
    }
}
@media (min-width: 768px) {
    .article-content img {
        justify-content: initial !important;
        margin-left: initial !important;
        margin-right: initial !important;
    }
}

@media (max-width: 768px) {
    .comment-container {
        margin: 30px auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-header {
        padding: 20px 15px;
    }

    .comment-form {
        padding: 25px 20px;
    }
}