/* Isolated styles for the Education & Tutorials page.
   Not shared with map/, custom-charts/, or market-report/. */

.edu-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;
}

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

.edu-player-wrap {
  background: #0b1220;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.edu-player {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.edu-player-caption {
  padding: 16px 20px 20px;
  background: #f9fafb;
}

.edu-player-title {
  font-size: 18px;
  font-weight: 700;
  color: #144E9A;
  margin: 0 0 8px;
}

.edu-player-description {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.edu-player-description h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.edu-player-description h3:first-child {
  margin-top: 0;
}

.edu-player-description ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.edu-player-description p {
  margin: 0 0 8px;
}

.edu-category {
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.edu-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #144E9A;
  text-align: left;
}

.edu-category-header:hover {
  background: #eef2f7;
}

.edu-category-toggle-icon {
  font-size: 18px;
  line-height: 1;
  color: #144E9A;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

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

.edu-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 18px;
}

.edu-category[data-collapsed="true"] .edu-category-grid {
  display: none;
}

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

.edu-thumb-button {
  display: block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.edu-thumb-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.edu-thumb-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 78, 154, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.edu-thumb-play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.edu-thumb-title {
  padding: 10px 12px 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.edu-thumb.is-active .edu-thumb-title {
  color: #144E9A;
}

.edu-thumb-pdf {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 12px;
  font-size: 12.5px;
  color: #144E9A;
  text-decoration: none;
}

.edu-thumb-pdf:hover {
  text-decoration: underline;
}

/* Standalone PDF cards (Member's Updates & Guides) */
.edu-thumb-pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 14px;
  text-decoration: none;
  color: inherit;
}

.edu-thumb-pdf-card img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.edu-thumb-pdf-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #144E9A;
}

@media (max-width: 600px) {
  .edu-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 12px;
  }
}
