/* Isolated styles for the MicroMarket Training page.
   Not shared with map/, custom-charts/, market-report/, or education-videos/. */

.mmt-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
}

.mmt-heading {
  font-size: 26px;
  font-weight: 700;
  color: #144E9A;
  margin: 0 0 24px;
}

/* Read This First ────────────────────────────────────────────────── */

.mmt-read-first-inner {
  margin-bottom: 32px;
  font-size: 14.5px;
  line-height: 1.6;
}

.mmt-read-first-label {
  font-weight: 700;
  margin: 0 0 10px;
}

.mmt-read-first-inner p {
  margin: 0 0 12px;
}

.mmt-read-more p {
  margin: 0 0 12px;
}

.mmt-read-more-toggle {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: #144E9A;
  text-decoration: underline;
  font-size: 14.5px;
  cursor: pointer;
}

/* Module accordions ─────────────────────────────────────────────── */

.mmt-module {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.mmt-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: var(--mmt-module-color, #144E9A);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.mmt-module-header:hover {
  filter: brightness(1.05);
}

.mmt-module-toggle-icon {
  font-size: 14px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.mmt-module[data-collapsed="true"] .mmt-module-toggle-icon {
  transform: rotate(-90deg);
}

.mmt-module-content {
  padding: 20px;
  background: #fff;
}

.mmt-module[data-collapsed="true"] .mmt-module-content {
  display: none;
}

.mmt-module-intro {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.mmt-module-intro strong {
  color: #144E9A;
}

.mmt-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Item cards ─────────────────────────────────────────────────────── */

.mmt-item {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.mmt-item-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

.mmt-video-embed {
  width: 100%;
  height: 100%;
}

.mmt-item-title {
  padding: 12px 14px 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #144E9A;
}

.mmt-item-pdf {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 13px;
  color: #144E9A;
  text-decoration: none;
}

.mmt-item-pdf:hover {
  text-decoration: underline;
}

.mmt-item-audio {
  padding: 8px 14px 14px;
}

.mmt-item-audio-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.mmt-item-audio audio {
  width: 100%;
}

/* Book promo ─────────────────────────────────────────────────────── */

.mmt-book-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 24px;
  background: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
}

.mmt-book-promo-cover {
  width: 100px;
  flex-shrink: 0;
  border-radius: 4px;
}

.mmt-book-promo-title {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  font-weight: 600;
}

.mmt-book-promo-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #144E9A;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.mmt-book-promo-link:hover {
  background: #103f7d;
}

@media (max-width: 600px) {
  .mmt-module-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mmt-module-content {
    padding: 14px;
  }
}
