/* ═══════════════════════════════════════════════════════════════════
   TheHackersLog Homepage PRO — homepage.css v3.0.0
   Cyberpunk editorial design | Space Mono + Sora
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts import (fallback if not enqueued) ────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Sora:wght@300;400;500;600;700&display=swap');

/* ── Custom properties ──────────────────────────────────────────── */
:root {
  --thl-ink:         #0a0e1a;
  --thl-ink-2:       #1a2035;
  --thl-ink-3:       #2d3a55;
  --thl-muted:       #5a6a8a;
  --thl-border:      #e0e6f0;
  --thl-surface:     #ffffff;
  --thl-bg:          #f4f7fc;
  --thl-blue:        #1a6bff;
  --thl-blue-dk:     #0d4fd6;
  --thl-cyan:        #00d4ff;
  --thl-green:       #00e676;
  --thl-red:         #ff4757;
  --thl-amber:       #ffb300;
  --thl-accent:      #7c3aed;
  --thl-radius:      12px;
  --thl-radius-lg:   18px;
  --thl-shadow-sm:   0 1px 4px rgba(10,14,26,.06), 0 1px 2px rgba(10,14,26,.04);
  --thl-shadow:      0 4px 24px rgba(10,14,26,.08), 0 1px 4px rgba(10,14,26,.04);
  --thl-shadow-lg:   0 12px 48px rgba(10,14,26,.12), 0 2px 8px rgba(10,14,26,.06);
  --thl-font-mono:   'Space Mono', 'Courier New', monospace;
  --thl-font-sans:   'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --thl-transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset helpers ──────────────────────────────────────────────── */
.thl-hero *,
.thl-stats-bar *,
.thl-section *,
.thl-sub-section * {
  box-sizing: border-box;
}

/* ── Container ──────────────────────────────────────────────────── */
.thl-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.thl-hero {
  background: var(--thl-surface);
  border-bottom: 1px solid var(--thl-border);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% -100px, rgba(26,107,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 100%, rgba(0,212,255,.04) 0%, transparent 70%);
  pointer-events: none;
}

.thl-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,107,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.thl-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: thlFadeUp .7s ease both;
}

/* Eyebrow badge */
.thl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--thl-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--thl-blue);
  background: #eff6ff;
  border: 1px solid #c0d6ff;
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.thl-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--thl-blue);
  animation: thlPulse 2s ease infinite;
  flex-shrink: 0;
}

/* Hero title */
.thl-hero-title {
  font-family: var(--thl-font-mono);
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--thl-ink);
  margin: 0 0 22px;
}

.thl-hero-title span {
  color: var(--thl-blue);
}

.thl-hero-subtitle {
  font-family: var(--thl-font-sans);
  font-size: 19px;
  color: var(--thl-muted);
  line-height: 1.65;
  margin: 0 auto 10px;
  max-width: 580px;
  font-weight: 400;
}

.thl-hero-trust {
  font-family: var(--thl-font-sans);
  font-size: 14px;
  color: var(--thl-muted);
  margin: 0 0 44px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SUBSCRIBE FIXED
   ═══════════════════════════════════════════════════════════════════ */

.thl-hero-subscribe{
  width:100%;
  margin:40px auto 20px;
}

/* FORM WRAPPER */
.thl-hero-subscribe .thl-mp-wrap form,
.thl-hero-subscribe .mailpoet_form{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  max-width:700px !important;
  margin:0 auto !important;
}

/* INPUT */
.thl-hero-subscribe .thl-mp-wrap input[type="email"],
.thl-hero-subscribe .mailpoet_text{
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important;
  height:56px !important;
  padding:0 20px !important;
  border:1.5px solid var(--thl-border) !important;
  border-radius:12px !important;
  font-size:15px !important;
  font-family:var(--thl-font-sans) !important;
  background:#fff !important;
  color:var(--thl-ink) !important;
  outline:none !important;
  box-sizing:border-box !important;
  transition:border-color var(--thl-transition),
             box-shadow var(--thl-transition) !important;
}

.thl-hero-subscribe .thl-mp-wrap input[type="email"]:focus,
.thl-hero-subscribe .mailpoet_text:focus{
  border-color:var(--thl-blue) !important;
  box-shadow:0 0 0 4px rgba(26,107,255,.1) !important;
}

/* BUTTON */
.thl-hero-subscribe .thl-mp-wrap input[type="submit"],
.thl-hero-subscribe .mailpoet_submit{
  height:56px !important;
  padding:0 30px !important;
  border:none !important;
  border-radius:12px !important;
  background:var(--thl-ink) !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:700 !important;
  font-family:var(--thl-font-sans) !important;
  cursor:pointer !important;
  white-space:nowrap !important;
  flex-shrink:0 !important;
  transition:all .25s ease !important;
}

.thl-hero-subscribe .thl-mp-wrap input[type="submit"]:hover,
.thl-hero-subscribe .mailpoet_submit:hover{
  background:var(--thl-blue) !important;
  transform:translateY(-2px) !important;
}

/* BELOW TEXT */
.thl-hero-badge{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:24px !important;
  flex-wrap:nowrap !important;
  margin-top:24px !important;
  font-size:14px !important;
  color:var(--thl-muted) !important;
  text-align:center !important;
}

.thl-hero-badge span{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  white-space:nowrap !important;
}

/* MOBILE */
@media(max-width:768px){

  .thl-hero-subscribe .thl-mp-wrap form,
  .thl-hero-subscribe .mailpoet_form{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .thl-hero-subscribe .thl-mp-wrap input[type="email"],
  .thl-hero-subscribe .mailpoet_text{
    width:100% !important;
  }

  .thl-hero-subscribe .thl-mp-wrap input[type="submit"],
  .thl-hero-subscribe .mailpoet_submit{
    width:100% !important;
  }

  .thl-hero-badge{
    flex-direction:column !important;
    gap:10px !important;
    flex-wrap:wrap !important;
  }
}

.thl-hero-badge {
  font-family: var(--thl-font-sans);
  font-size: 13px;
  color: var(--thl-muted);
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════ */
.thl-stats-bar {
  background: var(--thl-ink);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.thl-stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.thl-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.thl-stat-item {
  text-align: center;
  padding: 16px 40px;
  animation: thlFadeUp .55s ease both;
}

.thl-stat-item:nth-child(1) { animation-delay: .1s; }
.thl-stat-item:nth-child(3) { animation-delay: .2s; }
.thl-stat-item:nth-child(5) { animation-delay: .3s; }
.thl-stat-item:nth-child(7) { animation-delay: .4s; }

.thl-stat-sep {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.thl-stat-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.thl-stat-num {
  display: block;
  font-family: var(--thl-font-mono);
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -.02em;
}

.thl-stat-accent {
  color: var(--thl-cyan);
}

.thl-stat-lbl {
  display: block;
  font-family: var(--thl-font-sans);
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

.thl-platform-note {
  text-align: center;
  font-family: var(--thl-font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin: 28px 0 0;
  position: relative;
  z-index: 1;
}

.thl-platform-note a {
  color: var(--thl-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--thl-transition);
}

.thl-platform-note a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION WRAPPERS
   ═══════════════════════════════════════════════════════════════════ */
.thl-section {
  padding: 80px 0;
}

.thl-blogs-section {
  background: var(--thl-surface);
}

.thl-news-section {
  background: var(--thl-bg);
  border-top: 1px solid var(--thl-border);
}

.thl-section-head {
  text-align: center;
  margin-bottom: 52px;
}

.thl-section-tag {
  display: inline-block;
  font-family: var(--thl-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--thl-blue);
  background: #eff6ff;
  border: 1px solid #c0d6ff;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.thl-section-title {
  font-family: var(--thl-font-mono);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--thl-ink);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.thl-section-sub {
  font-family: var(--thl-font-sans);
  font-size: 16px;
  color: var(--thl-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY TABS
   ═══════════════════════════════════════════════════════════════════ */
.thl-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.thl-tab {
  font-family: var(--thl-font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--thl-border);
  background: var(--thl-surface);
  color: var(--thl-ink-3);
  cursor: pointer;
  transition: all var(--thl-transition);
  white-space: nowrap;
}

.thl-tab:hover {
  border-color: #94a3b8;
  color: var(--thl-ink);
}

.thl-tab.active {
  background: var(--thl-ink);
  border-color: var(--thl-ink);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(10,14,26,.18);
}

/* ═══════════════════════════════════════════════════════════════════
   POST GRID
   ═══════════════════════════════════════════════════════════════════ */
.thl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ═══════════════════════════════════════════════════════════════════
   POST CARD
   ═══════════════════════════════════════════════════════════════════ */
.thl-card {
  background: var(--thl-surface);
  border: 1.5px solid var(--thl-border);
  border-radius: var(--thl-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--thl-transition), transform var(--thl-transition), border-color var(--thl-transition);
  display: flex;
  flex-direction: column;
  animation: thlFadeUp .5s ease both;
}

.thl-card:hover {
  box-shadow: var(--thl-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26,107,255,.15);
}

/* Card image */
.thl-card-img-link {
  display: block;
  overflow: hidden;
}

.thl-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--thl-ink) 0%, var(--thl-ink-2) 100%);
  position: relative;
}

.thl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.thl-card:hover .thl-card-img {
  transform: scale(1.05);
}

/* Placeholder for posts without a thumbnail */
.thl-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--thl-ink) 0%, var(--thl-ink-2) 100%);
}

.thl-card-img-icon {
  font-size: 42px;
  opacity: .5;
}

/* Card body */
.thl-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Meta row */
.thl-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: var(--thl-font-sans);
  font-size: 12px;
  color: var(--thl-muted);
}

/* Badges */
.thl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: var(--thl-ink-3);
}

.thl-badge--news        { background: #fff8e1; color: #a16207; }
.thl-badge--blog        { background: #f0fdf4; color: #166534; }
.thl-badge--tutorial,
.thl-badge--tutorials   { background: #d1fae5; color: #065f46; }
.thl-badge--bug-bounty,
.thl-badge--bugbounty,
.thl-badge--bug_bounty  { background: #fff1f2; color: #be123c; }
.thl-badge--research    { background: #faf5ff; color: #6b21a8; }
.thl-badge--tools       { background: #f0f9ff; color: #0369a1; }
.thl-badge--uncategorized { background: #f8fafc; color: #64748b; }

.thl-dot { color: #cbd5e1; }

/* Card title */
.thl-card-title {
  font-family: var(--thl-font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  flex: 1;
}

.thl-card-link {
  color: var(--thl-ink);
  text-decoration: none;
  transition: color var(--thl-transition);
}

.thl-card-link:hover {
  color: var(--thl-blue);
}

/* Excerpt */
.thl-card-excerpt {
  font-family: var(--thl-font-sans);
  font-size: 14px;
  color: var(--thl-ink-3);
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}

/* Card footer */
.thl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--thl-border);
}

.thl-card-author {
  font-family: var(--thl-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--thl-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.thl-card-cta {
  font-family: var(--thl-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--thl-blue);
  text-decoration: none;
  transition: color var(--thl-transition), letter-spacing var(--thl-transition);
  white-space: nowrap;
}

.thl-card-cta:hover {
  color: var(--thl-blue-dk);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════════
   LOAD MORE
   ═══════════════════════════════════════════════════════════════════ */
.thl-load-more-wrap {
  text-align: center;
  margin-top: 52px;
}

.thl-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--thl-surface);
  color: var(--thl-ink);
  border: 1.5px solid var(--thl-border);
  border-radius: 10px;
  font-family: var(--thl-font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--thl-transition);
  min-width: 200px;
}

.thl-load-more:hover {
  border-color: var(--thl-ink);
  background: var(--thl-ink);
  color: #fff;
}

.thl-load-more.loading {
  pointer-events: none;
  opacity: .7;
}

.thl-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: thlSpin .7s linear infinite;
  flex-shrink: 0;
}

.thl-load-more.loading .thl-btn-spinner {
  display: block;
}

.thl-load-more.loading .thl-btn-label {
  opacity: .6;
}

/* ═══════════════════════════════════════════════════════════════════
   DARK SUBSCRIBE BOX
   ═══════════════════════════════════════════════════════════════════ */
.thl-sub-section {
  padding: 80px 24px;
  background: var(--thl-surface);
  border-top: 1px solid var(--thl-border);
}

.thl-sub-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--thl-ink);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(10,14,26,.2);
  position: relative;
  overflow: hidden;
}

.thl-sub-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,107,255,.2) 0%, transparent 70%);
  pointer-events: none;
}

.thl-sub-box-inner {
  position: relative;
  z-index: 1;
}

.thl-sub-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.thl-sub-title {
  font-family: var(--thl-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  line-height: 1.2;
}

.thl-sub-desc {
  font-family: var(--thl-font-sans);
  font-size: 15px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin: 0 0 32px;
}

/* MailPoet overrides — dark box */
.thl-mp-dark form,
.thl-mp-dark .mailpoet_form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.thl-mp-dark input[type="email"],
.thl-mp-dark .mailpoet_text {
  padding: 15px 18px !important;
  border-radius: var(--thl-radius) !important;
  border: 1.5px solid #2d3a55 !important;
  background: #1a2035 !important;
  color: #f0f4ff !important;
  font-size: 15px !important;
  font-family: var(--thl-font-sans) !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color var(--thl-transition) !important;
}

.thl-mp-dark input[type="email"]::placeholder,
.thl-mp-dark .mailpoet_text::placeholder {
  color: #3d4f70 !important;
}

.thl-mp-dark input[type="email"]:focus,
.thl-mp-dark .mailpoet_text:focus {
  border-color: var(--thl-blue) !important;
}

.thl-mp-dark input[type="submit"],
.thl-mp-dark .mailpoet_submit {
  padding: 15px 20px !important;
  border-radius: var(--thl-radius) !important;
  background: var(--thl-blue) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--thl-font-sans) !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background var(--thl-transition), transform var(--thl-transition) !important;
}

.thl-mp-dark input[type="submit"]:hover,
.thl-mp-dark .mailpoet_submit:hover {
  background: var(--thl-blue-dk) !important;
  transform: translateY(-1px) !important;
}

.thl-sub-guarantee {
  font-family: var(--thl-font-sans);
  font-size: 12px;
  color: rgba(255,255,255,.25);
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.thl-sub-guarantee span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════════
   FALLBACK FORM
   ═══════════════════════════════════════════════════════════════════ */
.thl-fallback-form {}

.thl-fallback-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thl-fallback-input {
  padding: 14px 18px;
  border: 1.5px solid var(--thl-border);
  border-radius: var(--thl-radius);
  font-size: 15px;
  width: 280px;
  max-width: 100%;
  font-family: var(--thl-font-sans);
  outline: none;
  transition: border-color var(--thl-transition), box-shadow var(--thl-transition);
  background: var(--thl-surface);
  color: var(--thl-ink);
}

.thl-fallback-input:focus {
  border-color: var(--thl-blue);
  box-shadow: 0 0 0 4px rgba(26,107,255,.1);
}

.thl-fallback-btn {
  padding: 14px 28px;
  background: var(--thl-ink);
  color: #fff;
  border: none;
  border-radius: var(--thl-radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--thl-font-sans);
  transition: background var(--thl-transition), transform var(--thl-transition);
}

.thl-fallback-btn:hover {
  background: var(--thl-blue);
  transform: translateY(-1px);
}

.thl-fallback-note {
  font-family: var(--thl-font-sans);
  font-size: 12px;
  color: var(--thl-muted);
  text-align: center;
  margin: 10px 0 0;
}

/* Dark variant */
.thl-fallback-form--dark .thl-fallback-row {
  flex-direction: column;
  gap: 12px;
}

.thl-fallback-form--dark .thl-fallback-input {
  background: #1a2035;
  border-color: #2d3a55;
  color: #f0f4ff;
  width: 100%;
}

.thl-fallback-form--dark .thl-fallback-input::placeholder {
  color: #3d4f70;
}

.thl-fallback-form--dark .thl-fallback-btn {
  width: 100%;
  background: var(--thl-blue);
}

.thl-fallback-form--dark .thl-fallback-btn:hover {
  background: var(--thl-blue-dk);
}

.thl-fallback-form--dark .thl-fallback-note {
  color: rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes thlFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes thlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,107,255,.5); }
  50%       { box-shadow: 0 0 0 7px rgba(26,107,255,0); }
}

@keyframes thlSpin {
  to { transform: rotate(360deg); }
}

/* Card stagger */
.thl-grid .thl-card:nth-child(1) { animation-delay: .05s; }
.thl-grid .thl-card:nth-child(2) { animation-delay: .10s; }
.thl-grid .thl-card:nth-child(3) { animation-delay: .15s; }
.thl-grid .thl-card:nth-child(4) { animation-delay: .20s; }
.thl-grid .thl-card:nth-child(5) { animation-delay: .25s; }
.thl-grid .thl-card:nth-child(6) { animation-delay: .30s; }

/* AJAX-loaded cards */
.thl-card.thl-card--loaded {
  animation: thlFadeUp .4s ease both;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .thl-stat-item { padding: 14px 24px; }
  .thl-stat-sep { height: 40px; }
}

@media (max-width: 768px) {
  .thl-hero { padding: 72px 20px 60px; }
  .thl-hero-title { font-size: 30px; }
  .thl-hero-subtitle { font-size: 16px; }

  .thl-stats-inner { gap: 0; }
  .thl-stat-item { padding: 14px 20px; }
  .thl-stat-sep { display: none; }

  .thl-section { padding: 60px 0; }
  .thl-grid { grid-template-columns: 1fr; gap: 20px; }

  .thl-sub-box { padding: 40px 24px; }
  .thl-sub-title { font-size: 22px; }

  .thl-tabs { gap: 5px; }
  .thl-tab { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .thl-hero { padding: 60px 16px 48px; }
  .thl-hero-title { font-size: 26px; }
  .thl-container { padding: 0 16px; }
  .thl-stat-num { font-size: 24px; }
}
