/* ============ WordPress-specific ============ */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

/* نوار ادمین */
.admin-bar header {
    top: 46px
}

.admin-bar .mobile-nav {
    top: 32px
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 60px
    }

    .admin-bar .mobile-nav {
        top: 46px
    }
}

/* منو */
.logo-real a {
    display: block;
    line-height: 0
}

.dropdown a.is-accent {
    color: var(--accent);
    font-weight: 700
}

nav .current-menu-item > a,
nav .current-menu-ancestor > a,
.dropdown a.is-current,
.mobile-nav-links .is-current > a {
    color: var(--accent)
}

/* استایل‌های inline منتقل‌شده */
.mobile-nav-phone {
    display: block;
    text-align: center;
    margin-bottom: 20px
}

.foot-about-box-inner .foot-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 14px
}

.foot-about-box-inner .foot-about-text {
    font-size: 13.5px;
    max-width: 280px
}

/* فرم‌ها */
.mtl-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.mtl-mb-14 {
    margin-bottom: 14px
}

.mtl-mb-20 {
    margin-bottom: 20px
}

.mtl-btn-block {
    width: 100%;
    justify-content: center
}

.js-mtl-form.is-sending {
    opacity: .6;
    pointer-events: none
}

.form-msg {
    margin-top: 12px;
    font-size: 13.5px;
    color: #c0392b
}

.form-success {
    padding: 28px 20px;
    border-radius: 14px;
    background: var(--surface);
    text-align: center;
    line-height: 1.9
}

.form-success strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--accent)
}

/* کارت محصول لینک‌دار */
a.sol-card {
    color: inherit;
    text-decoration: none
}

/* وبلاگ و مشتریان */
.blog-post-img a {
    display: block;
    height: 100%
}

.blog-post-title a {
    color: inherit;
    text-decoration: none
}

a.client-logo {
    text-decoration: none;
    color: inherit
}

.client-logo img {
    max-height: 56px;
    max-width: 100%;
    width: auto;
    object-fit: contain
}

.client-logo.cert-logo img {
    max-height: 100%;
}

/* کارت دسته محصول */
.cat-photo a {
    display: block;
    height: 100%
}

.cat-body h3 a {
    color: inherit;
    text-decoration: none
}

a.cat-tag {
    text-decoration: none
}

/* تک‌محصول */
.cat-photo a.img-ph {
    display: block
}

.prd-flex-block .entry-content {
    color: var(--muted);
    line-height: 2
}

.prd-flex-block .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px
}

.prd-flex-block .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0
}

.prd-flex-block .entry-content th, .prd-flex-block .entry-content td {
    border: 1px solid var(--line, #e5e5e5);
    padding: 10px
}

/* فرم‌ها — جایگزین استایل‌های وابسته به id قدیمی */
.ms-trigger {
    border-radius: 22px !important
}

/* پروژه */
.prd-flex-block .entry-content {
    margin-top: 24px
}

/* وبلاگ */
a.blog-filter-pill, a.blog-page-btn, a.post-tag {
    text-decoration: none
}

.blog-pagination a, .blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.proj-search input[type=search]::-webkit-search-cancel-button {
    display: none
}

.post-comment-text p {
    margin: 0
}

.post-share-icon.is-copied {
    color: var(--accent)
}

.mtl-comment-form .form-submit {
    margin: 0
}

.post-comment-reply {
    margin-top: 14px
}

.post-body .wp-block-table {
    margin: 0
}

.foot-credit a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: color .2s;
}

.foot-credit a:hover {
    color: var(--accent);
}