/*
Theme Name: مارون استدیو (Maron Studio)
Author: Maron Agency
Version: 1.3
Description: قالب حرفه‌ای، تمیز و مدرن برای آژانس‌های خلاق، کسب‌وکارها و استودیوهای طراحی وب.
*/

@charset "UTF-8";

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #872532;       /* رنگ اصلی جدید (جگری تیره) */
    --primary-hover: #6d1823; /* رنگ هاور هماهنگ با جگری تیره */
    --secondary: #0ea5e9;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

/* ریست استایل‌های پایه */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ممانعت از اسکرول صفحه در هنگام باز بودن کشوی موبایل */
body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* هدر شیشه‌ای با افکت تاری پس‌زمینه */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1050; /* قرارگیری بالای لایه مات پس‌زمینه (1040) */
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* کانتینر در دسکتاپ خنثی است و به صورت ردیف افقی عمل می‌کند */
.nav-links-container {
    display: flex;
    align-items: center;
}

.close-menu-btn {
    display: none; /* پنهان در دسکتاپ */
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links .active a {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1001;
}

/* دکمه‌ها */
.btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(135, 37, 50, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* بخش بنر معرفی (Hero Section) */
.hero {
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-main) 95%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(135, 37, 50, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
    border: 1px solid rgba(135, 37, 50, 0.1);
}

.hero h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* بخش خدمات */
.services {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(135, 37, 50, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* بخش نمونه‌کارها */
.portfolio {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portfolio-preview {
    aspect-ratio: 16 / 10;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.portfolio-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-preview img {
    transform: scale(1.05);
}

.browser-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4px 6px;
    border-radius: 20px;
}

.browser-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.portfolio-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.portfolio-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* بخش فرم تماس */
.contact {
    padding: 100px 0;
}

.contact-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background-color: #f8fafc;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details li i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 37, 50, 0.1);
}

/* لایه نیمه‌شفاف پس‌زمینه در موبایل */
.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* فوتر پایین صفحه */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* استایل صفحات منفرد (Single Pages) */
.single-page {
    padding-top: 130px;
    padding-bottom: 80px;
}

.single-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.single-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-content {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.9;
}

.single-content p {
    margin-bottom: 20px;
}

/* بخش نظرات */
.comments-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.comment-list {
    margin-bottom: 40px;
}

.comment-item {
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* استایل سیستم صفحه‌بندی (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* سیستم اطلاعیه موقت (Toasts) */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 2000;
}

.toast {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.toast.success {
    border-right: 4px solid var(--primary);
}

.toast.error {
    border-right: 4px solid #ef4444;
}

/* ==========================================================================
   قوانین واکنش‌گرایی، تبلت و موبایل (Mobile Responsive)
   ========================================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links-container {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-light);
        padding: 40px 24px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1050;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
    }

    .nav-links-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 15px;
    }

    .close-menu-btn {
        display: block;
        align-self: flex-end;
        font-size: 22px;
        cursor: pointer;
        color: var(--text-main);
        margin-bottom: 20px;
    }

    header nav .btn-header,
    header nav .btn {
        display: none !important;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 14px;
    }

    .contact-info, .contact-form {
        padding: 30px;
    }
}

/* ==========================================================================
   استایل‌های اختصاصی تک‌برگ نمونه کار (Portfolio Single Styles)
   ========================================================================== */

.portfolio-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.portfolio-single-title-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portfolio-single-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
}

.portfolio-single-title-text {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
}

.portfolio-single-date {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-block;
    margin-top: 5px;
}

/* چیدمان دو ستونه اصلی مشخصات و شبیه‌ساز */
.portfolio-single-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون ۵۰-۵۰ مساوی */
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

/* واکنش‌گرایی: قرارگیری زیر هم در تبلت و موبایل */
@media (max-width: 992px) {
    .portfolio-single-main-layout {
        grid-template-columns: 1fr;
    }
}

.portfolio-single-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* کارت معرفی خلاصه پروژه */
.portfolio-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-summary-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.portfolio-summary-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* پشته عمودی المان‌های مشخصات */
.portfolio-meta-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-meta-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.portfolio-meta-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(135, 37, 50, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portfolio-meta-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.portfolio-meta-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.portfolio-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-meta-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* رنگ متمایز تگ‌های دسته‌بندی با استایل جدید لینک‌ها */
.portfolio-meta-tag.category-tag {
    color: var(--secondary);
    border-color: rgba(14, 165, 233, 0.2);
    background-color: rgba(14, 165, 233, 0.05);
}

.portfolio-meta-tag.category-tag:hover {
    background-color: rgba(14, 165, 233, 0.12);
    border-color: var(--secondary);
    transform: translateY(-1px);
}

/* رنگ متمایز تگ‌های تکنولوژی */
.portfolio-meta-tag.tech-tag {
    color: var(--primary);
    border-color: rgba(135, 37, 50, 0.2);
    background-color: rgba(135, 37, 50, 0.05);
}

.portfolio-meta-tag.tech-tag:hover {
    background-color: rgba(135, 37, 50, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.portfolio-meta-empty {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* ستون رسانه و شبیه‌ساز مروگر */
.portfolio-single-media-col {
    width: 100%;
}

.portfolio-screenshot-container {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: var(--shadow-md);
    margin-bottom: 35px;
    width: 100%; /* اشغال کامل فضای ۵۰ درصدی ستون چپ */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.browser-header {
    background: #e2e8f0;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 12px;
    direction: ltr; /* جهت چپ به راست مروگر استاندارد */
    flex-shrink: 0;
}

.browser-dots-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.browser-dot-red {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.browser-dot-yellow {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
}

.browser-dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
}

.browser-address-bar {
    background: #fff;
    flex: 1;
    height: 22px;
    border-radius: 6px;
    margin-right: 15px; /* ایجاد فاصله از دکمه‌های کنترل پنجره در سمت راست */
    max-width: 450px;
    font-size: 11px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #94a3b8;
    direction: ltr;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.browser-body {
    width: 100%;
    height: 480px; /* ارتفاع ثابت کادر شبیه‌ساز */
    overflow: hidden;
    position: relative;
}

.browser-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 5s ease-in-out; /* زمان پیمایش نرم افکت */
    transform: translateY(0);
}

/* افکت حرکت آرام تصویر به سمت بالا در زمان هاور ماوس بر روی کادر مروگر */
.portfolio-screenshot-container:hover .browser-screenshot-img {
    transform: translateY(calc(-100% + 480px));
}

.portfolio-single-section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* ==========================================================================
   استایل‌های اختصاصی آرشیو نمونه کارها (Portfolio Archive)
   ========================================================================== */

.portfolio-archive-header {
    text-align: right;
    max-width: 100%;
    margin-bottom: 50px;
}

.portfolio-archive-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
}

.portfolio-header-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 15px;
    border-radius: 99px;
}

.portfolio-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.portfolio-card-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.portfolio-card-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
    background: #fff;
}

.portfolio-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.portfolio-card-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================================================
   کلاس‌های کمکی جدید (به جهت ممانعت از بکارگیری استایل‌های درون‌خطی)
   ========================================================================== */

.section-header.archive-header {
    text-align: right;
    max-width: 100%;
    margin-bottom: 40px;
}

.archive-header-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 15px;
    border-radius: 99px;
}

.portfolio-preview-placeholder-box {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.archive-empty-text {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 80px 0;
}

.portfolio-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-detail-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-detail-icon {
    vertical-align: middle;
    margin-left: 8px;
    color: var(--primary);
}

.btn.btn-full {
    width: 100%;
}

.hero-badge.single-badge {
    margin-bottom: 15px;
    font-weight: 700;
}

.toast.toast-mb {
    margin-bottom: 20px;
}

.comments-title {
    margin-bottom: 24px;
    font-weight: 800;
}

.comments-empty {
    color: var(--text-muted);
    font-size: 14px;
}

.comment-form-container {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.comment-form-title {
    margin-bottom: 20px;
    font-weight: 800;
}

.user-logged-in-info {
    background-color: #f1f5f9;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.comment-form-group {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .comment-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* استایل هدر اختصاصی منوی کشویی موبایل */
.drawer-header {
    display: none;
}

@media (max-width: 768px) {
    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 15px;
    }
    
    .drawer-logo {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .close-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        cursor: pointer;
        color: var(--text-main);
        margin-bottom: 0 !important;
    }
}

/* بخش آخرین مطالب وبلاگ در صفحه نخست */
.latest-blog {
    padding: 100px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.blog-horizontal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.blog-card-image-box {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1;
}

.blog-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.5;
}

.blog-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   استایل‌های سایدبار دو ستونه جدید صفحات وبلاگ
   ========================================================================== */

.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.widget-item:hover {
    transform: translateX(-3px);
}

.widget-item-img-box {
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    flex: 1;
}

.widget-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
}

.widget-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}
/* ==========================================================================
   بخش رضایت مشتریان (Testimonials Section - Global Standard Style)
   ========================================================================== */

.testimonials-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

/* آیکون نقل قول زیبا در پشت زمینه کارت */
.testimonial-card::before {
    content: "\f10d"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.08;
    pointer-events: none;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.testimonial-card:hover::before {
    opacity: 0.15;
    transform: scale(1.1);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #fbbf24; /* طلایی استاندارد */
    font-size: 12px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    background-color: #e2e8f0;
}

.testimonial-details h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.testimonial-details span {
    font-size: 12px;
    color: var(--text-muted);
}
/* ==========================================================================
   استایل‌های ویجت تماس شناور (Floating Contact Widget)
   ========================================================================== */

.floating-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    font-family: 'Vazirmatn', sans-serif;
}

.floating-contact-trigger {
    width: 60px;
    height: 60px;
    background-color: #f59e0b; /* رنگ پرتقالی هماهنگ با تصویر کاربر */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
}

.floating-contact-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #d97706;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* انیمیشن پالس برای دکمه تماس شناور */
.floating-contact-trigger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: contact-pulse 2s infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes contact-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-contact-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-contact-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.floating-contact-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.floating-contact-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-3px);
}

.floating-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.floating-contact-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
}

.floating-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}

.floating-contact-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.floating-contact-role {
    font-size: 11px;
    color: var(--text-muted);
}

.floating-contact-item:hover .floating-contact-name {
    color: var(--primary);
}

.floating-contact-item:hover .floating-contact-avatar-placeholder {
    background: #cbd5e1;
}