.elementor-17170 .elementor-element.elementor-element-7fb9f64{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:60px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-17170 .elementor-element.elementor-element-6fee714{--item-display:flex;--read-more-alignment:1;--grid-row-gap:20px;--grid-column-gap:20px;}.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-post__thumbnail__link{width:100%;}.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-post__meta-data span + span:before{content:"•";}.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-post__text{margin-top:20px;}.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-pagination{text-align:center;}body:not(.rtl) .elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-pagination .page-numbers:not(:first-child){margin-left:calc( 10px/2 );}body:not(.rtl) .elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-pagination .page-numbers:not(:last-child){margin-right:calc( 10px/2 );}body.rtl .elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-pagination .page-numbers:not(:first-child){margin-right:calc( 10px/2 );}body.rtl .elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-pagination .page-numbers:not(:last-child){margin-left:calc( 10px/2 );}@media(max-width:767px){.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-posts-container .elementor-post__thumbnail{padding-bottom:calc( 0.5 * 100% );}.elementor-17170 .elementor-element.elementor-element-6fee714:after{content:"0.5";}.elementor-17170 .elementor-element.elementor-element-6fee714 .elementor-post__thumbnail__link{width:100%;}}/* Start custom CSS for posts, class: .elementor-element-6fee714 *//* =========================================================
   4Raghami — Elementor Posts Cards
   Add the CSS class "four-blog-cards" to the Elementor Posts widget:
   Advanced > CSS Classes
   ========================================================= */

.four-blog-cards {
  --four-navy: #08295e;
  --four-navy-dark: #041d45;
  --four-orange: #ff8a00;
  --four-muted: #718096;
  --four-border: #e5eaf2;
}

/* 01. Responsive grid */
.four-blog-cards .elementor-posts-container.elementor-posts--skin-cards {
  display: grid !important;
  grid-template-columns: repeat( minmax(0, 1fr)) !important;
  align-items: stretch !important;
  direction: rtl;
  height: auto !important;
}

/* Each post */
.four-blog-cards .elementor-posts-container > .elementor-post {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 02. Card surface */
.four-blog-cards .elementor-post__card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  overflow: hidden !important;
  border: 1px solid var(--four-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 25px rgba(8, 41, 94, .045) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.four-blog-cards .elementor-post:hover .elementor-post__card {
  transform: translateY(-5px);
  border-color: rgba(255, 138, 0, .4) !important;
  box-shadow: 0 14px 35px rgba(8, 41, 94, .11) !important;
}

/* 03. Featured image */
.four-blog-cards .elementor-post__thumbnail__link {
  display: block !important;
  position: relative !important;
  flex: 0 0 205px !important;
  width: 100% !important;
  height: 205px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.four-blog-cards .elementor-post__thumbnail {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eaf0fa;
}

.four-blog-cards .elementor-post__thumbnail img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform .4s ease;
}

.four-blog-cards .elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.045);
}

/* 04. Same visual placeholder for posts without a featured image */
.four-blog-cards .elementor-post:not(.has-post-thumbnail) .elementor-post__card::before {
  content: "1234";
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 205px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 205px;
  box-sizing: border-box;
  direction: ltr;
  color: var(--four-navy);
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  background:
    radial-gradient(circle at 78% 33%, rgba(255, 138, 0, .16) 0 33px, transparent 34px),
    radial-gradient(circle at 24% 80%, rgba(8, 41, 94, .10) 0 45px, transparent 46px),
    linear-gradient(140deg, #edf3ff, #dfe9f9);
}

.four-blog-cards .elementor-post:not(.has-post-thumbnail) .elementor-post__card::after {
  content: "چهار رقمی";
  position: absolute;
  top: 174px;
  left: 18px;
  z-index: 2;
  color: var(--four-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  opacity: .72;
}

/* 06. Date badge */
.four-blog-cards .elementor-post__meta-data {
  position: absolute !important;
  top: 13px !important;
  right: 13px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(8, 41, 94, .08);
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(5, 30, 74, .12);
  direction: rtl;
  text-align: center;
}

.four-blog-cards .elementor-post-date {
  color: var(--four-navy) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

/* 07. Content */
.four-blog-cards .elementor-post__text {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch;
  min-width: 0;
  margin: 0 !important;
  padding: 20px 20px 18px !important;
  background: #fff !important;
  direction: rtl;
  text-align: right !important;
}

.four-blog-cards .elementor-post__title {
  display: -webkit-box !important;
  min-height: 88px;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--four-navy) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.85 !important;
  text-align: right !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.four-blog-cards .elementor-post__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color .2s ease;
}

.four-blog-cards .elementor-post__title a:hover {
  color: var(--four-orange) !important;
}

/* 08. Read more button */
.four-blog-cards .elementor-post__read-more-wrapper {
  display: flex !important;
  justify-content: flex-start !important;
  margin-top: auto !important;
  padding-top: 5px !important;
}

.four-blog-cards .elementor-post__read-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 15px !important;
  border: 1px solid var(--four-navy) !important;
  border-radius: 9px !important;
  background: var(--four-navy) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.four-blog-cards .elementor-post__read-more::after {
  content: "←";
  display: inline-block;
  color: var(--four-orange);
  font-size: 15px;
  line-height: 1;
  transition: color .25s ease, transform .25s ease;
}

.four-blog-cards .elementor-post__read-more:hover {
  border-color: var(--four-orange) !important;
  background: var(--four-orange) !important;
  color: #fff !important;
}

.four-blog-cards .elementor-post__read-more:hover::after {
  color: #fff;
  transform: translateX(-2px);
}

/* 09. Remove avatar / author area */
.four-blog-cards .elementor-post__avatar,
.four-blog-cards .elementor-post__avatar img {
  display: none !important;
}

/* 10. Pagination */
.four-blog-cards .elementor-pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 32px 0 0 !important;
  direction: ltr;
}

.four-blog-cards .elementor-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 1px solid var(--four-border) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--four-navy) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.four-blog-cards .elementor-pagination .page-numbers.current {
  border-color: var(--four-orange) !important;
  background: var(--four-orange) !important;
  color: #fff !important;
}

.four-blog-cards .elementor-pagination a.page-numbers:hover {
  border-color: var(--four-navy) !important;
  background: var(--four-navy) !important;
  color: #fff !important;
}

/* 11. Tablet */
@media (max-width: 1024px) {
  .four-blog-cards .elementor-posts-container.elementor-posts--skin-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

/* 12. Mobile */
@media (max-width: 767px) {
  .four-blog-cards .elementor-posts-container.elementor-posts--skin-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .four-blog-cards .elementor-post__thumbnail__link,
  .four-blog-cards .elementor-post:not(.has-post-thumbnail) .elementor-post__card::before {
    flex-basis: 190px !important;
    height: 190px !important;
  }

  .four-blog-cards .elementor-post:not(.has-post-thumbnail) .elementor-post__card::after {
    top: 159px;
  }

  .four-blog-cards .elementor-post__text {
    padding: 18px !important;
  }

  .four-blog-cards .elementor-post__title {
    min-height: 0;
    font-size: 15px !important;
  }

  .four-blog-cards .elementor-pagination {
    gap: 5px;
    margin-top: 24px !important;
  }

  .four-blog-cards .elementor-pagination .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 7px !important;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .four-blog-cards .elementor-post__card,
  .four-blog-cards .elementor-post__thumbnail img,
  .four-blog-cards .elementor-post__read-more,
  .four-blog-cards .elementor-post__read-more::after {
    transition: none !important;
  }
}/* End custom CSS */