/* 
    6. Categories css
*/
.categories__card {
  background: var(--bg-offwhite-color);
  border-radius: 5px;
  transition: var(--transition);
  height: 100%;
}

.categories__card:hover {
  background: var(--secondary-color);
}

.categories__card:hover .categories__icon {
  color: var(--text-white-color);
}

.categories__card:hover .categories__title {
  color: var(--text-white-color);
}

.categories__card:hover .categories__subtitle {
  color: var(--text-white-color);
}

.categories__card--link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.2rem;
}

@media only screen and (min-width: 1200px) {
  .categories__card--link {
    padding: 1.5rem;
  }
}

.categories__icon {
  margin-bottom: 1.2rem;
}

.categories__title {
  font-size: 1.5rem;
  line-height: 2.4rem;
  font-family: var(--rubik-fonts);
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.categories__subtitle {
  font-size: 1.1rem;
  line-height: 1.6rem;
  font-family: var(--rubik-fonts);
  color: var(--foreground-sub-color);
}

.categories__thumbnail--img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 4px;
}

/* =========================================================
   HERO PARTS SCENE — کامپوننت کامل
   ========================================================= */

/* --- 1. کانتینر اصلی سکشن --- */
.hero-parts-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-color);
  padding: 20px 0;

  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.2);
}

.hero-parts-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(30, 41, 59, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

/* --- 2. لایوت گرید اصلی (اطلاعات | صحنه) --- */
.hero-parts-scene__layout {
  position: relative;
  z-index: 1;
  width: min(1300px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 3rem;
  align-items: start;
  min-height: 420px;
  height: auto;
  max-height: none;
  padding: 2rem 0;
}

/* --- 3. ستون اطلاعات (برند + مدل + متن) --- */
.hero-parts-scene__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: start;
}

/* --- 4. انتخاب برند --- */
.hero-brand-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}


.hero-brand-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 96px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #cbd5e1;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;

  animation: heroBrandFloat 4.5s ease-in-out infinite;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
}

.hero-brand-card img {
  width: 64px;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
}


.hero-brand-card:nth-child(1) { animation-delay: 0s; }
.hero-brand-card:nth-child(2) { animation-delay: .4s; }
.hero-brand-card:nth-child(3) { animation-delay: .8s; }
.hero-brand-card:nth-child(4) { animation-delay: 1.2s; }
.hero-brand-card:nth-child(5) { animation-delay: 1.6s; }

.hero-brand-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f8fafc;
}

.hero-brand-card:focus-visible {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28);
}

.hero-brand-card.is-active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(220, 38, 38, 0.35),
    0 10px 24px rgba(220, 38, 38, 0.4);
}

@keyframes heroBrandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-card { animation: none !important; }
}


@media (max-width: 640px) {
  .hero-brand-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 10px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-brand-grid::-webkit-scrollbar { display: none; }

  .hero-brand-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 10px 16px;
    min-width: 84px;
    font-size: 1.25rem;
  }
  .hero-brand-card img { width: 52px;   }
}

/* --- 5. لیبل «مدل‌های X» --- */
.hero-selector__hint {
  font-size: 1.3rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.7rem;
  padding-right: 2px;
  text-align: right;
}

/* --- 6. انتخاب مدل --- */
.hero-model-grid {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}


.hero-model-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
  padding: 9px 16px;
  min-width: 88px;

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

  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;

  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-model-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.hero-model-card:focus-visible {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28);
}


.hero-model-card__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-model-card.is-active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(220, 38, 38, 0.35),
    0 8px 20px rgba(220, 38, 38, 0.35);
}

.hero-model-card.is-active .hero-model-card__indicator {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .hero-model-grid {
    gap: 6px;
    max-width: 100%;
    margin-bottom: 1.6rem;
  }

  .hero-model-card {
    padding: 8px 12px;
    font-size: 1.3rem;
    min-width: 76px;
    border-radius: 9px;
  }

  .hero-model-card__indicator {
    width: 6px;
    height: 6px;
  }
}

/* --- 6b. اسکلتون لودینگ (هنگام تعویض برند) --- */
.hero-model-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.hero-model-skeleton.is-visible {
  opacity: 1;
  visibility: visible;
}
.hero-model-skeleton__chip {
  width: 90px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: heroSkeletonShimmer 1.3s infinite;
}

@keyframes heroSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-model-skeleton__chip { animation: none !important; }
}



/* --- 7. متن معرفی (کپی) --- */
.hero-parts-scene__copy {
  max-width: 40rem;
  position: relative;
  z-index: 2;
  align-self: start;
  padding-top: 0.28rem;
  padding-left: 2rem;
  opacity: 1;
}





.hero-parts-scene__title {
  margin: 0 0 0.9rem;
  color: #f8fafc;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
}

.hero-parts-scene__desc {
  margin: 0 0 1.8rem;
  max-width: 36ch;
  color: #cbd5e1;
  font-size: 1.20rem;
  font-weight: 400;
  line-height: 2;
}



/* --- 8b. نشونه‌ی اعتماد --- */
.hero-parts-scene__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}

.hero-parts-scene__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem; /* 13px به‌جای 8.5px قبلی */
  color: #94a3b8;
}

.hero-parts-scene__trust-item svg {
  flex-shrink: 0;
  color: #34d399;
}

/* --- 9. صحنه‌ی سه‌بعدی قطعات --- */
.hero-parts-scene__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin-left: auto;
  isolation: isolate;
  perspective: 1400px;
  transform-style: preserve-3d;
  margin-top: -60px;
  align-self: start;
}

.hero-parts-scene__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
}

.hero-parts-scene__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 82%);
}

.hero-parts-scene__veil {
  position: absolute;
  inset: 1px;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(220, 38, 38, 0.14), transparent 42%),
    radial-gradient(circle at 42% 58%, rgba(30, 41, 59, 0.20), transparent 52%);
  opacity: 0.9;
}



.hero-parts-scene__orbit {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-parts-scene__scene3d,
.hero-parts-scene__parts {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-part {
  position: absolute;
  margin: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(var(--part-rotate, 0deg));
  transform-origin: center center;
  will-change: transform, opacity, filter;
  user-select: none;
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-part img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(15, 23, 42, 0.38));
}

/* --- 10. کاهش موشن (کل صحنه) --- */
@media (prefers-reduced-motion: reduce) {
  .hero-part,
  .hero-parts-scene__grid,
  .hero-parts-scene__veil,
  .hero-parts-scene__orbit {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}


/* --- 11. ریسپانسیو (از بزرگ به کوچک) --- */
@media (max-width: 1200px) {
  .hero-parts-scene__layout {
    width: min(94vw, 1300px);
    gap: 2rem;
  }

  .hero-parts-scene__copy {
    padding-left: 1.5rem;
  }

  .hero-parts-scene__title {
    font-size: clamp(3rem, 3.6vw, 4.6rem); /* 30px تا 46px */
  }

  .hero-parts-scene__desc {
    font-size: 1.65rem; /* 16.5px */
  }



  .hero-parts-scene__stage {
    max-width: 460px;
    margin-top: -46px;
  }
}

@media (max-width: 1024px) {
  .hero-parts-scene__layout {
    gap: 1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .hero-parts-scene__stage {
    margin-top: -38px;
  }
}

@media (max-width: 991px) {
  .hero-parts-scene__info {
    order: 1;
  }

  .hero-parts-scene {
    padding: 16px 0;
  }

  .hero-parts-scene__layout {
    width: min(96vw, 1200px);
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    align-items: start;
    height: auto;
    min-height: unset;
    max-height: none;
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero-parts-scene__copy {
    max-width: none;
    padding-left: 0;
    padding-top: 0;
  }

  .hero-parts-scene__subtitle {
    font-size: 1.5rem; /* 15px */
    line-height: 1.7;
  }

  .hero-parts-scene__title {
    font-size: clamp(3rem, 5.5vw, 4.4rem); /* 30px تا 44px */
    line-height: 1.12;
    margin-bottom: 0.8rem;
  }

  .hero-parts-scene__desc {
    max-width: 42ch;
    margin: 0 auto 1.4rem;
    font-size: 1.6rem; /* 16px */
    line-height: 1.85;
  }



  .hero-parts-scene__trust {
    justify-content: center;
  }

  .hero-parts-scene__trust-item {
    font-size: 1.35rem; /* 13.5px */
  }

  .hero-parts-scene__stage {
    order: 2;
    width: min(100%, 420px);
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
    margin-top: -28px;
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero-parts-scene {
    padding: 14px 0;
  }

  .hero-parts-scene__layout {
    width: min(94vw, 100%);
    gap: 1rem;
    padding: 1rem 0.85rem 1.25rem;
  }

  .hero-parts-scene__subtitle {
    font-size: 1.4rem; /* 14px */
  }

  .hero-parts-scene__title {
    font-size: clamp(2.8rem, 6.5vw, 3.6rem); /* 28px تا 36px */
    line-height: 1.15;
  }

  .hero-parts-scene__desc {
    font-size: 1.5rem; /* 15px */
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }



  .hero-parts-scene__stage {
    width: min(100%, 360px);
    max-width: 360px;
    margin-top: -18px;
    transform: none;
  }
}

@media (max-width: 575px) {
  .hero-parts-scene__layout {
    width: min(92vw, 100%);
    padding: 0.9rem 0.75rem 1rem;
  }

  .hero-parts-scene__subtitle {
    font-size: 1.35rem; /* 13.5px */
    margin-bottom: 0.6rem;
  }

  .hero-parts-scene__title {
    font-size: clamp(2.5rem, 7.5vw, 3.1rem); /* 25px تا 31px */
    line-height: 1.18;
    margin-bottom: 0.7rem;
  }

  .hero-parts-scene__desc {
    font-size: 1.4rem; /* 14px */
    line-height: 1.75;
    max-width: 34ch;
  }



  .hero-parts-scene__stage {
    width: min(100%, 320px);
    max-width: 320px;
    margin-top: -10px;
  }
}

@media (max-width: 420px) {
  .hero-parts-scene__layout {
    padding: 0.75rem 0.65rem 0.9rem;
  }

  .hero-parts-scene__title {
    font-size: 2.4rem; /* 24px */
    line-height: 1.2;
  }

  .hero-parts-scene__desc {
    font-size: 1.35rem; /* 13.5px */
  }



  .hero-parts-scene__stage {
    width: min(100%, 280px);
    max-width: 280px;
    margin-top: -4px;
  }
}


/* home 3 search filter css - Modernized */
.search__filter--inner {
  background: #ffffff;
  padding: 4rem 3rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15),
              0 1px 4px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.search__filter--inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-color-hover));

}

.search__filter--inner input {
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  transition: all 0.3s ease;
}

.search__filter--inner input:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.search__filter--inner button {
  background: var(--primary-color) !important;
  border-radius: 12px !important;
  font-weight: 600;
  transition: transform 0.2s, background 0.3s;
}

.search__filter--inner button:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.search__filter--inner::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.search__filter--inner form {
  position: relative;
  z-index: 1;
}


@media only screen and (min-width: 576px) {
  .search__filter--inner {
    padding: 3rem 2.5rem;
  }
}

@media only screen and (min-width: 1200px) {
  .search__filter--inner {
    padding: 3.3rem;
  }
}

.search__filter--form__style2 {
  gap: 2rem;
}

@media only screen and (min-width: 1200px) {
  .search__filter--form__style2 {
    gap: 3rem;
  }
}

@media only screen and (max-width: 991px) {
  .search__filter--form__style2 {
    flex-wrap: wrap;
  }
}

.search__filter--width {
  width: 100%;
  margin-bottom: 0;
}

@media only screen and (min-width: 400px) {
  .search__filter--width {
    width: 46%;
  }
}

@media only screen and (min-width: 576px) {
  .search__filter--width {
    width: 30.2%;
  }
}

@media only screen and (min-width: 768px) {
  .search__filter--width {
    width: 22.8%;
  }
}

@media only screen and (min-width: 992px) {
  .search__filter--width {
    width: 16.66%;
  }
}


/* ============================
   HOME SEARCH (INLINE VARIANT)
   ============================ */

.parts-search.home-search {
  width: 100%;
  max-width: 760px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.home-search .parts-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.home-search select,
.home-search .part-name-input {
  height: 46px;
  line-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
  appearance: none;
  display: block;
}

.home-search .part-name-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(253, 66, 85, 0.18);
}

.home-search .predictive-input-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  grid-column: 2 / 3;
}

.home-search .parts-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
}

.home-search .search-button {
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  grid-column: 1 / -1;
}

.home-search .search-button:hover {
  background: var(--secondary-color);
}

@media (max-width: 768px) {
  .home-search .parts-search-form {
    grid-template-columns: 1fr;
  }
  .home-search .predictive-input-wrapper {
    grid-column: 1 / -1;
  }
}

.parts-suggest-link {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.parts-suggest-thumb {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.parts-suggest-info {
  flex-grow: 1;
  min-width: 0;
}

.parts-suggest-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parts-suggest-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}


/* 
    8. Blog css
*/
.blog__section--inner {
  padding: 2px;
}

.view__all--link {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  line-height: 2rem;
}

@media only screen and (min-width: 576px) {
  .view__all--link {
    font-size: 1.6rem;
  }
}

.view__all--link::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  bottom: -13px;
  left: 0;
}

.blog__card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

@media only screen and (min-width: 768px) {
  .blog__card {
    padding: 2rem;
  }
}

.blog__card::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to top, #FCEEF2, #F5F5FE);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.blog__card:hover {
  border-color: var(--secondary-color);
}

.blog__card:hover::before {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social .social__share--icon {
  transform: scale(1);
}

.blog__card:hover .blog__card--thumbnail__img {
  transform: scale(1.06) rotate(2deg);
}

.blog__card--thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.blog__card--thumbnail__link {
  display: block;
  width: 100%;
}

.blog__card--thumbnail__img {
  width: 100%;
  aspect-ratio: 29 / 19;   /* دقیقاً معادل 348/228 (ساده‌شده) */
  height: auto;
  object-fit: contain;
}

.blog__card--meta {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--foreground-sub-color);
  font-family: var(--inter-fonts);
  margin-bottom: 0.7rem;
}

.blog__card--meta__date {
  width: 5rem;
  height: 4.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--secondary-color);
  border-radius: 5px;
  color: var(--text-white-color);
  line-height: 1.7rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  left: 12px;
}

@media only screen and (min-width: 768px) {
  .blog__card--meta__date {
    width: 6rem;
    height: 5rem;
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
}

.blog__card--desc {
  color: var(--foreground-sub-color);
  margin-bottom: 1.2rem;
}

.blog__card--title {
  font-size: 1.7rem;
  line-height: 2.5rem;
  margin-bottom: 1rem;
}

@media only screen and (min-width: 480px) {
  .blog__card--title {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }
}

@media only screen and (min-width: 1366px) {
  .blog__card--title {
    font-size: 2rem;
    line-height: 2.8rem;
    margin-bottom: 1.1rem;
  }
}

.blog__card--footer {
  gap: 2rem;
}

.blog__card--content {
  padding: 1.5rem 0 0;
}

.blog__card--btn__link {
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--inter-fonts);
}

.blog__card--btn__link svg {
  margin-left: 0.3rem;
  transform: scaleX(-1);
}

.blog__card--social {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.blog__card--social .social__share--icon {
  transform: scale(0);
  transition: 0.5s;
}





/*
    home two categories card css
*/
.categories__card.style2 {
  border: 1px solid var(--border-color);
  background: inherit;
}

.categories__card.style2:hover {
  border-color: var(--secondary-color);
}

.categories__card--link__style2 {
  gap: 2rem;
  padding: 1.8rem 1.5rem;
}

@media only screen and (min-width: 480px) {
  .categories__card--link__style2 {
    gap: 1.3rem;
    padding: 1.8rem 1rem;
  }
}

@media only screen and (min-width: 1200px) {
  .categories__card--link__style2 {
    gap: 2.2rem;
    padding: 2rem;
  }
}

@media only screen and (min-width: 1366px) {
  .categories__card--link__style2 {
    gap: 2.5rem;
    padding: 2rem 2.5rem;
  }
}

.categories__content--title {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

@media only screen and (min-width: 1200px) {
  .categories__content--title {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
}

.categories__content--subtitle {
  font-size: 1.4rem;
  line-height: 2rem;
  color: var(--body-text-color);
}










