/*
  TechByte home — composedweb design language, blue palette
  Colour map  orange #ff7520 → #2563eb
              dark-o #c44a00 → #1d4ed8
              amber  #ffb830 → #60a5fa
              cream  #f5ede0 → #ddeeff
              dark   #0c0704 → #05101e
              light  #ede3d2 → #edf3ff
*/

/* ═══════════════════════════════════════════
   TICKER
═══════════════════════════════════════════ */
.hm-ticker {
  height: 42px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 30%, #60a5fa 50%, #2563eb 70%, #1d4ed8 100%);
  background-size: 200% 100%;
  animation: hm-ticker-bg 6s linear infinite;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(37,99,235,.4), inset 0 1px 0 rgba(147,197,253,.25), inset 0 -1px 0 rgba(15,30,100,.35);
}

@keyframes hm-ticker-bg {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hm-ticker::before {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: hm-ticker-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes hm-ticker-shine {
  0%   { left: -30%; }
  100% { left: 130%; }
}

.hm-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hm-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: hm-ticker-scroll 32s linear infinite;
}
.hm-ticker-track:hover { animation-play-state: paused; }
@keyframes hm-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hm-ticker-item {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 14px rgba(255,255,255,.3);
  padding: 0 28px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.hm-ticker-sep {
  color: rgba(255,255,255,.35);
  font-size: .5rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hm-hero {
  background: #050e1c url('../images/neherobanner.avif') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 56px 24px 64px;
}

/* Animated gradient mesh */
.hm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%,  rgba(37,99,235,.2)   0%, transparent 55%),
    radial-gradient(ellipse 55% 75% at 80% 15%,  rgba(99,102,241,.15) 0%, transparent 50%),
    radial-gradient(ellipse 45% 55% at 65% 85%,  rgba(6,182,212,.12)  0%, transparent 50%),
    radial-gradient(ellipse 35% 45% at 92% 65%,  rgba(139,92,246,.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 45% 15%,  rgba(14,165,233,.1)  0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 5%  85%,  rgba(236,72,153,.08) 0%, transparent 50%);
  animation: hm-mesh 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes hm-mesh {
  0%   { opacity: .85; transform: scale(1)    rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.05) rotate(.8deg); }
  100% { opacity: .9;  transform: scale(1.02) rotate(-.6deg); }
}

/* Floating symbols */
.hm-sym {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1;
  user-select: none;
  animation: hm-sym-drift linear infinite;
}
@keyframes hm-sym-drift {
  0%   { transform: translateY(0)    rotate(0deg)   scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-80px) rotate(12deg) scale(1.08); opacity: 0; }
}

.hm-sym-1  { top: 12%; left:  8%; font-size: 1.4rem; color: rgba(96,165,250,.18);  animation-duration: 9s;  animation-delay: 0s; }
.hm-sym-2  { top: 55%; left:  4%; font-size: .9rem;  color: rgba(6,182,212,.22);   animation-duration: 11s; animation-delay: 1.5s; }
.hm-sym-3  { top: 75%; left: 14%; font-size: 1.1rem; color: rgba(139,92,246,.18);  animation-duration: 8s;  animation-delay: 3s; }
.hm-sym-4  { top: 20%; left: 35%; font-size: .75rem; color: rgba(96,165,250,.14);  animation-duration: 13s; animation-delay: 0.8s; }
.hm-sym-5  { top: 65%; left: 42%; font-size: 1rem;   color: rgba(6,182,212,.16);   animation-duration: 10s; animation-delay: 4s; }
.hm-sym-6  { top:  8%; left: 62%; font-size: 1.3rem; color: rgba(99,102,241,.2);   animation-duration: 7s;  animation-delay: 2s; }
.hm-sym-7  { top: 45%; left: 70%; font-size: .85rem; color: rgba(96,165,250,.15);  animation-duration: 12s; animation-delay: 0.3s; }
.hm-sym-8  { top: 80%; left: 78%; font-size: 1rem;   color: rgba(139,92,246,.17);  animation-duration: 9s;  animation-delay: 5s; }
.hm-sym-9  { top: 25%; left: 88%; font-size: .7rem;  color: rgba(6,182,212,.2);    animation-duration: 14s; animation-delay: 1s; }
.hm-sym-10 { top: 60%; left: 94%; font-size: 1.2rem; color: rgba(37,99,235,.2);    animation-duration: 8s;  animation-delay: 3.5s; }
.hm-sym-11 { top: 35%; left: 22%; font-size: .65rem; color: rgba(236,72,153,.13);  animation-duration: 11s; animation-delay: 6s; }
.hm-sym-12 { top: 88%; left: 55%; font-size: .8rem;  color: rgba(96,165,250,.13);  animation-duration: 10s; animation-delay: 2.5s; }

/* Circuit grid + dot overlay */
.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(96,165,250,.14) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Blue glow orbs */
.hm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hm-orb-1 {
  width: 640px; height: 450px;
  background: radial-gradient(circle, rgba(37,99,235,.42) 0%, rgba(37,99,235,.08) 65%, transparent 100%);
  top: -120px; left: -100px;
  animation: hm-orb1 10s ease-in-out infinite;
}
.hm-orb-2 {
  width: 500px; height: 380px;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, rgba(99,102,241,.06) 65%, transparent 100%);
  bottom: -80px; right: -80px;
  animation: hm-orb2 13s ease-in-out infinite;
}
.hm-orb-3 {
  width: 360px; height: 280px;
  background: radial-gradient(circle, rgba(6,182,212,.32) 0%, rgba(6,182,212,.06) 65%, transparent 100%);
  top: 40%; right: 22%;
  animation: hm-orb3 7s ease-in-out infinite;
}
@keyframes hm-orb1 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,30px); }
}
@keyframes hm-orb2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-30px,-20px); }
}
@keyframes hm-orb3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-15px) scale(1.1); }
}

/* Scan line */
.hm-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.25), rgba(37,99,235,.4), rgba(96,165,250,.25), transparent);
  top: 0;
  animation: hm-scan 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes hm-scan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hm-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ── Left content ── */
.hm-hero-left { min-width: 0; }

.hm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(37,99,235,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(96,165,250,.55);
  box-shadow: 0 0 24px rgba(37,99,235,.25), inset 0 1px 0 rgba(255,255,255,.06);
  color: #bfdbfe;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hm-hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40,200,64,.7);
  animation: hm-dot-pulse 2s ease-in-out infinite;
}
@keyframes hm-dot-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px rgba(40,200,64,.7); }
  50%     { opacity: .6; box-shadow: 0 0 12px rgba(40,200,64,.4); }
}

.hm-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 0 40px rgba(0,0,0,.7);
}
.hm-hero-title span {
  color: #60a5fa;
  text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 0 30px rgba(37,99,235,.6);
}

.hm-hero-sub {
  font-size: 1.05rem;
  color: rgba(220,235,255,.95);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
  text-shadow: 0 1px 10px rgba(0,0,0,.95), 0 0 20px rgba(0,0,0,.8);
}

.hm-hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hm-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ddeeff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(37,99,235,.3);
  transition: opacity .18s, box-shadow .18s, transform .18s;
}
.hm-btn-solid:hover {
  opacity: .88;
  box-shadow: 0 0 30px rgba(37,99,235,.55);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ddeeff;
}

.hm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.82);
  text-shadow: 0 0 20px rgba(255,255,255,.6), 0 0 40px rgba(255,255,255,.25);
  box-shadow: 0 0 24px rgba(255,255,255,.12), 0 0 60px rgba(255,255,255,.05), inset 0 0 20px rgba(255,255,255,.02);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
}
.hm-btn-ghost:hover {
  border-color: rgba(37,99,235,.5);
  color: #60a5fa;
  background: rgba(37,99,235,.07);
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 0 20px rgba(37,99,235,.12);
}

.hm-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hm-hero-stat {}
.hm-hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ddeeff;
  line-height: 1;
  margin-bottom: 2px;
}
.hm-hero-stat span {
  font-size: .72rem;
  font-weight: 600;
  color: #3a5a80;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hm-hero-stat-div {
  width: 1px; height: 32px;
  background: rgba(37,99,235,.2);
}

/* ── Right: glass card ── */
.hm-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hm-hero-card {
  width: 100%;
  max-width: 480px;
  background: rgba(10,20,45,.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 32px rgba(37,99,235,.08);
  overflow: hidden;
  position: relative;
}

.hm-card-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(5,16,30,.7);
  border-bottom: 1px solid rgba(37,99,235,.15);
}
.hm-card-dots { display: flex; gap: 6px; }
.hm-card-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.hm-card-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: #3a5a80;
  margin-left: 4px;
  letter-spacing: .03em;
}

.hm-card-body {
  padding: 24px 22px;
}

.hm-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.hm-card-art-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #c8e0ff;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.hm-card-art-title a { color: inherit; text-decoration: none; transition: color .15s; }
.hm-card-art-title a:hover { color: #60a5fa; }

.hm-card-excerpt {
  font-size: .82rem;
  color: #3a5a80;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(37,99,235,.1);
}

.hm-card-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hm-card-info {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: #2d4a72;
  display: flex;
  gap: 10px;
}

/* No featured article fallback */
.hm-card-placeholder {
  padding: 36px 22px;
  text-align: center;
}
.hm-card-placeholder-icon { font-size: 3rem; opacity: .12; display: block; margin-bottom: 14px; }
.hm-card-placeholder-text { font-family: var(--font-mono); font-size: .78rem; color: #2d4a72; }

/* Corner brackets on card */
.hm-bracket {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.hm-bracket::before, .hm-bracket::after {
  content: '';
  position: absolute;
  background: rgba(37,99,235,.5);
}
.hm-bracket::before { width: 2px; height: 100%; top: 0; left: 0; }
.hm-bracket::after  { width: 100%; height: 2px; top: 0; left: 0; }
.hm-bracket--tl { top: 8px; left: 8px; }
.hm-bracket--tr { top: 8px; right: 8px; transform: scaleX(-1); }
.hm-bracket--bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.hm-bracket--br { bottom: 8px; right: 8px; transform: scale(-1); }

/* ── Latest 3 strip below card ── */
.hm-feed-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(37,99,235,.1);
}
.hm-feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,.06);
  transition: background .15s;
}
.hm-feed-row:last-child { border-bottom: none; }
.hm-feed-row:hover { background: rgba(37,99,235,.05); text-decoration: none; }
.hm-feed-row-num {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: rgba(37,99,235,.35);
  font-weight: 700;
  flex-shrink: 0;
  width: 18px;
}
.hm-feed-row-title {
  font-size: .78rem;
  font-weight: 600;
  color: #6a90b8;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: color .15s;
}
.hm-feed-row:hover .hm-feed-row-title { color: #93c5fd; }
.hm-feed-row-arrow {
  font-size: .68rem;
  color: rgba(37,99,235,.3);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.hm-feed-row:hover .hm-feed-row-arrow { color: #60a5fa; transform: translateX(2px); }

/* ── Terminal-style "latest articles" card body ── */
.hm-term-body {
  padding: 22px 22px 18px;
  font-family: var(--font-mono);
}
.hm-term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  margin-bottom: 14px;
}
.hm-term-line--prompt { margin-top: 14px; margin-bottom: 0; }
.hm-term-prompt {
  color: #34d399;
  font-weight: 700;
  white-space: nowrap;
}
.hm-term-arrow { color: #60a5fa; }
.hm-term-cmd { color: #c8e0ff; font-weight: 600; }
.hm-term-cursor {
  color: #60a5fa;
  font-weight: 700;
  animation: hm-term-blink 1.1s steps(1) infinite;
}
@keyframes hm-term-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hm-term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(37,99,235,.12);
  border-bottom: 1px solid rgba(37,99,235,.12);
}
.hm-term-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,.06);
  transition: background .15s, padding-left .15s;
}
.hm-term-row:last-child { border-bottom: none; }
.hm-term-row:hover { background: rgba(37,99,235,.06); padding-left: 10px; text-decoration: none; }
.hm-term-row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.hm-term-row-title {
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: #8fb3d9;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: color .15s;
}
.hm-term-row:hover .hm-term-row-title { color: #c8e0ff; }
.hm-term-row-meta {
  font-size: .66rem;
  color: #2d4a72;
  flex-shrink: 0;
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════
   GLOW DIVIDER
═══════════════════════════════════════════ */
.hm-glow-div {
  position: relative;
  height: 1px;
  background: #1e3a5f;
  overflow: visible;
}
.hm-glow-div::before {
  content: '';
  position: absolute;
  inset: -10px 0;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(96,165,250,.18) 0%,
    rgba(37,99,235,.08) 35%,
    transparent 70%);
  animation: hm-glow-travel 7s ease-in-out infinite;
}
@keyframes hm-glow-travel {
  0%,100% { transform: translateX(-20%); opacity: .7; }
  50%     { transform: translateX(20%);  opacity: 1; }
}

/* ═══════════════════════════════════════════
   CATEGORY STRIP
═══════════════════════════════════════════ */
.cat-strip-wrap {
  position: relative;
  background: linear-gradient(180deg, #dde9fc 0%, #edf3ff 100%);
  border-top: 1px solid rgba(96,165,250,.22);
  overflow: hidden;
}
/* Soft glow bleeding down from the hero above — ties the strip to it */
.cat-strip-wrap::before {
  content: '';
  position: absolute;
  inset: -40px 0 auto;
  height: 110px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(37,99,235,.16) 0%, transparent 70%);
  pointer-events: none;
  animation: hm-glow-travel 7s ease-in-out infinite;
}
.cat-strip {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 19px;
  border-radius: 50px;
  border: 1.5px solid color-mix(in srgb, var(--pill-clr) 28%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pill-clr) 14%, #fff) 0%, color-mix(in srgb, var(--pill-clr) 4%, #fff) 100%);
  box-shadow:
    0 2px 12px color-mix(in srgb, var(--pill-clr) 14%, transparent),
    inset 0 1px 0 rgba(255,255,255,.6);
  color: #1e3a5f;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .15s, transform .15s, box-shadow .2s;
  flex-shrink: 0;
}
.cat-strip-pill:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--pill-clr) 26%, #fff) 0%, color-mix(in srgb, var(--pill-clr) 10%, #fff) 100%);
  border-color: var(--pill-clr);
  color: color-mix(in srgb, var(--pill-clr) 70%, #1e3a5f);
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--pill-clr) 32%, transparent),
    inset 0 1px 0 rgba(255,255,255,.7);
  text-decoration: none;
}
.cat-strip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pill-clr);
  box-shadow: 0 0 7px color-mix(in srgb, var(--pill-clr) 70%, transparent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   ARTICLES SECTION — light
═══════════════════════════════════════════ */
.home-section-bg {
  background: #edf3ff;
  position: relative;
  overflow: hidden;
}

/* Aurora blobs on light section */
.hm-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}
.hm-aurora-1 {
  width: 700px; height: 500px;
  background: rgba(37,99,235,.12);
  top: -200px; right: -150px;
  animation: hm-aurora1 14s ease-in-out infinite;
}
.hm-aurora-2 {
  width: 500px; height: 400px;
  background: rgba(96,165,250,.1);
  bottom: -150px; left: -100px;
  animation: hm-aurora2 18s ease-in-out infinite;
}
@keyframes hm-aurora1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-60px,40px) scale(1.1); }
}
@keyframes hm-aurora2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(50px,-30px) scale(1.08); }
}

/* Corner brackets on section */
.hm-section-brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hm-section-brackets::before,
.hm-section-brackets::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
}
.hm-section-brackets::before {
  top: 24px; left: 24px;
  border-top: 2px solid rgba(37,99,235,.25);
  border-left: 2px solid rgba(37,99,235,.25);
}
.hm-section-brackets::after {
  bottom: 24px; right: 24px;
  border-bottom: 2px solid rgba(37,99,235,.25);
  border-right: 2px solid rgba(37,99,235,.25);
}

.home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Section header */
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 3px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #0d2040;
  letter-spacing: -.02em;
}

.section-divider {
  display: block;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  border-radius: 2px;
  margin-top: 6px;
}

.see-all {
  font-size: .8rem;
  font-weight: 700;
  color: #2563eb;
  border-bottom: 2px solid rgba(37,99,235,.25);
  padding-bottom: 2px;
  transition: border-color .18s;
  text-decoration: none;
}
.see-all:hover { border-color: #2563eb; text-decoration: none; }

/* ── Editor's pick ── */
.editor-pick {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid #d0e3ff;
  background: #fdf8ff;
  box-shadow: 0 2px 12px rgba(37,99,235,.07);
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  margin-bottom: 8px;
  position: relative;
}
.editor-pick::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, transparent, rgba(147,197,253,.1));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: 0;
}
.editor-pick:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.4);
  text-decoration: none;
}
.editor-pick:hover::before { opacity: 1; }

.editor-pick-img { position: relative; overflow: hidden; background: #ddeeff; z-index: 1; }
.editor-pick-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.editor-pick:hover .editor-pick-img img { transform: scale(1.04); }
.editor-pick-cat {
  position: absolute; top: 16px; left: 16px;
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: 4px 13px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .5px;
}
.editor-pick-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px; background: #fff;
  position: relative; z-index: 1;
}
.editor-pick-label {
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #2563eb; margin-bottom: 14px;
}
.editor-pick-title {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 800; line-height: 1.2;
  color: #0d2040; margin: 0 0 14px;
  letter-spacing: -.02em;
}
.editor-pick-excerpt { font-size: .93rem; color: #3a5a80; line-height: 1.7; margin: 0 0 20px; }
.editor-pick-meta {
  display: flex; gap: 14px; font-size: .76rem;
  color: #5a7a9a; margin-bottom: 22px;
  font-family: var(--font-mono);
}
.editor-pick-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; font-size: .84rem; font-weight: 700;
  padding: 10px 22px; border-radius: 10px;
  align-self: flex-start;
  box-shadow: 0 0 18px rgba(37,99,235,.25);
  transition: opacity .18s, box-shadow .18s, transform .18s;
}
.editor-pick:hover .editor-pick-cta {
  opacity: .88;
  box-shadow: 0 0 28px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .editor-pick { grid-template-columns: 1fr; }
  .editor-pick-img { aspect-ratio: 16/7; }
  .editor-pick-body { padding: 24px 20px; }
  .editor-pick-excerpt { display: none; }
}

/* ── Article cards ── */
/* Override base card styles for this page's light section */
.home-section-bg .card {
  background: #fdf8ff;
  border: 1.5px solid #d8e8ff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(37,99,235,.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
  position: relative;
}

/* Shimmer on hover */
.home-section-bg .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(147,197,253,.18) 40%,
    rgba(255,255,255,.6) 50%,
    rgba(147,197,253,.18) 60%,
    transparent 100%);
  background-size: 300% 300%;
  background-position: 200% 200%;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: 20px;
  z-index: 1;
}
.home-section-bg .card:hover::after {
  opacity: 1;
  animation: hm-shimmer 1.2s ease;
}
@keyframes hm-shimmer {
  0%   { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

.home-section-bg .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.35);
}

.home-section-bg .card-title a:hover { color: #2563eb; }

/* ── Home pagination ── */
.home-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.home-pg-numbers { display: flex; align-items: center; gap: 4px; }
.home-pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  color: #3a5a80; text-decoration: none;
  border: 1px solid #c0d8f0; background: #fff;
  transition: all .18s;
}
.home-pg-num:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.home-pg-active { background: #2563eb; color: #fff; border-color: #2563eb; pointer-events: none; }
.home-pg-ellipsis { width: 28px; text-align: center; color: #a0b8d0; font-size: .85rem; }
.home-pg-btn {
  padding: 8px 16px; border-radius: 8px; font-size: .84rem; font-weight: 600;
  color: #2563eb; border: 1px solid rgba(37,99,235,.25); background: #fff;
  text-decoration: none; transition: all .18s;
}
.home-pg-btn:hover { background: #2563eb; color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════
   POPULAR — dark
═══════════════════════════════════════════ */
.hm-popular {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}
.hm-popular::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hm-pop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hm-pop-orb-1 { width: 500px; height: 350px; background: rgba(59,130,246,.12); top: -80px; right: -80px; }
.hm-pop-orb-2 { width: 380px; height: 280px; background: rgba(99,102,241,.1); bottom: -60px; left: 10%; }

.hm-popular-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  position: relative;
  z-index: 1;
}

.hm-popular-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.hm-popular-eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  display: block;
  margin-bottom: 6px;
}
.hm-popular-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
  letter-spacing: -.03em;
}
.hm-popular-all {
  font-size: .78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid #93c5fd;
  padding-bottom: 2px;
  transition: color .18s, border-color .18s;
  font-family: var(--font-mono);
}
.hm-popular-all:hover { color: #1d4ed8; border-color: #3b82f6; text-decoration: none; }

.hm-popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 20px;
  overflow: hidden;
}

.hm-pop-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  text-decoration: none;
  transition: background .2s;
  position: relative;
  overflow: hidden;
}
.hm-pop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(59,130,246,.05));
  opacity: 0;
  transition: opacity .2s;
}
.hm-pop-card:hover { background: #eff6ff; text-decoration: none; }
.hm-pop-card:hover::before { opacity: 1; }

.hm-pop-rank {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(59,130,246,.18);
  line-height: 1;
  flex-shrink: 0;
  width: 50px;
  text-align: right;
  padding-top: 2px;
}

.hm-pop-img {
  width: 76px; height: 58px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.15);
  position: relative; z-index: 1;
}
.hm-pop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hm-pop-card:hover .hm-pop-img img { transform: scale(1.08); }

.hm-pop-body { flex: 1; min-width: 0; position: relative; z-index: 1; }

.hm-pop-cat {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.hm-pop-title {
  font-size: .9rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}
.hm-pop-card:hover .hm-pop-title { color: #2563eb; }
.hm-pop-views {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: #64748b;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hm-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hm-hero-right { justify-content: stretch; }
  .hm-hero-card { max-width: 100%; }
  .hm-popular-grid { grid-template-columns: 1fr; }
}

/* ── Mobile hero meta + latest (desktop hidden) ── */
.hm-hero-meta  { display: none; }
.hm-hero-latest { display: none; }

@media (max-width: 640px) {
  .hm-hero {
    padding: 52px 20px 60px;
    min-height: 78vh;
    display: flex;
    align-items: center;
  }
  .hm-hero-inner { width: 100%; }
  .hm-hero-stats { display: none; }
  .hm-hero-right { display: none; }
  .hm-btn-ghost  { display: none; }
  .hm-hero-btns  { margin-bottom: 18px; }

  /* ── Article meta row ── */
  .hm-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
  }
  .hm-meta-cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid;
    background: rgba(0,0,0,.2);
    opacity: .9;
  }
  .hm-meta-sep {
    color: rgba(255,255,255,.25);
    font-size: .7rem;
  }
  .hm-meta-item {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
  }

  /* ── Latest articles mini list ── */
  .hm-hero-latest {
    display: block;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 14px 16px;
  }
  .hm-latest-label {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 10px;
  }
  .hm-latest-list { display: flex; flex-direction: column; }
  .hm-latest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    color: rgba(255,255,255,.75);
    transition: color .15s;
  }
  .hm-latest-row:last-child { border-bottom: none; padding-bottom: 0; }
  .hm-latest-row:first-child { padding-top: 0; }
  .hm-latest-row:hover { color: #fff; text-decoration: none; }
  .hm-latest-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: .85;
  }
  .hm-latest-title {
    font-size: .78rem;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
  }
  .hm-latest-arrow {
    font-size: .7rem;
    color: rgba(255,255,255,.25);
    flex-shrink: 0;
    transition: color .15s, transform .15s;
  }
  .hm-latest-row:hover .hm-latest-arrow {
    color: rgba(255,255,255,.6);
    transform: translateX(2px);
  }
  .home-wrap { padding: 40px 16px 52px; }
  .hm-popular-inner { padding: 48px 16px 56px; }
  .hm-pop-rank { font-size: 1.5rem; width: 36px; }
  .section-row { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

  /* ── Mobile hero glow-up ── */
  .hm-hero-badge {
    background: linear-gradient(120deg, rgba(37,99,235,.32) 0%, rgba(96,165,250,.16) 45%, rgba(37,99,235,.32) 100%);
    background-size: 220% auto;
    animation: hm-badge-sheen 3.2s linear infinite;
    box-shadow: 0 0 30px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.14);
    font-size: .76rem;
  }
  @keyframes hm-badge-sheen {
    0%   { background-position: 0% center; }
    100% { background-position: 220% center; }
  }

  .hm-hero-title {
    font-size: 1.85rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
  }
  .hm-hero-title span {
    background: linear-gradient(120deg, #2563eb 0%, #3b82f6 30%, #60a5fa 50%, #3b82f6 70%, #2563eb 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 14px rgba(37,99,235,.65));
    animation: hm-title-shimmer 4.5s linear infinite;
  }
  @keyframes hm-title-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 220% center; }
  }

  .hm-hero-sub { text-shadow: 0 1px 8px rgba(0,0,0,.85); }

  .hm-btn-solid {
    width: 100%;
    justify-content: center;
    animation: hm-btn-pulse 2.8s ease-in-out infinite;
  }
  @keyframes hm-btn-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(37,99,235,.32); }
    50%      { box-shadow: 0 0 32px rgba(37,99,235,.65); }
  }
  .hm-btn-ghost {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,.07);
    border-color: rgba(96,165,250,.45);
    color: #dbeafe;
    text-shadow: none;
    box-shadow: 0 0 18px rgba(96,165,250,.12), inset 0 1px 0 rgba(255,255,255,.08);
  }
  .hm-hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
}

@media (max-width: 480px) {
  .hm-pop-rank { display: none; }
  .hm-pop-card { padding: 16px; }
}
