
/* ===== IRANYekan Font ===== */
@font-face {
  font-family: "IRANYekanX";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("https://linux-zone.org/forums/fonts/IRANYekan/woff/IRANYekanX-Regular.woff") format("woff"),
    url("https://linux-zone.org/forums/fonts/IRANYekan/woff2/IRANYekanX-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IRANYekanX";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("https://linux-zone.org/forums/fonts/IRANYekan/woff/IRANYekanX-Bold.woff") format("woff"),
    url("https://linux-zone.org/forums/fonts/IRANYekan/woff2/IRANYekanX-Bold.woff2") format("woff2");
}

:root {
  --bg: #050a13;
  --panel: rgba(10, 18, 32, 0.92);
  --border: rgba(60, 170, 255, 0.20);
  --text: #eef4ff;
  --muted: #9aa8bf;
  --primary: #2b73ff;
  --primary-2: #38bdf8;
  --green: #7efc85;
  --cyan: #4ee7ff;
  --purple: #af6dff;
  --orange: #f8a14a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(0, 128, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #03070f 0%, #06101c 52%, #050c18 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
  opacity: 0.35;
}
.glow-a {
  width: 460px;
  height: 460px;
  right: -160px;
  top: 60px;
  background: rgba(0, 136, 255, 0.20);
}
.glow-b {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 380px;
  background: rgba(0, 199, 255, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(3, 8, 15, 0.88);
  border-bottom: 1px solid rgba(60, 170, 255, 0.10);
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  white-space: nowrap;
  direction: ltr;
}
.brand-icon { font-size: 1.7rem; }
.brand-text b { color: var(--primary); }

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  color: var(--text);
  opacity: 0.92;
  padding: 22px 0;
  border-bottom: 2px solid transparent;
}
.desktop-nav a.active {
  border-color: var(--primary);
  position: relative;
}
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #2e68ff, #3e8cff);
  color: white;
  box-shadow: 0 14px 28px rgba(43, 115, 255, 0.30);
}
.btn-secondary {
  color: white;
  border-color: rgba(77, 173, 255, 0.50);
  background: rgba(8, 16, 28, 0.32);
}

.hero-section { padding: 22px 0 18px; }

.hero-fullbleed {
  width: calc(100vw - 14px);
  margin-inline: calc(50% - 50vw + 7px);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background:
    radial-gradient(circle at 82% 20%, rgba(25, 98, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.94), rgba(5, 11, 20, 0.98));
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 129, 255, 0.05), transparent 36%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 2px, transparent 4px);
  opacity: 0.42;
}

.terminal-topbar {
  position: relative;
  z-index: 2;
  width: calc(100% - 44px);
  margin: 20px auto 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(77, 173, 255, 0.24);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(18, 28, 47, 0.72), rgba(10, 18, 32, 0.62));
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.mac-dots { display: flex; gap: 8px; }
.mac-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}
.mac-dots span:nth-child(1) { background: #ff5f57; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #28c840; }
.terminal-topbar small,
.terminal-title {
  margin-inline: 0;
  color: #dbe4f5;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.88rem;
  opacity: 0.9;
  white-space: nowrap;
}

.terminal-wide {
  position: relative;
  z-index: 1;
  width: calc(100% - 44px);
  margin: 0 auto;
  min-height: 330px;
  border: 1px solid rgba(77, 173, 255, 0.24);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  direction: ltr;
  background:
    linear-gradient(180deg, rgba(1, 5, 12, 0.82), rgba(2, 8, 18, 0.90)),
    radial-gradient(circle at 50% 100%, rgba(0, 140, 255, 0.03), transparent 30%);
}
.terminal-wide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0, 50, 100, 0.05)),
    repeating-linear-gradient(90deg, rgba(80,160,255,0.05) 0px, rgba(80,160,255,0.05) 1px, transparent 1px, transparent 54px);
  opacity: 0.5;
}
.terminal-wide pre {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 16px 18px 16px;
  color: rgba(216, 226, 242, 0.86);
  font: 0.72rem/1.24 Consolas, Monaco, monospace;
  white-space: pre-wrap;
  height: 100%;
  overflow: hidden;
}
.term-green { color: var(--green); }
.term-prompt { color: #6dff8d; }
.cursor {
  color: var(--green);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-overlay-card {
  position: absolute;
  top: 74px;
  right: 54px;
  z-index: 4;
  width: min(455px, 35vw);
  padding: 18px 20px 33px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 12, 22, 0.28), rgba(6, 13, 24, 0.18));
  border: 1px solid rgba(77, 173, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(60,170,255,0.04),
    0 0 24px rgba(32, 114, 255, 0.12),
    inset 0 0 20px rgba(43, 115, 255, 0.03);
  backdrop-filter: blur(1px);
}
.eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  color: #b9e8ff;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(77, 173, 255, 0.16);
  font-size: 0.78rem;
  margin-bottom: 10px;
  margin-right: 8px;
}
.hero-overlay-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.15vw, 2.55rem);
  line-height: 1.35;
  font-weight: 900;
}
.hero-overlay-card p {
  margin: 12px 0 0;
  color: rgba(238, 244, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  min-width: 138px;
}

.section { padding: 46px 0 0; }
.section-title {
  text-align: center;
  margin-bottom: 24px;
}
.section-title h2,
.panel h2,
.community-section h2 {
  margin: 0;
  font-size: 1.5rem;
}
.section-title p,
.community-section p,
.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.path-card,
.panel,
.community-section {
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.96), rgba(6, 13, 24, 0.90));
  border: 1px solid rgba(77, 173, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,0.24);
}
.path-card { padding: 22px 20px 18px; }
.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 14px;
  font-size: 1.75rem;
  background: rgba(255,255,255,0.03);
}
.icon.blue { color: #4aa6ff; }
.icon.cyan { color: #4ee7ff; }
.icon.purple { color: #af6dff; }
.icon.orange { color: #f8a14a; }
.icon.windows { color: #4a9dff; }
.path-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.path-card p { margin: 0; color: var(--muted); min-height: 82px; }
.path-card a { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.86fr;
  gap: 18px;
}
.panel { padding: 22px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.panel-head h2 { font-size: 1.25rem; }
.panel-head a { color: var(--primary-2); font-size: 0.9rem; }

.post-list,
.topic-list,
.categories-panel {
  display: grid;
  gap: 12px;
}
.post-item,
.topic-item,
.categories-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.08);
}
.post-item strong,
.topic-item strong {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.7;
}
.post-item small,
.topic-item small {
  color: var(--muted);
}
.thumb,
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: 0 0 auto;
}
.thumb.ubuntu { background: linear-gradient(135deg, #ea580c, #f97316); }
.thumb.voip { background: linear-gradient(135deg, #16a34a, #84cc16); }
.thumb.hosting { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.thumb.network { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.avatar {
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.10);
  color: var(--primary-2);
}
.categories-panel a {
  justify-content: space-between;
}
.categories-panel b {
  color: var(--primary-2);
  font-weight: 700;
}

.community-section {
  margin-top: 26px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.community-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--primary-2);
  font-size: 2.7rem;
  background: rgba(56, 189, 248, 0.10);
}


@media (max-width: 1200px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-overlay-card { width: min(450px, calc(100% - 110px)); }
}
@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }
  .desktop-nav,
  .nav-cta {
    display: none;
  }
  .mobile-menu {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }
  .hero-overlay-card {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 12px 22px 18px;
    max-width: none;
  }
  .hero-shell {
    min-height: auto;
  }
  .terminal-wide {
    min-height: 290px;
  }
  .terminal-wide pre {
    font-size: 0.74rem;
    padding-bottom: 42px;
  }
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid,
  .community-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .community-section {
    text-align: center;
  }
  .community-icon {
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1280px); }
  .hero-fullbleed {
    width: calc(100vw - 8px);
    margin-inline: calc(50% - 50vw + 4px);
  }
  .terminal-topbar,
  .terminal-wide {
    width: calc(100% - 14px);
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .hero-overlay-card {
    margin: 10px 8px 14px;
    padding: 18px 16px;
  }
  .hero-overlay-card h1 {
    font-size: 1.8rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}




  .hero-forum-content strong {
    font-size: 0.86rem;
  }

  .hero-forum-content small {
    font-size: 0.74rem;
  }
}


.hero-forum-card {
  max-height: none;
  overflow: visible;
}

.hero-forum-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.hero-forum-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 0;
  background: transparent;
  border: 0;
  transition: 0.2s ease;
}

.hero-forum-item:hover {
  background: transparent;
  border-color: transparent;
}

.hero-forum-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  line-height: 1;
}

.hero-forum-content {
  display: block;
  min-width: 0;
}

.hero-forum-title {
  display: block;
  color: rgba(238, 244, 255, 0.92);
  font-size: 0.81rem;
  line-height: 1.45;
  font-weight: 300;
}

.hero-forum-content small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.hero-forum-card .hero-actions {
  margin-top: 34px;
  gap: 8px;
}

.hero-forum-card .hero-actions .btn {
  min-width: 138px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}

@media (max-width: 1200px) {
  .hero-forum-card {
    width: min(430px, calc(100% - 48px));
    max-height: none;
  }
}

@media (max-width: 980px) {
  .hero-forum-card {
    width: auto;
    max-height: none;
  }

  .hero-forum-card .hero-actions {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .hero-forum-item {
    padding: 5px 4px;
    gap: 8px;
  }

  .hero-forum-title {
    font-size: 0.78rem;
  }

  .hero-forum-content small {
    font-size: 0.68rem;
  }
}



  .stat-card {
    padding: 24px 18px;
  }
}


.forum-stats .section-head {
  text-align: center;
  margin-bottom: 28px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  flex-wrap: wrap;
}

.circle-card {
  position: relative;
  width: 190px;
  height: 190px;
  min-width: 190px;
  min-height: 190px;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(18, 37, 74, 0.98), rgba(5, 12, 22, 0.96) 72%);
  border: 1px solid rgba(60, 170, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(60,170,255,0.03),
    0 0 26px rgba(21, 94, 255, 0.08),
    inset 0 0 25px rgba(43,115,255,0.04);
  overflow: hidden;
}

.circle-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(84, 188, 255, 0.12);
}

.circle-card::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(84, 188, 255, 0.07);
}

.stat-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.stat-value {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.4px;
  line-height: 1.2;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .stats-grid {
    gap: 18px;
  }

  .circle-card {
    width: 170px;
    height: 170px;
    min-width: 170px;
    min-height: 170px;
  }

  .stat-inner {
    padding: 22px 16px;
  }

  .stat-label {
    font-size: 0.84rem;
    margin-bottom: 8px;
  }

  .stat-value {
    font-size: 1.9rem;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    gap: 14px;
  }

  .circle-card {
    width: 156px;
    height: 156px;
    min-width: 156px;
    min-height: 156px;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }
}


.forum-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forum-stats .section-head {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.forum-stats .section-head h2,
.forum-stats .section-head p {
  text-align: center;
}


html {
  scroll-behavior: smooth;
}

.simple-footer {
  margin-top: 58px;
  padding: 0;
  background: rgba(3, 14, 28, 0.92);
  border-top: 1px solid rgba(56, 189, 248, 0.10);
}

.footer-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: ltr;
}

.footer-bar p {
  margin: 0;
  color: rgba(226, 232, 240, 0.90);
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: left;
}

.back-to-top {
  text-decoration: none;
}

.icon-top-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.36);
  color: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-btn-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fbff, #dbeafe);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.icon-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(59, 130, 246, 0.20));
}

@media (max-width: 640px) {
  .footer-bar {
    min-height: 74px;
    padding: 14px 0;
  }

  .footer-bar p {
    font-size: 0.88rem;
  }

  .icon-top-btn {
    width: 42px;
    height: 42px;
  }

  .top-btn-icon {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }
}


button,
input,
select,
textarea {
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}


.community-insights {
  padding-top: 42px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  align-items: start;
}

.insight-panel {
  padding: 22px 22px 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.28rem;
}

.panel-head span {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.leaders-list,
.hot-topics-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(77, 173, 255, 0.10);
}

.leader-rank {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.28), rgba(6, 182, 212, 0.18));
  color: #eff6ff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.leader-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.leader-meta strong {
  font-size: 1rem;
  color: #f8fbff;
  font-weight: 700;
}

.leader-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hot-topics-scroll {
  max-height: 432px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.hot-topics-scroll::-webkit-scrollbar {
  width: 8px;
}

.hot-topics-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.hot-topics-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.42);
  border-radius: 999px;
}

.hot-topics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-topic-item a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #e8f0ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(77, 173, 255, 0.10);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hot-topic-item a:hover {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(96, 165, 250, 0.22);
  transform: translateY(-1px);
}

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

  .hot-topics-scroll {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .insight-panel {
    padding: 18px 16px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .panel-head h2 {
    font-size: 1.1rem;
  }

  .leader-item,
  .hot-topic-item a {
    padding: 11px 12px;
  }

  .hot-topics-scroll {
    max-height: 320px;
  }
}


/* V36 compact list refinements */
.compact-insights .insight-panel {
  padding: 18px 20px 18px;
}

.compact-insights .panel-head {
  margin-bottom: 14px;
}

.compact-insights .panel-head h2 {
  font-size: 1.18rem;
}

/* Remove boxed cards around top users */
.compact-insights .leaders-list {
  gap: 6px;
}

.compact-insights .leader-item {
  padding: 5px 4px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.compact-insights .leader-rank,
.compact-insights .leader-meta {
  display: none;
}

.leader-name {
  color: rgba(238, 244, 255, 0.94);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

.leader-count {
  color: var(--primary-2);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
  direction: ltr;
  white-space: nowrap;
}

/* Remove boxed cards around hot topic titles */
.compact-insights .hot-topics-scroll {
  max-height: 330px;
}

.compact-insights .hot-topics-list {
  gap: 6px;
}

.compact-insights .hot-topic-item a {
  padding: 5px 4px;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: rgba(238, 244, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  box-shadow: none;
}

.compact-insights .hot-topic-item a:hover {
  background: transparent;
  border-color: transparent;
  color: var(--primary-2);
  transform: none;
}

@media (max-width: 640px) {
  .compact-insights .insight-panel {
    padding: 16px 14px;
  }

  .leader-name,
  .compact-insights .hot-topic-item a {
    font-size: 0.84rem;
  }

  .leader-count {
    font-size: 0.78rem;
  }

  .compact-insights .hot-topics-scroll {
    max-height: 300px;
  }
}


/* V37 equalize insight cards */
.compact-insights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.compact-insights .insight-panel {
  height: 100%;
  min-height: 350px;
}

.compact-insights .top-posters-panel,
.compact-insights .hot-topics-panel {
  width: 100%;
}

@media (max-width: 980px) {
  .compact-insights {
    grid-template-columns: 1fr;
  }

  .compact-insights .insight-panel {
    min-height: auto;
  }
}


/* V38 boxed insight headers + more spacing to first item */
.compact-insights .panel-head {
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.04);
}

.compact-insights .panel-head h2 {
  line-height: 1.45;
}

.compact-insights .leaders-list,
.compact-insights .hot-topics-list {
  margin-top: 0;
}

.compact-insights .top-posters-panel .leaders-list {
  padding-top: 2px;
}

.compact-insights .hot-topics-panel .hot-topics-scroll {
  padding-top: 2px;
}

@media (max-width: 640px) {
  .compact-insights .panel-head {
    margin-bottom: 22px;
    padding: 12px 14px;
  }
}


/* V39: show only about 7 hot topics, rest scrolls */
.compact-insights .hot-topics-scroll {
  max-height: 255px;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .compact-insights .hot-topics-scroll {
    max-height: 245px;
  }
}


/* V42 proper live terminal animation */
.terminal-wide code {
  display: block;
}

.process-rows {
  display: block;
}

.process-row {
  display: block;
  transition: opacity 0.28s ease, color 0.28s ease;
  will-change: opacity;
}

.process-row.is-moving {
  opacity: 0.62;
}

.process-row.is-active-process {
  color: #7efc85;
}


/* V43 courses prototype */
.courses-section {
  padding-top: 10px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  padding: 22px 20px 18px;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 35% 35%, rgba(96, 165, 250, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.04);
}

.course-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.55;
  min-height: 3.3em;
}

.course-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
  flex-grow: 1;
}

.course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  color: #f8fbff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(59, 130, 246, 0.92));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

@media (max-width: 1100px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .course-card {
    min-height: auto;
  }
}


/* V44 courses marquee overrides */
.courses-section {
  padding-top: 10px;
  overflow: hidden;
}

.courses-section .courses-grid {
  display: none !important;
}

.courses-marquee-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0 4px;
  -webkit-mask-image: linear-gradient(to left, transparent 0, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, black 6%, black 94%, transparent 100%);
}

.courses-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: courses-marquee-rtl 42s linear infinite;
  will-change: transform;
}

.courses-marquee-shell:hover .courses-marquee-track {
  animation-play-state: paused;
}

.course-mini-card {
  width: 230px;
  min-width: 230px;
  padding: 18px 16px 16px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 26px;
}

.course-mini-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(96, 165, 250, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.04);
}

.course-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 3em;
}

.course-mini-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  flex-grow: 1;
}

.course-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: #f8fbff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(59, 130, 246, 0.92));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-mini-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

@keyframes courses-marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 9px)); }
}

@media (max-width: 900px) {
  .course-mini-card {
    width: 210px;
    min-width: 210px;
    min-height: 220px;
  }

  .courses-marquee-track {
    gap: 14px;
    animation-duration: 34s;
  }
}

@media (max-width: 640px) {
  .courses-marquee-shell {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .course-mini-card {
    width: 190px;
    min-width: 190px;
    min-height: 210px;
    padding: 16px 14px 14px;
    border-radius: 22px;
  }

  .course-mini-icon {
    width: 66px;
    height: 66px;
    font-size: 1.7rem;
  }

  .course-mini-card h3 {
    font-size: 0.94rem;
  }

  .course-mini-card p {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .course-mini-link {
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .courses-marquee-track {
    animation-duration: 28s;
  }
}


/* V45 seamless marquee loop fix */
.courses-marquee-shell {
  --marquee-distance: 0px;
}

.courses-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: courses-marquee-seamless 42s linear infinite;
  will-change: transform;
}

.courses-marquee-group {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  flex: 0 0 auto;
}

@keyframes courses-marquee-seamless {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance)));
  }
}

@media (max-width: 900px) {
  .courses-marquee-track,
  .courses-marquee-group {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .courses-marquee-track,
  .courses-marquee-group {
    gap: 14px;
  }
}


/* V46 true seamless courses loop */
.courses-marquee-shell {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0 4px;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
}

.courses-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 0;
  animation: courses-true-loop 38s linear infinite;
  will-change: transform;
}

.courses-marquee-shell:hover .courses-marquee-track {
  animation-play-state: paused;
}

.courses-marquee-group {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding-inline-end: 18px;
  flex: 0 0 auto;
  width: max-content;
}

@keyframes courses-true-loop {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Keep cards compact in the true-loop mode */
.course-mini-card {
  width: 230px;
  min-width: 230px;
}

@media (max-width: 900px) {
  .courses-marquee-track {
    animation-duration: 32s;
  }

  .courses-marquee-group {
    gap: 14px;
    padding-inline-end: 14px;
  }

  .course-mini-card {
    width: 210px;
    min-width: 210px;
  }
}

@media (max-width: 640px) {
  .courses-marquee-shell {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .courses-marquee-track {
    animation-duration: 26s;
  }

  .courses-marquee-group {
    gap: 14px;
    padding-inline-end: 14px;
  }

  .course-mini-card {
    width: 190px;
    min-width: 190px;
  }
}


/* V53 robust courses carousel with working auto-loop + left/right arrows */
.courses-carousel-wrap {
  position: relative;
  overflow: visible;
  padding-inline: 56px;
}

.courses-marquee-shell {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0 4px;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
}

.courses-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 0;
  animation: none !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.courses-marquee-group {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding-inline-end: 18px;
  flex: 0 0 auto;
  width: max-content;
}

.courses-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.56);
  background: rgba(5, 16, 34, 0.96);
  color: #eef4ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 18, 38, 0.42);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.courses-nav-btn:hover {
  background: rgba(17, 41, 82, 1);
  border-color: rgba(96, 165, 250, 0.76);
}

.courses-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.courses-nav-left {
  left: 6px;
  right: auto;
  transform: translateY(-50%);
}

.courses-nav-right {
  right: 6px;
  left: auto;
  transform: translateY(-50%);
}

.courses-nav-btn span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .courses-carousel-wrap {
    padding-inline: 50px;
  }

  .courses-marquee-group {
    gap: 14px;
    padding-inline-end: 14px;
  }

  .courses-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .courses-carousel-wrap {
    padding-inline: 44px;
  }

  .courses-marquee-shell {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .courses-nav-btn {
    width: 36px;
    height: 36px;
  }

  .courses-nav-btn span {
    font-size: 1.65rem;
  }
}


.hero-forum-loading {
  pointer-events: none;
  opacity: 0.72;
}

.hero-forum-list[data-latest-mode="live"] .hero-forum-item,
.hero-forum-list[data-latest-mode="fallback"] .hero-forum-item {
  padding-block: 4px;
}

.hero-forum-list[data-latest-mode="live"] .hero-forum-title,
.hero-forum-list[data-latest-mode="fallback"] .hero-forum-title {
  font-weight: 400;
}

.hero-forum-list[data-latest-mode="live"] .hero-forum-content small,
.hero-forum-list[data-latest-mode="fallback"] .hero-forum-content small {
  color: rgba(185, 198, 220, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
