/* Our History — decorative background + rounded cards */
.history-section {
  position: relative;
  padding: 70px 0 60px;
  background-color: #f1eedc;
  background-image: url('../images/history-left.png'), url('../images/history-right.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, right bottom;
  background-size: auto 74%, auto 74%;
  overflow: hidden;
}

.history-head {
  max-width: 820px;
  margin: 0 auto 55px;
  text-align: center;
}

.history-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.history-eyebrow::before,
.history-eyebrow::after {
  content: "";
  width: 42px;
  height: 2px;
  background: #b8923f;
}

.history-eyebrow em {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111330;
}

.history-eyebrow svg { order: -1; }
.history-eyebrow { flex-wrap: wrap; justify-content: center; }

.history-head h2 {
  font-size: 52px;
  line-height: 1.15;
  color: #111330;
  margin: 0 0 18px;
}

.history-head h2 span { color: #125430; }

.history-head p {
  font-size: 16px;
  line-height: 1.7;
  color: #595a6f;
  margin: 0;
}

.history-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  max-width: 1050px;
  margin: 0 auto;
}

.history-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 44px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 200px 70px 70px 200px;
  box-shadow: 0 10px 40px rgba(17, 19, 48, 0.06);
}

.history-card-center {
  grid-column: 1 / -1;
  width: calc(50% - 20px);
  min-width: 460px;
  margin: 0 auto;
}

.history-card-img {
  position: relative;
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
}

.history-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 6px 20px rgba(17, 19, 48, 0.12);
}

.history-card-icon {
  position: absolute;
  top: -7px;
  left: -8px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #125430;
  border: 4px solid #fff;
  border-radius: 50%;
}

.history-card-text h4 {
  font-size: 24px;
  color: #125430;
  margin: 0 0 8px;
}

.history-card-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #111330;
  margin: 0;
}

.history-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.history-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 28px;
  background: #125430;
  color: #fff;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.3s;
}

.history-btn:hover { color: #fff; filter: brightness(1.2); }

.history-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #125430;
  border-radius: 50%;
}

.history-btn i svg { width: 20px; height: 20px; }

.history-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 0;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.history-badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 42px;
  font-size: 16px;
  color: #111330;
  border-right: 1px solid rgba(184, 146, 63, 0.4);
}

.history-badges li:last-child { border-right: 0; }

@media (max-width: 991px) {
  .history-section { padding: 50px 0 45px; background-size: auto 55%, auto 55%; }
  .history-head h2 { font-size: 38px; }
  .history-cards { grid-template-columns: 1fr; gap: 30px; }
  .history-card-center { width: 100%; min-width: 0; }
}

@media (max-width: 575px) {
  .history-head h2 { font-size: 30px; }
  .history-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 22px 28px;
    border-radius: 40px;
    gap: 18px;
  }
  .history-card-img { flex-basis: 140px; width: 140px; height: 140px; }
  .history-badges li { padding: 0 16px; font-size: 14px; border-right: 0; }
}

@media (max-width: 767px) {
  .history-section { background-image: none; }
}