/**
 * Theme Name: Stand Alone Project
 * Theme URI: https://medpress.net/
 * Author: MedPress Team
 * Author URI: https://medpress.net/
 * Description: A custom WordPress theme with Elementor support
 * Version: 1.9.9
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: mohtavanegar
 * Domain Path: /languages
 * Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 *
 * This theme is designed to be used with Elementor page builder.
 */

/* Base styles */
@font-face {
    font-family: 'Vazir';
    src: url('assets/fonts/vazir/Farsi-Digits-Without-Latin/Vazir-FD-WOL.woff2') format('woff2'),
         url('assets/fonts/vazir/Farsi-Digits-Without-Latin/Vazir-FD-WOL.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('assets/fonts/vazir/Farsi-Digits-Without-Latin/Vazir-Bold-FD-WOL.woff2') format('woff2'),
         url('assets/fonts/vazir/Farsi-Digits-Without-Latin/Vazir-Bold-FD-WOL.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazir', 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Mobile zoom/auto-resize control */
html,
body {
    /* Prevent mobile browsers from auto-resizing text */
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    /* Reduce double-tap zoom triggers on interactive elements */
    touch-action: manipulation;
}

/* Layout */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.site-header {
    padding: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

/* Elementor header template — full width; do not force nested container widths */
.site-header--elementor {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.site-header--elementor > .elementor {
    width: 100%;
}

/* Elementor header owns its spacing — never force body/content offsets */
body.has-elementor-header,
body.has-elementor-header.admin-bar {
    /*
    margin-top: 0 !important;
    padding-top: 0 !important;
    */
}

body.has-elementor-header .site-content,
body.has-elementor-header .site-header.fixed-top ~ #page .site-content,
body.has-elementor-header .site-header.fixed-top + .site-content {
    padding-top: 0;
}

.site-header-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-branding {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 52px;
    max-width: 128px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-branding-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: #0f172a;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.site-description {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: auto;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation .menu > li {
    position: relative;
}

.main-navigation .menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--mn-header-menu-link, #334155);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li > a.active {
    background: linear-gradient(135deg, var(--mn-header-menu-hover-bg-soft, #0ea5e9) 0%, var(--mn-header-menu-hover-bg, #2563eb) 100%);
    color: var(--mn-header-menu-hover-text, #fff);
    box-shadow: 0 8px 20px var(--mn-header-consult-shadow, rgba(37, 99, 235, 0.24));
}

.header-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mn-header-consult-bg-soft, #0ea5e9) 0%, var(--mn-header-consult-bg, #2563eb) 100%);
    color: var(--mn-header-consult-text, #fff);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px var(--mn-header-consult-shadow, rgba(37, 99, 235, 0.26));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.header-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.header-search-btn {
    width: 44px;
    height: 44px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    margin: 0 auto;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1020;
}

.mobile-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Fixed Header */
.site-header.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
}

/* Add padding to body when header is fixed to prevent content from being hidden behind the header */
.admin-bar .site-header.fixed-top {
    top: 32px;
}

/* Content spacing — keep light by default; reserve room only for default fixed headers */
.site-content {
    padding-top: 0;
}

body.has-fixed-header:not(.has-elementor-header) .site-header.fixed-top + .site-content,
body.has-fixed-header:not(.has-elementor-header) .site-header.fixed-top ~ #page .site-content {
    padding-top: 85px;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .site-header-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 18px;
        grid-template-columns: none;
    }

    .site-branding {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

    .header-actions {
        flex: 0 0 auto;
        order: 2;
        gap: 8px;
        justify-self: unset;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        order: 3;
        margin: 0;
        width: 42px;
        height: 42px;
        gap: 5px;
    }

    .header-consult-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(320px, 85vw);
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
        padding: 90px 20px 24px;
        z-index: 1035;
        margin: 0;
        justify-content: flex-start;
        align-items: stretch;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        /* Fully off-canvas (avoids peek from width/shadow vs fixed -320px) */
        transform: translateX(110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .main-navigation.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .main-navigation .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .main-navigation .menu > li > a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header.fixed-top {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header.fixed-top {
        top: 0;
    }

    body.has-fixed-header:not(.has-elementor-header) .site-header.fixed-top + .site-content,
    body.has-fixed-header:not(.has-elementor-header) .site-header.fixed-top ~ #page .site-content {
        padding-top: 72px;
    }

    .site-header-inner {
        padding: 10px 14px;
        gap: 8px;
    }

    .site-branding .custom-logo {
        max-height: 40px;
        max-width: min(160px, 48vw);
    }

    .site-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 46vw;
    }

    .site-description {
        display: none;
    }

    .header-consult-btn {
        display: none;
    }

    .header-search-btn,
    .mn-search-modal__toggle {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Footer */
.site-footer {
    padding: 0;
    margin-top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--mn-footer-bg, #0f172a) 0%, var(--mn-footer-bg-soft, #1e293b) 100%);
    color: var(--mn-footer-text, #f8fafc);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--mn-footer-glow, rgba(255, 255, 255, 0.16)), transparent 42%);
    pointer-events: none;
}

/* Elementor footer template — isolated from theme footer chrome */
body.has-elementor-footer .mn-elementor-footer,
.mn-elementor-footer,
.site-footer--elementor {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: inherit;
    position: relative;
    overflow: visible;
    box-shadow: none !important;
    border: none !important;
    flex-shrink: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.mn-elementor-footer::before,
.site-footer--elementor::before {
    content: none !important;
    display: none !important;
}

/* Outer Elementor document only — never force nested .e-con max-width */
.mn-elementor-footer > .elementor,
.site-footer--elementor > .elementor {
    width: 100%;
    max-width: none;
}

/*
 * Prevent theme chrome / critical helpers from fighting Elementor layout.
 * Do NOT set width/max-width on .e-con — boxed containers must keep Elementor's rules.
 */
.mn-elementor-footer .elementor-section-wrap,
.site-footer--elementor .elementor-section-wrap {
    width: 100%;
}

body.has-elementor-footer .mn-elementor-footer img {
    max-width: 100%;
    height: auto;
}

.site-footer__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.site-footer__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 56px 0 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
    align-items: start;
    box-sizing: border-box;
}

.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mn-footer-text, #fff);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.site-footer__brand-name {
    color: var(--mn-footer-text, #fff);
}

.site-footer__description {
    margin: 0;
    color: var(--mn-footer-text-muted, rgba(248, 250, 252, 0.8));
    line-height: 1.8;
    max-width: 360px;
}

.site-footer__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mn-footer-text, #fff);
}

.site-footer__logo-wrapper {
    margin-bottom: 16px;
}

.site-footer__logo {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
}

.site-footer__richtext {
    color: var(--mn-footer-text-soft, rgba(248, 250, 252, 0.86));
    line-height: 1.8;
}

.site-footer__richtext p {
    margin: 0 0 10px;
}

.site-footer__richtext a {
    color: var(--mn-footer-text, #fff);
    text-decoration: underline;
    text-decoration-color: var(--mn-footer-border, rgba(255, 255, 255, 0.45));
}

.site-footer__menu-list,
.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__menu-list a,
.site-footer__contact-list a {
    color: var(--mn-footer-text-soft, rgba(248, 250, 252, 0.9));
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer__menu-list a:hover,
.site-footer__contact-list a:hover {
    color: var(--mn-footer-text, #fff);
    transform: translateX(-2px);
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 0 24px;
    border-top: 1px solid var(--mn-footer-border, rgba(255, 255, 255, 0.14));
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--mn-footer-text-muted, rgba(248, 250, 252, 0.7));
    font-size: 0.95rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .site-footer__container {
        padding: 0 16px;
    }

    .site-footer__content {
        grid-template-columns: 1fr;
        padding: 40px 0 24px;
        gap: 24px;
    }

    .site-footer__bottom {
        padding: 16px 0 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Single Post Styles */
.single-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.entry-header {
    margin-bottom: 2rem;
    text-align: right;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.entry-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption {
    max-width: 100%;
    height: auto;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content .wp-caption img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a {
    display: inline-block;
    background: #f8f9fa;
    color: #3498db;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.related-posts-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

/* Elementor Grid Layout */
.elementor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 -15px;
}

.elementor-grid-item {
    padding: 0 15px;
}

.elementor-post {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.elementor-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.elementor-post__thumbnail {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 66.666%;
    /* 3:2 Aspect Ratio */
}

.elementor-post__thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.elementor-post:hover .elementor-post__thumbnail-img {
    transform: scale(1.05);
}

.elementor-post__content {
    padding: 20px;
}

.elementor-post__title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.elementor-post__title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.elementor-post__title a:hover {
    color: #3498db;
}

.elementor-post__meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
}

.elementor-post-date {
    display: flex;
    align-items: center;
}

.elementor-post-date:before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    margin-left: 5px;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .elementor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .single-post {
        padding: 1.5rem;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .elementor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .single-post {
        padding: 1.25rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .elementor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .elementor-grid-item {
        padding: 0;
    }

    .elementor-post {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: block;
    }

    #main-sidebar {
        margin-top: 1.5rem;
    }
}

/* Comments Section — detailed styles live in assets/css/comments.css */
.comments-area {
    margin-top: 2rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
}

.rounded {
    border-radius: 10px;
}

.category-archive {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
    color: #2c3e50;
}

.category-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.posts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.16);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 18px 16px 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #2980b9;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.post-excerpt {
    flex: 1;
    color: #444;
    margin-bottom: 16px;
}

.read-more {
    align-self: flex-end;
    background: #2980b9;
    color: #fff;
    padding: 6px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.read-more:hover {
    background: #1a5a8a;
}


.portfolio-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.portfolio-category-title {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.portfolio-item a {
    text-decoration: none;
}

.portfolio-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
}

.portfolio-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-title {
    padding: 16px;
    font-size: 1.1rem;
    text-align: center;
}

.portfolio-term-thumb {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    margin-bottom: 2rem;
    direction: rtl;
}

th,
td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 700;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f3f8fd;
}

@media (max-width: 767.98px) {
    .responsive-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.95rem;
    }
}

/* Prevent input focus zoom on iOS by keeping form controls >=16px on small screens */
@media (max-width: 767.98px) {

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Force LTR direction for #page when site language is English but document dir is RTL */
html[dir="rtl"][lang="en"] #page {
    direction: ltr;
}

.mohtavanegar-posts-list .mohtavanegar-post-thumbnail {
    max-width: 124px !important;
    height: 150px !important;
    padding: 0 !important;
    margin: auto !important;
}

.mohtavanegar-posts-wrapper.mohtavanegar-posts-list .mohtavanegar-post-item {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.mohtavanegar-posts-wrapper.mohtavanegar-posts-list .mohtavanegar-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}