/* SEOFAQ seofaq.net — SEO knowledge & industry directory */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #eef2f7;
  --paper-deep: #dbe3ee;
  --surface: #f8fafc;
  --line: #d0d8e4;
  --blue: #1b4dff;
  --navy: #0a1628;
  --lagoon: #3b6cff;
  --accent: #ff6a3d;
  --mist: #7b8798;
  --white: #ffffff;
  --font-display: "Source Sans 3", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--lagoon);
}

.site-wrap {
  overflow-x: hidden;
}

.container-sf {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .container-sf {
    width: min(100% - 1.35rem, var(--max));
  }
}

/* —— Portal nav (compact, Ahrefs-like) —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}

.nav-shell {
  display: flex;
  flex-direction: column;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 3rem;
  padding: 0.35rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
}

.brand-mark:hover {
  color: var(--white);
}

.brand-mark img,
.brand-logo {
  display: block;
  height: 1.55rem;
  width: auto;
}

.brand-mark .brand-text {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.15rem;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-start;
  max-width: none;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.nav-links a.nav-cta {
  margin-left: 0.25rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  border-bottom-width: 1px;
  color: var(--white);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  background: var(--blue);
  border-color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-sub {
  background: #102038;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-sub-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  padding: 0.28rem 0;
  list-style: none;
  margin: 0;
}

.nav-sub-inner a {
  display: block;
  padding: 0.22rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-radius: 2px;
}

.nav-sub-inner a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.page-inner .site-nav {
  position: sticky;
  background: var(--navy);
  padding: 0;
}

.page-inner .brand-mark {
  text-shadow: none;
}

@media (max-width: 1099.98px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 0.35rem 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0.2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a.nav-cta {
    margin: 0.45rem 0 0;
    text-align: center;
  }

  .nav-sub {
    display: none;
  }
}

/* —— Portal hero —— */
.hero {
  position: relative;
  min-height: 0;
  display: block;
  padding: 1.75rem 0 1.5rem;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(10, 22, 40, 0.94) 0%, rgba(16, 40, 90, 0.78) 48%, rgba(27, 77, 255, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.2) 0%, rgba(8, 16, 32, 0.75) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 75% 20%, #3b6cff 0%, #0a1628 58%, #050b14 100%);
  transform: none;
  animation: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  animation: none;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.hero-tagline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem 1.75rem;
  align-items: end;
}

@media (max-width: 767.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 1.35rem 0 1.25rem;
  }
}

.hero-entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0;
  max-width: none;
}

@media (max-width: 575.98px) {
  .hero-entries { grid-template-columns: 1fr; }
}

.hero-entry {
  display: block;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(11, 30, 70, 0.45);
  color: var(--white);
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.hero-entry:hover {
  background: rgba(27, 77, 255, 0.35);
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}

.hero-entry strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.hero-entry span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* Portal quick links under hero */
.portal-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.portal-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-strip-list a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  border-radius: 2px;
}

.portal-strip-list a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.section {
  padding: 2.5rem 0;
}

.section-head {
  margin-bottom: 1.15rem;
}

.hub-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 991.98px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .hub-grid { grid-template-columns: 1fr; }
}

.hub-item {
  padding: 0.85rem 0.9rem;
  border-top-width: 2px;
}

.hub-item h3 {
  font-size: 0.95rem;
}

.hub-item p {
  font-size: 0.8rem;
}

/* —— Sections —— */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.65rem;
  max-width: 36em;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.section-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* —— Channel strip (no cards) —— */
.channel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.channel-strip a,
.channel-strip span {
  display: inline-block;
  padding: 0.25rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.channel-strip a:hover {
  color: var(--blue);
  border-bottom-color: var(--accent);
}

.channel-strip li:not(:last-child)::after {
  content: "·";
  margin-left: 0.55rem;
  color: var(--mist);
  font-weight: 400;
}

/* —— Media feature + lists —— */
.media-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  animation: rise 0.8s var(--ease) 0.1s both;
}

.media-feature-visual {
  min-height: 15.5rem;
  background: var(--navy);
}

.media-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 15.5rem;
}

.media-feature-body {
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .media-feature {
    grid-template-columns: 1fr;
  }

  .media-feature-visual,
  .media-feature-visual img {
    min-height: 11.5rem;
  }
}

.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.media-list-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.05rem;
}

@media (max-width: 767.98px) {
  .media-list-grid {
    grid-template-columns: 1fr;
  }
}

.media-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11.5rem) 1fr;
  gap: 0.95rem 1.15rem;
  align-items: stretch;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.section-alt .media-row,
.section-alt .media-feature {
  background: var(--paper);
}

.media-row-stack {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  height: 100%;
}

a.media-row:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  color: inherit;
}

a.media-row:hover .media-title {
  color: var(--blue);
}

.blog-static .media-row,
.blog-static .media-feature {
  cursor: default;
}

.media-thumb {
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 9;
}

.media-row-stack .media-thumb {
  aspect-ratio: 16 / 10;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

a.media-row:hover .media-thumb img {
  transform: scale(1.04);
}

.media-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.15rem 0.15rem 0.15rem 0;
}

.media-row-stack .media-body {
  padding: 0 0.15rem 0.25rem;
}

.media-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lagoon);
  margin-bottom: 0.3rem;
}

.media-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.media-feature .media-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.media-excerpt {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.media-date {
  font-size: 0.78rem;
  color: var(--mist);
}

@media (max-width: 575.98px) {
  .media-row:not(.media-row-stack) {
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    padding: 0.55rem;
  }

  .media-title {
    font-size: 0.95rem;
  }

  .media-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* —— About / prose —— */
.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 40em;
}

.prose strong {
  color: var(--ink);
}

.pull-quote {
  margin: 1.75rem 0 0;
  padding: 1rem 0 0;
  border-top: 2px solid var(--blue);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  max-width: 22em;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  max-width: 20em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }
}

/* —— Inner pages —— */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0 2rem;
}

.page-header .section-label {
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2rem);
  letter-spacing: 0.02em;
  font-weight: 700;
  margin: 0 0 0.55rem;
  line-height: 1.3;
}

.page-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin-bottom: 1.5rem;
}

.filter-bar a,
.filter-bar span {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.filter-bar a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.filter-bar .is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-item + .blog-item {
  margin-top: 0.75rem;
}

.blog-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 1rem 1.2rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

a.blog-row:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  color: inherit;
}

a.blog-row:hover .blog-title {
  color: var(--blue);
}

.blog-thumb {
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 10;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.blog-excerpt {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--mist);
}

.blog-meta .tag {
  color: var(--lagoon);
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .blog-row {
    grid-template-columns: 6.25rem 1fr;
    gap: 0.75rem;
    padding: 0.55rem;
  }

  .blog-title {
    font-size: 0.95rem;
  }

  .blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* —— Article —— */
.article-shell {
  padding: 2.5rem 0 1rem;
  background: var(--surface);
}

.article-body {
  max-width: 42rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.article-meta-bar .tag {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lagoon);
}

.article-body > p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  color: var(--ink);
}

.article-body ol,
.article-body ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article-body strong {
  color: var(--ink);
}

.article-cover {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

.article-nav a {
  color: var(--blue);
}

.article-nav a:hover {
  color: var(--lagoon);
}

/* Related / latest */
.article-more {
  padding: 2.5rem 0 3rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.article-more-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.article-more-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mist);
  cursor: pointer;
  margin-bottom: -1px;
}

.article-more-tab.is-active {
  color: var(--blue);
  border-bottom-color: var(--accent);
}

.article-more-panel[hidden] {
  display: none;
}

.related-card {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.9rem;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: var(--blue);
  color: inherit;
}

.related-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy);
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

.related-card-excerpt {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-body time {
  font-size: 0.75rem;
  color: var(--mist);
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-list li + li {
  border-top: 1px solid var(--line);
}

.latest-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}

.latest-list a:hover .latest-title {
  color: var(--blue);
}

.latest-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.latest-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--mist);
}

@media (max-width: 575.98px) {
  .related-card {
    grid-template-columns: 5.5rem 1fr;
  }

  .latest-list a {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-content,
  .media-feature {
    animation: none;
  }

  .media-thumb img,
  a.media-row,
  a.blog-row {
    transition: none;
  }
}

/* Media list page (图文列表) */
.media-list-page .media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.media-list-page .media-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) 1fr;
  gap: 1rem 1.2rem;
  align-items: stretch;
  padding: 0.8rem;
  border: 1px solid var(--line, #c9d0d9);
  background: var(--surface, #fafbfc);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.media-list-page a.media-row:hover {
  transform: translateY(-1px);
  color: inherit;
}

.media-list-page .media-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1f27;
}

.media-list-page .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-list-page a.media-row:hover .media-thumb img {
  transform: scale(1.04);
}

.media-list-page .media-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.media-list-page .media-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.media-list-page .media-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}

.media-list-page .media-excerpt {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.82;
}

.media-list-page .media-date {
  font-size: 0.78rem;
  opacity: 0.65;
}

.media-list-page .list-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.media-list-page .list-switch a,
.media-list-page .list-switch span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line, #c9d0d9);
  text-decoration: none;
}

.media-list-page .list-switch .is-active {
  border-color: currentColor;
}

@media (max-width: 575.98px) {
  .media-list-page .media-row {
    grid-template-columns: 6.25rem 1fr;
    gap: 0.75rem;
    padding: 0.55rem;
  }

  .media-list-page .media-title {
    font-size: 0.98rem;
  }

  .media-list-page .media-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* List view switch */
.list-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}
.list-switch a,
.list-switch span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line, #c9d0d9);
  text-decoration: none;
  color: inherit;
}
.list-switch .is-active {
  border-color: currentColor;
}


.search-box.search-box-light {
  border-color: var(--line);
  background: var(--paper);
}
.search-box.search-box-light input {
  color: var(--ink);
}
.search-box.search-box-light input::placeholder {
  color: var(--mist);
}
.search-box {
  display: flex;
  gap: 0;
  margin: 0 0 1rem;
  max-width: 34rem;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--white);
  outline: none;
}
.search-box input::placeholder {
  color: rgba(255,255,255,0.65);
}
.search-box button {
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}
.search-box button:hover {
  background: #ff7a4d;
}
.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}
.search-hints a,
.search-hints span {
  color: rgba(255,255,255,0.78);
}
.search-hints a:hover {
  color: var(--white);
}

/* Direction strip */
.dir-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dir-strip a,
.dir-strip span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}
.dir-strip a:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.section-alt .dir-strip a,
.section-alt .dir-strip span {
  background: var(--paper);
}

/* Course meta chips */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--mist);
  margin-top: 0.25rem;
}
.course-meta .plat {
  color: var(--blue);
  font-weight: 600;
}
.course-meta .type-tag {
  color: var(--lagoon);
  font-weight: 600;
}
.badge-free {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent);
  vertical-align: middle;
}

/* Platform grid */
.platform-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 991.98px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .platform-grid { grid-template-columns: 1fr; }
}
.platform-item {
  display: block;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.section-alt .platform-item {
  background: var(--paper);
}
a.platform-item:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  color: inherit;
}
.platform-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.platform-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.platform-item .plat-region {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 0.3rem;
}

/* Category blocks */
.cat-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cat-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cat-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--blue);
}
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-tags li {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.cat-tags li:not(:last-child)::after {
  content: "·";
  margin-left: 0.55rem;
  color: var(--mist);
}

/* Search results table */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.result-table th,
.result-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.result-table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mist);
  background: var(--surface);
}
.result-table a {
  font-weight: 600;
  color: var(--blue);
}

/* Platform detail */
.platform-hero-cover {
  margin: 0 0 1.5rem;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
}
.platform-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fact-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list strong {
  color: var(--mist);
  font-weight: 600;
  font-size: 0.82rem;
}
@media (max-width: 575.98px) {
  .fact-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}


/* Dual entry cards on hero */
.hero-entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.15rem;
  max-width: 36rem;
}
@media (max-width: 575.98px) {
  .hero-entries { grid-template-columns: 1fr; }
}
.hero-entry {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.hero-entry:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.hero-entry strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.hero-entry span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* Hub grid */
.hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
@media (max-width: 991.98px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .hub-grid { grid-template-columns: 1fr; }
}
.hub-item {
  display: block;
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.section-alt .hub-item { background: var(--paper); }
a.hub-item:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  color: inherit;
}
.hub-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.hub-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Directory list */
.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.dir-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 0.95rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.section-alt .dir-row,
main.section .dir-row { background: var(--paper); }
a.dir-row:hover {
  border-color: var(--blue);
  color: inherit;
}
.dir-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.dir-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.dir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin-top: 0.45rem;
}
.dir-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: 0.02em;
}
.dir-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mist);
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .dir-row {
    grid-template-columns: 1fr;
  }
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}
.filter-chips a,
.filter-chips span {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  text-decoration: none;
}
.filter-chips .is-active,
.filter-chips a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.resource-links a {
  font-weight: 600;
  font-size: 0.92rem;
}

.topic-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.75rem;
}
@media (max-width: 767.98px) {
  .topic-cols { grid-template-columns: 1fr; }
}
.topic-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.topic-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-col li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.2rem 0;
}
.topic-col li:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
