/*
Theme Name: UpSEO
Theme URI: https://example.com/upseo
Author: Your Name
Author URI: https://example.com
Description: یک قالب ساده، مینیمال و راست‌چین برای وردپرس با تمرکز بر سئو و سرعت.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upseo
Tags: blog, one-column, custom-menu, featured-images, rtl-language-support, block-styles, wide-blocks
*/

        :root {
            --primary: #063733;
            --accent: #d4af37;
            --white: #ffffff;
            --light-gray: #f8f9fa;
            --text-dark: #212529;
            --shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
* { box-sizing: border-box; margin: 0; padding: 0; }




/* تعریف فونت YekanBakhFaNum-Light */
@font-face {
    font-family: 'YekanBakhFaNum-Light';
    src: url('https://tparseh.com/wp-content/uploads/2025/12/YekanBakhFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* تعریف فونت YekanBakhFaNum-Bold */
@font-face {
    font-family: 'YekanBakhFaNum-Bold';
    src: url('https://tparseh.com/wp-content/uploads/2025/12/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* اعمال فونت YekanBakhFaNum-Light به body */
body {
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #FFFFF;
    margin: 0;
  padding: 0; overflow-x: hidden;
}



        /* --- هدر اصلی --- */
        header {
            width: 100%;
            background: url('https://tparseh.com/wp-content/uploads/2025/12/headback.svg') center/cover no-repeat;
            height: 125px;
            display: flex;
            justify-content: center;
            position: relative;
        }

        .header-container {
            width: 100%;
            max-width: 1200px;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            padding: 0 30px;
        }

        .top-nav-btn {
            margin-top: -50px; 
            cursor: pointer;
            z-index: 100;
        }

        .phone-btn-wrapper { display: flex; justify-content: flex-end; }
        .phone-btn { color: #fff; transition: 0.3s; }
        .phone-btn:hover { color: #d4af37; transform: scale(1.1); }

        .burger { display: flex; flex-direction: column; gap: 6px; width: 30px; }
        .burger span { display: block; height: 2px; background: #fff; transition: 0.3s; }
        .burger span:nth-child(2) { width: 20px; }

        /* لوگو با انیمیشن حرفه‌ای */
        .logo-area { position: relative; display: flex; justify-content: center; align-items: center; }
        .logo-glow {
            position: absolute;
            width: 130px; height: 130px;
            background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
            animation: breathe 4s infinite ease-in-out;
        }
        
        /* اضافه کردن استایل برای لینک لوگو */
        .logo-link { position: relative; z-index: 2; display: flex; align-items: center; }
        .logo-area img { height: 90px; animation: heartbeat 3s infinite ease-in-out; }

        @keyframes heartbeat {
            0%, 30%, 100% { transform: scale(1); }
            5% { transform: scale(1.06); }
            15% { transform: scale(1.03); }
        }
        @keyframes breathe { 0%, 100% { transform: scale(0.8); opacity: 0.2; } 50% { transform: scale(1.4); opacity: 1; } }

        /* --- مودال منو تمام صفحه --- */
        .modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(10, 10, 10, 0.98);
            display: flex; flex-direction: column; align-items: center;
            opacity: 0; visibility: hidden; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 9999;
            padding: 40px 20px; overflow-y: auto;
        }
        .modal.active { opacity: 1; visibility: visible; }

        .modal-logo { margin-bottom: 40px; }
        .modal-logo img { height: 75px; }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            width: 100%;
            max-width: 1100px;
            text-align: right;
        }

        .col h4 { color: #d4af37; font-size: 15px; margin-bottom: 18px; border-bottom: 1px solid #333; padding-bottom: 8px; font-weight: bold; }
        .col ul { list-style: none; }
        .col li { margin-bottom: 10px; opacity: 0; transform: translateY(15px); transition: 0.4s; }
        .modal.active li { opacity: 1; transform: translateY(0); }
        .col a { color: #bbb; text-decoration: none; font-size: 13px; transition: 0.3s; display: block; }
        .col a:hover { color: #fff; padding-right: 5px; }

        .close-x { position: absolute; top: 25px; right: 35px; color: #fff; font-size: 45px; cursor: pointer; }

        /* --- ریسپانسیو موبایل --- */
        @media (max-width: 768px) {
            header { height: 100px; }
            .top-nav-btn { margin-top: -30px; }
            .logo-area img { height: 60px; }
            
            .menu-grid {
                grid-template-columns: repeat(2, 1fr); 
                gap: 25px 15px;
            }
            .modal-logo { margin-bottom: 30px; }
            .col h4 { font-size: 13px; }
        }
    


        /* Hero Section - Modern & Engaging */
        .hero {margin-top: -50px;
            display: flex; align-items: center; min-height: 100vh;
            padding: 80px 10%; background: linear-gradient(rgba(6,55,51,0.9), rgba(6,55,51,0.9)), url('https://tparseh.com/wp-content/uploads/2020/12/tabloparseh-10.jpg') center/cover no-repeat fixed;
            color: var(--white); gap: 60px;
        }
        .hero-text { flex: 1.4; }
        .hero-text h1 { font-size: 3.2rem; line-height: 1.3; margin-bottom: 30px; font-weight: 900; }
        .hero-text h1 span { color: var(--accent); display: block; }
        .hero-text p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 25px; text-align: justify; }
        .action-tags { display: flex; gap: 15px; flex-wrap: wrap; margin: 40px 0; }
        .tag { background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); color: var(--white); padding: 12px 25px; border-radius: 50px; font-size: 1rem; font-weight: bold; border: 1px solid var(--accent); }
        .btn-main {
            display: inline-block; background: var(--accent); color: #000; padding: 20px 55px;
            text-decoration: none; font-weight: 900; font-size: 1.4rem; border-radius: 50px;
            transition: all 0.4s ease; box-shadow: var(--shadow);
        }
        .btn-main:hover { background: var(--white); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

        /* Global Sections */
        section { padding: 110px 10%; }
        .alt-bg { background: var(--light-gray); }
        .section-title { text-align: center; margin-bottom: 70px; }
        .section-title h2 { font-size: 2.8rem; color: var(--primary); position: relative; display: inline-block; padding-bottom: 20px; }
        .section-title h2::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 100px; height: 6px; background: var(--accent); border-radius: 3px; }

        /* Why Us Grid */
        .grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
        .machine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
        .machine-item { background: var(--white); padding: 35px; border-radius: 20px; text-align: center; box-shadow: var(--shadow); transition: all 0.4s; border: 1px solid #eee; }
        .machine-item:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
        .machine-item strong { display: block; color: var(--primary); margin-bottom: 12px; font-size: 1.2rem; }

        /* Services */
        .services-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
        .service-box { background: var(--white); padding: 35px 20px; text-align: center; border-radius: 20px; box-shadow: var(--shadow); font-weight: bold; color: var(--primary); font-size: 1.1rem; transition: all 0.4s; border: 1px solid #eee; }
        .service-box:hover { background: var(--primary); color: var(--white); transform: translateY(-12px); box-shadow: 0 20px 40px rgba(6,55,51,0.2); }

        /* Gallery */
        .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
        .gallery img { width: 100%; height: 350px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); transition: all 0.4s; }
        .gallery img:hover { transform: scale(1.05); box-shadow: 0 25px 50px rgba(0,0,0,0.25); }

        /* Info Section */
        .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; }
        .info-card { background: var(--white); padding: 45px; border-radius: 20px; box-shadow: var(--shadow); border-right: 8px solid var(--accent); }
        .info-card h3 { color: var(--primary); margin-bottom: 25px; font-size: 1.6rem; }

        /* Brands */
        .brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 50px; justify-items: center; align-items: center; filter: grayscale(1); opacity: 0.7; transition: all 0.3s; }
        .brand-grid img { width: 100%; max-width: 140px; transition: all 0.4s; }
        .brand-grid img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.15); }

        /* Footer */
        footer { background: var(--primary); color: var(--white); padding: 100px 10% 60px; text-align: center; }
        footer h2 { color: var(--accent); margin-bottom: 40px; font-size: 2.8rem; }
        footer .btn-main { margin-bottom: 50px; }
        footer p { opacity: 0.7; font-size: 0.95rem; }

        /* Responsive */
        @media (max-width: 992px) {
            .hero { flex-direction: column; text-align: center; padding: 100px 5%; }
            .hero-text { flex: 1; }
            .grid-container, .info-grid { grid-template-columns: 1fr; }
            .hero-text h1 { font-size: 2.8rem; }
        }
        @media (max-width: 768px) {
            .section-title h2 { font-size: 2.3rem; }
            .hero-text h1 { font-size: 2.4rem; }
            section { padding: 80px 5%; }
        }
    











 /* --- استایل فوتر حرفه‌ای و مدرن --- */
    .main-footer {
        background: #0a0a0a;
        color: #fff;
        padding: 80px 0 0;
        margin-top: 50px;
        position: relative;
        border-top: 1px solid #222;
        direction: rtl; /* اطمینان از راست‌چین بودن */
    }

    .footer-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 60px;
    }

    .footer-brand img {
        height: 65px;
        margin-bottom: 20px;
        filter: brightness(1.2);
    }

    .footer-brand p {
         line-height: 2;
        text-align: justify;
    }

    .footer-title {
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-title::after {
        content: '';
        flex-grow: 1;
        height: 1px;
        background: linear-gradient(to left, #d4af37, transparent);
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .icon-box {
        width: 42px;
        height: 42px;
        background: #1a1a1a;
        border: 1px solid #333;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: #d4af37;
        flex-shrink: 0;
    }

    .contact-text {
        display: flex;
        flex-direction: column;
        text-align: right;
    }

    .contact-text span { margin-bottom: 2px; }
    .contact-text a, .contact-text strong { 
        color: #ddd; 
        text-decoration: none; 
        font-size: 14px; 
        transition: 0.3s;
    }

    .contact-text a:hover { color: #d4af37; }

    /* بخش کپی رایت و لوگوی طراح */
    .bottom-bar {
        margin-top: 60px;
        padding: 25px 30px;
        border-top: 1px solid #1a1a1a;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .copyright-text {
        color: #555;
        font-size: 12px;
    }

    .designer-signature {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #444;
        font-size: 11px;
        transition: 0.3s;
    }

    .designer-logo {
        height: 18px;
        width: auto;
        filter: grayscale(1) opacity(0.5);
        transition: 0.3s;
    }

    .designer-signature:hover { color: #d4af37; }
    .designer-signature:hover .designer-logo { filter: grayscale(0) opacity(1); }

    /* ریسپانسیو موبایل */
    @media (max-width: 992px) {
        .footer-wrapper { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
        .footer-wrapper { grid-template-columns: 1fr; gap: 40px; }
        .bottom-bar { flex-direction: column; gap: 15px; text-align: center; }
        .contact-text { text-align: center; }
        .contact-item { justify-content: center; }
    }
    
    
    
    
    


/* ظرف کلی برای جلوگیری از نشت استایل */
.single-upseo-master-wrapper {
    direction: rtl;
    text-align: right;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* کانتینر فیکس 1200 */
.single-upseo-container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    box-sizing: border-box;
}

/* بخش سبز بالایی - ایزوله شده */
.single-upseo-top-banner {
    padding: 40px 0 140px 0;
    width: 100%;
    display: block;
}

.single-upseo-header-content {
    display: flex;
    flex-direction: column;
}

.single-upseo-post-title {
    font-size: 26px;
    font-weight: bold;
    margin: 15px 0;
    color: #000;
}

.single-upseo-meta-box {
    font-size: 13px;
    display: flex;
    gap: 15px;
    opacity: 0.9;
}

/* شبکه بندی سه ستونه */
.single-upseo-flex-grid {
    display: flex;
    gap: 25px;
    margin-top: -100px; /* اورلپ روی بخش سبز */
}

/* ستون‌های چسبان */
.single-upseo-sticky-bar, 
.single-upseo-sticky-card {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* سایدبار چپ (اجتماعی) */
.single-upseo-col-social { width: 60px; flex-shrink: 0; }
.single-upseo-sticky-bar { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.single-upseo-icon {
    width: 46px; height: 46px;
    background: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #555; text-decoration: none;
}

.single-upseo-share-label {
    writing-mode: vertical-rl;
    color: #ccc; font-size: 11px; margin-top: 10px; letter-spacing: 2px;
}

/* ستون وسط */
.single-upseo-col-main { flex: 1; }
.single-upseo-main-image img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.single-upseo-text-area { padding: 30px 0; line-height: 2; font-size: 17px; color: #333; }

/* سایدبار راست (لیست مطالب) */
.single-upseo-col-recent { width: 320px; flex-shrink: 0; }
.single-upseo-sticky-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0; overflow: hidden;
}

.single-upseo-widget-top {
    background: #f9f9f9; padding: 15px;
    font-size: 13px; color: #999;
    display: flex; justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.single-upseo-links { list-style: none; padding: 0; margin: 0; }
.single-upseo-links li { padding: 15px; border-bottom: 1px solid #f9f9f9; }
.single-upseo-links li a { text-decoration: none; color: #444; font-size: 14px; display: block; }
.single-upseo-links li a:hover { color: #008767; }

/* موبایل */
@media (max-width: 1024px) {
    .single-upseo-flex-grid { flex-direction: column; margin-top: 20px; }
    .single-upseo-col-social, .single-upseo-col-recent { width: 100%; }
    .single-upseo-sticky-bar { flex-direction: row; justify-content: center; position: static; }
}




















/* ===== Page Clean & Responsive Style ===== */

body {
    background: #f6f7f9;
    color: #222;
    line-height: 1.9;
}

/* Page Wrapper */
.page article {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
}

/* Page Title */
.page article h1 {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

/* Page Content */
.page .entry-content {
    font-size: 17px;
}

.page .entry-content p {
    margin-bottom: 20px;
}

.page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Headings */
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
    margin: 32px 0 16px;
    font-weight: 700;
    color: #111;
}

.page .entry-content h2 {
    font-size: 22px;
}

.page .entry-content h3 {
    font-size: 20px;
}

/* Lists */
.page .entry-content ul,
.page .entry-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.page .entry-content li {
    margin-bottom: 10px;
}

/* Links */
.page .entry-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.page .entry-content a:hover {
    text-decoration: underline;
}

/* Blockquote */
.page .entry-content blockquote {
    border-right: 4px solid #2563eb;
    background: #f1f5ff;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px;
    font-style: italic;
}

/* Comments (if enabled on pages) */
.page #comments {
    max-width: 900px;
    margin: 40px auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page article {
        margin: 20px 14px;
        padding: 22px;
    }

    .page article h1 {
        font-size: 24px;
    }

    .page .entry-content {
        font-size: 16px;
    }
}


























/* ===== Archive / Category Style ===== */

/* Page background */
.archive,
.category {
    background: #f5f6f8;
}

/* Archive Header */
.archive-header {
    max-width: 1200px;
    margin: 30px auto 20px;

    border-radius: 18px;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
}

.archive-header h1 {
    color: #000;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

/* Breadcrumb */
.breadcrumbs {
    max-width: 1200px;
    margin: 10px auto 30px;
    background: #fff7ed;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #444;
}

/* Posts Grid */
.archive .site-main {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 14px;
}

/* Post Card */
.archive article,
.category article {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.archive article:hover,
.category article:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Thumbnail */
.archive article img,
.category article img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Card Content */
.archive .entry-header,
.category .entry-header {
    padding: 18px 18px 0;
}

.archive .entry-title,
.category .entry-title {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
    margin: 0;
}

.archive .entry-title a,
.category .entry-title a {
    color: #111;
    text-decoration: none;
}

.archive .entry-title a:hover,
.category .entry-title a:hover {
    color: #059669;
}

/* Date */
.archive .entry-meta,
.category .entry-meta {
    padding: 8px 18px 0;
    font-size: 13px;
    color: #777;
}

/* Excerpt */
.archive .entry-summary,
.category .entry-summary {
    padding: 12px 18px 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    grid-column: 1 / -1;
    margin-top: 30px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pagination .current {
    background: #059669;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .archive-header {
        margin: 20px 14px;
        padding: 24px 18px;
    }

    .archive-header h1 {
        font-size: 22px;
    }

    .archive .site-main {
        gap: 18px;
    }

    .archive article img,
    .category article img {
        height: 190px;
    }
}

