﻿:root {
    --primary: #AE8DCD;
    --light-bg: #faf2ff;
    --accent: #FEC107;
    --dark-text: #2F0E4C;
    --medium-text: #3a3853;
    --white: #ffffff;
    --shadow: rgba(174, 141, 205, 0.15);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--white);
    padding: 15px 0;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

.breadcrumb-content {
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    list-style-type:none;
    padding:0px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

    .breadcrumb a:hover {
        color: var(--dark-text);
    }

.breadcrumb span {
}

.breadcrumb i {
    color: var(--accent);
    font-size: 12px;
    margin:0px 3px;
}

/* Article Info */
.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 14px;
    color: var(--medium-text);
}

.publish-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--medium-text);
    font-size: 14px;
}

    .publish-date i {
        color: var(--primary);
    }

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 20px 0 60px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px; /* فاصله از بالای صفحه */
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: 10px;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: var(--light-bg);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

.sidebar-widget {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

    .widget-title i {
        color: var(--primary);
        font-size: 20px;
    }

    .widget-title h3 {
        font-size: 20px;
        margin: 0;
    }

/* Social Sharing */
.social-sharing {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--medium-text);
    transition: all 0.3s;
    border: 1px solid #eee;
}

    .share-button:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 10px var(--shadow);
    }

    .share-button i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }

.whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

.telegram {
    background-color: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.2);
}

.instagram {
    background-color: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.2);
}

.twitter {
    background-color: rgba(29, 161, 242, 0.1);
    border-color: rgba(29, 161, 242, 0.2);
}

/* Related Services */
.related-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--medium-text);
    transition: all 0.3s;
    border: 1px solid #eee;
}

    .service-link:hover {
        background-color: rgba(174, 141, 205, 0.1);
        transform: translateX(-5px);
        border-color: var(--primary);
    }

    .service-link i {
        color: var(--primary);
    }

/* Quick Contact */
.quick-contact {
    background: linear-gradient(135deg, var(--primary) 0%, #d0b4e7 100%);
    color: white;
    text-align: center;
}

    .quick-contact .widget-title {
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }

        .quick-contact .widget-title h3 {
            color: white;
        }

        .quick-contact .widget-title i {
            color: white;
        }

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

    .contact-info-sidebar div {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

    .faq-question:hover {
        background-color: var(--light-bg);
    }

    .faq-question i {
        color: var(--primary);
        transition: transform 0.3s;
    }

.faq-answer {
    background-color: var(--light-bg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

    .faq-answer.active {
        padding: 20px;
        max-height: 500px;
    }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}


.comment {
}

    .comment .body_comment .author {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        color: #222B34;
    }

        .comment .body_comment .author .comment_meta {
            color: #6C8093;
        }

    .comment .body_comment p {
        text-align: justify;
        font-size: 14px;
        font-weight: 500;
        line-height: 28px;
        color: #222B34;
    }


    .comment .body_comments {
        background-color: #F8FBFC;
        border: 1px solid #DBE4EC;
        border-radius: 40px;
        padding: 30px;
        margin: 25px 0px 35px 0px;
    }

        .comment .body_comments .comment_icon {
            width: 60px;
            height: 60px;
            border-radius: 18px;
            border: 2px solid #fff;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            display: inline-block;
            margin: 5px 5px 5px 15px;
        }

            .comment .body_comments .comment_icon.ques_icon {
                background-image: url('../img/GuestUser.png');
            }

            .comment .body_comments .comment_icon.answer_icon {
                background-image: url('../img/AdminUser.png');
            }

        .comment .body_comments .body_comment .question_comment {
            border-bottom: 1px solid #DBE4EC;
            padding-bottom: 20px;
        }

        .comment .body_comments .body_comment .Response_comment {
            padding: 20px 50px 5px 5px;
        }

        .comment .body_comments .body_comment .links_comments a {
            font-size: 12px !important;
            color: #0D99F1 !important;
        }

.form_comment {
    margin: 20px 0px 30px 0px;
}

    .form_comment .head_form {
        display: flex;
        align-items: center;
        margin-top: 60px;
        margin-bottom: 20px;
    }

    .form_comment #send_comment .submit .submit_btn {
        font-size: 12px;
        color: white;
        background-color: #13BFA4;
        padding: 15px 25px;
        border-radius: 40px;
        border: none;
    }

    .form_comment #send_comment .submit_section .submit {
        border: none;
        padding: 4px 2px;
        display: flex;
        justify-content: end;
    }

        .form_comment #send_comment .submit_section .submit .border_btn {
            border: 1px solid #cccccc;
            padding: 5px;
            border-radius: 30px;
        }

    .form_comment #send_comment .submit_section {
        margin-right: 0px !important;
        margin-bottom: 20px;
    }

    .form_comment #send_comment .form_name, .form_email {
        margin-bottom: 30px;
    }

    .form_comment fieldset{
        padding:0px;
    }
.form_text {
    margin-bottom: 20px;
}

#text_comment {
    border-radius: 30px;
    padding: 10px;
}

#email_comment {
    border-radius: 30px;
    padding: 13px;
    direction: rtl;
}

#name_comment {
    border-radius: 30px;
    padding: 13px;
}

.form_name, .form_email, .form_text {
    position: relative;
}

#send_comment svg.input-icon {
    position: absolute;
    height: auto;
}

#send_comment .name-icon {
    top: 12px;
    right: 28px;
}

#send_comment .email-icon {
    top: 12px;
    right: 28px;
}

#send_comment .text-icon {
    top: 30px;
    right: 35px;
}

.form_comment #send_comment input[type="text"] {
    padding-right: 60px;
}

.form_comment #send_comment input[type="email"] {
    padding-right: 60px;
}

.form_comment #send_comment #text_comment {
    padding-top: 25px;
    padding-right: 60px;
}


.form_comment #send_comment div.spliter {
    position: absolute;
    right: 60px;
    top: 12px;
    height: 20px;
    width: 1px;
    background-color: #cccccc;
}


/* Content Sections */
.content-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

    .section-header h2 {
        font-size: 26px;
        margin: 0;
    }

.section-content {
    font-size: 17px;
}

    .section-content p {
        text-align: justify
    }

.subsection {
    margin-bottom: 25px;
}

    .subsection h3 {
        color: var(--primary);
        font-size: 20px;
        margin-bottom: 15px;
        padding-right: 15px !important;
        border-right: 4px solid var(--accent);
    }

    .subsection p {
        margin-bottom: 15px;
    }

/* Media Content */
.media-container {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

    .media-container img {
        border-radius: var(--g-border-radius-3);
        display: block;
        margin: 35px auto;
        max-height: 80vh;
        width: 100%;
        object-fit:cover;
    }

    .media-container:hover img {
        transform: scale(1.03);
    }

/* Video Player */
.video-player {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

    .video-player video {
        /* width: 100%;
        height: auto;
        display: block;*/

        border-radius: 24px;
        width: 100%;
        height: 60vh;
        object-fit: cover;
    }

/* Two Column Content */
.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.column {
    display: flex;
    flex-direction: column;
}

/* Services Section */
.services-section {
    margin-top: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0px;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

    .service-card:hover {
        border-color: var(--primary);
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(174, 141, 205, 0.2);
    }

.services-section .service-icon {
    background-color: var(--primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.service-card h3 {
    color: var(--dark-text);
    margin: 10px auto;
    font-size: 18px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 36px !important;
}

.service-card p {
    font-size: 15px;
    line-height: 28px;
    color: var(--medium-text);
    text-align: justify;
    display: inline-block;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 5;
    height: 145px;
    margin-top: 15px;
}

/* Features List */
.features-list {
    list-style-type: none;
}

    .features-list li {
        padding: 12px 0;
        padding-right: 40px;
        position: relative;
        border-bottom: 1px dashed #e0d6e9;
    }

        .features-list li:before {
            content: "✓";
            position: absolute;
            right: 0;
            top: 12px;
            background-color: var(--accent);
            color: var(--dark-text);
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }


/* Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 5px 15px var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

    .pricing-table th {
        background-color: var(--primary);
        color: white;
        padding: 15px;
        text-align: right;
    }

    .pricing-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .pricing-table tr:nth-child(even) {
        background-color: var(--light-bg);
    }

    .pricing-table tr:hover {
        background-color: rgba(174, 141, 205, 0.1);
    }

/* Table of Contents - Compact Version */
.toc-widget {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0e6fa 100%);
    /*        border-right: 5px solid var(--primary);
    */ padding: 20px !important;
}

.toc-list {
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 0px;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--medium-text);
    transition: all 0.3s;
    border: 1px solid transparent;
    font-size: 14px;
    height: 100%;
    min-height: 45px;
}

    .toc-link:hover {
        background-color: white;
        border-color: var(--primary);
        transform: translateX(-3px);
        box-shadow: 0 3px 8px var(--shadow);
    }

    .toc-link.active {
        background-color: var(--primary);
        color: white;
    }

        .toc-link.active i {
            color: white;
        }

.toc-number {
    background-color: var(--accent);
    color: var(--dark-text);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.toc-link.active .toc-number {
    background-color: white;
    color: var(--primary);
}

.toc-text {
    font-size: 13px;
    line-height: 1.4;
    flex-grow: 1;
}

@media (min-width: 992px) {

    .video-player video {
        width: 90%;
        height: 70vh;
    }

    .media-container img {
        width: unset;
    }
}



@media (max-width: 1200px) {
    .toc-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 1; /* سایدبار بعد از محتوای اصلی در موبایل */
        max-height: none;
    }

    .two-column-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .article-info {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
   
}

@media (max-width: 768px) {
    .content-section {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .toc-link {
        padding: 8px 10px;
        min-height: 55px;
    }

    .toc-text {
        font-size: 12px;
    }
    
}

/* Decorative elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    bottom: -30px;
    left: -30px;
}

.highlight-box {
    background-color: var(--light-bg);
    border-right: 5px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--medium-text);
    margin-top: 10px;
    font-size: 14px;
    padding: 0 10px;
}

/* Loading animation for images */
.media-container img {
    background: linear-gradient(90deg, var(--light-bg) 25%, #f0e6fa 50%, var(--light-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


