/* تعریف فونت YekanBakhFaNum-Light */
@font-face {
    font-family: 'YekanBakhFaNum-Light';
    src: url('https://drmahsasadati.com/wp-content/uploads/2025/07/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://drmahsasadati.com/wp-content/uploads/2025/07/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'YekanBakhFaNum-Light';
    direction: rtl;
    text-align: right;
    background-color: #FFFFFF;
    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;
}
a{font-family: 'YekanBakhFaNum-Light', sans-serif;}
.seo-service-box a {
  color: #5ab2ff;
}
li {
  font-size: 19px;
}
a{text-decoration:none;color:#0077b6}
body {
  margin: 0;
  background: #F6FCFF;
}








.header-wrapper {font-family: 'YekanBakhFaNum-Light', sans-serif;
  width: 100%;
  transition: all 0.3s ease;
}

.overlay-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

.normal-header {
  position: relative;
  z-index: 1000;
}

.header {
  background-color: transparent;
  color: #004A61;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  width: 100%;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-wrapper.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: #004A61;
  border: none;
  background: none;
  padding: 8px;
  margin-left:5px;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hamburger .hamburger-icon,
.hamburger .close-icon {
  transition: opacity 0.3s ease;
}

.hamburger .close-icon {
  opacity: 0;
  position: absolute;
}

.hamburger.open .hamburger-icon {
  opacity: 0;
}

.hamburger.open .close-icon {
  opacity: 1;
}

.logo-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-name img {
  width: 150px;
  height: 50px;
}

.doctor-name {
  font-weight: bold;
  font-size: 18px;
  color: #004A61;
}
span.doctor-title {
    font-size: 13px;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone, .account-icon, .search-toggle {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #004A61;
  font-size: 16px;
}

.account-icon, .search-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.search-container {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  z-index: 998;
  max-width: 1168px;
  margin: 0 auto;
}

.search-container.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #004A61;
  border-radius: 10px;
  font-size: 16px;
  direction: rtl;
  color: #004A61;
  background: #F6FCFF;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#search-input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 74, 97, 0.2);
}

.search-results {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.search-result-item.post {
  background: #F5FBFF;
}

.search-result-item.product {
  background: #E6F3FA;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.thumbnail-placeholder {
  width: 80px;
  height: 80px;
  background: #E0E0E0;
  border-radius: 8px;
}

.content {
  flex: 1;
}

.search-result-link {
  color: #004A61;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.search-result-link:hover {
  color: #007a9e;
}

.price {
  color: #004A61;
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
}

.load-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.result-count {
  font-size: 14px;
  color: #004A61;
}

.load-more {
  padding: 10px 20px;
  background: #004A61;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.load-more:hover {
  background: #007a9e;
}

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

.menu-panel {
  position: fixed;
  top: 60px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 20px 30px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 999;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.menu-column {
  list-style: none;
  padding: 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 74, 97, 0.05);
  border-radius: 8px;
}

.menu-column li {
  margin-bottom: 8px;
}

.menu-column li a {
  color: #004A61;
  text-decoration: none;
}

.menu-column li a:hover {
  color: #007a9e;
}

.image-column {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background-color: rgba(0, 74, 97, 0.05);
  border-radius: 8px;
}

.main-image {
  width: 100%;
  height: auto;
}

.small-images {
  display: flex;
  gap: 10px;
}

.small-image {
 width: 48%;
    height: auto;
    margin: 0 auto;
}

.buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.book-btn {
  padding: 10px 20px;
  background: #D0B081;
  color: white;
  border: none;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  flex: 1;
}

.book-btn:hover {
  background: #b5946e;
}

.free-consult-btn {
  padding: 10px 20px;
  background: #007a9e;
  color: white;
  border: none;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  flex: 1;
}

.free-consult-btn:hover {
  background: #005f7e;
}

.social-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.social-links a {
  color: #004A61;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #007a9e;
}

@media (max-width: 768px) {
  .menu-columns {
    grid-template-areas:
      "menu1 menu1"
      "menu2 menu3"
      "images images";
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .menu-column:nth-child(1) {
    grid-area: menu1;
  }

  .menu-column:nth-child(2) {
    grid-area: menu2;
  }

  .menu-column:nth-child(3) {
    grid-area: menu3;
  }

  .menu-column:nth-child(4) {
    grid-area: images;
    flex-direction: column;
  }

  .menu-column,
  .image-column {
    padding: 8px;
  }


  .small-image {
    width: 75px;
  }

  .buttons-container {
    flex-direction: column;
    gap: 5px;
  }

  .book-btn, .free-consult-btn {
    width: 100%;
  }

  .search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .search-container {
    left: 8px;
    right: 8px;
    padding: 15px;
    max-width: 340px;
  }

  .thumbnail, .thumbnail-placeholder {
    width: 60px;
    height: 60px;
  }
}













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;
}/* حالت اولیه هدر (بدون اسکرول) */

/* تصویر   ) */
.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;
}


.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;
}













.btn-whatsapp-pulse {
	background: #25d366;
	color: white;
	position: fixed;
	bottom: 20px;
	right: 20px;
	font-size: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 0;
	height: 0;
	padding: 35px;
	text-decoration: none;
	border-radius: 50%;
	animation-name: pulse;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}
	80% {
		box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
	}
}

.btn-whatsapp-pulse-border {
	bottom: 120px;
	right: 20px;
	animation-play-state: paused;
}

.btn-whatsapp-pulse-border::before {
	content: "";
	position: absolute;
	border-radius: 50%;
	padding: 25px;
	border: 5px solid #25d366;
	opacity: 0.75;
	animation-name: pulse-border;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
}

@keyframes pulse-border {
	0% {
		padding: 25px;
		opacity: 0.75;
	}
	75% {
		padding: 50px;
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}
.btn-whatsapp-pulse img {
  width: 40px;
	height:40px
}







































/* استایل برادکرامپ */
.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;
}
}























































.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;
}







/* استایل برادکرامپ */
.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;
}
}

















































.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;
}














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

.masked-product-card {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
    border-radius: 20px;
    overflow: hidden;
    background: #aa4cdc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 450px; /* تضمین ارتفاع مساوی */
}

.masked-product-image {
    width: 100%;
    height: 220px;
    position: relative;
}

.masked-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* ماسک موج‌دار روی عکس */
    -webkit-mask-image: url('https://mohajerato.ir/wp-content/uploads/2025/06/p1.svg');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: bottom center;

    mask-image: url('https://mohajerato.ir/wp-content/uploads/2025/06/p1.svg');
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: bottom center;
}

.masked-product-content {
    background: #aa4cdc;
    color: white;
    text-align: center;
    padding: 30px 10px;
    width: 100%;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.masked-product-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.masked-product-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.masked-product-content h3 a:hover {
    color: #ffd700;
}

.masked-product-content .price {
    margin: 15px 0;
    color: #ffffff;
    font-weight: 500;
}


.masked-product-content .button {
    margin-top: auto;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: 1px solid #FFF;
    color: #FFF;
    align-self: center; /* ✅ دکمه اندازه خودش بشه، وسط قرار بگیره */
}


.masked-product-content .button:hover {
    background: #ffffff;
    color: #001c74;
}

/* ریسپانسیو: دو کارت در موبایل */
@media (max-width: 768px) {
    .masked-product-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* ریسپانسیو: سه کارت در تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .masked-product-card {
        flex: 1 1 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }
}










/* دکمه شناور نیمه بیرون فقط در موبایل */
.sidebar-toggle-wrapper {
  position: fixed;
  top: 40%;
  left: 0;
  z-index: 10001;
}

.toggle-sidebar-btn {
  position: absolute;
  left: -20px;
  background: #ffbf00;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: left 0.3s;
}

.sidebar-toggle-wrapper:hover .toggle-sidebar-btn {
  left: 0;
}

@media (min-width: 769px) {
  .sidebar-toggle-wrapper {
    display: none;
  }
}

/* سایدبار */
.custom-sidebar {
  padding: 20px;
  background: #fff;
  transition: transform 0.4s ease;
  z-index: 9999;
}

.sidebar-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: none;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-section li {
  margin-bottom: 10px;
}

.sidebar-thumb-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-thumb-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.overlay-title {
  flex: 1;
  font-weight: 500;
  color: #333;
}

/* بک‌دراپ کلیک بیرونی */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 9998;
}

/* دکمه بستن */
.close-sidebar-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #333;
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
  z-index: 10000;
}

/* نمایش در موبایل با انیمیشن */
@media (max-width: 768px) {
  .custom-sidebar {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    width: 80%;
    height: 100vh;
    background: white;
    overflow-y: auto;
    transform: translateX(100%);
  }

  body.show-sidebar .custom-sidebar {
    transform: translateX(0);
  }

  body.show-sidebar .sidebar-backdrop {
    display: block;
  }
}








.footer-container {
    background-color: #f6fcff;
    color: #004A61;
    padding: 60px 10px 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal overflow */
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #004A61;
    position: relative;
}
.footer-section h3::after {
    content: '';
    width: 40px;
    height: 3px;
    background-color: #004A61;
    position: absolute;
    bottom: -8px;
    right: 0;
}
.footer-section p, .footer-section a {
    font-size: 0.95rem;
    color: #004A61;
    margin-bottom: 10px;
    line-height: 1.6;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word; /* Ensure text wraps properly */
}
.footer-section a:hover {
    color: #007a9c;
    text-decoration: none;
}
.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.qr-code img {
    max-width: 140px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}
.reserve-button {
    background-color: #004A61;
    color: #f6fcff;
    padding: 12px 25px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}
.reserve-button:hover {
    background-color: #007a9c;
    transform: scale(1.05);
    color: #f6fcff;
    text-decoration: none;
}
.footer-container hr {
    border: 0;
    border-top: 1px solid #004A61;
    margin: 40px 0;
}
.footer-about {
    text-align: center;
    max-width: 100%;
    margin: 40px auto 20px;
    padding: 0 10px;
}
.footer-enamad {
    text-align: center;
    margin: 20px 0;
}
.footer-enamad img {
    max-width: 140px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}
.footer-reserve {
    text-align: center;
    margin-bottom: 40px;
}
.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.social-icons a {
    color: #004A61;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a span {
    font-size: 0.95rem;
    font-weight: 500;
}
.social-icons a:hover {
    color: #007a9c;
    transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        padding: 0 10px;
    }
    .footer-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 50px 8px 30px;
        overflow-x: hidden;
    }
    .footer-grid {
        grid-template-columns: fit-content;
        gap: 20px;
    }
    .footer-section h3 {
        font-size: 1.4rem;
    }
    .footer-section h3::after {
        width: 35px;
    }
    .footer-section p, .footer-section a {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .reserve-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .footer-links ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .footer-links ul::-webkit-scrollbar {
        display: none;
    }
    .footer-links ul li {
        margin: 0 10px 8px;
        white-space: nowrap;
    }
    .social就好

.social-icons {
    gap: 15px;
}
.social-icons a {
    font-size: 1.4rem;
}
.social-icons a span {
    font-size: 0.85rem;
}
.qr-code img, .footer-enamad img {
    max-width: 110px;
}
.footer-about {
    margin: 25px auto 15px;
}
.footer-about p {
    font-size: 0.9rem;
}
.footer-container hr {
    margin: 25px 0;
}
}

@media (max-width: 480px) {
    .footer-container {
        padding: 40px 5px 25px;
        overflow-x: hidden;
    }
    .footer-content {
        padding: 0 5px;
    }
    .footer-section h3 {
        font-size: 1.3rem;
    }
    .footer-section h3::after {
        width: 30px;
        bottom: -6px;
    }
    .footer-section p, .footer-section a {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .reserve-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    .footer-links ul {
        gap: 8px;
    }
    .footer-links ul li {
        margin: 0 8px 6px;
    }
    .social-icons {
        gap: 12px;
    }
    .social-icons a {
        font-size: 1.3rem;
    }
    .social-icons a span {
        font-size: 0.8rem;
    }
    .qr-code img, .footer-enamad img {
        max-width: 90px;
    }
    .footer-about {
        margin: 20px auto 10px;
        padding: 0 5px;
    }
    .footer-about p {
        font-size: 0.85rem;
    }
    .footer-reserve {
        margin-bottom: 25px;
    }
    .footer-container hr {
        margin: 20px 0;
    }
    .footer-bottom p {
        font-size: 0.8rem;
        padding: 0 5px;
    }
}

@media (max-width: 360px) {
    .footer-container {
        padding: 30px 5px 20px;
    }
    .footer-section h3 {
        font-size: 1.2rem;
    }
    .footer-section p, .footer-section a {
        font-size: 0.8rem;
    }
    .reserve-button {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    .qr-code img, .footer-enamad img {
        max-width: 80px;
    }
    .social-icons a {
        font-size: 1.2rem;
    }
    .social-icons a span {
        font-size: 0.75rem;
    }
}