/*
Theme Name: Mojavez
Author: mojavez1 team
*/


@font-face {
  font-family: Shabnam;
  src: url('Shabnam-Light.eot');
  src: url('Shabnam-Light.eot?#iefix') format('Shabnam-Light-opentype'),
       url('Shabnam-Light.woff') format('woff'),
       url('Shabnam-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

#mobile-sticky-bar {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1faa00;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 1em;
    font-weight: bold;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

/* hover effect */
#mobile-sticky-bar:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* فقط نمایش در موبایل */
@media (max-width: 768px) {
    #mobile-sticky-bar {
        display: block;
    }
}

/* ================= Modern Comment Form ================= */
.comment-respond {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 25px;
    margin-top: 40px;
    max-width: 100%;
    font-family: IRANSans, Tahoma, sans-serif;
}

.comment-respond h3.comment-reply-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4em;
    color: #222;
}

.comment-respond h3.comment-reply-title small a {
    font-size: 0.85em;
    color: #0d6efd;
    text-decoration: underline;
}

.comment-respond label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95em;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 1em;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
    font-family: inherit;
    box-sizing: border-box;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.comment-respond textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-respond input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-respond .form-submit input[type="submit"] {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.comment-respond .form-submit input[type="submit"]:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* پیام‌های اطلاعاتی فرم */
.comment-respond .comment-notes {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
}

.comment-respond .required-field-message {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-respond {
        padding: 20px;
    }

    .comment-respond input[type="text"],
    .comment-respond input[type="email"],
    .comment-respond input[type="url"],
    .comment-respond textarea {
        font-size: 0.95em;
        padding: 10px 14px;
    }

    .comment-respond .form-submit input[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}


img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* لینک‌ها */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* لیست‌ها */
ul,
ol {
    list-style: none;
}

/* تیترها */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2em;
    margin-bottom: 0.5em;
}

/* پاراگراف‌ها */
p {
      font-family: Shabnam;
    line-height: 3em;
}

/* جداول */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* فرم‌ها */
input,
button,
textarea,
select {
  font-family: Shabnam;
    font-size: 1em;
    line-height: 1.5em;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    color: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* دکمه‌ها */
button,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
    background: none;
}

/* placeholder */
::placeholder {
    color: #aaa;
    opacity: 1;
}

/* تصاویر داخل متن */
figure {
    margin: 0;
}

/* inline-block ها */
img, svg {
    vertical-align: middle;
}

/* block elements default */
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary {
    display: block;
}

/* hidden elements */
[hidden] {
    display: none;
}

/* overflow و scrollbar */
body, html {
    overflow-x: hidden;
}

/* لینک فوکوس */
a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* جدول responsive */
table {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 0.5em 1em;
    text-align: left;
    border-bottom: 1px solid #ddd;
      text-align: right;

}

/* media queries برای فونت نسبی */
@media (max-width: 1200px) {
    html { font-size: 95%; }
}

@media (max-width: 992px) {
    html { font-size: 90%; }
}

@media (max-width: 768px) {
    html { font-size: 85%; }
}

@media (max-width: 576px) {
    html { font-size: 80%; }
}
:root{
    --bg:#f4f6f9;
    --card:#ffffff;
    --text:#222;
    --muted:#777;
    --primary:#0d6efd;
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
  font-family: Shabnam;
  direction:rtl;
  text-align: right;
}

/* ================= HEADER ================= */
header{
    background:#fff;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.header-inner{
    max-width:1200px;
    margin:auto;
    padding:15px;
    display:flex;
    align-items:center;
}

/* لوگو راست */
.logo{
    font-weight:bold;
    font-size:18px;
}

/* فاصله‌ساز وسط */
.header-spacer{
    flex:1;
}

/* آیکن منو دقیقا چپ */
.menu-toggle{
    font-size:26px;
    cursor:pointer;
    display:none;
}

/* ================= MENU ================= */
nav ul{
    display:flex;
    gap:20px;
    list-style:none;
    padding:0;
    margin:0;
}

nav li{
    position:relative;
}

nav a{
    text-decoration:none;
    color:var(--text);
    font-size:14px;
    display:flex;
    align-items:center;
    gap:5px;
}

/* Submenu desktop */
.submenu{
    position:absolute;
    top:100%;
    right:0;
    min-width:180px;
    background:#fff;
    list-style:none;
    padding:10px 0;
    margin:0;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    border-radius:10px;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.25s;
    z-index:999;
}

.submenu li a{
    padding:8px 15px;
    font-size:13px;
    display:block;
    white-space:nowrap;
}

nav li:hover > .submenu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* ================= MOBILE ================= */
@media(max-width:768px){
    .menu-toggle{display:block}

    nav ul{
        position:fixed;
        top:0;
        right:-100%;
        height:100vh;
        width:75%;
        background:#fff;
        flex-direction:column;
        padding:70px 20px 30px;
        transition:.3s;
        box-shadow:-5px 0 15px rgba(0,0,0,.1);
        overflow-y:auto;
        z-index:1000;
    }

    nav ul.active{right:0}

    /* دکمه بستن */
    .menu-close{
        position:absolute;
        top:15px;
        left:15px;
        font-size:26px;
        cursor:pointer;
    }

    .submenu{
        position:static;
        box-shadow:none;
        padding:0;
        max-height:0;
        overflow:hidden;
        opacity:1;
        visibility:visible;
        transform:none;
        transition:max-height .3s;
    }

    li.open > .submenu{
        max-height:500px;
    }
}

/* ================= CONTENT ================= */
.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

.posts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

.post-card{
    background:var(--card);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
    transition:.25s;
}

.post-card:hover{
    transform:translateY(-4px);
}

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

.post-body{
    padding:15px;
}

.post-body h2{
    font-size:16px;
    margin:0 0 10px;
    line-height:1.6;
}

.post-body h2 a{
    color:var(--text);
    text-decoration:none;
}

.post-body p{
    font-size:14px;
    color:var(--muted);
    line-height:1.8;
}

/* ================= Skeleton ================= */
.skeleton{
    animation:pulse 1.4s infinite;
    background:linear-gradient(90deg,#eee,#f5f5f5,#eee);
    background-size:200% 100%;
}

.skeleton-img{height:180px;}
.skeleton-text{
    height:14px;
    margin:12px;
    border-radius:6px;
}

@keyframes pulse{
    0%{background-position:0}
    100%{background-position:200%}
}

/* ================= Modern Input ================= */
input.wpcf7-form-control,
textarea.wpcf7-form-control,
select.wpcf7-form-control {
    width: 100%; /* عرض کامل */
    max-width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 15px;
  font-family: Shabnam;
    color: #222;
    background-color: #fff;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    outline: none;
    box-sizing: border-box;
}

/* حالت فوکوس */
input.wpcf7-form-control:focus,
textarea.wpcf7-form-control:focus,
select.wpcf7-form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Placeholder */
input.wpcf7-form-control::placeholder,
textarea.wpcf7-form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

/* دکمه ارسال فرم */
input.wpcf7-submit,
button.wpcf7-submit {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

input.wpcf7-submit:hover,
button.wpcf7-submit:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* موبایل */
@media (max-width: 768px){
    input.wpcf7-form-control,
    textarea.wpcf7-form-control,
    select.wpcf7-form-control {
        padding: 14px 16px;
        font-size: 14px;
    }

    input.wpcf7-submit,
    button.wpcf7-submit {
        width: 100%;
    }
}

.single-card{
    background:var(--card);
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    overflow:hidden;
}

.single-thumb img{
    width:100%;
    max-height:420px;
    object-fit:cover;
}

.single-body{
    padding:10px;
}

.single-body h1{
    font-size:22px;
    line-height:1.8;
    margin-bottom:10px;
}

.rank-math-breadcrumb a{
	display: contents;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31,170,0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(31,170,0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31,170,0, 0);
  }
}

.page-numbers {
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    border-bottom:3px solid #888;
}


.current{
    background: #ccc !important;
    border-bottom:3px solid #333;
}