.elementor-566 .elementor-element.elementor-element-ff4b5c2{--display:flex;}.elementor-566 .elementor-element.elementor-element-aa61c81{--display:flex;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-566 .elementor-element.elementor-element-549111b{--display:flex;}.elementor-566 .elementor-element.elementor-element-fe60af3{--display:flex;}.elementor-566 .elementor-element.elementor-element-fdefbad{--display:flex;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-566 .elementor-element.elementor-element-5ad1b9f .elementor-heading-title{font-family:"Cormorant Garamond", Sans-serif;font-weight:700;}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-566 .elementor-element.elementor-element-b353e45{--display:flex;}.elementor-566 .elementor-element.elementor-element-ceddfe3{--display:flex;}.elementor-566 .elementor-element.elementor-element-394205b{--display:flex;}.elementor-566 .elementor-element.elementor-element-24f1c8d{--display:flex;}.elementor-566 .elementor-element.elementor-element-20dd12b{--display:flex;}.elementor-566 .elementor-element.elementor-element-1dc984d{--display:flex;}.elementor-566 .elementor-element.elementor-element-078d910{--display:flex;}.elementor-566 .elementor-element.elementor-element-3b0e13c{--display:flex;}.elementor-566 .elementor-element.elementor-element-961eb44{--display:flex;}.elementor-566 .elementor-element.elementor-element-2e38d5b{--display:flex;}.elementor-566 .elementor-element.elementor-element-87a66bd{--display:flex;}.elementor-566 .elementor-element.elementor-element-945522a{--display:flex;}.elementor-566 .elementor-element.elementor-element-d19ee23{--display:flex;}:root{--page-title-display:none;}/* Start custom CSS for container, class: .elementor-element-ff4b5c2 *//* =========================================================
   SECTION 1 - COURSES HERO
   Tarbiyah Institute
   Final Compact Desktop + Compact Mobile Version
   ========================================================= */

.ti-courses-hero {
  --ti-green: #062f2a;
  --ti-green-dark: #021f1b;
  --ti-gold: #b88a43;
  --ti-gold-light: #e6b866;
  --ti-cream: #fbf5ea;
  --ti-white: #fffaf0;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: 316px;
  padding: 86px 24px 48px;

  background-color: #062f2a;
  background-image: url("https://growtogether.education/wp-content/uploads/2026/07/ChatGPT-Image-Jul-1-2026-04_02_51-AM.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

/* حذف کامل اورلی */
.ti-courses-hero::before {
  display: none !important;
  content: none !important;
}

.ti-courses-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(184, 138, 67, 0.35);
  pointer-events: none;
}

.ti-courses-hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ti-courses-title,
.ti-courses-title .elementor-heading-title {
  margin: 0 !important;
  color: var(--ti-white) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(40px, 4.5vw, 62px) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -1.3px !important;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.ti-title-divider {
  width: min(305px, 72%);
  margin: 18px auto 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 11px;
  color: var(--ti-gold-light);
}

.ti-title-divider span {
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ti-gold),
    transparent
  );
}

.ti-title-divider b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: var(--ti-gold-light);
  text-shadow: 0 0 18px rgba(230, 184, 102, 0.5);
}

.ti-courses-subtitle,
.ti-courses-subtitle p {
  margin: 0 auto !important;
  max-width: 720px;
  color: rgba(255, 250, 240, 0.92) !important;
  font-size: clamp(16px, 1.35vw, 21px) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.1px !important;
}

/* =========================================================
   FILTER BUTTONS - NO ICONS
   ========================================================= */

.ti-course-filters {
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.ti-course-filter {
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;

  border: 1.5px solid rgba(184, 138, 67, 0.88) !important;
  outline: none !important;
  cursor: pointer;

  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(2, 31, 27, 0.52) !important;
  color: #fffaf0 !important;

  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.18) !important;

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* حالت عادی همه دکمه‌ها */
.ti-course-filter:not(.is-active) {
  background: rgba(2, 31, 27, 0.52) !important;
  color: #fffaf0 !important;
  border-color: rgba(184, 138, 67, 0.88) !important;
}

/* Hover و کلیک بدون قرمز شدن */
.ti-course-filter:not(.is-active):hover,
.ti-course-filter:not(.is-active):focus,
.ti-course-filter:not(.is-active):focus-visible,
.ti-course-filter:not(.is-active):active {
  transform: translateY(-2px);
  outline: none !important;
  color: #fffaf0 !important;
  border-color: #e6b866 !important;
  background: rgba(184, 138, 67, 0.13) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.23) !important;
}

/* حالت فعال - طلایی لایت */
.ti-course-filter.is-active,
.ti-course-filter.is-active:hover,
.ti-course-filter.is-active:focus,
.ti-course-filter.is-active:focus-visible,
.ti-course-filter.is-active:active {
  background: rgba(184, 138, 67, 0.18) !important;
  border-color: rgba(230, 184, 102, 0.92) !important;
  color: #fffaf0 !important;
  outline: none !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.08),
    0 12px 26px rgba(184, 138, 67, 0.16) !important;
}

/* اگر از کد قبلی آیکونی مانده باشد، کامل حذف شود */
.ti-filter-icon {
  display: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  .ti-courses-hero {
    min-height: 365px;
    padding: 104px 22px 62px;
    background-size: cover;
    background-position: center top;
  }

  .ti-course-filters {
    margin-top: 42px;
    gap: 14px;
  }

  .ti-course-filter {
    min-height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }
}

/* =========================================================
   MOBILE - 30% SHORTER
   ========================================================= */

@media (max-width: 767px) {
  .ti-courses-hero {
    min-height: 294px;
    padding: 58px 18px 34px;
    background-size: cover;
    background-position: center top;
  }

  .ti-courses-title,
  .ti-courses-title .elementor-heading-title {
    font-size: 34px !important;
    letter-spacing: -0.7px !important;
    line-height: 1.05 !important;
  }

  .ti-title-divider {
    width: 210px;
    margin: 12px auto 10px;
  }

  .ti-title-divider b {
    font-size: 14px;
  }

  .ti-courses-subtitle,
  .ti-courses-subtitle p {
    max-width: 330px;
    font-size: 14.5px !important;
    line-height: 1.42 !important;
  }

  .ti-course-filters {
    width: 100%;
    margin-top: 22px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 4px;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ti-course-filters::-webkit-scrollbar {
    display: none;
  }

  .ti-course-filter {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }

  .ti-course-filter:first-child {
    flex-basis: auto;
  }
}/* =========================================================
   MOBILE FILTER FIX - Prevent clipping on hover/tap
   ========================================================= */

@media (max-width: 767px) {
  .ti-course-filters {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .ti-course-filter,
  .ti-course-filter:hover,
  .ti-course-filter:focus,
  .ti-course-filter:focus-visible,
  .ti-course-filter:active,
  .ti-course-filter.is-active,
  .ti-course-filter.is-active:hover,
  .ti-course-filter.is-active:focus,
  .ti-course-filter.is-active:active {
    transform: none !important;
  }

  .ti-course-filter:not(.is-active):hover,
  .ti-course-filter:not(.is-active):focus,
  .ti-course-filter:not(.is-active):focus-visible,
  .ti-course-filter:not(.is-active):active {
    background: rgba(184, 138, 67, 0.13) !important;
    border-color: #e6b866 !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 250, 240, 0.06),
      0 10px 22px rgba(0, 0, 0, 0.18) !important;
  }
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-549111b *//* =========================================================
   SECTION 2 - COURSES GRID
   Tarbiyah Institute
   Final Full Description + Compact Elegant Version
   ========================================================= */

.ti-courses-list-section {
  --ti-green: #062f2a;
  --ti-green-dark: #021f1b;
  --ti-gold: #b88a43;
  --ti-gold-light: #e6b866;
  --ti-cream: #fbf5ea;
  --ti-cream-2: #f4eadb;
  --ti-card: #fffaf0;
  --ti-text: #17211d;
  --ti-muted: #4d554f;

  position: relative;
  overflow: hidden;
  padding: 34px 24px 50px;

  background:
    radial-gradient(circle at 15% 10%, rgba(184, 138, 67, 0.06), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(6, 47, 42, 0.055), transparent 30%),
    linear-gradient(180deg, #fbf5ea 0%, #f7efe3 100%);
}

.ti-courses-list-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 138, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 138, 67, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
  pointer-events: none;
}

/* =========================================================
   GRID WRAPPER - 2 CARDS PER ROW
   ========================================================= */

.ti-course-grid {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 2;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px 30px !important;
}

.ti-course-grid > .e-con-inner,
.ti-course-grid > .elementor-container,
.ti-course-grid > .elementor-widget-wrap {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px 30px !important;
}

.ti-course-grid > .ti-course-card,
.ti-course-grid > .e-con-inner > .ti-course-card,
.ti-course-grid > .elementor-container > .ti-course-card,
.ti-course-grid > .elementor-widget-wrap > .ti-course-card {
  width: calc(50% - 15px) !important;
  max-width: calc(50% - 15px) !important;
  flex: 0 0 calc(50% - 15px) !important;
}

.ti-course-grid > .elementor-element:has(.ti-course-card),
.ti-course-grid > .e-con-inner > .elementor-element:has(.ti-course-card),
.ti-course-grid > .elementor-container > .elementor-element:has(.ti-course-card),
.ti-course-grid > .elementor-widget-wrap > .elementor-element:has(.ti-course-card) {
  width: calc(50% - 15px) !important;
  max-width: calc(50% - 15px) !important;
  flex: 0 0 calc(50% - 15px) !important;
}

/* =========================================================
   COURSE CARD
   ========================================================= */

.ti-course-card,
.ti-course-card.e-con,
.ti-course-card.elementor-element {
  --width: 100% !important;
  --gap: 0px !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  position: relative;
  overflow: hidden;

  min-height: auto !important;
  border-radius: 18px !important;
  border: 1.5px solid rgba(184, 138, 67, 0.5);

  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.99), rgba(250, 242, 229, 0.98));

  box-shadow:
    0 15px 36px rgba(35, 27, 15, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);

  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;

  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    opacity 0.22s ease;
}

.ti-course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 138, 67, 0.8);
  box-shadow:
    0 20px 46px rgba(35, 27, 15, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ti-course-card > .e-con-inner,
.ti-course-card > .elementor-widget-wrap {
  width: 100% !important;
  max-width: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 0 !important;
}

/* حذف فاصله‌های پیش‌فرض Elementor داخل کارت */
.ti-course-card .elementor-widget {
  margin-bottom: 0 !important;
}

.ti-course-card .elementor-widget-container {
  margin: 0 !important;
}

/* =========================================================
   COURSE IMAGE - SIZE PRESERVED
   ========================================================= */

.ti-course-image {
  width: 100% !important;
  max-width: 100% !important;

  position: relative;
  overflow: hidden;

  border-radius: 16px 16px 0 0 !important;
  background: transparent !important;
}

.ti-course-image .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
}

.ti-course-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 240px !important;

  object-fit: cover !important;
  object-position: center center !important;

  display: block !important;
  border-radius: 16px 16px 0 0 !important;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.ti-course-card:hover .ti-course-image img {
  transform: scale(1.035) !important;
  filter: saturate(1.05) contrast(1.03) !important;
}

/* =========================================================
   COURSE TEXT - FULL DESCRIPTION + COMPACT
   ========================================================= */

.ti-course-name,
.ti-course-name .elementor-heading-title {
  margin: 8px auto 3px !important;
  padding: 0 18px !important;

  color: var(--ti-text) !important;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.25px !important;
  text-align: center !important;
}

.ti-course-desc,
.ti-course-desc p {
  margin: 0 auto !important;
  padding: 0 22px !important;
  max-width: 370px !important;
  min-height: 68px !important;

  color: var(--ti-muted) !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 13.4px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  text-align: center !important;

  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.ti-course-divider {
  width: 135px !important;
  margin: 6px auto 4px !important;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;

  color: var(--ti-gold);
}

.ti-course-divider span {
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 138, 67, 0.6),
    transparent
  );
}

.ti-course-divider b {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 10px !important;
  line-height: 1;
  color: var(--ti-gold);
}

.ti-course-price,
.ti-course-price .elementor-heading-title {
  margin: 0 auto 6px !important;

  color: var(--ti-green) !important;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* =========================================================
   COURSE BUTTON
   ========================================================= */

.ti-course-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto 10px !important;
  margin-top: auto !important;
}

.ti-course-btn a,
.ti-course-btn .elementor-button {
  min-width: 162px !important;
  min-height: 32px !important;
  padding: 0 17px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 7px !important;
  border: 1px solid rgba(184, 138, 67, 0.58) !important;

  background: linear-gradient(135deg, #e5ad50, #c98e37) !important;
  color: #081f1b !important;

  font-family: "Inter", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  box-shadow:
    0 7px 16px rgba(184, 138, 67, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

.ti-course-btn a:hover,
.ti-course-btn .elementor-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #efbd65, #d89b3f) !important;
  box-shadow:
    0 10px 22px rgba(184, 138, 67, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

/* =========================================================
   OPTIONAL BADGE
   ========================================================= */

.ti-course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;

  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  background: rgba(2, 31, 27, 0.94);
  color: #f4c477;

  font-family: "Inter", Arial, sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  border: 1px solid rgba(184, 138, 67, 0.42);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   TABLET - 2 CARDS PER ROW
   ========================================================= */

@media (max-width: 1024px) {
  .ti-courses-list-section {
    padding: 30px 22px 46px;
  }

  .ti-course-grid,
  .ti-course-grid > .e-con-inner,
  .ti-course-grid > .elementor-container,
  .ti-course-grid > .elementor-widget-wrap {
    max-width: 880px !important;
    gap: 20px !important;
  }

  .ti-course-grid > .ti-course-card,
  .ti-course-grid > .e-con-inner > .ti-course-card,
  .ti-course-grid > .elementor-container > .ti-course-card,
  .ti-course-grid > .elementor-widget-wrap > .ti-course-card,
  .ti-course-grid > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .e-con-inner > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .elementor-container > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .elementor-widget-wrap > .elementor-element:has(.ti-course-card) {
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    flex: 0 0 calc(50% - 10px) !important;
  }

  .ti-course-card {
    border-radius: 18px !important;
    padding: 9px 9px 22px !important;
  }

  .ti-course-card:hover {
    transform: none !important;
  }

  .ti-course-image {
    border-radius: 15px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .ti-course-image img {
    height: 178px !important;
    width: 100% !important;
    max-width: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    border-radius: 15px !important;
    transform: none !important;
  }

  .ti-course-card:hover .ti-course-image img {
    transform: none !important;
    filter: none !important;
  }

  .ti-course-name,
  .ti-course-name .elementor-heading-title {
    margin: 7px auto 3px !important;
    padding: 0 14px !important;
    font-size: 20px !important;
    line-height: 1.06 !important;
  }

  .ti-course-desc,
  .ti-course-desc p {
    padding: 0 15px !important;
    font-size: 12.4px !important;
    line-height: 1.22 !important;

    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  .ti-course-divider {
    width: 122px !important;
    margin: 5px auto 3px !important;
  }

  .ti-course-price,
  .ti-course-price .elementor-heading-title {
    font-size: 23px !important;
    margin-bottom: 5px !important;
  }

  .ti-course-btn {
    margin-top: auto !important;
    margin-bottom: 9px !important;
  }

  .ti-course-btn a,
  .ti-course-btn .elementor-button {
    min-width: 150px !important;
    min-height: 31px !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
  }
}

/* =========================================================
   MOBILE - 1 CARD PER ROW
   ========================================================= */

@media (max-width: 767px) {
  .ti-courses-list-section {
    padding: 26px 16px 40px;
  }

  .ti-course-grid,
  .ti-course-grid > .e-con-inner,
  .ti-course-grid > .elementor-container,
  .ti-course-grid > .elementor-widget-wrap {
    max-width: 390px !important;
    gap: 18px !important;
  }

  .ti-course-grid > .ti-course-card,
  .ti-course-grid > .e-con-inner > .ti-course-card,
  .ti-course-grid > .elementor-container > .ti-course-card,
  .ti-course-grid > .elementor-widget-wrap > .ti-course-card,
  .ti-course-grid > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .e-con-inner > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .elementor-container > .elementor-element:has(.ti-course-card),
  .ti-course-grid > .elementor-widget-wrap > .elementor-element:has(.ti-course-card) {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .ti-course-card {
    border-radius: 18px !important;
    padding: 9px 9px 22px !important;
  }

  .ti-course-card:hover {
    transform: none !important;
  }

  .ti-course-image {
    border-radius: 15px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .ti-course-image img {
    height: 178px !important;
    width: 100% !important;
    max-width: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    border-radius: 15px !important;
    transform: none !important;
  }

  .ti-course-card:hover .ti-course-image img {
    transform: none !important;
    filter: none !important;
  }

  .ti-course-name,
  .ti-course-name .elementor-heading-title {
    margin: 7px auto 3px !important;
    padding: 0 15px !important;
    font-size: 21px !important;
    line-height: 1.06 !important;
  }

  .ti-course-desc,
  .ti-course-desc p {
    padding: 0 16px !important;
    font-size: 12.8px !important;
    line-height: 1.22 !important;

    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  .ti-course-divider {
    width: 122px !important;
    margin: 5px auto 3px !important;
  }

  .ti-course-price,
  .ti-course-price .elementor-heading-title {
    font-size: 24px !important;
    margin-bottom: 5px !important;
  }

  .ti-course-btn {
    margin-bottom: 9px !important;
  }

  .ti-course-btn a,
  .ti-course-btn .elementor-button {
    min-width: 150px !important;
    min-height: 31px !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
    border-radius: 7px !important;
  }
}

/* =========================================================
   FILTER HIDE / SHOW
   Must stay at the very end
   ========================================================= */

.ti-course-card.is-hidden,
.woocommerce ul.products li.product.is-hidden,
.products .product.is-hidden {
  display: none !important;
}

.ti-course-grid .ti-filter-hidden {
  display: none !important;
}

.ti-course-grid .ti-course-card.is-hidden,
.ti-course-grid .ti-course-card.e-con.is-hidden,
.ti-course-grid .ti-course-card.elementor-element.is-hidden,
.ti-course-card.is-hidden,
.ti-course-grid .ti-filter-hidden {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
/* =========================================================
   SECTION 2 - FINAL FONT RESTORE + +2PX SPACING
   Put this at the VERY END of Section 2 CSS
   ========================================================= */

/* فونت قبلی عنوان‌ها */
.ti-course-name,
.ti-course-name .elementor-heading-title {
  font-family: Georgia, "Times New Roman", serif !important;
  margin: 10px auto 5px !important;
  line-height: 1.12 !important;
}

/* فونت قبلی توضیحات */
.ti-course-desc,
.ti-course-desc p {
  font-family: inherit !important;
  margin: 2px auto 0 !important;
  line-height: 1.28 !important;
}

/* دیوایدر با فاصله ۲ پیکسل بیشتر */
.ti-course-divider {
  margin: 8px auto 5px !important;
}

/* فونت قبلی قیمت */
.ti-course-price,
.ti-course-price .elementor-heading-title {
  font-family: Georgia, "Times New Roman", serif !important;
  margin: 0 auto 8px !important;
}

/* فونت قبلی دکمه */
.ti-course-btn {
  margin: 0 auto 12px !important;
}

.ti-course-btn a,
.ti-course-btn .elementor-button {
  font-family: inherit !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  .ti-course-name,
  .ti-course-name .elementor-heading-title {
    font-family: Georgia, "Times New Roman", serif !important;
    margin: 9px auto 5px !important;
    line-height: 1.1 !important;
  }

  .ti-course-desc,
  .ti-course-desc p {
    font-family: inherit !important;
    margin: 2px auto 0 !important;
    line-height: 1.26 !important;
  }

  .ti-course-divider {
    margin: 7px auto 5px !important;
  }

  .ti-course-price,
  .ti-course-price .elementor-heading-title {
    font-family: Georgia, "Times New Roman", serif !important;
    margin-bottom: 7px !important;
  }

  .ti-course-btn {
    margin-bottom: 11px !important;
  }

  .ti-course-btn a,
  .ti-course-btn .elementor-button {
    font-family: inherit !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .ti-course-name,
  .ti-course-name .elementor-heading-title {
    font-family: Georgia, "Times New Roman", serif !important;
    margin: 9px auto 5px !important;
    line-height: 1.1 !important;
  }

  .ti-course-desc,
  .ti-course-desc p {
    font-family: inherit !important;
    margin: 2px auto 0 !important;
    line-height: 1.26 !important;
  }

  .ti-course-divider {
    margin: 7px auto 5px !important;
  }

  .ti-course-price,
  .ti-course-price .elementor-heading-title {
    font-family: Georgia, "Times New Roman", serif !important;
    margin-bottom: 7px !important;
  }

  .ti-course-btn {
    margin-bottom: 11px !important;
  }

  .ti-course-btn a,
  .ti-course-btn .elementor-button {
    font-family: inherit !important;
  }
}
/* =========================================================
   SECTION 2 - SMOOTH FILTER ANIMATION
   Put this at the VERY END of Section 2 CSS
   ========================================================= */

.ti-course-grid {
  transition: min-height 0.28s ease !important;
}

.ti-course-grid.is-filtering {
  pointer-events: none;
}

.ti-course-card {
  will-change: opacity, transform;
}

/* وقتی کارت‌ها دارند محو می‌شوند */
.ti-course-card.ti-card-leaving {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.985) !important;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease !important;
}

/* وقتی کارت‌ها وارد می‌شوند */
.ti-course-card.ti-card-entering {
  animation: tiCourseSoftEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes tiCourseSoftEnter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.004);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* دکمه فیلتر هم موقع فعال شدن نرم‌تر شود */
.ti-course-filter {
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease !important;
}

/* برای کاربرانی که motion را خاموش کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  .ti-course-card.ti-card-leaving,
  .ti-course-card.ti-card-entering {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}/* End custom CSS */