/* ============================================
   WIDGET: MONTHLY GOLD TREND ACCORDION (Frame 35)
   Collapsible month-wise gold price summary
   ============================================ */

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

/* ---- Header block: title + subtitle ---- */
.ga-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ga-header__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: #000000;
  margin: 0;
  white-space: nowrap;
}

.ga-header__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #898989;
  margin: 0;
}

/* ---- Accordion list ---- */
.ga-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ---- Single accordion item ---- */
.ga-item {
  background-color: #f6f6f6;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

/* ---- Accordion trigger (clickable header row) ---- */
.ga-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 30px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  box-sizing: border-box;
}

.ga-item__trigger:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.ga-item__trigger-label {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #000000;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  white-space: nowrap;
}

/* First item label slightly larger per Figma */
.ga-item:first-child .ga-item__trigger-label {
  font-size: 20px;
}

/* ---- Red circle chevron icon ---- */
.ga-item__icon {
  width: 24px;
  height: 24px;
  background-color: #d71920;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.ga-item__icon svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  transition: transform 0.25s ease;
}

/* Rotate chevron when open */
.ga-item--open .ga-item__icon svg {
  transform: rotate(180deg);
}

/* ---- Collapsible content panel ---- */
.ga-item__body {
  display: block;
  background-color: #f6f6f6;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ga-item--open .ga-item__body {
  max-height: 800px;
}

/* ---- Inner content area (darker bg) ---- */
.ga-item__content {
  background-color: #efefef;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sub-heading inside expanded panel */
.ga-item__subheading {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* ---- Two-column layout: stats + description card ---- */
.ga-item__cols {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* ---- Left: stats list ---- */
.ga-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 10px;
  min-width: 0;
}

.ga-stats__row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ga-stats__label {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
  min-width: 0;
}

.ga-stats__value {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}

/* Change badge inside stats */
.ga-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
  white-space: nowrap;
}

.ga-badge--up    { background-color: #bb0e0e; }
.ga-badge--down  { background-color: #0a6700; }
.ga-badge--neutral { background-color: #fad369; color: #000; }

.ga-badge__icon {
  font-style: normal;
  font-size: 13px;
}

/* ---- Right: description card ---- */
.ga-desc-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ga-desc-card__heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

.ga-desc-card__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* ============================================
   RESPONSIVE: Tablet (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .ga-header__title {
    font-size: 20px;
    line-height: 28px;
    white-space: normal;
  }

  .ga-item__trigger-label,
  .ga-item:first-child .ga-item__trigger-label {
    font-size: 15px;
  }

  .ga-item__trigger {
    padding: 12px 16px;
  }

  .ga-item__content {
    padding: 16px;
  }

  .ga-item__cols {
    gap: 30px;
    flex-wrap: wrap;
  }

  .ga-stats__label,
  .ga-stats__value {
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
  }

.ga-stats__value {
    color: #000;
    font-family: "Noto Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.ga-stats__row {
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ga-stats__label {
     
        white-space: normal;
    }
    .ga-stats {
        padding: 10px 4px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

     .ga-desc-card {
    padding: 14px 16px;
    flex: auto;
  }
    .ga-desc-card__heading {
        font-size: 20px;
        line-height: 28px;
        font-weight: 700;
    }
.ga-desc-card__body {
        font-size: 16px;
        line-height: 28px;
    }
    .ga-item--open .ga-item__body {
    max-height: 920px;
}
}

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


  .ga-header__subtitle {
    font-size: 15px;
  }

 
  
 

  .ga-badge {
    font-size: 14px;
    padding: 2px 8px;
  }
}
