@import "./common-var.css";

.our-commitment {
  position: relative;
  color: var(--white);
}

.our-commitment__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.our-commitment__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.our-commitment__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.our-commitment__intro {
  max-width: 1038px;
}

.our-commitment__intro .hd-type2 {
  color: var(--white);
}

.our-commitment__stats {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  gap: 35px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: auto;
  @media (max-width: 1440px) {
    grid-template-columns: repeat(4, 1fr);
  }
  @media (max-width: 991px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 576px) {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(255,255,255,1);
  border-radius: 15px;
  padding: 30px 24px 24px 24px;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  width: 280px;
  flex-shrink: 0;
  @media(max-width: 1440px) {
    width: auto;
  }
}

.stat-card__title {
  font-family: var(--font-type1);
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: #000;
  margin-bottom: auto;
  padding-bottom: 16px;
}

.stat-card__value {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stat-card__number-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-number {
  font-family: var(--font-type1);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}

.stat-card__arrow {
  width: 20px;
  height: 28px;
  flex-shrink: 0;
}

.stat-unit {
  font-family: var(--font-type1);
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 1.2;
  text-align: right;
}

.stat-unit-inline {
  font-family: var(--font-type1);
  font-size: 54px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

/* RTL Support */
[dir="rtl"] .stat-card__value {
  align-items: flex-start;
}

[dir="rtl"] .stat-card__title { 
  text-align: right; 
}

[dir="rtl"] .stat-card { 
  text-align: right; 
}

[dir="rtl"] .stat-unit {
  text-align: left;
}
[dir="rtl"] .stat-card__number-row{
  flex-direction: row-reverse;
}