/* =======================
   NoorTec Global Pages Styles
   Author: Hassan Moaiery
   +989122902832
   ======================= */

/* --- تنظیمات پایه صفحه --- */
#wrap,
main,
#wrapwrap {
  line-height: 1.9;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* --- بخش تیتر بالای صفحه (Breadcrumb + عنوان) --- */
#wrap .page-subheader,
main .page-subheader,
#wrapwrap .page-subheader {
  background: linear-gradient(to left, #fff, #f8f8f8);
  border-bottom: 1px solid #eee;
  padding: 45px 0 30px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* --- استایل breadcrumb --- */
#wrap .breadcrumbs,
main .breadcrumbs,
#wrapwrap .breadcrumbs {
  margin-bottom: 10px;
}

#wrap .breadcrumbs a,
main .breadcrumbs a,
#wrapwrap .breadcrumbs a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  margin-left: 6px;
  transition: color 0.3s ease;
}

#wrap .breadcrumbs a:hover,
main .breadcrumbs a:hover,
#wrapwrap .breadcrumbs a:hover {
  color: #cd2122;
}

/* --- عنوان بالای صفحه --- */
#wrap .subheader-maintitle,
main .subheader-maintitle,
#wrapwrap .subheader-maintitle {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.5px;
}

/* --- عنوان اصلی بخش داخلی (مثل "راهکارهای چاپ رول") --- */
#wrap .s_title h4 b,
main .s_title h4 b,
#wrapwrap .s_title h4 b {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #373737;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 45px;
}

/* --- ساختار دو ستونه (تصویر + متن) --- */
#wrap .zn_section .row,
main .zn_section .row,
#wrapwrap .zn_section .row {
  align-items: center;
  margin-bottom: 80px;
}

#wrap .zn_section .col-md-6,
main .zn_section .col-md-6,
#wrapwrap .zn_section .col-md-6 {
  padding: 20px 35px;
}

#wrap .zn_section img,
main .zn_section img,
#wrapwrap .zn_section img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#wrap .zn_section img:hover,
main .zn_section img:hover,
#wrapwrap .zn_section img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- تیتر داخلی هر بخش (مثل چاپ دیجیتال رول) --- */
#wrap .circle-headline h4,
main .circle-headline h4,
#wrapwrap .circle-headline h4 {
  color: #cd2122;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 15px;
  border-right: 3px solid #cd2122;
  padding-right: 10px;
  text-align: center;
}

/* --- متن توضیحات --- */
#wrap .circle-text-box p,
main .circle-text-box p,
#wrapwrap .circle-text-box p {
  font-size: 15px;
  color: #444;
  text-align: justify;
  line-height: 2;
  margin-bottom: 1.8rem;
  direction: rtl !important;
}

/* --- دکمه لینک (افکت نرم و مینیمال) --- */
#wrap .btn-element,
main .btn-element,
#wrapwrap .btn-element {
  position: relative;
  display: inline-block;
  padding: 12px 36px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #eae6da, #f9f7f3);
  color: #2c2c1f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: softPulse 4s ease-in-out infinite;
}

#wrap .btn-element::before,
main .btn-element::before,
#wrapwrap .btn-element::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.5s ease;
}

#wrap .btn-element:hover::before,
main .btn-element:hover::before,
#wrapwrap .btn-element:hover::before {
  left: 100%;
}

#wrap .btn-element:hover,
main .btn-element:hover,
#wrapwrap .btn-element:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- انیمیشن دکمه --- */
@keyframes softPulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
  100% {
    filter: brightness(1);
  }
}

#wrap .btn-element,
main .btn-element,
#wrapwrap .btn-element,
#wrap .btn-element:link,
main .btn-element:link,
#wrapwrap .btn-element:link,
#wrap .btn-element:visited,
main .btn-element:visited,
#wrapwrap .btn-element:visited,
#wrap .btn-element:hover,
main .btn-element:hover,
#wrapwrap .btn-element:hover,
#wrap .btn-element:active,
main .btn-element:active,
#wrapwrap .btn-element:active {
  color: inherit !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
}

/* --- افکت طلایی برای عناوین هر سکشن (به‌جز اولی) --- */
#wrap section:not(:first-of-type) h4.text-custom.wpk-circle-title,
main section:not(:first-of-type) h4.text-custom.wpk-circle-title,
#wrapwrap section:not(:first-of-type) h4.text-custom.wpk-circle-title {
  position: relative;
  display: inline-block;
  font-family: "Yekan", sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #222;
  padding-bottom: 10px;
  margin-bottom: 35px;
  border-right: 0 !important;
  width: 100%;
}

#wrap section:not(:first-of-type) h4.text-custom.wpk-circle-title::after,
main section:not(:first-of-type) h4.text-custom.wpk-circle-title::after,
#wrapwrap section:not(:first-of-type) h4.text-custom.wpk-circle-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d7b77a, #f9eac4, #d7b77a);
  animation: goldPulse 3s ease-in-out infinite;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --- انیمیشن طلایی --- */
@keyframes goldPulse {
  0% {
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    filter: brightness(0.8);
  }
}

/* --- حذف افکت از h4 عنوان اصلی بالای صفحه --- */
#wrap section.snippet_style_102_template .s_title,
main section.snippet_style_102_template .s_title,
#wrapwrap section.snippet_style_102_template .s_title,
#wrap section.snippet_style_102_template .s_title::after,
main section.snippet_style_102_template .s_title::after,
#wrapwrap section.snippet_style_102_template .s_title::after,
#wrap
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom,
main
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom,
#wrapwrap
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom,
#wrap
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom::after,
main
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom::after,
#wrapwrap
  section.snippet_style_102_template
  .s_title
  h4.wpk-circle-title.text-custom::after {
  all: unset !important;
  display: block;
  text-align: center;
  color: #333;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.6;
}

/* --- حذف خطوط زیر h4ها در کل سایت --- */
h4.text-custom {
  border-bottom: 0 !important;
}

/* --- واکنش‌گرایی کلی برای موبایل --- */
@media (max-width: 991px) {
  #wrap .zn_section .row,
  main .zn_section .row,
  #wrapwrap .zn_section .row {
    flex-direction: column-reverse;
    text-align: center;
  }
  #wrap .circle-headline h4,
  main .circle-headline h4,
  #wrapwrap .circle-headline h4 {
    text-align: center;
    border: none;
    padding: 0;
  }
  #wrap .btn-element,
  main .btn-element,
  #wrapwrap .btn-element {
    width: 100%;
    margin-top: 10px;
  }
  #wrap .zn_section .col-md-6,
  main .zn_section .col-md-6,
  #wrapwrap .zn_section .col-md-6 {
    padding: 15px 10px;
  }
  #page_header {
    height: 250px !important;
  }
  .text-custom b {
    font-size: 27px !important;
  }
}

/* --- بکگراند و متن عنوان روی عکس هدر --- */
.page-subheader .subheader-titles {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-subheader .subheader-titles h2.subheader-maintitle {
  display: inline-block;
  background: rgba(255, 213, 70, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #3b2e00;
  padding: 15px 35px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.page-subheader .subheader-titles h2.subheader-maintitle:hover {
  background: rgba(255, 230, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- لایه تیره برای خوانایی متن روی عکس --- */
.page-subheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* --- جابه‌جایی موقعیت عنوان و breadcrumb --- */
.page-subheader .row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: center;
}

/* --- عنوان سمت راست --- */
.page-subheader .subheader-titles {
  text-align: right !important;
}

/* --- استایل breadcrumb فارسی --- */
.page-subheader .breadcrumbs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-subheader .breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #fff;
  margin-bottom: 0 !important;
  padding: 0.83rem 0 !important;
}

.page-subheader .breadcrumbs li a {
  color: #fff !important;
  text-decoration: none;
  padding: 0.5px 6px;
  transition: color 0.3s ease;
}

.page-subheader .breadcrumbs li a:hover {
  color: #ffe58f;
}

/* --- فلش جداکننده راست به چپ --- */
.page-subheader .breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: #fff;
  margin-right: 6px;
  margin-left: 6px;
  display: inline-block;
}

.breadcrumbs.bread-style--black li:before {
  border: 0 !important;
  display: none;
}
/* =======================
   اصلاح چینش دکمه‌ها در همه صفحات (دو، سه یا چهار‌تایی)
   ======================= */

.zn_buttons_element {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important; /* فاصله‌ی یکنواخت بین دکمه‌ها */
  text-align: center !important;
  margin: 25px auto !important;
  max-width: 100%;
}

/* دکمه‌ها به شکل هماهنگ کنار هم */
.zn_buttons_element .btn-element {
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 250px;
  text-align: center;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 20px;
  white-space: normal !important;
  line-height: 1.8;
}

/* برای چینش چهارتایی در دسکتاپ */
@media (min-width: 992px) {
  .zn_buttons_element.four-button .btn-element {
    flex: 0 0 calc(25% - 12px);
  }
}

/* برای حالت سه‌تایی */
@media (min-width: 992px) {
  .zn_buttons_element.three-button .btn-element {
    flex: 0 0 calc(33.333% - 12px);
  }
}

/* برای حالت دوتایی */
@media (min-width: 992px) {
  .zn_buttons_element.two-button .btn-element {
    flex: 0 0 calc(50% - 12px);
  }
}

/* موبایل — همه زیر هم */
@media (max-width: 767px) {
  .zn_buttons_element {
    flex-direction: column;
  }
  .zn_buttons_element .btn-element {
    width: 100% !important;
    max-width: none;
  }
}
