/* ============================================================
   eLearning Platform Hub — homepage-only styles (module layout)
   Style ID 5fcb14 — Gallery layout + Neo-Brutalism
   ============================================================ */

/* ============================================================
   Hero — single large-image focus (module 03)
   Left: oversized cover | Right: big title + excerpt + meta
   ============================================================ */
[class~="5fcb14-hero"] {
  padding: 40px 0 8px;
}
[class~="5fcb14-hero__grid"] {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
[class~="5fcb14-hero__media"] {
  position: relative;
  min-height: 380px;
  border-right: 2px solid var(--ink);
  background: var(--bg-deep);
}
[class~="5fcb14-hero__media"] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[class~="5fcb14-hero__body"] {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[class~="5fcb14-hero__cat"] { margin-bottom: 16px; }
[class~="5fcb14-hero__title"] {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
[class~="5fcb14-hero__title"] a { color: var(--ink); }
[class~="5fcb14-hero__title"] a:hover { color: var(--accent); }
[class~="5fcb14-hero__excerpt"] {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
[class~="5fcb14-hero__meta"] {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ============================================================
   Section headings
   ============================================================ */
[class~="5fcb14-section"] { padding: 40px 0 8px; }
[class~="5fcb14-section__head"] {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
[class~="5fcb14-section__title"] {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  white-space: nowrap;
}
[class~="5fcb14-section__rule"] {
  flex: 1;
  height: 2px;
  background: var(--ink);
}

/* ============================================================
   Editor's Choice — topic cards, 3 columns (module 04)
   ============================================================ */
[class~="5fcb14-topics"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
[class~="5fcb14-topic"] {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
[class~="5fcb14-topic"]:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(38,29,33,1);
}
[class~="5fcb14-topic__head"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
[class~="5fcb14-topic__title"] {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin: 0;
}
[class~="5fcb14-topic__title"] a { color: var(--ink); }
[class~="5fcb14-topic__title"] a:hover { color: var(--accent); }
[class~="5fcb14-topic__count"] {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-2);
  border: 2px solid var(--ink);
  padding: 0.2em 0.55em;
  border-radius: 2px;
}
[class~="5fcb14-topic__links"] { list-style: none; margin: 0; padding: 0; }
[class~="5fcb14-topic__links"] li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
[class~="5fcb14-topic__links"] li:last-child { border-bottom: none; }
[class~="5fcb14-topic__links"] a { color: var(--text); }
[class~="5fcb14-topic__links"] a:hover { color: var(--accent); }

/* ============================================================
   Main feed — single-column large list, no sidebar (module 05)
   ============================================================ */
[class~="5fcb14-mainfeed"] { padding: 40px 0; }
[class~="5fcb14-mainfeed__list"] {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 860px;
}
[class~="5fcb14-mainfeed__list"] [class~="5fcb14-card__media"] {
  flex: 0 0 168px;
  width: 168px;
  height: 116px;
}
[class~="5fcb14-mainfeed__list"] [class~="5fcb14-card__title"] {
  font-size: 1.5rem;
}
[class~="5fcb14-mainfeed__more"] {
  margin-top: 30px;
  max-width: 860px;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  [class~="5fcb14-hero__grid"] { grid-template-columns: 1fr; }
  [class~="5fcb14-hero__media"] { min-height: 260px; border-right: none; border-bottom: 2px solid var(--ink); }
  [class~="5fcb14-topics"] { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  [class~="5fcb14-hero__body"] { padding: 24px; }
  [class~="5fcb14-mainfeed__list"] [class~="5fcb14-card__media"] { flex: 0 0 100px; width: 100px; height: 76px; }
  [class~="5fcb14-mainfeed__list"] [class~="5fcb14-card__title"] { font-size: 1.2rem; }
}
