.taee-blog-hub,
.taee-blog-hub * {
  box-sizing: border-box;
}

.taee-blog-hub {
  background: #fff;
  color: #171717;
}

.taee-blog-hub a {
  text-decoration: none;
}

.taee-blog-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #0d1013;
}

.taee-blog-hero__image,
.taee-blog-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.taee-blog-hero__image {
  object-fit: cover;
}

.taee-blog-hero__overlay {
  background: linear-gradient(90deg, rgba(9,10,12,.2) 0%, rgba(9,10,12,.42) 42%, rgba(9,10,12,.92) 100%);
}

.taee-blog-hero__content {
  position: relative;
  z-index: 2;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
}

.taee-blog-hero__copy {
  width: min(560px, 100%);
  margin-right: 0;
  margin-left: auto;
  color: #fff;
  text-align: right;
}

.taee-blog-hero__copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.25;
}

.taee-blog-hero__copy h1 span {
  color: var(--primary, #ef1737);
}

.taee-blog-hero__copy strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: #fff;
}

.taee-blog-hero__copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  line-height: 2;
}

.taee-blog-categories {
  position: relative;
  z-index: 3;
  margin-top: 18px;
}

.taee-blog-categories__rail {
  display: flex;
  border: 1px solid #e9edf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .07);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.taee-blog-categories__rail::-webkit-scrollbar {
  display: none;
}

.taee-blog-category {
  min-height: 112px;
  flex: 1 0 160px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  color: #20262c;
  border-left: 1px solid #edf0f2;
  text-align: center;
  transition: color .18s ease, background .18s ease;
}

.taee-blog-category:last-child {
  border-left: 0;
}

.taee-blog-category::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.taee-blog-category:hover,
.taee-blog-category.is-active {
  color: var(--primary, #ef1737);
  background: #fffafa;
}

.taee-blog-category.is-active::after {
  background: var(--primary, #ef1737);
}

.taee-blog-category__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  color: currentColor;
}

.taee-blog-category__icon i {
  font-size: 2.65rem;
  line-height: 1;
}

.taee-blog-category__icon img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.taee-blog-category > span:last-child {
  font-size: .98rem;
  line-height: 1.6;
}

.taee-blog-body {
  padding: 28px 0 34px;
}

.taee-blog-filter-note {
  margin-bottom: 16px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #596675;
  direction: rtl;
}

.taee-blog-filter-note a {
  color: var(--primary, #ef1737);
}

.taee-blog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.taee-blog-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.taee-blog-sidebar {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}

.taee-blog-featured {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 10px;
  background: #141414;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
}

.taee-blog-featured__media,
.taee-blog-featured__media img,
.taee-blog-featured__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.taee-blog-featured__media img {
  object-fit: cover;
  transition: transform .35s ease;
}

.taee-blog-featured:hover .taee-blog-featured__media img {
  transform: scale(1.025);
}

.taee-blog-featured__shade {
  background: linear-gradient(90deg, rgba(5,5,5,.1) 0%, rgba(5,5,5,.34) 40%, rgba(5,5,5,.93) 100%);
}

.taee-blog-featured__content {
  position: relative;
  z-index: 2;
  width: min(56%, 590px);
  min-height: 420px;
  margin-right: 0;
  margin-left: auto;
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  direction: rtl;
  text-align: right;
  color: #fff;
}

.taee-blog-featured__badge,
.taee-blog-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: var(--primary, #ef1737);
  color: #fff !important;
}

.taee-blog-featured__badge {
  margin-bottom: 15px;
  padding: 7px 12px;
  font-size: .86rem;
}

.taee-blog-featured h2 {
  margin: 0 0 13px;
  font-size: clamp(1.65rem, 2.3vw, 2.45rem);
  line-height: 1.55;
}

.taee-blog-featured h2 a {
  color: #fff;
}

.taee-blog-featured p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.84);
  font-size: .98rem;
  line-height: 2;
}

.taee-blog-featured__meta,
.taee-blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.taee-blog-featured__meta {
  margin-bottom: 20px;
  color: rgba(255,255,255,.74);
  font-size: .84rem;
}

.taee-blog-featured__cta {
  min-width: 160px;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  background: var(--primary, #ef1737);
  color: #fff !important;
}

.taee-blog-featured__cta i {
  color: #fff !important;
}

.taee-blog-section-head {
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
}

.taee-blog-section-head h2,
.taee-blog-brands h2,
.taee-blog-popular h2 {
  margin: 0;
  color: #16191d;
  font-size: 1.35rem;
  line-height: 1.7;
}

.taee-blog-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary, #ef1737);
  font-size: .92rem;
}

.taee-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.taee-blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6eaee;
  border-radius: 9px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.taee-blog-card:hover {
  transform: translateY(-2px);
  border-color: #dde2e7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.taee-blog-card__media {
  position: relative;
  height: 190px;
  display: block;
  overflow: hidden;
  background: #f4f5f6;
}

.taee-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.taee-blog-card:hover .taee-blog-card__media img {
  transform: scale(1.035);
}

.taee-blog-card__category {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: .78rem;
}

.taee-blog-card__body {
  padding: 14px 14px 13px;
  direction: rtl;
  text-align: right;
}

.taee-blog-card h3 {
  margin: 0 0 8px;
  min-height: 3.4em;
  font-size: 1.02rem;
  line-height: 1.7;
}

.taee-blog-card h3 a {
  color: #16191d;
}

.taee-blog-card p {
  margin: 0 0 12px;
  min-height: 4.8em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #606b77;
  font-size: .87rem;
  line-height: 1.85;
}

.taee-blog-card__meta {
  padding-top: 10px;
  border-top: 1px solid #eef1f3;
  justify-content: space-between;
  color: #87909a;
  font-size: .78rem;
}

.taee-blog-popular {
  padding: 14px 14px 8px;
  border: 1px solid #e6eaee;
  border-radius: 9px;
  background: #fff;
}

.taee-blog-popular__head {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid #eef1f3;
  direction: rtl;
}

.taee-blog-popular__head i {
  color: var(--primary, #ef1737);
  font-size: 1.45rem;
}

.taee-blog-popular__list {
  padding-top: 3px;
}

.taee-blog-popular__item {
  min-height: 58px;
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef1f3;
  direction: rtl;
}

.taee-blog-popular__item:last-child {
  border-bottom: 0;
}

.taee-blog-popular__rank {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff0f2;
  color: var(--primary, #ef1737);
}

.taee-blog-popular__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.taee-blog-popular__copy strong {
  color: #20252a;
  font-size: .86rem;
  line-height: 1.6;
}

.taee-blog-popular__copy small {
  color: #9aa1aa;
  font-size: .74rem;
}

.taee-blog-popular__item:hover .taee-blog-popular__copy strong,
.taee-blog-popular__item.is-active .taee-blog-popular__copy strong {
  color: var(--primary, #ef1737);
}

.taee-blog-pagination {
  max-width: 100%;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  gap: 8px;
}

.taee-blog-pagination > a,
.taee-blog-pagination > span {
  flex: 0 0 38px; /* Never squeeze digits when many articles exist. */
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e8ec;
  border-radius: 7px;
  color: #515c67;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  line-height: 1;
}

.taee-blog-pagination > a:hover,
.taee-blog-pagination > a:focus-visible {
  border-color: var(--primary, #ef1737);
  color: var(--primary, #ef1737);
}

.taee-blog-pagination > .is-current {
  border-color: var(--primary, #ef1737);
  background: var(--primary, #ef1737);
  color: #fff;
  font-weight: 700;
}

.taee-blog-pagination > .taee-blog-pagination__ellipsis {
  flex-basis: 20px;
  width: 20px;
  border: 0;
  background: transparent;
  color: #7b8792;
}


.taee-blog-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #dfe4e8;
  border-radius: 10px;
  background: #fafbfc;
}

.taee-blog-empty > i {
  margin-bottom: 12px;
  color: #b8c0c8;
  font-size: 3rem;
}

.taee-blog-empty h3 {
  margin: 0 0 8px;
}

.taee-blog-empty p {
  color: #7b8792;
}

.taee-blog-empty a {
  color: var(--primary, #ef1737);
}

.taee-blog-brands {
  margin-top: 28px;
}

.taee-blog-brands h2 {
  margin-bottom: 12px;
  text-align: right;
  direction: rtl;
}

.taee-blog-brands__rail {
  display: flex;
  direction: rtl;
  border: 1px solid #e7ebee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.taee-blog-brands__rail a {
  min-width: 0;
  min-height: 66px;
  flex: 1 1 0; /* Seven logos = seven equal cells; no empty eighth column. */
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #edf0f2;
}

.taee-blog-brands__rail a:last-child {
  border-left: 0;
}

.taee-blog-brands__rail img {
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
}

.taee-blog-advantages {
  border-top: 1px solid #e8ecef;
  background: #fff;
}

.taee-blog-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.taee-blog-advantage {
  min-height: 92px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid #edf0f2;
  direction: rtl;
}

.taee-blog-advantage:last-child {
  border-left: 0;
}

.taee-blog-advantage img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.taee-blog-advantage span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.taee-blog-advantage strong {
  color: #20252a;
  font-size: .9rem;
}

.taee-blog-advantage small {
  color: #7d8791;
  font-size: .78rem;
}

@media (max-width: 1199px) {
  .taee-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 991px) {
  .taee-blog-hero,
  .taee-blog-hero__content {
    min-height: 270px;
  }

  .taee-blog-categories__rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .taee-blog-categories__rail::-webkit-scrollbar {
    display: none;
  }

  .taee-blog-category {
    flex: 0 0 150px;
  }

  .taee-blog-layout {
    grid-template-columns: 1fr;
  }

  .taee-blog-main,
  .taee-blog-sidebar {
    grid-column: 1;
  }

  .taee-blog-main {
    grid-row: 1;
  }

  .taee-blog-sidebar {
    grid-row: 2;
  }

  .taee-blog-popular__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .taee-blog-featured__content {
    width: 66%;
  }

  .taee-blog-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .taee-blog-hero,
  .taee-blog-hero__content {
    min-height: 230px;
  }

  .taee-blog-hero__overlay {
    background: rgba(6,8,10,.68);
  }

  .taee-blog-hero__copy {
    width: 100%;
  }

  .taee-blog-hero__copy h1 {
    font-size: 2rem;
  }

  .taee-blog-hero__copy strong {
    font-size: 1.2rem;
  }

  .taee-blog-hero__copy p {
    font-size: .9rem;
    line-height: 1.9;
  }

  .taee-blog-categories {
    margin-top: 10px;
  }

  .taee-blog-category {
    min-height: 96px;
    flex-basis: 136px;
    padding: 10px 8px;
  }

  .taee-blog-category__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .taee-blog-category__icon img {
    width: 40px;
    height: 40px;
  }

  .taee-blog-category__icon i {
    font-size: 2.1rem;
  }

  .taee-blog-category > span:last-child {
    font-size: .84rem;
  }

  .taee-blog-body {
    padding-top: 18px;
  }

  .taee-blog-featured {
    min-height: 390px;
  }

  .taee-blog-featured__shade {
    background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.64) 56%, rgba(5,5,5,.1) 100%);
  }

  .taee-blog-featured__content {
    width: 100%;
    min-height: 390px;
    padding: 22px;
    justify-content: flex-end;
  }

  .taee-blog-featured h2 {
    font-size: 1.45rem;
  }

  .taee-blog-featured p {
    font-size: .88rem;
  }

  .taee-blog-section-head {
    align-items: flex-end;
  }

  .taee-blog-section-head h2,
  .taee-blog-brands h2,
  .taee-blog-popular h2 {
    font-size: 1.15rem;
  }

  .taee-blog-grid {
    grid-template-columns: 1fr;
  }

  .taee-blog-card__media {
    height: 210px;
  }

  .taee-blog-card h3,
  .taee-blog-card p {
    min-height: 0;
  }

  .taee-blog-popular__list {
    grid-template-columns: 1fr;
  }

  .taee-blog-brands__rail {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .taee-blog-brands__rail::-webkit-scrollbar {
    display: none;
  }

  .taee-blog-brands__rail a {
    min-width: 128px;
    flex: 0 0 128px;
  }

  .taee-blog-advantages__grid {
    grid-template-columns: 1fr 1fr;
  }

  .taee-blog-advantage {
    min-height: 82px;
    padding: 10px 8px;
  }

  .taee-blog-advantage img {
    width: 34px;
    height: 34px;
  }

  .taee-blog-advantage strong {
    font-size: .8rem;
  }

  .taee-blog-advantage small {
    font-size: .7rem;
  }
}

@media (max-width: 480px) {
  .taee-blog-pagination {
    gap: 5px;
  }

  .taee-blog-pagination > a,
  .taee-blog-pagination > span {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    font-size: .8rem;
  }

  .taee-blog-pagination > .taee-blog-pagination__ellipsis {
    display: none;
  }

  .taee-blog-advantages__grid {
    grid-template-columns: 1fr;
  }

  .taee-blog-advantage {
    justify-content: flex-start;
    border-left: 0;
    border-bottom: 1px solid #edf0f2;
  }

  .taee-blog-advantage:last-child {
    border-bottom: 0;
  }
}
