/* ============================================
   WIDGET: CITY-WISE GOLD PRICE TABLE (Frame 42)
   Multi-column table — City vs Gold karat grades
   ============================================ */

/* ---- Outer white card ---- */
.gct-card {
  background-color: #ffffff;
  border: 2px solid #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
}

/* ---- Title ---- */
.gct-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: #000000;
  margin: 0;
  width: 100%;
  word-break: break-word;
}

/* ---- Table wrapper (enables horizontal scroll on small screens) ---- */
.gct-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Table rows container ---- */
.gct-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 600px; /* prevent collapse before scroll kicks in */
}

/* ---- Single row (header or data) ---- */
.gct-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background-color: #f6f6f6;
  border-radius: 10px;
  width: 100%;
}

/* ---- Cell ---- */
.gct-cell {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  text-align: center;
  font-size: 20px;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}

/* Header cells — semibold */
.gct-row--header .gct-cell {
  font-weight: 600;
}

/* Data cells — regular */
.gct-row--data .gct-cell {
  font-weight: 400;
}

/* First cell (city name) left-aligned */
.gct-cell:first-child {
  justify-content: center;
}

/* ---- Show More button ---- */
.gct-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background-color: #d71920;
  border: none;
  border-radius: 10px;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.gct-show-more:hover {
  background-color: #b5151b;
}

/* ---- Legend ---- */
.gct-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.gct-legend__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}

.gct-legend__icon {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}

/* ---- Description text ---- */
.gct-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #000000;
  margin: 0;
  width: 100%;
  word-break: break-word;
}
.gct-card.mainState {
    margin-top: 24px;
}

/* ============================================
   RESPONSIVE: Tablet (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .gct-title {
    font-size: 22px;
    line-height: 28px;
  }

  .gct-cell {
    font-size: 13px;
    padding: 11px 12px;
    line-height: 24px;
    font-weight: 600;
  }

  .gct-legend__item {
    font-size: 16px;
  }

  .gct-description {
    font-size: 14px;
    line-height: 24px;
  }

  .gct-card.mainState {
    margin-top: 20px;
}
.gct-row--data .gct-cell {
  font-weight: 600;
}
}

/* ============================================
   RESPONSIVE: Mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .gct-card {
    padding: 14px;
    gap: 16px;
  }

  .gct-title {
    font-size: 18px;
    line-height: 24px;
  }

  .gct-legend {
    gap: 14px;
  }

  .gct-legend__item {
    font-size: 14px;
  }

  .gct-show-more {
    font-size: 14px;
    padding: 8px 22px;
  }
}
