/* Track Record - Figma node 2525:11883 */

.tr-hero {
  background: #f5f8fb;
  padding: 55px 0 80px;
  overflow: hidden;
}

.tr-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tr-hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 533px;
}

.tr-hero__text h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
  color: var(--grey-dark-charcoal);
}

.tr-hero__text p {
  font-size: 18px;
  line-height: 1.25;
  color: var(--grey-medium-dark-grey);
}

.tr-hero__visual {
  flex-shrink: 0;
  width: 440px;
  max-width: 38vw;
}

.tr-hero__visual img {
  width: 100%;
  height: auto;
}

.tr-grid {
  background: var(--grey-pure-white);
  padding: 64px 0;
}

.tr-grid__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Download Forms & Track Record Search Component */
.tr-search__wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 16px auto;
}

.tr-search__form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.tr-search__input-box {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.tr-search__icon {
  position: absolute;
  left: 16px;
  color: var(--grey-medium-dark-grey);
  pointer-events: none;
}

.tr-search__input {
  width: 100%;
  height: 52px;
  padding: 12px 44px 12px 48px;
  background: var(--grey-pure-white);
  border: 1px solid var(--grey-light-grey);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--grey-dark-charcoal);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tr-search__input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0px 0px 0px 3px rgba(0, 89, 154, 0.15);
}

.tr-search__clear {
  position: absolute;
  right: 16px;
  font-size: 22px;
  color: var(--grey-medium-dark-grey);
  text-decoration: none;
  line-height: 1;
  padding: 4px;
}

.tr-search__clear:hover {
  color: var(--secondary-red);
}

.tr-search__btn {
  flex-shrink: 0;
  height: 52px;
  padding: 0 28px;
  background: var(--primary-blue);
  color: var(--grey-pure-white);
  border: 1px solid #004c84;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tr-search__btn:hover {
  background: #004c84;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 89, 154, 0.25);
}

/* Placeholder: Figma source authors three real track-record cards (Udayshivakumar Infra
   Limited, DCX Systems Limited, Tolins Tyres Limited) and repeats that same row three times -
   reproduced faithfully rather than inventing six additional companies that don't exist in
   the source design. Cards carry a data-page attribute so the pagination control below
   operates on real markup instead of being purely decorative. */
.tr-grid__rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.ib-track__card[hidden] {
  display: none;
}

.tr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.tr-pagination__step {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-medium-dark-grey);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tr-pagination__step--next {
  color: var(--primary-blue);
}

.tr-pagination__step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tr-pagination__numbers {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.tr-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  background: none;
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tr-page:hover:not(.tr-page--active) {
  background: rgba(0, 89, 154, 0.08);
}

.tr-page--active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--grey-pure-white);
}

.tr-page--ellipsis {
  border-color: var(--primary-blue);
}

@media (max-width: 1180px) {
  .tr-hero__text h1 {
    font-size: 42px;
  }
}

@media (max-width: 1023px) {
  .tr-hero {
    padding: 56px 0;
  }

  .tr-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .tr-hero__text {
    max-width: none;
    align-items: center;
  }

  .tr-hero__visual {
    width: 100%;
    max-width: 380px;
  }

  .tr-grid__rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .tr-hero__text h1 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .tr-hero__text p {
    font-size: 16px;
  }

  .tr-grid {
    padding: 0 0 48px;
  }

  .tr-grid__rows {
    grid-template-columns: 1fr;
  }

  .tr-pagination {
    gap: 12px;
  }

  .tr-page {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}
