/* تعریف فونت YekanBakhFaNum-Light */
@font-face {
    font-family: 'YekanBakhFaNum-Light';
    src: url('https://almasmadan.com//wp-content/uploads/2025/06/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://almasmadan.com//wp-content/uploads/2025/06/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;
}
main{margin:50px 10px 10px 10px;}

/* اعمال فونت YekanBakhFaNum-Bold به عناوین */
h1, h2, h3, h4, h5, h6 {
    font-family: 'YekanBakhFaNum-Bold', sans-serif;
    font-weight: 700;
    color:#004a61;
	line-height: 50px;margin: 10px 0px 10px 0px;
}

/* اعمال فونت YekanBakhFaNum-Light به متن‌های معمولی */
p {
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    font-weight: 300;
    color:#004a61;
    font-size:20px;line-height: 36px;
}
.seo-service-box a {
  color: #5ab2ff;
}
li {
  font-size: 19px;
  line-height: 45px;
}

.wp-block-code {
  background: #f2f9fb;
  border-radius: 5px;
  padding: 10px;
	text-align:left;direction: ltr;
}

.aligncenter.size-full {

  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;

  font-family: inherit;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background-color: #f2f6fc;
}

thead th {
  padding: 1rem;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee;
  color: #444;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #f1f7ff;
  transition: background-color 0.2s ease-in-out;
}

@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0.5rem;
    background: #fff;
  }

  td {
    padding: 0.8rem 1rem;
    text-align: right;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-weight: bold;
    color: #666;
    text-align: left;
  }
}











.wp-block-image img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
display: block;
  margin: auto;
}

.wp-block-column.has-background.is-layout-flow.wp-block-column-is-layout-flow {
  padding: 20px;
}



/* محدود کردن عرض سایت به 1200 پیکسل */
.container {
    max-width: 1200px;
    margin: 0 auto;
}/* حالت اولیه هدر (بدون اسکرول) */



   
        .header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            width: 100%; /* Full-width header */
            z-index: 1000;
            padding: 10px 20px;
        }

        .header-content {
            max-width: 1200px; /* Content width constrained to 1200px */
            margin: 0 auto; /* Center the content */
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .logo {
            width: 80px;
            height: auto;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.1);
        }

        .logo-light {
            position: absolute;
            top: 0;
            left: -100%;
            width: 50px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }

        .company-name {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
            text-transform: uppercase;
        }

        .nav-menu {
            flex-grow: 1;
            display: flex;
            justify-content: center; /* Center the menu */
            align-items: center;
        }

        .nav-menu ul {
            list-style: none;
            display: flex;
            gap: 20px;
        }

        .nav-menu a {
            text-decoration: none;
            color: #333;
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }

        .nav-menu a:hover {
            color: #007bff;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1;
            min-width: 200px;
            border-radius: 5px;
            top: 100%;
            right: 0;
            padding: 10px;
        }

        .dropdown-content a {
            display: block;
            padding: 8px 15px;
            color: #333;
            font-size: 0.95rem;
        }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
            color: #007bff;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .hamburger {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #333;
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                right: 0;
                background-color: #fff;
                width: 100%;
                padding: 20px;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            }

            .nav-menu.active {
                display: block;
            }

            .nav-menu ul {
                flex-direction: column;
                gap: 15px;
            }

            .dropdown-content {
                position: static;
                box-shadow: none;
                background-color: #f9f9f9;
                padding: 10px 20px;
            }

            .dropdown-content a {
                padding: 8px 0;
            }

            .hamburger {
                display: block;
            }

            .company-name {
                font-size: 1.5rem;
            }

            .header-content {
                flex-wrap: wrap;
            }
        }



/* تصویر   ) */
.wp-block-gallery.has-nested-images figure.wp-block-image img {

  padding: 10px;
}







/* تصویر شاخص و صفحه */
.post-thumbnail, .page-thumbnail {
    width: 100%;
    height: 100%;
}

.post-thumbnail img, .page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.has-white-color a {
  color: var(--wp--preset--color--white) !important;
}

.wp-block-column.is-vertically-aligned-top.action.has-background.is-layout-flow.wp-block-column-is-layout-flow {
  border-radius: 16px;padding: 20px;
}







.sidebar {

  border-radius:10px 10px 10px 10px;
  box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.26);
}



















.archive-container {
        width: 100%;
        max-width: 1200px; /* حداکثر عرض 1200 پیکسل */
        margin: 0 auto; /* وسط‌چین کردن محتوا */
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 ستون در دسکتاپ */
        gap: 20px; /* فاصله بین آیتم‌ها */
    }

    .archive-item {
        /* استایل‌های کلی هر آیتم */
        border: 1px solid #ddd; /* حاشیه */
        border-radius: 8px; /* گوشه‌های گرد */
        overflow: hidden; /* محتوای بیرون‌زده را پنهان می‌کند */
    }

    .archive-item img {
        width: 100%; /* عرض کامل تصویر */
        height: auto; /* ارتفاع خودکار */
        display: block; /* برای جلوگیری از فضای خالی زیر تصویر */
    }

    .archive-item-content {
        padding: 15px; /* فاصله‌گذاری داخلی */
    }

    .archive-item-title {
        margin-top: 0; /* حذف فاصله بالا */
        font-size: 1.2em;  /*اندازه فونت*/
    }
  .archive-item-title a{
    text-decoration: none; /*حذف خط زیر لینک*/
    color: inherit; /*رنگ پیشفرض*/
  }
    .archive-item-date {
        font-size: 0.8em; /* اندازه فونت کوچکتر */
        color: #666; /* رنگ خاکستری */
    }
    .archive-title{
      text-align: center; /*وسط چین*/
      margin: 40px auto; /*بالا و پایین 40  چپ و راست اتومات*/
    }

    /* استایل‌های مخصوص تبلت */
    @media (max-width: 1024px) {
        .archive-container {
            grid-template-columns: repeat(3, 1fr); /* 3 ستون در تبلت */
        }
    }

    /* استایل‌های مخصوص موبایل */
    @media (max-width: 767px) {
        .archive-container {
            grid-template-columns: repeat(2, 1fr); /* 2 ستون در موبایل */
        }
    }

    /* استایل‌های صفحه‌بندی (Pagination) */
    .pagination {
        display: flex;
        justify-content: center; /* وسط‌چین کردن */
        margin-top: 30px; /* فاصله از بالا */
        list-style: none; /* حذف علامت‌های لیست */
        padding: 0;
    }

    .pagination li {
        margin: 0 5px; /* فاصله بین آیتم‌های صفحه‌بندی */
    }

    .pagination a,
    .pagination span {
        display: inline-block; /* نمایش به صورت بلاک خطی */
        padding: 8px 12px; /* فاصله‌گذاری داخلی */
        border: 1px solid #ddd; /* حاشیه */
        border-radius: 4px; /* گوشه‌های گرد */
        text-decoration: none; /* حذف خط زیر لینک */
        color: #333; /* رنگ متن */
    }

    .pagination .current {
        background-color: #007bff; /* رنگ پس‌زمینه صفحه فعلی */
        color: #fff; /* رنگ متن صفحه فعلی */
        border-color: #007bff; /* رنگ حاشیه صفحه فعلی */
    }

.archive-item img {
    width: 100%;
    height: 250px; /*  یک ارتفاع ثابت تعیین کنید. */
    object-fit: cover; /* مهم‌ترین بخش */
    display: block;
}


.archive-header {
    width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}



.content-container{
    width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


.customers img {
  height: 50px;  
  width: 50px; 
  
  object-fit: cover; /* کاور کردن عکس */
  object-position: center; /* مرکزیت بخشیدن به عکس */
  border-radius: 999px;
  box-sizing: content-box;
  -o-object-fit: cover;
  object-fit: cover;

}




















/* استایل کلی فرم */
.wpcf7-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'YekanBakhFaNum-Bold'; /* فونت فارسی، در صورت نیاز تغییر دهید */
    direction: rtl;
    display: flex; /* چیدمان خطی */
    align-items: flex-start; /* تراز عمودی در بالا */
    gap: 15px; /* فاصله بین المان‌ها */
    flex-wrap: wrap; /* ریسپانسیو شدن با wrap */
}

/* مخفی کردن div مخفی */
.wpcf7-form > div[style] {
    display: none;
}

/* استایل پاراگراف‌ها */
.wpcf7-form p {
    margin: 0; /* حذف حاشیه پیش‌فرض */
    display: flex;
    flex-direction: column; /* برچسب و ورودی عمودی در هر ستون */
    flex: 1; /* همه المان‌ها به یک اندازه فضا بگیرند */
    min-width: 150px; /* حداقل عرض برای جلوگیری از کوچک شدن بیش از حد */
}

/* استایل برچسب‌ها */
.wpcf7-form label {
    color: #fff; /* رنگ سفید برای لیبل‌ها */
    margin-bottom: 5px;
}

/* استایل فیلدهای ورودی */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%; /* عرض کامل نسبت به والد */
    height: 30px; /* ارتفاع 30 پیکسل */
    padding: 5px 0px 0px 0px;
    border: 1px solid #ddd;
    border-radius: 12px; /* بوردر رادیوس 12 پیکسل */
    color: #555;
    transition: border-color 0.3s ease;
}

/* استایل خاص textarea */
.wpcf7-form textarea {
    padding: 8px; /* پدینگ کامل برای textarea */
    height: 30px; /* ارتفاع ثابت برای هماهنگی */
    resize: none; /* غیرفعال کردن تغییر اندازه */
}

/* افکت فوکوس */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* استایل دکمه ارسال */
.wpcf7-form input[type="submit"] {
    background-color: #d4b76e;
    color: #000;
    width: 100%;
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    font-family: 'YekanBakhFaNum-light';
    cursor: pointer;
    transition: background-color 0.3sease;
    align-self: flex-end;
    margin: 32px 0px 0px 0px;
    font-size: 22px;
}
.wpcf7-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* استایل پیام خروجی */
.wpcf7-response-output {
    margin-top: 10px;
    padding: 8px;
    border-radius: 5px;
    width: 100%; /* برای ریسپانسیو بودن */
}

/* پاسخ‌های موفقیت‌آمیز یا خطا */
.wpcf7-mail-sent-ok {
    border: 1px solid #28a745;
    background-color: #d4edda;
    color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* مخفی کردن فیلدهای غیرضروری */
.wpcf7-form .akismet-fields-container {
    display: none !important;
}

/* تنظیم ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .wpcf7-form {
        flex-direction: column; /* چیدمان عمودی در موبایل */
        gap: 10px;
    }
    .wpcf7-form p {
        min-width: 100%; /* عرض کامل در موبایل */
    }
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #fff;
}


























/* استایل برادکرامپ */
.breadcrumbs {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
   border: 1px solid rgba(0, 0, 0, 0.060);
  border-radius: 10px;
}

.rank-math-breadcrumb {
  padding-right: 10px;
}


.breadcrumbs a {
    color: #004a61;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* استایل آخرین بروزرسانی */
.last-updated {
    margin-bottom: 20px;
    font-size: 16px;
    color: #004a61;
    font-family: 'YekanBakhFaNum-Light', sans-serif;
}

.post-thumbnail img {margin-bottom: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

/* استایل سایدبار */
.sidebar .widget {
    padding:30px;
    margin-bottom:10px;
}

.sidebar .widget h3 {
    font-family: 'YekanBakhFaNum-Bold', sans-serif;
    color: #004a61;
    font-size: 24px;
    margin-top: 0;
}

.sidebar .widget p {
   text-align:center;
    color: #004a61;
}


/* تنظیم پیش‌فرض برای همه اندازه‌ها - دو ستونه */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-8 {
    flex: 0 0 65%;
    max-width: 65%;padding: 0 0 0 20px;
    
}

.col-md-4 {
    flex: 0 0 34%;
    max-width: 33%;
}

/* تنظیم برای تبلت (768px تا 1024px) - همچنان دو ستونه */
@media (min-width: 768px) and (max-width: 1024px) {
    .col-md-8 {
        flex: 0 0 64%;
        max-width: 64%;
    }

    .col-md-4 {
        flex: 0 0 33%;
        max-width: 33%;
    }
        .container {
  padding: 0 15px;
}
}

/* تنظیم برای موبایل (زیر 767px) - تک‌ستونی */
@media (max-width: 767px) {
    .col-md-8, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sidebar .widget {
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 28px;
    }
    .container {
  padding: 0 15px;
}
}





































 .footer {
            background-color: #fff;
            padding: 40px 20px;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
            width: 100%;
            color: #333;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
            padding: 10px;
        }

        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #007bff;
        }

        .footer-section p, .footer-section a {
            font-size: 1rem;
            color: #333;
            text-decoration: none;
            margin-bottom: 10px;
            display: block;
        }

        .footer-section a:hover {
            color: #007bff;
        }

        .whatsapp-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background-color: #25D366;
            color: #fff;
            border-radius: 5px;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .whatsapp-link:hover {
            transform: scale(1.05);
        }

        .whatsapp-light {
            position: absolute;
            top: 0;
            left: -100%;
            width: 50px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
            margin-top: 20px;
            font-size: 0.9rem;
            color: #666;
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .footer-section {
                min-width: 100%;
            }

            .whatsapp-link {
                justify-content: center;
            }
        }
























.comments-area {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-top: 2rem;
  font-family: inherit;
}

.comments-area h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author img {
  border-radius: 50%;
  margin-left: 0.75rem;
  width: 48px;
  height: 48px;
}

.comment-author .fn {
  font-weight: bold;
  color: #2b2b2b;
  font-size: 1rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.comment-reply-link {
  font-size: 0.9rem;
  color: #0056b3;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.children {
  margin-top: 1.5rem;
  margin-right: 2rem;
  border-right: 2px solid #f0f0f0;
  padding-right: 1rem;
}

.comment-respond {
  margin-top: 3rem;
}

.comment-respond h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #0073aa;
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .submit {
  background: #0073aa;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
font-family: inherit;
}

.comment-form .submit:hover {
  background: #005c87;
}
